docstr: Limits the result count to the number specified.
  
  Args:
      num (int): Number of records to return. Will return num records or all records if the Relation contains fewer records.
  
  Returns:
      EvaDBQuery: Relation with subset of records
  
  Examples:
      >>> relation = cursor.table("sample_table")
      >>> relation.limit(10)
docstr_tok: ["Limits","the","result","count","to","the","number","specified",".","Args",":","num","(","int",")",":","Number","of","records","to","return",".","Will","return","num","records","or","all","records","if","the","Relation","contains","fewer","records",".","Returns",":","EvaDBQuery",":","Relation","with","subset","of","records","Examples",":",">",">",">","relation","=","cursor.table","(","``","sample_table","''",")",">",">",">","relation.limit","(","10",")"]
code: def limit(self, num: int) -> "EvaDBQuery":
      """Limits the result count to the number specified.
  
      Args:
          num (int): Number of records to return. Will return num records or all records if the Relation contains fewer records.
  
      Returns:
          EvaDBQuery: Relation with subset of records
  
      Examples:
          >>> relation = cursor.table("sample_table")
          >>> relation.limit(10)
  
      """
  
      limit_expr = create_limit_expression(num)
      self._query_node = handle_select_clause(
          self._query_node, self._alias, "limit_count", limit_expr
      )
  
      try_binding(self._evadb.catalog, self._query_node)
  
      return self
  
imports: from typing import Union
  import pandas
  from evadb.database import EvaDBDatabase
  from evadb.interfaces.relational.utils import create_limit_expression, create_star_expression, handle_select_clause, sql_predicate_to_expresssion_tree, sql_string_to_expresssion_list, string_to_lateral_join, try_binding
  from evadb.models.storage.batch import Batch
  from evadb.parser.alias import Alias
  from evadb.parser.select_statement import SelectStatement
  from evadb.parser.statement import AbstractStatement
  from evadb.parser.table_ref import JoinNode, TableRef
  from evadb.parser.types import JoinType
  from evadb.parser.utils import parse_sql_orderby_expr
  from evadb.server.command_handler import execute_statement
label_desc: Use image node_id 7 for calling the EvaDBQuery obj's underlying member method code with example usage: obj.limit(num) and returns: self