import * as BigQuery from '@google-cloud/bigquery' const bigquery = BigQuery({ credentials: require('./path/to/your-service-account-key.json') }); const query: string = ` select corpus, count(*) as unique_words from publicdata.samples.shakespeare group by corpus order by unique_words desc limit 10; ` const options = { query, useLegacySql: false, } /** * 実行計画 */ bigquery .startQuery({ ...options, d