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

Convert text to NatSQL: What are the names of the countries that are in the continent of Europe and have a population of 80000? | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select country.Name from country  where  country.Continent = "Europe"  and  country.Population = "80000"

### Instruction:

Convert text to NatSQL: Give the names of countries that are in Europe and have a population equal to 80000. | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select country.Name from country  where  country.Continent = "Europe"  and  country.Population = "80000"

### Instruction:

Convert text to NatSQL: What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ? | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select sum ( country.Population )  , avg ( country.SurfaceArea )  from country  where  country.Continent = "north america"  and  country.SurfaceArea > 3000

### Instruction:

Convert text to NatSQL: Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 . | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select sum ( country.Population )  , avg ( country.SurfaceArea )  from country  where  country.Continent = "north america"  and  country.SurfaceArea > 3000
### Instruction:

Convert text to NatSQL: What are the cities whose population is between 160000 and 900000? | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select city.Name from city  where  city.Population between 160000 and 900000

### Instruction:

Convert text to NatSQL: Return the names of cities that have a population between 160000 and 900000 . | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select city.Name from city  where  city.Population between 160000 and 900000

### Instruction:

Convert text to NatSQL: Which language is spoken by the largest number of countries? | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select countrylanguage.Language from countrylanguage  group by countrylanguage.Language  order by count ( countrylanguage.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Give the language that is spoken in the most countries. | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select countrylanguage.Language from countrylanguage  group by countrylanguage.Language  order by count ( countrylanguage.* )  desc limit 1
### Instruction:

Convert text to NatSQL: What is the language spoken by the largest percentage of people in each country? | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select countrylanguage.Language , countrylanguage.CountryCode , max ( countrylanguage.Percentage )  from countrylanguage  group by countrylanguage.CountryCode

### Instruction:

Convert text to NatSQL: What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each? | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select countrylanguage.Language , countrylanguage.CountryCode , max ( countrylanguage.Percentage )  from countrylanguage  group by countrylanguage.CountryCode

### Instruction:

Convert text to NatSQL: What is the total number of countries where Spanish is spoken by the largest percentage of people? | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select count ( countrylanguage.* )  , max ( countrylanguage.Percentage )  from countrylanguage  where  countrylanguage.Language = "Spanish"  group by countrylanguage.CountryCode

### Instruction:

Convert text to NatSQL: Count the number of countries for which Spanish is the predominantly spoken language. | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select count ( countrylanguage.* )  , max ( countrylanguage.Percentage )  from countrylanguage  where  countrylanguage.Language = "Spanish"  group by countrylanguage.CountryCode
### Instruction:

Convert text to NatSQL: What are the codes of countries where Spanish is spoken by the largest percentage of people? | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select countrylanguage.CountryCode , max ( countrylanguage.Percentage )  from countrylanguage  where  countrylanguage.Language = "Spanish"  group by countrylanguage.CountryCode

### Instruction:

Convert text to NatSQL: Return the codes of countries for which Spanish is the predominantly spoken language. | city : id , name , countrycode , district , population | sqlite_sequence : name , seq | country : code , name , continent , region , surfacearea , indepyear , population , lifeexpectancy , gnp , gnpold , localname , governmentform , headofstate , capital , code2 | countrylanguage : countrycode , language , isofficial , percentage | city.countrycode = country.code | countrylanguage.countrycode = country.code | 

### Response:

select countrylanguage.CountryCode , max ( countrylanguage.Percentage )  from countrylanguage  where  countrylanguage.Language = "Spanish"  group by countrylanguage.CountryCode
### Instruction:

Convert text to NatSQL: How many conductors are there? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select count ( conductor.* )  from conductor

### Instruction:

Convert text to NatSQL: Count the number of conductors. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select count ( conductor.* )  from conductor

### Instruction:

Convert text to NatSQL: List the names of conductors in ascending order of age. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

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

### Instruction:

Convert text to NatSQL: What are the names of conductors, ordered by age? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  order by conductor.Age asc
### Instruction:

Convert text to NatSQL: What are the names of conductors whose nationalities are not "USA"? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  where  conductor.Nationality != "USA"

### Instruction:

Convert text to NatSQL: Return the names of conductors that do not have the nationality "USA". | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  where  conductor.Nationality != "USA"

### Instruction:

Convert text to NatSQL: What are the record companies of orchestras in descending order of years in which they were founded? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Record_Company from orchestra  order by orchestra.Year_of_Founded desc

### Instruction:

Convert text to NatSQL: Return the record companies of orchestras, sorted descending by the years in which they were founded. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Record_Company from orchestra  order by orchestra.Year_of_Founded desc
### Instruction:

Convert text to NatSQL: What is the average attendance of shows? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select avg ( show.Attendance )  from show

### Instruction:

Convert text to NatSQL: Return the average attendance across all shows. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select avg ( show.Attendance )  from show

### Instruction:

Convert text to NatSQL: What are the maximum and minimum share of performances whose type is not "Live final". | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select max ( performance.Share )  , min ( performance.Share )  from performance  where  performance.Type != "Live final"

### Instruction:

Convert text to NatSQL: Return the maximum and minimum shares for performances that do not have the type "Live final". | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select max ( performance.Share )  , min ( performance.Share )  from performance  where  performance.Type != "Live final"
### Instruction:

Convert text to NatSQL: How many different nationalities do conductors have? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select count (  distinct conductor.Nationality )  from conductor

### Instruction:

Convert text to NatSQL: Count the number of different nationalities of conductors. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select count (  distinct conductor.Nationality )  from conductor

### Instruction:

Convert text to NatSQL: List names of conductors in descending order of years of work. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  order by conductor.Year_of_Work desc

### Instruction:

Convert text to NatSQL: What are the names of conductors, sorted descending by the number of years they have worked? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  order by conductor.Year_of_Work desc
### Instruction:

Convert text to NatSQL: List the name of the conductor with the most years of work. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  order by conductor.Year_of_Work desc limit 1

### Instruction:

Convert text to NatSQL: What is the name of the conductor who has worked the greatest number of years? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  order by conductor.Year_of_Work desc limit 1

### Instruction:

Convert text to NatSQL: Show the names of conductors and the orchestras they have conducted. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name , orchestra.Orchestra from conductor

### Instruction:

Convert text to NatSQL: What are the names of conductors as well as the corresonding orchestras that they have conducted? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name , orchestra.Orchestra from conductor
### Instruction:

Convert text to NatSQL: Show the names of conductors that have conducted more than one orchestras. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  where  count ( orchestra.* )  > 1  group by orchestra.Conductor_ID

### Instruction:

Convert text to NatSQL: What are the names of conductors who have conducted at more than one orchestra? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  where  count ( orchestra.* )  > 1  group by orchestra.Conductor_ID

### Instruction:

Convert text to NatSQL: Show the name of the conductor that has conducted the most number of orchestras. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  group by orchestra.Conductor_ID  order by count ( orchestra.* )  desc limit 1

### Instruction:

Convert text to NatSQL: What is the name of the conductor who has conducted the most orchestras? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  group by orchestra.Conductor_ID  order by count ( orchestra.* )  desc limit 1
### Instruction:

Convert text to NatSQL: Please show the name of the conductor that has conducted orchestras founded after 2008. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  where  orchestra.Year_of_Founded > 2008

### Instruction:

Convert text to NatSQL: What are the names of conductors who have conducted orchestras founded after the year 2008? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select conductor.Name from conductor  where  orchestra.Year_of_Founded > 2008

### Instruction:

Convert text to NatSQL: Please show the different record companies and the corresponding number of orchestras. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Record_Company , count ( orchestra.* )  from orchestra  group by orchestra.Record_Company

### Instruction:

Convert text to NatSQL: How many orchestras does each record company manage? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Record_Company , count ( orchestra.* )  from orchestra  group by orchestra.Record_Company
### Instruction:

Convert text to NatSQL: Please show the record formats of orchestras in ascending order of count. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Major_Record_Format from orchestra  group by orchestra.Major_Record_Format  order by count ( orchestra.* )  asc

### Instruction:

Convert text to NatSQL: What are the major record formats of orchestras, sorted by their frequency? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Major_Record_Format from orchestra  group by orchestra.Major_Record_Format  order by count ( orchestra.* )  asc

### Instruction:

Convert text to NatSQL: List the record company shared by the most number of orchestras. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Record_Company from orchestra  group by orchestra.Record_Company  order by count ( orchestra.* )  desc limit 1

### Instruction:

Convert text to NatSQL: What is the record company used by the greatest number of orchestras? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Record_Company from orchestra  group by orchestra.Record_Company  order by count ( orchestra.* )  desc limit 1
### Instruction:

Convert text to NatSQL: List the names of orchestras that have no performance. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Orchestra from orchestra  where  @.@ not in performance.*

### Instruction:

Convert text to NatSQL: What are the orchestras that do not have any performances? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Orchestra from orchestra  where  @.@ not in performance.*

### Instruction:

Convert text to NatSQL: Show the record companies shared by orchestras founded before 2003 and after 2003. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Record_Company from orchestra  where  orchestra.Year_of_Founded < 2003  and  orchestra.Year_of_Founded > 2003

### Instruction:

Convert text to NatSQL: What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Record_Company from orchestra  where  orchestra.Year_of_Founded < 2003  and  orchestra.Year_of_Founded > 2003
### Instruction:

Convert text to NatSQL: Find the number of orchestras whose record format is "CD" or "DVD". | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select count ( orchestra.* )  from orchestra  where  orchestra.Major_Record_Format = "CD"  or  orchestra.Major_Record_Format = "DVD"

### Instruction:

Convert text to NatSQL: Count the number of orchestras that have CD or DVD as their record format. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select count ( orchestra.* )  from orchestra  where  orchestra.Major_Record_Format = "CD"  or  orchestra.Major_Record_Format = "DVD"

### Instruction:

Convert text to NatSQL: Show the years in which orchestras that have given more than one performance are founded. | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Year_of_Founded from orchestra  where  count ( performance.* )  > 1  group by performance.Orchestra_ID

### Instruction:

Convert text to NatSQL: What are years of founding for orchestras that have had more than a single performance? | conductor : conductor_id , name , age , nationality , year_of_work | orchestra : orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format | performance : performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share | show : show_id , performance_id , if_first_show , result , attendance | orchestra.conductor_id = conductor.conductor_id | performance.orchestra_id = orchestra.orchestra_id | show.performance_id = performance.performance_id | 

### Response:

select orchestra.Year_of_Founded from orchestra  where  count ( performance.* )  > 1  group by performance.Orchestra_ID
### Instruction:

Convert text to NatSQL: How many high schoolers are there? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select count ( highschooler.* )  from highschooler

### Instruction:

Convert text to NatSQL: Count the number of high schoolers. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select count ( highschooler.* )  from highschooler

### Instruction:

Convert text to NatSQL: Show the names and grades of each high schooler. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name , highschooler.grade from highschooler

### Instruction:

Convert text to NatSQL: What are the names and grades for each high schooler? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name , highschooler.grade from highschooler

### Instruction:

Convert text to NatSQL: Show all the grades of the high schoolers. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.grade from highschooler

### Instruction:

Convert text to NatSQL: What is the grade of each high schooler? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.grade from highschooler

### Instruction:

Convert text to NatSQL: What grade is Kyle in? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.grade from highschooler  where  highschooler.name = "Kyle"
### Instruction:

Convert text to NatSQL: Return the grade for the high schooler named Kyle. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.grade from highschooler  where  highschooler.name = "Kyle"

### Instruction:

Convert text to NatSQL: Show the names of all high schoolers in grade 10. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  where  highschooler.grade = 10

### Instruction:

Convert text to NatSQL: What are the names of all high schoolers in grade 10? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.name from highschooler  where  highschooler.grade = 10

### Instruction:

Convert text to NatSQL: Show the ID of the high schooler named Kyle. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.ID from highschooler  where  highschooler.name = "Kyle"

### Instruction:

Convert text to NatSQL: What is Kyle's id? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.ID from highschooler  where  highschooler.name = "Kyle"

### Instruction:

Convert text to NatSQL: How many high schoolers are there in grade 9 or 10? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select count ( highschooler.* )  from highschooler  where  highschooler.grade = 9  or  highschooler.grade = 10

### Instruction:

Convert text to NatSQL: Count the number of high schoolers in grades 9 or 10. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select count ( highschooler.* )  from highschooler  where  highschooler.grade = 9  or  highschooler.grade = 10
### Instruction:

Convert text to NatSQL: Show the number of high schoolers for each grade. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.grade , count ( highschooler.* )  from highschooler  group by highschooler.grade

### Instruction:

Convert text to NatSQL: How many high schoolers are in each grade? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.grade , count ( highschooler.* )  from highschooler  group by highschooler.grade

### Instruction:

Convert text to NatSQL: Which grade has the most high schoolers? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.grade from highschooler  group by highschooler.grade  order by count ( highschooler.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Return the grade that has the greatest number of high schoolers. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.grade from highschooler  group by highschooler.grade  order by count ( highschooler.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Show me all grades that have at least 4 students. | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.grade from highschooler  where  count ( highschooler.* )  >= 4  group by highschooler.grade

### Instruction:

Convert text to NatSQL: Which grades have 4 or more high schoolers? | highschooler : id , name , grade | friend : student_id , friend_id | likes : student_id , liked_id | friend.friend_id = highschooler.id | friend.student_id = highschooler.id | likes.student_id = highschooler.id | likes.liked_id = highschooler.id | 

### Response:

select highschooler.grade from highschooler  where  count ( highschooler.* )  >= 4  group by highschooler.grade