richardr1126/spider-natsql-context-validation huggingface dataset:
### Instruction:

Convert text to NatSQL: What are flight numbers of flights departing from Airport "APG"? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select flights.FlightNo from flights  where  flights.SourceAirport = "APG"

### Instruction:

Convert text to NatSQL: Give the flight numbers of flights leaving from APG. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select flights.FlightNo from flights  where  flights.SourceAirport = "APG"

### Instruction:

Convert text to NatSQL: What are flight numbers of flights arriving at Airport "APG"? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select flights.FlightNo from flights  where  flights.DestAirport = "APG"

### Instruction:

Convert text to NatSQL: Give the flight numbers of flights landing at APG. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select flights.FlightNo from flights  where  flights.DestAirport = "APG"

### Instruction:

Convert text to NatSQL: What are flight numbers of flights departing from City "Aberdeen "? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select flights.FlightNo from flights  where  airports.City = "Aberdeen"

### Instruction:

Convert text to NatSQL: Give the flight numbers of flights leaving from Aberdeen. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select flights.FlightNo from flights  where  airports.City = "Aberdeen"
### Instruction:

Convert text to NatSQL: What are flight numbers of flights arriving at City "Aberdeen"? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select flights.FlightNo from flights  where  airports.City = "Aberdeen"

### Instruction:

Convert text to NatSQL: Give the flight numbers of flights arriving in Aberdeen. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select flights.FlightNo from flights  where  airports.City = "Aberdeen"

### Instruction:

Convert text to NatSQL: Find the number of flights landing in the city of Aberdeen or Abilene. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  airports.City = "Aberdeen"  or  airports.City = "Abilene"

### Instruction:

Convert text to NatSQL: How many flights land in Aberdeen or Abilene? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  airports.City = "Aberdeen"  or  airports.City = "Abilene"

### Instruction:

Convert text to NatSQL: Find the name of airports which do not have any flight in and out. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.AirportName from airports  where  @.@ not in flights.SourceAirport  and  @.@ not in flights.DestAirport

### Instruction:

Convert text to NatSQL: Which airports do not have departing or arriving flights? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.AirportName from airports  where  @.@ not in flights.SourceAirport  and  @.@ not in flights.DestAirport
### Instruction:

Convert text to NatSQL: How many employees are there? | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select count ( employee.* )  from employee

### Instruction:

Convert text to NatSQL: Count the number of employees | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select count ( employee.* )  from employee

### Instruction:

Convert text to NatSQL: Sort employee names by their age in ascending order. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select employee.Name from employee  order by employee.Age asc

### Instruction:

Convert text to NatSQL: List the names of employees and sort in ascending order of age. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select employee.Name from employee  order by employee.Age asc

### Instruction:

Convert text to NatSQL: What is the number of employees from each city? | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select count ( employee.* )  , employee.City from employee  group by employee.City

### Instruction:

Convert text to NatSQL: Count the number of employees for each city. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select count ( employee.* )  , employee.City from employee  group by employee.City
### Instruction:

Convert text to NatSQL: Which cities do more than one employee under age 30 come from? | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select employee.City from employee  where  employee.Age < 30  and  count ( employee.* )  > 1  group by employee.City

### Instruction:

Convert text to NatSQL: Find the cities that have more than one employee under age 30. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select employee.City from employee  where  employee.Age < 30  and  count ( employee.* )  > 1  group by employee.City

### Instruction:

Convert text to NatSQL: Find the number of shops in each location. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select count ( shop.* )  , shop.Location from shop  group by shop.Location

### Instruction:

Convert text to NatSQL: How many shops are there in each location? | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select count ( shop.* )  , shop.Location from shop  group by shop.Location

### Instruction:

Convert text to NatSQL: Find the manager name and district of the shop whose number of products is the largest. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select shop.Manager_name , shop.District from shop  order by shop.Number_products desc limit 1
### Instruction:

Convert text to NatSQL: What are the manager name and district of the shop that sells the largest number of products? | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select shop.Manager_name , shop.District from shop  order by shop.Number_products desc limit 1

### Instruction:

Convert text to NatSQL: find the minimum and maximum number of products of all stores. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select min ( shop.Number_products )  , max ( shop.Number_products )  from shop

### Instruction:

Convert text to NatSQL: What are the minimum and maximum number of products across all the shops? | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select min ( shop.Number_products )  , max ( shop.Number_products )  from shop

### Instruction:

Convert text to NatSQL: Return the name, location and district of all shops in descending order of number of products. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select shop.Name , shop.Location , shop.District from shop  order by shop.Number_products desc

