with queries