create a query by using wizard