code: def query(self):
      
      if not self.exists():
        return None
      self._table._load_info()
      if 'view' in self._table._info and 'query' in self._table._info['view']:
        return _query.Query(self._table._info['view']['query'])
      return None
docs: The Query that defines the view.