code: def _new_pivot_query(self):
          
          query = self.new_pivot_statement()
  
          for where_args in self._pivot_wheres:
              query.where(*where_args)
  
          return query.where(self._foreign_key, self._parent.get_key())
docs: Create a new query builder for the pivot table.
  
          :rtype: orator.orm.Builder