dataset_name stringclasses 1
value | split stringclasses 1
value | prompt_raw stringlengths 897 4.29k | messages listlengths 2 2 | question stringlengths 18 174 | sample_id int64 0 1.03k | db_id stringclasses 20
values | groundtruth_sqls listlengths 1 1 |
|---|---|---|---|---|---|---|---|
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the ids, names, and descriptions for all documents? | 300 | cre_Doc_Template_Mgt | [
"SELECT document_id , document_name , document_description FROM Documents"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the document name and template id for document with description with the letter 'w' in it? | 301 | cre_Doc_Template_Mgt | [
"SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the names and template ids for documents that contain the letter w in their description. | 302 | cre_Doc_Template_Mgt | [
"SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the document id, template id and description for document named "Robbin CV"? | 303 | cre_Doc_Template_Mgt | [
"SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the document id, template id, and description for the document with the name Robbin CV. | 304 | cre_Doc_Template_Mgt | [
"SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many different templates do all document use? | 305 | cre_Doc_Template_Mgt | [
"SELECT count(DISTINCT template_id) FROM Documents"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of different templates used for documents. | 306 | cre_Doc_Template_Mgt | [
"SELECT count(DISTINCT template_id) FROM Documents"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many documents are using the template with type code 'PPT'? | 307 | cre_Doc_Template_Mgt | [
"SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of documents that use the PPT template type. | 308 | cre_Doc_Template_Mgt | [
"SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show all template ids and number of documents using each template. | 309 | cre_Doc_Template_Mgt | [
"SELECT template_id , count(*) FROM Documents GROUP BY template_id"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are all different template ids used for documents, and how many times were each of them used? | 310 | cre_Doc_Template_Mgt | [
"SELECT template_id , count(*) FROM Documents GROUP BY template_id"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the id and type code for the template used by the most documents? | 311 | cre_Doc_Template_Mgt | [
"SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the id and type code of the template that is used for the greatest number of documents. | 312 | cre_Doc_Template_Mgt | [
"SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show ids for all templates that are used by more than one document. | 313 | cre_Doc_Template_Mgt | [
"SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the template ids of any templates used in more than a single document? | 314 | cre_Doc_Template_Mgt | [
"SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show ids for all templates not used by any document. | 315 | cre_Doc_Template_Mgt | [
"SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the ids for templates that are not used in any documents? | 316 | cre_Doc_Template_Mgt | [
"SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many templates do we have? | 317 | cre_Doc_Template_Mgt | [
"SELECT count(*) FROM Templates"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of templates. | 318 | cre_Doc_Template_Mgt | [
"SELECT count(*) FROM Templates"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show template ids, version numbers, and template type codes for all templates. | 319 | cre_Doc_Template_Mgt | [
"SELECT template_id , version_number , template_type_code FROM Templates"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the ids, version numbers, and type codes for each template? | 320 | cre_Doc_Template_Mgt | [
"SELECT template_id , version_number , template_type_code FROM Templates"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show all distinct template type codes for all templates. | 321 | cre_Doc_Template_Mgt | [
"SELECT DISTINCT template_type_code FROM Templates"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the different template type codes? | 322 | cre_Doc_Template_Mgt | [
"SELECT DISTINCT template_type_code FROM Templates"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the ids of templates with template type code PP or PPT? | 323 | cre_Doc_Template_Mgt | [
"SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the ids of templates that have the code PP or PPT. | 324 | cre_Doc_Template_Mgt | [
"SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many templates have template type code CV? | 325 | cre_Doc_Template_Mgt | [
"SELECT count(*) FROM Templates WHERE template_type_code = \"CV\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of templates of the type CV. | 326 | cre_Doc_Template_Mgt | [
"SELECT count(*) FROM Templates WHERE template_type_code = \"CV\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the version number and template type code for the template with version number later than 5? | 327 | cre_Doc_Template_Mgt | [
"SELECT version_number , template_type_code FROM Templates WHERE version_number > 5"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the version numbers and template type codes of templates with a version number greater than 5. | 328 | cre_Doc_Template_Mgt | [
"SELECT version_number , template_type_code FROM Templates WHERE version_number > 5"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show all template type codes and number of templates for each. | 329 | cre_Doc_Template_Mgt | [
"SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the different template type codes, and how many templates correspond to each? | 330 | cre_Doc_Template_Mgt | [
"SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which template type code has most number of templates? | 331 | cre_Doc_Template_Mgt | [
"SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the type code of the template type that the most templates belong to. | 332 | cre_Doc_Template_Mgt | [
"SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show all template type codes with less than three templates. | 333 | cre_Doc_Template_Mgt | [
"SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "3"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255) - other details
Contains null v... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the codes of template types that have fewer than 3 templates? | 334 | cre_Doc_Template_Mgt | [
"SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What the smallest version number and its template type code? | 335 | cre_Doc_Template_Mgt | [
"SELECT min(Version_Number) , template_type_code FROM Templates"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the lowest version number, along with its corresponding template type code. | 336 | cre_Doc_Template_Mgt | [
"SELECT min(Version_Number) , template_type_code FROM Templates"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the template type code of the template used by document with the name "Data base"? | 337 | cre_Doc_Template_Mgt | [
"SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the template type code of the template that is used by a document named Data base. | 338 | cre_Doc_Template_Mgt | [
"SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show all document names using templates with template type code BK. | 339 | cre_Doc_Template_Mgt | [
"SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of documents that use templates with the code BK? | 340 | cre_Doc_Template_Mgt | [
"SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show all template type codes and the number of documents using each type. | 341 | cre_Doc_Template_Mgt | [
"SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the different template type codes, and how many documents use each type? | 342 | cre_Doc_Template_Mgt | [
"SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which template type code is used by most number of documents? | 343 | cre_Doc_Template_Mgt | [
"SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the code of the template type that is most commonly used in documents. | 344 | cre_Doc_Template_Mgt | [
"SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show all template type codes that are not used by any document. | 345 | cre_Doc_Template_Mgt | [
"SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the codes of template types that are not used for any document? | 346 | cre_Doc_Template_Mgt | [
"SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show all template type codes and descriptions. | 347 | cre_Doc_Template_Mgt | [
"SELECT template_type_code , template_type_description FROM Ref_template_types"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the type codes and descriptions for all template types? | 348 | cre_Doc_Template_Mgt | [
"SELECT template_type_code , template_type_description FROM Ref_template_types"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the template type descriptions for template type code "AD". | 349 | cre_Doc_Template_Mgt | [
"SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the template type description of the template type with the code AD. | 350 | cre_Doc_Template_Mgt | [
"SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the template type code for template type description "Book". | 351 | cre_Doc_Template_Mgt | [
"SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the type code of the template type with the description "Book". | 352 | cre_Doc_Template_Mgt | [
"SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the distinct template type descriptions for the templates ever used by any document? | 353 | cre_Doc_Template_Mgt | [
"SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the different descriptions for templates that have been used in a document. | 354 | cre_Doc_Template_Mgt | [
"SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the template ids with template type description "Presentation". | 355 | cre_Doc_Template_Mgt | [
"SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the ids corresponding to templates with the description 'Presentation'. | 356 | cre_Doc_Template_Mgt | [
"SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many paragraphs in total? | 357 | cre_Doc_Template_Mgt | [
"SELECT count(*) FROM Paragraphs"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of paragraphs. | 358 | cre_Doc_Template_Mgt | [
"SELECT count(*) FROM Paragraphs"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many paragraphs for the document with name 'Summer Show'? | 359 | cre_Doc_Template_Mgt | [
"SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of paragraphs in the document named 'Summer Show'. | 360 | cre_Doc_Template_Mgt | [
"SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea"
Paragraphs.Other_Details: VARCHAR(255) - other details
Contains null values: True
Pa... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show paragraph details for paragraph with text 'Korea ' . | 361 | cre_Doc_Template_Mgt | [
"select other_details from paragraphs where paragraph_text like 'korea'"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea"
Paragraphs.Other_Details: VARCHAR(255) - other details
Contains null values: True
Pa... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the details for the paragraph that includes the text 'Korea ' ? | 362 | cre_Doc_Template_Mgt | [
"select other_details from paragraphs where paragraph_text like 'korea'"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show all paragraph ids and texts for the document with name 'Welcome to NY'. | 363 | cre_Doc_Template_Mgt | [
"SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the ids and texts of paragraphs in the document titled 'Welcome to NY'? | 364 | cre_Doc_Template_Mgt | [
"SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show all paragraph texts for the document "Customer reviews". | 365 | cre_Doc_Template_Mgt | [
"SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the paragraph texts for the document with the name 'Customer reviews'? | 366 | cre_Doc_Template_Mgt | [
"SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\""
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show all document ids and the number of paragraphs in each document. Order by document id. | 367 | cre_Doc_Template_Mgt | [
"SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the different document ids along with the number of paragraphs corresponding to each, ordered by id. | 368 | cre_Doc_Template_Mgt | [
"SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show all document ids, names and the number of paragraphs in each document. | 369 | cre_Doc_Template_Mgt | [
"SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the ids and names of each document, as well as the number of paragraphs in each? | 370 | cre_Doc_Template_Mgt | [
"SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List all document ids with at least two paragraphs. | 371 | cre_Doc_Template_Mgt | [
"SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the ids of documents that have 2 or more paragraphs? | 372 | cre_Doc_Template_Mgt | [
"SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the document id and name with greatest number of paragraphs? | 373 | cre_Doc_Template_Mgt | [
"SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the id and name of the document with the most paragraphs. | 374 | cre_Doc_Template_Mgt | [
"SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the document id with least number of paragraphs? | 375 | cre_Doc_Template_Mgt | [
"SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the id of the document with the fewest paragraphs. | 376 | cre_Doc_Template_Mgt | [
"SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the document id with 1 to 2 paragraphs? | 377 | cre_Doc_Template_Mgt | [
"SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Korea", "Somalia", "Palestinian Territory", "Jersey", "UK"
Paragraphs.Other_Details: VARCHAR(255)... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the ids of documents that have between one and two paragraphs. | 378 | cre_Doc_Template_Mgt | [
"SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Brazil", "Ireland"
Paragraphs.Other_Details: VARCHAR(255) - other details
Contains null value... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the document id with paragraph text 'Brazil' and 'Ireland'. | 379 | cre_Doc_Template_Mgt | [
"SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'"
] |
spider | dev | Database Schema:
Table Paragraphs
Paragraphs.Document_ID: INTEGER - document id
Sample values: "2394", "3", "50123", "651512", "33930"
Paragraphs.Paragraph_Text: VARCHAR(255) - paragraph text
Sample values: "Brazil", "Ireland"
Paragraphs.Other_Details: VARCHAR(255) - other details
Contains null value... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'? | 380 | cre_Doc_Template_Mgt | [
"SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many teachers are there? | 381 | course_teach | [
"SELECT count(*) FROM teacher"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the total count of teachers? | 382 | course_teach | [
"SELECT count(*) FROM teacher"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the names of teachers in ascending order of age. | 383 | course_teach | [
"SELECT Name FROM teacher ORDER BY Age ASC"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of the teachers ordered by ascending age? | 384 | course_teach | [
"SELECT Name FROM teacher ORDER BY Age ASC"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the age and hometown of teachers? | 385 | course_teach | [
"SELECT Age , Hometown FROM teacher"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the age and hometown of every teacher? | 386 | course_teach | [
"SELECT Age , Hometown FROM teacher"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the name of teachers whose hometown is not `` Little Lever Urban District '' . | 387 | course_teach | [
"select name from teacher where hometown != \"little lever urban district\""
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ? | 388 | course_teach | [
"select name from teacher where hometown != \"little lever urban district\""
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the name of teachers aged either 32 or 33? | 389 | course_teach | [
"SELECT Name FROM teacher WHERE Age = 32 OR Age = 33"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of the teachers who are aged either 32 or 33? | 390 | course_teach | [
"SELECT Name FROM teacher WHERE Age = 32 OR Age = 33"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the hometown of the youngest teacher? | 391 | course_teach | [
"SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Where is the youngest teacher from? | 392 | course_teach | [
"SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show different hometown of teachers and the number of teachers from each hometown. | 393 | course_teach | [
"SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | For each hometown, how many teachers are there? | 394 | course_teach | [
"SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the most common hometown of teachers. | 395 | course_teach | [
"SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the most commmon hometowns for teachers? | 396 | course_teach | [
"SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the hometowns shared by at least two teachers. | 397 | course_teach | [
"SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the towns from which at least two teachers come from? | 398 | course_teach | [
"SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show names of teachers and the courses they are arranged to teach. | 399 | course_teach | [
"SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.