code: def split_query(query: str) -> List[str]:
      
      try:
          _query = query.strip()
      except (ValueError, AttributeError):
          raise QueryParserException('query is not valid, received instead {}'.format(query))
  
      expressions = _query.split(',')
      expressions = [exp.strip() for exp in expressions if exp.strip()]
      if not expressions:
          raise QueryParserException('Query is not valid: {}'.format(query))
  
      return expressions
docs: Split a query into different expressions.
  
      Example:
          name:bla, foo:<=1