class_docstr: InfluxDB Tables implementation
docstr: Gets Well formed Query
  Returns
  -------
  str
code: def get_select_query(
      self,
      table_name,
      selected_columns,
      where_conditions,
      order_by_conditions,
      result_limit,
  ):
      """Gets Well formed Query
      Returns
      -------
      str
      """
      columns = ", ".join(
          [f'"{column}"' for column in selected_columns]
      )
      query = f'SELECT {columns} FROM "{table_name}"'
      if where_conditions is not None and len(where_conditions) > 0:
          query += " WHERE "
          query += " AND ".join(
              [f"{i[1]} {i[0]} {i[2]}" for i in where_conditions]
          )
      if (
          order_by_conditions != {}
          and order_by_conditions["columns"] is not None
          and len(order_by_conditions["columns"]) > 0
      ):
          query += " ORDER BY "
          query += ", ".join(
              [
                  f'{column_name} {"ASC"if asc else "DESC"}'
                  for column_name, asc in zip(
                      order_by_conditions["columns"],
                      order_by_conditions["ascending"],
                  )
              ]
          )
      if result_limit is not None:
          query += f" LIMIT {result_limit}"
      query += ";"
      return query
  
file_path: mindsdb/mindsdb/integrations/handlers/influxdb_handler/influxdb_tables.py
imports: import pandas
  from typing import List
  from mindsdb.integrations.libs.api_handler import APITable
  from mindsdb.integrations.utilities.sql_utils import extract_comparison_conditions
  from mindsdb.utilities import log
  from mindsdb_sql.parser import ast
  from mindsdb.integrations.handlers.utilities.query_utilities.select_query_utilities import SELECTQueryParser, SELECTQueryExecutor
label_desc: Use image node_id 3 for calling the InfluxDBTables obj's underlying member method code with example usage: obj.get_select_query(table_name, selected_columns, where_conditions, order_by_conditions, result_limit) and returns: query