db_id
stringclasses
20 values
prompt
stringlengths
424
2.17k
ground_truth
stringlengths
27
254
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names and areas of countries with the top 5 largest area? | 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 , country.SurfaceArea from country order by country.SurfaceArea desc limit 5
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the names and surface areas of the 5 largest 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 country.Name , country.SurfaceArea from country order by country.SurfaceArea desc limit 5
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are names of countries with the top 3 largest population? | 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 order by country.Population desc limit 3
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the names of the 3 most populated 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 country.Name from country order by country.Population desc limit 3
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of the nations with the 3 lowest populations? | 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 order by country.Population asc limit 3
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the names of the 3 countries with the fewest 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 country.Name from country order by country.Population asc limit 3
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: how many countries are in Asia? | 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 ( country.* ) from country where country.Continent = "Asia"
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Count the number of countries in Asia. | 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 ( country.* ) from country where country.Continent = "Asia"
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of the 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"
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Give the 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"
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the total 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
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Give the 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
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the 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
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the names 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
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Which 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
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Give the 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
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the 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
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the 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
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the total 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
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Count the number of 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
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the codes of 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
world_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: How many 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Count the number of 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: List the names of 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of 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"
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the names 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"
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the 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"
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the 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"
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: How many different 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Count the number of different 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: List 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: List the name of 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the name of 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: How many 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: List the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: List the names of 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.*
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the 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.*
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: 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"
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Count the number of 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"
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the 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
orchestra
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: How many 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Count the number of 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show all 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What 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"
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the 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"
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the 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"
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is 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"
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: How many 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Count the number of 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: How many 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Which 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Which 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
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the student IDs and numbers of friends corresponding to each. | 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 friend.student_id , count ( friend.* ) from friend group by friend.student_id
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: How many friends does each student have? | 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 friend.student_id , count ( friend.* ) from friend group by friend.student_id
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the names of high school students and their corresponding number of friends. | 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 , count ( friend.* ) from friend group by friend.student_id
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of the high schoolers and how many friends does each have? | 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 , count ( friend.* ) from highschooler group by friend.student_id
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What is the name of the high schooler who has the greatest number of friends? | 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 group by friend.student_id order by count ( friend.* ) desc limit 1
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the name of the high school student with the most friends. | 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 group by friend.student_id order by count ( friend.* ) desc limit 1
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the names of high schoolers who have at least 3 friends. | 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 count ( friend.* ) >= 3 group by friend.student_id
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of high schoolers who have 3 or more friends? | 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 count ( friend.* ) >= 3 group by friend.student_id
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the names of all of the high schooler Kyle's friends. | 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 friend where @.@ = friend.student_id and highschooler.name = "Kyle"
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Return the names of friends of the high school student 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.name from friend where @.@ = friend.student_id and highschooler.name = "Kyle"
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: How many friends does the high school student Kyle have? | 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 ( friend.* ) from friend where highschooler.name = "Kyle"
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Count the number of friends Kyle has. | 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 ( friend.* ) from friend where highschooler.name = "Kyle"
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show ids of all students who do not have any friends. | 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 except_ @.@ is friend.*
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the ids of high school students who do not have friends? | 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 except_ @.@ is friend.*
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show names of all high school students who do not have any friends. | 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 except_ @.@ is friend.*
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the names of students who have no friends? | 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 except_ @.@ is friend.*
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: Show the ids of high schoolers who have friends and are also liked by someone else. | 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 intersect_ @.@ is likes.*
network_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to NatSQL: What are the ids of students who both have friends and are liked? | 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 intersect_ @.@ is likes.*