nodes: 0, module; 1, function_definition; 2, function_name:query; 3, parameters; 4, block; 5, identifier:self; 6, identifier:query; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, expression_statement; 12, expression_statement; 13, expression_statement; 14, return_statement; 15, identifier:sort; 16, None; 17, identifier:offset; 18, integer:100; 19, identifier:page; 20, integer:1; 21, identifier:aquarius_url; 22, None; 23, comment:"""
          Search an asset in oceanDB using search query.
  
          :param query: dict with query parameters
              (e.g.) https://github.com/oceanprotocol/aquarius/blob/develop/docs/for_api_users/API.md
          :param sort: Dictionary to choose order base in some value
          :param offset: Number of elements shows by page
          :param page: Page number
          :param aquarius_url: Url of the aquarius where you want to search. If there is not
              provided take the default
          :return: List of assets that match with the query.
          """; 24, call; 25, assignment; 26, list_comprehension; 27, attribute; 28, argument_list; 29, identifier:aquarius; 30, call; 31, call; 32, for_in_clause; 33, identifier:logger; 34, identifier:info; 35, string; 36, attribute; 37, argument_list; 38, identifier:DDO; 39, argument_list; 40, identifier:ddo_dict; 41, subscript; 42, string_content:Searching asset query:; 43, interpolation; 44, identifier:self; 45, identifier:_get_aquarius; 46, identifier:aquarius_url; 47, keyword_argument; 48, call; 49, string; 50, identifier:query; 51, identifier:dictionary; 52, identifier:ddo_dict; 53, attribute; 54, argument_list; 55, string_content:results; 56, identifier:aquarius; 57, identifier:query_search; 58, identifier:query; 59, identifier:sort; 60, identifier:offset; 61, identifier:page
code: def query(self, query, sort=None, offset=100, page=1, aquarius_url=None):
          """
          Search an asset in oceanDB using search query.
  
          :param query: dict with query parameters
              (e.g.) https://github.com/oceanprotocol/aquarius/blob/develop/docs/for_api_users/API.md
          :param sort: Dictionary to choose order base in some value
          :param offset: Number of elements shows by page
          :param page: Page number
          :param aquarius_url: Url of the aquarius where you want to search. If there is not
              provided take the default
          :return: List of assets that match with the query.
          """
          logger.info(f'Searching asset query: {query}')
          aquarius = self._get_aquarius(aquarius_url)
          return [DDO(dictionary=ddo_dict) for ddo_dict in
                  aquarius.query_search(query, sort, offset, page)['results']]