implements 'findQuery' method