code: def find_query_features(
      query, qualifier_rels=None, question=None, order_from_query=None
  ):
      query = query.lower().replace("select distinct", "select")
      answer_ent = re.findall(r"select [\(]?([\S]+) ", query)
      order_info_nt = namedtuple(
          "order_info", ["variable", "sorting_order"]
      )
      order_variable = re.findall("order by (asc|desc)\((.*)\)", query)
      if order_variable:
          if (
              qualifier_rels and len(qualifier_rels[0][4:]) > 1
          ) or order_from_query:
              answers_sorting_order = order_variable[0][0]
          else:
              answers_sorting_order = order_of_answers_sorting(question)
          order_info = order_info_nt(
              order_variable[0][1], answers_sorting_order
          )
      else:
          order_info = order_info_nt(None, None)
      filter_from_query = re.findall("contains\((\?\w), (.+?)\)", query)
      return answer_ent, order_info, filter_from_query
  
file_path: DeepPavlov/deeppavlov/models/kbqa/utils.py
imports: import itertools
  import re
  from collections import namedtuple
  from typing import List, Tuple, Dict, Any
label_desc: Use image node_id 1 for calling a global function with example usage: find_query_features(query, qualifier_rels, question, order_from_query) and returns: answer_ent,  order_info,  filter_from_query