### Instruction:

Convert text to NatSQL: Sort all the shops by number products in descending order, and return the name, location and district of each shop. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select shop.Name , shop.Location , shop.District from shop  order by shop.Number_products desc
### Instruction:

Convert text to NatSQL: Find the names of stores whose number products is more than the average number of products. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select shop.Name from shop  where  @.@ > avg ( shop.Number_products )

### Instruction:

Convert text to NatSQL: Which shops' number products is above the average? Give me the shop names. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select shop.Name from shop  where  @.@ > avg ( shop.Number_products )

### Instruction:

Convert text to NatSQL: find the name of employee who was awarded the most times in the evaluation. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select employee.Name from evaluation  group by evaluation.Employee_ID  order by count ( evaluation.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Which employee received the most awards in evaluations? Give me the employee name. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select employee.Name from evaluation  group by evaluation.Employee_ID  order by count ( evaluation.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Find the name of the employee who got the highest one time bonus. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select employee.Name from employee  order by evaluation.Bonus desc limit 1
### Instruction:

Convert text to NatSQL: Which employee received the biggest bonus? Give me the employee name. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select employee.Name from employee  order by evaluation.Bonus desc limit 1

### Instruction:

Convert text to NatSQL: Find the names of employees who never won any award in the evaluation. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select employee.Name from employee  where  @.@ not in evaluation.*

### Instruction:

Convert text to NatSQL: What are the names of the employees who never received any evaluation? | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select employee.Name from employee  where  @.@ not in evaluation.*

### Instruction:

Convert text to NatSQL: What is the name of the shop that is hiring the largest number of employees? | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select shop.Name from hiring  group by hiring.Shop_ID  order by count ( hiring.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Which shop has the most employees? Give me the shop name. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select shop.Name from hiring  group by hiring.Shop_ID  order by count ( hiring.* )  desc limit 1
### Instruction:

Convert text to NatSQL: Find the name of the shops that do not hire any employee. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select shop.Name from shop  where  @.@ not in hiring.*

### Instruction:

Convert text to NatSQL: Which shops run with no employees? Find the shop names | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select shop.Name from shop  where  @.@ not in hiring.*

### Instruction:

Convert text to NatSQL: Find the number of employees hired in each shop; show the shop name as well. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select count ( hiring.* )  , shop.Name from hiring  group by shop.Name

### Instruction:

Convert text to NatSQL: For each shop, return the number of employees working there and the name of the shop. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select count ( hiring.* )  , shop.Name from hiring  group by shop.Name

### Instruction:

Convert text to NatSQL: What is total bonus given in all evaluations? | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select sum ( evaluation.Bonus )  from evaluation
### Instruction:

Convert text to NatSQL: Find the total amount of bonus given in all the evaluations. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select sum ( evaluation.Bonus )  from evaluation

### Instruction:

Convert text to NatSQL: Give me all the information about hiring. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select hiring.* from hiring

### Instruction:

Convert text to NatSQL: What is all the information about hiring? | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select hiring.* from hiring

### Instruction:

Convert text to NatSQL: Which district has both stores with less than 3000 products and stores with more than 10000 products? | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select shop.District from shop  where  shop.Number_products < 3000  and  shop.Number_products > 10000

### Instruction:

Convert text to NatSQL: Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select shop.District from shop  where  shop.Number_products < 3000  and  shop.Number_products > 10000
### Instruction:

Convert text to NatSQL: How many different store locations are there? | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select count (  distinct shop.Location )  from shop

### Instruction:

Convert text to NatSQL: Count the number of distinct store locations. | employee : employee_id , name , age , city | shop : shop_id , name , location , district , number_products , manager_name | hiring : shop_id , employee_id , start_from , is_full_time | evaluation : employee_id , year_awarded , bonus | hiring.employee_id = employee.employee_id | hiring.shop_id = shop.shop_id | evaluation.employee_id = employee.employee_id | 

### Response:

select count (  distinct shop.Location )  from shop
### Instruction:

Convert text to NatSQL: How many documents 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 ( documents.* )  from documents

### Instruction:

Convert text to NatSQL: Count the 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 count ( documents.* )  from documents

### Instruction:

Convert text to NatSQL: List document IDs, document names, and document 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

### 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
### 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%"

### 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%"

### 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"
### 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"

### 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

### 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

### 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"
### 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"

### 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

### 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

### 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
### 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

### 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

### 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

### 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.*
### 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.*

### 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

### 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

### 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
### 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

### 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

### 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

### 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"