MENU

Gemini Prompt For BigQuery

  1. Direct and Specific Prompts:
   Write a Japanese blog post about saving SQL queries and views in BigQuery.  Include the following sections: Introduction, Why save queries, How to save queries (using the UI and the command-line), How to save views,  Benefits of saving queries and views, and a Conclusion.  Provide specific examples using Japanese datasets and table names.

This prompt gives Gemini a clear outline and specifies the desired language. The inclusion of “Japanese datasets and table names” encourages contextually appropriate examples.

  1. Leveraging Keywords and Context:
   ブログ記事を書いてください。テーマはBigQueryでSQLクエリとビューを保存する方法です。BigQueryのUIとコマンドラインツールの両方での保存方法、メリット、デメリットを説明し、具体的な例を挙げてください。日本語で書いてください。
   (Write a blog post. The theme is how to save SQL queries and views in BigQuery. Explain how to save using both the BigQuery UI and command-line tools, the advantages and disadvantages, and give specific examples. Write in Japanese.)

This prompt is entirely in Japanese, directly instructing Gemini in its target language. It also specifies key details like advantages/disadvantages and requests concrete examples. Providing both the English and Japanese versions helps you cross-reference and ensure accuracy.

  1. Iterative Prompting and Refinement: Instead of one large prompt, consider a series of smaller, more focused prompts:
   日本語でBigQueryの紹介を書いてください。(Write an introduction to BigQuery in Japanese)

   BigQueryでSQLクエリを保存するメリットを日本語で箇条書きにしてください。(List the benefits of saving SQL queries in BigQuery in Japanese as bullet points)

   BigQueryのUIを使ってビューを作成し保存する手順を日本語で説明してください。(Explain the steps to create and save a view using the BigQuery UI in Japanese)

   ...

This allows for more control over each section and makes it easier to revise and adjust the generated content.

  1. Example-Driven Prompts:
   日本語でブログ記事を書いてください。BigQueryで下記のようなSQLクエリを保存する方法を説明します。  [Provide example SQL Query]  UIとコマンドラインの両方での方法を説明し、保存したクエリを再利用する方法も説明してください。(Write a blog post in Japanese. Explain how to save an SQL query like the one below in BigQuery.  [Provide example SQL Query]  Explain methods using both the UI and the command line, and also explain how to reuse saved queries.)
よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!

この記事を書いた人

コメント

コメントする

目次