slightly changed behaviour of query: actually do the query