class_docstr: Copy data from PrestoDB to Google Cloud Storage in JSON, CSV or Parquet format.
  
  :param presto_conn_id: Reference to a specific Presto hook.
docstr: Queries presto and returns a cursor to the results.
docstr_tok: ["Queries","presto","and","returns","a","cursor","to","the","results","."]
code: def query(self):
      """Queries presto and returns a cursor to the results."""
      presto = PrestoHook(presto_conn_id=self.presto_conn_id)
      conn = presto.get_conn()
      cursor = conn.cursor()
      self.log.info("Executing: %s", self.sql)
      cursor.execute(self.sql)
      return _PrestoToGCSPrestoCursorAdapter(cursor)
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any
  from airflow.providers.google.cloud.transfers.sql_to_gcs import BaseSQLToGCSOperator
  from airflow.providers.presto.hooks.presto import PrestoHook
label_desc: Use image node_id 2 for calling the PrestoToGCSOperator obj's underlying member method code with example usage: obj.query() and returns: _PrestoToGCSPrestoCursorAdapter