code: def query_item(name, query_string, order='Rank'):
      '''
      Query a type of record for one or more items. Requires a valid query string.
      See https://rally1.rallydev.com/slm/doc/webservice/introduction.jsp for
      information on query syntax.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion rallydev.query_<item name> <query string> [<order>]
          salt myminion rallydev.query_task '(Name contains github)'
          salt myminion rallydev.query_task '(Name contains reactor)' Rank
      '''
      status, result = _query(
          action=name,
          args={'query': query_string,
                'order': order}
      )
      return resulf query_item(name, query_string, order='Rank'):
      '''
      Query a type of record for one or more items. Requires a valid query string.
      See https://rally1.rallydev.com/slm/doc/webservice/introduction.jsp for
      information on query syntax.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion rallydev.query_<item name> <query string> [<order>]
          salt myminion rallydev.query_task '(Name contains github)'
          salt myminion rallydev.query_task '(Name contains reactor)' Rank
      '''
      status, result = _query(
          action=name,
          args={'query': query_string,
                'order': order}
      )
      return result
docs: Query a type of record for one or more items. Requires a valid query string.
      See https://rally1.rallydev.com/slm/doc/webservice/introduction.jsp for
      information on query syntax.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion rallydev.query_<item name> <query string> [<order>]
          salt myminion rallydev.query_task '(Name contains github)'
          salt myminion rallydev.query_task '(Name contains reactor)' Rank