class_docstr: A builder object for :class:`.query.Query` objects.
class_docstr_tok: ["A","builder","object","for",":","class",":","`",".query.Query","`","objects","."]
code: def _as_query(self, session):
      query = self.steps[0](session)
  
      for step in self.steps[1:]:
          query = step(query)
  
      return query
  
imports: import collections.abc
  import logging
  from ..None import exc
  from ..None import util
  from ..orm import exc
  from ..orm.query import Query
  from ..orm.session import Session
  from ..sql import func
  from ..sql import literal_column
  from ..sql import util
label_desc: Use image node_id 18 for calling the BakedQuery obj's underlying member method code with example usage: obj._as_query(session) and returns: query