class_docstr: Parses a SELECT query into its component parts.
  
  Parameters
  ----------
  query : ast.Select
      Given SQL SELECT query.
  table : Text
      Name of the table to query.
  columns : List[Text]
      List of columns in the table.
class_docstr_tok: ["Parses","a","SELECT","query","into","its","component","parts",".","Parameters","--","--","--","--","--","query",":","ast.Select","Given","SQL","SELECT","query",".","table",":","Text","Name","of","the","table","to","query",".","columns",":","List","[","Text","]","List","of","columns","in","the","table","."]
docstr: Parses the LIMIT clause of the query.
docstr_tok: ["Parses","the","LIMIT","clause","of","the","query","."]
code: def parse_limit_clause(self) -> int:
      """
      Parses the LIMIT clause of the query.
      """
      if self.query.limit:
          result_limit = self.query.limit.value
      else:
          result_limit = 20
  
      return result_limit
  
imports: import pandas
  from mindsdb_sql.parser import ast
  from typing import Text, List, Dict, Tuple
  from mindsdb_sql.parser import ast
  from mindsdb.integrations.utilities.sql_utils import sort_dataframe
  from mindsdb.integrations.handlers.utilities.query_utilities.base_query_utilities import BaseQueryParser
  from mindsdb.integrations.handlers.utilities.query_utilities.base_query_utilities import BaseQueryExecutor
label_desc: Use image node_id 5 for calling the SELECTQueryParser obj's underlying member method code with example usage: obj.parse_limit_clause() and returns: result_limit