filter queries by user