Create a shape file from query

Is possible to create a shape file from an SQL query from withing Mapwindow5?