class_docstr: Hubspot Deals table.
docstr: Pulls Hubspot Deals data
  
  Parameters
  ----------
  query : ast.Select
      Given SQL SELECT query
  
  Returns
  -------
  pd.DataFrame
      Hubspot Deals matching the query
  
  Raises
  ------
  ValueError
      If the query contains an unsupported condition
code: def select(self, query: ast.Select) -> pd.DataFrame:
      """
      Pulls Hubspot Deals data
  
      Parameters
      ----------
      query : ast.Select
          Given SQL SELECT query
  
      Returns
      -------
      pd.DataFrame
          Hubspot Deals matching the query
  
      Raises
      ------
      ValueError
          If the query contains an unsupported condition
  
      """
  
      select_statement_parser = SELECTQueryParser(
          query, "deals", self.get_columns()
      )
      (
          selected_columns,
          where_conditions,
          order_by_conditions,
          result_limit,
      ) = select_statement_parser.parse_query()
  
      deals_df = pd.json_normalize(self.get_deals(limit=result_limit))
      select_statement_executor = SELECTQueryExecutor(
          deals_df,
          selected_columns,
          where_conditions,
          order_by_conditions,
      )
      deals_df = select_statement_executor.execute_query()
  
      return deals_df
  
imports: import pandas
  from hubspot.crm.objects import SimplePublicObjectId, SimplePublicObjectBatchInput, SimplePublicObjectInputForCreate, BatchInputSimplePublicObjectId, BatchInputSimplePublicObjectBatchInput, BatchInputSimplePublicObjectInputForCreate
  from mindsdb_sql.parser import ast
  from mindsdb.integrations.handlers.utilities.query_utilities import INSERTQueryParser, SELECTQueryParser, UPDATEQueryParser, DELETEQueryParser, SELECTQueryExecutor, UPDATEQueryExecutor, DELETEQueryExecutor
  from mindsdb.integrations.libs.api_handler import APITable
  from mindsdb.utilities import log
label_desc: Use image node_id 1 for calling the DealsTable obj's underlying member method code with example usage: obj.select(query) and returns: deals_df