docstr: Find and return record for context and query string
docstr_tok: ["Find","and","return","record","for","context","and","query","string"]
code: def __get_context_record(
      self, context_name: str, query_str: str
  ) -> db.QueryContext:
      """
      Find and return record for context and query string
      """
  
      return (
          db.session.query(db.QueryContext)
          .filter_by(
              query=query_str,
              context_name=context_name,
              company_id=ctx.company_id,
          )
          .first()
      )
  
imports: from typing import List
  import pandas
  from mindsdb_sql.parser.ast import Identifier, BinaryOperation, Last, Constant, ASTNode
  from mindsdb_sql.planner.utils import query_traversal
  from mindsdb.interfaces.storage import db
  from mindsdb.utilities.context import context
  from .last_query import LastQuery
label_desc: Use image node_id 11 for calling the QueryContextController obj's underlying member method code with example usage: obj.__get_context_record(context_name, query_str) and returns: db