def tokenize_query(query: str) -> Dict[str, Iterable]:
expressions = split_query(query)<EOL>name_operation_tuples = [parse_expression(expression) for expression in expressions]<EOL>operation_by_name = defaultdict(list)<EOL>for name, operation in name_operation_tuples:<EOL><INDENT>operation_by_name[name].append(operation)<EOL><DEDENT>return operation_by_name<EOL>
Tokenizes a standard search query in name: operations mapping.

    Example:
        moo:bla, foo:~<=1, foo:ll..ff

        {
          'moo': ['bla'],
          'foo': ['~<=1', 'll..ff']
        }