db_id
stringclasses 20
values | prompt
stringlengths 424
2.17k
| ground_truth
stringlengths 27
254
|
---|---|---|
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the ids, names, and descriptions for all documents? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Document_ID , documents.Document_Name , documents.Document_Description from documents |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the document name and template id for document with description with the letter 'w' in it? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Document_Name , documents.Template_ID from documents where documents.Document_Description like "%w%" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the names and template ids for documents that contain the letter w in their description. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Document_Name , documents.Template_ID from documents where documents.Document_Description like "%w%" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the document id, template id and description for document named "Robbin CV"? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Document_ID , documents.Template_ID , documents.Document_Description from documents where documents.Document_Name = "Robbin CV" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the document id, template id, and description for the document with the name Robbin CV. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Document_ID , documents.Template_ID , documents.Document_Description from documents where documents.Document_Name = "Robbin CV" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: How many different templates do all document use? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select count ( distinct documents.Template_ID ) from documents |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Count the number of different templates used for documents. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select count ( distinct documents.Template_ID ) from documents |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: How many documents are using the template with type code 'PPT'? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select count ( documents.* ) from documents where templates.Template_Type_Code = "PPT" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Count the number of documents that use the PPT template type. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select count ( documents.* ) from documents where templates.Template_Type_Code = "PPT" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show all template ids and number of documents using each template. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Template_ID , count ( documents.* ) from documents group by documents.Template_ID |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are all different template ids used for documents, and how many times were each of them used? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Template_ID , count ( documents.* ) from documents group by documents.Template_ID |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the id and type code for the template used by the most documents? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_ID , templates.Template_Type_Code from documents group by documents.Template_ID order by count ( documents.* ) desc limit 1 |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the id and type code of the template that is used for the greatest number of documents. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_ID , templates.Template_Type_Code from documents group by documents.Template_ID order by count ( documents.* ) desc limit 1 |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show ids for all templates that are used by more than one document. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Template_ID from documents where count ( documents.* ) > 1 group by documents.Template_ID |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the template ids of any templates used in more than a single document? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Template_ID from documents where count ( documents.* ) > 1 group by documents.Template_ID |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show ids for all templates not used by any document. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_ID from templates where except_ @.@ is documents.* |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the ids for templates that are not used in any documents? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_ID from templates where except_ @.@ is documents.* |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: How many templates do we have? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select count ( templates.* ) from templates |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Count the number of templates. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select count ( templates.* ) from templates |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show template ids, version numbers, and template type codes for all templates. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_ID , templates.Version_Number , templates.Template_Type_Code from templates |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the ids, version numbers, and type codes for each template? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_ID , templates.Version_Number , templates.Template_Type_Code from templates |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show all distinct template type codes for all templates. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select distinct templates.Template_Type_Code from templates |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the different template type codes? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select distinct templates.Template_Type_Code from templates |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the ids of templates with template type code PP or PPT? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_ID from templates where templates.Template_Type_Code = "PP" or templates.Template_Type_Code = "PPT" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the ids of templates that have the code PP or PPT. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_ID from templates where templates.Template_Type_Code = "PP" or templates.Template_Type_Code = "PPT" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: How many templates have template type code CV? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select count ( templates.* ) from templates where templates.Template_Type_Code = "CV" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Count the number of templates of the type CV. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select count ( templates.* ) from templates where templates.Template_Type_Code = "CV" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the version number and template type code for the template with version number later than 5? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Version_Number , templates.Template_Type_Code from templates where templates.Version_Number > 5 |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the version numbers and template type codes of templates with a version number greater than 5. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Version_Number , templates.Template_Type_Code from templates where templates.Version_Number > 5 |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show all template type codes and number of templates for each. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code , count ( templates.* ) from templates group by templates.Template_Type_Code |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the different template type codes, and how many templates correspond to each? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code , count ( templates.* ) from templates group by templates.Template_Type_Code |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Which template type code has most number of templates? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code from templates group by templates.Template_Type_Code order by count ( templates.* ) desc limit 1 |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the type code of the template type that the most templates belong to. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code from templates group by templates.Template_Type_Code order by count ( templates.* ) desc limit 1 |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show all template type codes with less than three templates. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code from templates where count ( templates.* ) < 3 group by templates.Template_Type_Code |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the codes of template types that have fewer than 3 templates? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code from templates where count ( templates.* ) < 3 group by templates.Template_Type_Code |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What the smallest version number and its template type code? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select min(templates.Version_Number) , templates.Template_Type_Code from templates |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the lowest version number, along with its corresponding template type code. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select min(templates.Version_Number) , templates.Template_Type_Code from templates |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the template type code of the template used by document with the name "Data base"? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code from templates where documents.Document_Name = "Data base" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the template type code of the template that is used by a document named Data base. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code from templates where documents.Document_Name = "Data base" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show all document names using templates with template type code BK. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Document_Name from templates where templates.Template_Type_Code = "BK" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the names of documents that use templates with the code BK? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Document_Name from templates where templates.Template_Type_Code = "BK" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show all template type codes and the number of documents using each type. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code , count ( documents.* ) from documents group by templates.Template_Type_Code |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the different template type codes, and how many documents use each type? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code , count ( documents.* ) from documents group by templates.Template_Type_Code |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Which template type code is used by most number of documents? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code from documents group by templates.Template_Type_Code order by count ( documents.* ) desc limit 1 |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the code of the template type that is most commonly used in documents. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code from documents group by templates.Template_Type_Code order by count ( documents.* ) desc limit 1 |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show all template type codes that are not used by any document. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code from templates where except_ @.@ is documents.* |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the codes of template types that are not used for any document? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_Type_Code from templates where except_ @.@ is documents.* |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show all template type codes and descriptions. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select ref_template_types.Template_Type_Code , ref_template_types.Template_Type_Description from ref_template_types |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the type codes and descriptions for all template types? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select ref_template_types.Template_Type_Code , ref_template_types.Template_Type_Description from ref_template_types |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the template type descriptions for template type code "AD". | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select ref_template_types.Template_Type_Description from ref_template_types where ref_template_types.Template_Type_Code = "AD" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the template type description of the template type with the code AD. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select ref_template_types.Template_Type_Description from ref_template_types where ref_template_types.Template_Type_Code = "AD" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the template type code for template type description "Book". | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select ref_template_types.Template_Type_Code from ref_template_types where ref_template_types.Template_Type_Description = "Book" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the type code of the template type with the description "Book". | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select ref_template_types.Template_Type_Code from ref_template_types where ref_template_types.Template_Type_Description = "Book" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the distinct template type descriptions for the templates ever used by any document? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select distinct ref_template_types.Template_Type_Description from ref_template_types where @.@ join documents.* |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the different descriptions for templates that have been used in a document. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select distinct ref_template_types.Template_Type_Description from ref_template_types where @.@ join documents.* |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the template ids with template type description "Presentation". | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_ID from ref_template_types where ref_template_types.Template_Type_Description = "Presentation" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the ids corresponding to templates with the description 'Presentation'. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select templates.Template_ID from templates where ref_template_types.Template_Type_Description = "Presentation" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: How many paragraphs in total? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select count ( paragraphs.* ) from paragraphs |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Count the number of paragraphs. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select count ( paragraphs.* ) from paragraphs |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: How many paragraphs for the document with name 'Summer Show'? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select count ( paragraphs.* ) from paragraphs where documents.Document_Name = "Summer Show" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Count the number of paragraphs in the document named 'Summer Show'. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select count ( paragraphs.* ) from paragraphs where documents.Document_Name = "Summer Show" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show paragraph details for paragraph with text 'Korea ' . | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Other_Details from paragraphs where paragraphs.Paragraph_Text like "Korea" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the details for the paragraph that includes the text 'Korea ' ? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Other_Details from paragraphs where paragraphs.Paragraph_Text like "Korea" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show all paragraph ids and texts for the document with name 'Welcome to NY'. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Paragraph_ID , paragraphs.Paragraph_Text from paragraphs where documents.Document_Name = "Welcome to NY" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the ids and texts of paragraphs in the document titled 'Welcome to NY'? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Paragraph_ID , paragraphs.Paragraph_Text from paragraphs where documents.Document_Name = "Welcome to NY" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show all paragraph texts for the document "Customer reviews". | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Paragraph_Text from paragraphs where documents.Document_Name = "Customer reviews" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the paragraph texts for the document with the name 'Customer reviews'? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Paragraph_Text from paragraphs where documents.Document_Name = "Customer reviews" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show all document ids and the number of paragraphs in each document. Order by document id. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Document_ID , count ( paragraphs.* ) from paragraphs group by paragraphs.Document_ID order by paragraphs.Document_ID asc |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the different document ids along with the number of paragraphs corresponding to each, ordered by id. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Document_ID , count ( paragraphs.* ) from paragraphs group by paragraphs.Document_ID order by paragraphs.Document_ID asc |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show all document ids, names and the number of paragraphs in each document. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Document_ID , documents.Document_Name , count ( paragraphs.* ) from paragraphs group by paragraphs.Document_ID |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the ids and names of each document, as well as the number of paragraphs in each? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Document_ID , documents.Document_Name , count ( paragraphs.* ) from paragraphs group by paragraphs.Document_ID |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: List all document ids with at least two paragraphs. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Document_ID from paragraphs where count ( paragraphs.* ) >= 2 group by paragraphs.Document_ID |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the ids of documents that have 2 or more paragraphs? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Document_ID from paragraphs where count ( paragraphs.* ) >= 2 group by paragraphs.Document_ID |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the document id and name with greatest number of paragraphs? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Document_ID , documents.Document_Name from paragraphs group by paragraphs.Document_ID order by count ( paragraphs.* ) desc limit 1 |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the id and name of the document with the most paragraphs. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select documents.Document_ID , documents.Document_Name from paragraphs group by paragraphs.Document_ID order by count ( paragraphs.* ) desc limit 1 |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the document id with least number of paragraphs? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Document_ID from paragraphs group by paragraphs.Document_ID order by count ( paragraphs.* ) asc limit 1 |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Return the id of the document with the fewest paragraphs. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Document_ID from paragraphs group by paragraphs.Document_ID order by count ( paragraphs.* ) asc limit 1 |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the document id with 1 to 2 paragraphs? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Document_ID from paragraphs where count ( paragraphs.* ) between 1 and 2 group by paragraphs.Document_ID |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Give the ids of documents that have between one and two paragraphs. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Document_ID from paragraphs where count ( paragraphs.* ) between 1 and 2 group by paragraphs.Document_ID |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show the document id with paragraph text 'Brazil' and 'Ireland'. | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Document_ID from paragraphs where paragraphs.Paragraph_Text = "Brazil" and paragraphs.Paragraph_Text = "Ireland" |
cre_Doc_Template_Mgt | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'? | ref_template_types : template_type_code , template_type_description | templates : template_id , version_number , template_type_code , date_effective_from , date_effective_to , template_details | documents : document_id , template_id , document_name , document_description , other_details | paragraphs : paragraph_id , document_id , paragraph_text , other_details | templates.template_type_code = ref_template_types.template_type_code | documents.template_id = templates.template_id | paragraphs.document_id = documents.document_id |
### Response:
| select paragraphs.Document_ID from paragraphs where paragraphs.Paragraph_Text = "Brazil" and paragraphs.Paragraph_Text = "Ireland" |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: How many teachers are there? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select count ( teacher.* ) from teacher |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the total count of teachers? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select count ( teacher.* ) from teacher |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: List the names of teachers in ascending order of age. | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Name from teacher order by teacher.Age asc |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the names of the teachers ordered by ascending age? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Name from teacher order by teacher.Age asc |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the age and hometown of teachers? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Age , teacher.Hometown from teacher |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the age and hometown of every teacher? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Age , teacher.Hometown from teacher |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: List the name of teachers whose hometown is not `` Little Lever Urban District '' . | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Name from teacher where teacher.Hometown != "little lever urban district" |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Name from teacher where teacher.Hometown != "little lever urban district" |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show the name of teachers aged either 32 or 33? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Name from teacher where teacher.Age = 32 or teacher.Age = 33 |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the names of the teachers who are aged either 32 or 33? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Name from teacher where teacher.Age = 32 or teacher.Age = 33 |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the hometown of the youngest teacher? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Hometown from teacher order by teacher.Age asc limit 1 |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Where is the youngest teacher from? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Hometown from teacher order by teacher.Age asc limit 1 |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show different hometown of teachers and the number of teachers from each hometown. | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Hometown , count ( teacher.* ) from teacher group by teacher.Hometown |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: For each hometown, how many teachers are there? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Hometown , count ( teacher.* ) from teacher group by teacher.Hometown |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: List the most common hometown of teachers. | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Hometown from teacher group by teacher.Hometown order by count ( teacher.* ) desc limit 1 |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What is the most commmon hometowns for teachers? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Hometown from teacher group by teacher.Hometown order by count ( teacher.* ) desc limit 1 |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show the hometowns shared by at least two teachers. | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Hometown from teacher where count ( teacher.* ) >= 2 group by teacher.Hometown |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: What are the towns from which at least two teachers come from? | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Hometown from teacher where count ( teacher.* ) >= 2 group by teacher.Hometown |
course_teach | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to NatSQL: Show names of teachers and the courses they are arranged to teach. | course : course_id , staring_date , course | teacher : teacher_id , name , age , hometown | course_arrange : course_id , teacher_id , grade | course_arrange.teacher_id = teacher.teacher_id | course_arrange.course_id = course.course_id |
### Response:
| select teacher.Name , course.Course from teacher |