require a query to get the output