db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
world_1 | select name from country where surfacearea > (select min(surfacearea) from country where continent = 'europe') | Question: what are the countries that have greater surface area than any country in europe? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, H... | what are the countries that have greater surface area than any country in europe? |
world_1 | select name from country where surfacearea > (select min(surfacearea) from country where continent = 'europe') | Question: which countries have greater area than that of any country in europe? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, ... | which countries have greater area than that of any country in europe? |
world_1 | select name from country where continent = 'africa' and population < (select max(population) from country where continent = 'asia') | Question: what are the african countries that have a population less than any country in asia? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentFor... | what are the african countries that have a population less than any country in asia? |
world_1 | select name from country where continent = 'africa' and population < (select min(population) from country where continent = 'asia') | Question: which african countries have a smaller population than that of any country in asia? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm,... | which african countries have a smaller population than that of any country in asia? |
world_1 | select name from country where continent = 'asia' and population > (select max(population) from country where continent = 'africa') | Question: which asian countries have a population that is larger than any country in africa? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, ... | which asian countries have a population that is larger than any country in africa? |
world_1 | select name from country where continent = 'asia' and population > (select min(population) from country where continent = 'africa') | Question: what are the asian countries which have a population larger than that of any country in africa? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, Gov... | what are the asian countries which have a population larger than that of any country in africa? |
world_1 | select countrycode from countrylanguage except select countrycode from countrylanguage where language = 'english' | Question: what are the country codes for countries that do not speak english? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Ca... | what are the country codes for countries that do not speak english? |
world_1 | select countrycode from countrylanguage except select countrycode from countrylanguage where language = 'english' | Question: return the country codes for countries that do not speak english. | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capi... | return the country codes for countries that do not speak english. |
world_1 | select distinct countrycode from countrylanguage where language != 'english' | Question: what are the country codes of countries where people use languages other than english? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentFo... | what are the country codes of countries where people use languages other than english? |
world_1 | select distinct countrycode from countrylanguage where language != 'english' | Question: give the country codes for countries in which people speak langauges that are not english. | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, Governme... | give the country codes for countries in which people speak langauges that are not english. |
world_1 | select code from country where governmentform != 'republic' except select countrycode from countrylanguage where language = 'english' | Question: what are the codes of the countries that do not speak english and whose government forms are not republic? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, Loc... | what are the codes of the countries that do not speak english and whose government forms are not republic? |
world_1 | select code from country where governmentform != 'republic' except select countrycode from countrylanguage where language = 'english' | Question: return the codes of countries that do not speak english and do not have republics for governments. | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, ... | return the codes of countries that do not speak english and do not have republics for governments. |
world_1 | select distinct t2.name from country as t1 join city as t2 on t2.countrycode = t1.code where t1.continent = 'europe' and t1.name not in (select t3.name from country as t3 join countrylanguage as t4 on t3.code = t4.countrycode where t4.isofficial = 't' and t4.language = 'english') | Question: which cities are in european countries where english is not the official language? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, ... | which cities are in european countries where english is not the official language? |
world_1 | select distinct t2.name from country as t1 join city as t2 on t2.countrycode = t1.code where t1.continent = 'europe' and t1.name not in (select t3.name from country as t3 join countrylanguage as t4 on t3.code = t4.countrycode where t4.isofficial = 't' and t4.language = 'english') | Question: what are the names of cities in europe for which english is not the official language? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentFo... | what are the names of cities in europe for which english is not the official language? |
world_1 | select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 't' and t2.language = 'chinese' and t1.continent = 'asia' | Question: which unique cities are in asian countries where chinese is the official language ? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm,... | which unique cities are in asian countries where chinese is the official language ? |
world_1 | select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 't' and t2.language = 'chinese' and t1.continent = 'asia' | Question: return the different names of cities that are in asia and for which chinese is the official language. | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalNam... | return the different names of cities that are in asia and for which chinese is the official language. |
world_1 | select name , surfacearea , indepyear from country order by population limit 1 | Question: what are the name, independence year, and surface area of the country with the smallest population? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName,... | what are the name, independence year, and surface area of the country with the smallest population? |
world_1 | select name , surfacearea , indepyear from country order by population limit 1 | Question: give the name, year of independence, and surface area of the country that has the lowest population. | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName... | give the name, year of independence, and surface area of the country that has the lowest population. |
world_1 | select name , population , headofstate from country order by surfacearea desc limit 1 | Question: what are the population, name and leader of the country with the largest area? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, Head... | what are the population, name and leader of the country with the largest area? |
world_1 | select name , population , headofstate from country order by surfacearea desc limit 1 | Question: give the name, population, and head of state for the country that has the largest area. | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentF... | give the name, population, and head of state for the country that has the largest area. |
world_1 | select count(t2.language) , t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.name having count(*) > 2 | Question: return the country name and the numbers of languages spoken for each country that speaks at least 3 languages. | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld,... | return the country name and the numbers of languages spoken for each country that speaks at least 3 languages. |
world_1 | select count(t2.language) , t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode group by t1.name having count(*) > 2 | Question: what are the names of countries that speak more than 2 languages, as well as how many languages they speak? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, Lo... | what are the names of countries that speak more than 2 languages, as well as how many languages they speak? |
world_1 | select count(*) , district from city where population > (select avg(population) from city) group by district | Question: find the number of cities in each district whose population is greater than the average population of cities? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, ... | find the number of cities in each district whose population is greater than the average population of cities? |
world_1 | select count(*) , district from city where population > (select avg(population) from city) group by district | Question: how many cities in each district have a population that is above the average population across all cities? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, Loc... | how many cities in each district have a population that is above the average population across all cities? |
world_1 | select sum(population) , governmentform from country group by governmentform having avg(lifeexpectancy) > 72 | Question: find the government form name and total population for each government form whose average life expectancy is longer than 72. | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy... | find the government form name and total population for each government form whose average life expectancy is longer than 72. |
world_1 | select sum(population) , governmentform from country group by governmentform having avg(lifeexpectancy) > 72 | Question: what are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepY... | what are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72? |
world_1 | select sum(population) , avg(lifeexpectancy) , continent from country group by continent having avg(lifeexpectancy) < 72 | Question: find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectan... | find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72? |
world_1 | select sum(population) , avg(lifeexpectancy) , continent from country group by continent having avg(lifeexpectancy) < 72 | Question: what are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, ... | what are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72? |
world_1 | select name , surfacearea from country order by surfacearea desc limit 5 | Question: what are the names and areas of countries with the top 5 largest area? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState,... | what are the names and areas of countries with the top 5 largest area? |
world_1 | select name , surfacearea from country order by surfacearea desc limit 5 | Question: return the names and surface areas of the 5 largest countries. | Tables: 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... | return the names and surface areas of the 5 largest countries. |
world_1 | select name from country order by population desc limit 3 | Question: what are names of countries with the top 3 largest population? | Tables: 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... | what are names of countries with the top 3 largest population? |
world_1 | select name from country order by population desc limit 3 | Question: return the names of the 3 most populated countries. | Tables: 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. co... | return the names of the 3 most populated countries. |
world_1 | select name from country order by population asc limit 3 | Question: what are the names of the nations with the 3 lowest populations? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Capit... | what are the names of the nations with the 3 lowest populations? |
world_1 | select name from country order by population asc limit 3 | Question: return the names of the 3 countries with the fewest people. | Tables: 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, C... | return the names of the 3 countries with the fewest people. |
world_1 | select count(*) from country where continent = 'asia' | Question: how many countries are in asia? | Tables: 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 -> Cou... | how many countries are in asia? |
world_1 | select count(*) from country where continent = 'asia' | Question: count the number of countries in asia. | Tables: 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... | count the number of countries in asia. |
world_1 | select name from country where continent = 'europe' and population = '80000' | Question: what are the names of the countries that are in the continent of europe and have a population of 80000? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalN... | what are the names of the countries that are in the continent of europe and have a population of 80000? |
world_1 | select name from country where continent = 'europe' and population = '80000' | Question: give the names of countries that are in europe and have a population equal to 80000. | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm... | give the names of countries that are in europe and have a population equal to 80000. |
world_1 | select sum(population) , avg(surfacearea) from country where continent = 'north america' and surfacearea > 3000 | Question: what is the total population and average area of countries in the continent of north america whose area is bigger than 3000 ? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectanc... | what is the total population and average area of countries in the continent of north america whose area is bigger than 3000 ? |
world_1 | select sum(population) , avg(surfacearea) from country where continent = 'north america' and surfacearea > 3000 | Question: give the total population and average surface area corresponding to countries in north america that have a surface area greater than 3000 . | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population,... | give the total population and average surface area corresponding to countries in north america that have a surface area greater than 3000 . |
world_1 | select name from city where population between 160000 and 900000 | Question: what are the cities whose population is between 160000 and 900000? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadOfState, Cap... | what are the cities whose population is between 160000 and 900000? |
world_1 | select name from city where population between 160000 and 900000 | Question: return the names of cities that have a population between 160000 and 900000 . | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, HeadO... | return the names of cities that have a population between 160000 and 900000 . |
world_1 | select language from countrylanguage group by language order by count(*) desc limit 1 | Question: which language is spoken by the largest number of countries? | Tables: 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, ... | which language is spoken by the largest number of countries? |
world_1 | select language from countrylanguage group by language order by count(*) desc limit 1 | Question: give the language that is spoken in the most countries. | Tables: 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... | give the language that is spoken in the most countries. |
world_1 | select language , countrycode , max(percentage) from countrylanguage group by countrycode | Question: what is the language spoken by the largest percentage of people in each country? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentForm, He... | what is the language spoken by the largest percentage of people in each country? |
world_1 | select language , countrycode , max(percentage) from countrylanguage group by countrycode | Question: what are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, Lif... | what are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each? |
world_1 | select count(*) , max(percentage) from countrylanguage where language = 'spanish' group by countrycode | Question: what is the total number of countries where spanish is spoken by the largest percentage of people? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, ... | what is the total number of countries where spanish is spoken by the largest percentage of people? |
world_1 | select count(*) , max(percentage) from countrylanguage where language = 'spanish' group by countrycode | Question: count the number of countries for which spanish is the predominantly spoken language. | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentFor... | count the number of countries for which spanish is the predominantly spoken language. |
world_1 | select countrycode , max(percentage) from countrylanguage where language = 'spanish' group by countrycode | Question: what are the codes of countries where spanish is spoken by the largest percentage of people? | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, Govern... | what are the codes of countries where spanish is spoken by the largest percentage of people? |
world_1 | select countrycode , max(percentage) from countrylanguage where language = 'spanish' group by countrycode | Question: return the codes of countries for which spanish is the predominantly spoken language. | Tables: city -> ID, Name, CountryCode, District, Population. sqlite_sequence -> name, seq. country -> Code, Name, Continent, Region, SurfaceArea, IndepYear, Population, LifeExpectancy, GNP, GNPOld, LocalName, GovernmentFor... | return the codes of countries for which spanish is the predominantly spoken language. |
orchestra | select count(*) from conductor | Question: how many conductors are there? | Tables: 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,... | how many conductors are there? |
orchestra | select count(*) from conductor | Question: count the number of conductors. | Tables: 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... | count the number of conductors. |
orchestra | select name from conductor order by age asc | Question: list the names of conductors in ascending order of age. | Tables: 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... | list the names of conductors in ascending order of age. |
orchestra | select name from conductor order by age asc | Question: what are the names of conductors, ordered by age? | Tables: 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_(mill... | what are the names of conductors, ordered by age? |
orchestra | select name from conductor where nationality != 'usa' | Question: what are the names of conductors whose nationalities are not 'usa'? | Tables: 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, Offi... | what are the names of conductors whose nationalities are not 'usa'? |
orchestra | select name from conductor where nationality != 'usa' | Question: return the names of conductors that do not have the nationality 'usa'. | Tables: 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, O... | return the names of conductors that do not have the nationality 'usa'. |
orchestra | select record_company from orchestra order by year_of_founded desc | Question: what are the record companies of orchestras in descending order of years in which they were founded? | Tables: 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_I... | what are the record companies of orchestras in descending order of years in which they were founded? |
orchestra | select record_company from orchestra order by year_of_founded desc | Question: return the record companies of orchestras, sorted descending by the years in which they were founded. | Tables: 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_... | return the record companies of orchestras, sorted descending by the years in which they were founded. |
orchestra | select avg(attendance) from show | Question: what is the average attendance of shows? | Tables: 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), We... | what is the average attendance of shows? |
orchestra | select avg(attendance) from show | Question: return the average attendance across all shows. | Tables: 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_(millio... | return the average attendance across all shows. |
orchestra | select max(share) , min(share) from performance where type != 'live final' | Question: what are the maximum and minimum share of performances whose type is not 'live final'. | Tables: 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_I... | what are the maximum and minimum share of performances whose type is not 'live final'. |
orchestra | select max(share) , min(share) from performance where type != 'live final' | Question: return the maximum and minimum shares for performances that do not have the type 'live final'. | Tables: 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, Orc... | return the maximum and minimum shares for performances that do not have the type 'live final'. |
orchestra | select count(distinct nationality) from conductor | Question: how many different nationalities do conductors have? | Tables: 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_(m... | how many different nationalities do conductors have? |
orchestra | select count(distinct nationality) from conductor | Question: count the number of different nationalities of conductors. | Tables: 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_rati... | count the number of different nationalities of conductors. |
orchestra | select name from conductor order by year_of_work desc | Question: list names of conductors in descending order of years of work. | Tables: 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_... | list names of conductors in descending order of years of work. |
orchestra | select name from conductor order by year_of_work desc | Question: what are the names of conductors, sorted descending by the number of years they have worked? | Tables: 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, Orche... | what are the names of conductors, sorted descending by the number of years they have worked? |
orchestra | select name from conductor order by year_of_work desc limit 1 | Question: list the name of the conductor with the most years of work. | Tables: 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_rat... | list the name of the conductor with the most years of work. |
orchestra | select name from conductor order by year_of_work desc limit 1 | Question: what is the name of the conductor who has worked the greatest number of years? | Tables: 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,... | what is the name of the conductor who has worked the greatest number of years? |
orchestra | select t1.name , t2.orchestra from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id | Question: show the names of conductors and the orchestras they have conducted. | Tables: 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, Off... | show the names of conductors and the orchestras they have conducted. |
orchestra | select t1.name , t2.orchestra from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id | Question: what are the names of conductors as well as the corresonding orchestras that they have conducted? | Tables: 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, ... | what are the names of conductors as well as the corresonding orchestras that they have conducted? |
orchestra | select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id group by t2.conductor_id having count(*) > 1 | Question: show the names of conductors that have conducted more than one orchestras. | Tables: 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, Dat... | show the names of conductors that have conducted more than one orchestras. |
orchestra | select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id group by t2.conductor_id having count(*) > 1 | Question: what are the names of conductors who have conducted at more than one orchestra? | Tables: 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... | what are the names of conductors who have conducted at more than one orchestra? |
orchestra | select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id group by t2.conductor_id order by count(*) desc limit 1 | Question: show the name of the conductor that has conducted the most number of orchestras. | Tables: 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, Typ... | show the name of the conductor that has conducted the most number of orchestras. |
orchestra | select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id group by t2.conductor_id order by count(*) desc limit 1 | Question: what is the name of the conductor who has conducted the most orchestras? | Tables: 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,... | what is the name of the conductor who has conducted the most orchestras? |
orchestra | select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id where year_of_founded > 2008 | Question: please show the name of the conductor that has conducted orchestras founded after 2008. | Tables: 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_... | please show the name of the conductor that has conducted orchestras founded after 2008. |
orchestra | select t1.name from conductor as t1 join orchestra as t2 on t1.conductor_id = t2.conductor_id where year_of_founded > 2008 | Question: what are the names of conductors who have conducted orchestras founded after the year 2008? | Tables: 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, Orches... | what are the names of conductors who have conducted orchestras founded after the year 2008? |
orchestra | select record_company , count(*) from orchestra group by record_company | Question: please show the different record companies and the corresponding number of orchestras. | Tables: 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_I... | please show the different record companies and the corresponding number of orchestras. |
orchestra | select record_company , count(*) from orchestra group by record_company | Question: how many orchestras does each record company manage? | Tables: 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_(m... | how many orchestras does each record company manage? |
orchestra | select major_record_format from orchestra group by major_record_format order by count(*) asc | Question: please show the record formats of orchestras in ascending order of count. | Tables: 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... | please show the record formats of orchestras in ascending order of count. |
orchestra | select major_record_format from orchestra group by major_record_format order by count(*) asc | Question: what are the major record formats of orchestras, sorted by their frequency? | Tables: 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, Da... | what are the major record formats of orchestras, sorted by their frequency? |
orchestra | select record_company from orchestra group by record_company order by count(*) desc limit 1 | Question: list the record company shared by the most number of orchestras. | Tables: 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, Officia... | list the record company shared by the most number of orchestras. |
orchestra | select record_company from orchestra group by record_company order by count(*) desc limit 1 | Question: what is the record company used by the greatest number of orchestras? | Tables: 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, Of... | what is the record company used by the greatest number of orchestras? |
orchestra | select orchestra from orchestra where orchestra_id not in (select orchestra_id from performance) | Question: list the names of orchestras that have no performance. | Tables: 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_... | list the names of orchestras that have no performance. |
orchestra | select orchestra from orchestra where orchestra_id not in (select orchestra_id from performance) | Question: what are the orchestras that do not have any performances? | Tables: 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_rati... | what are the orchestras that do not have any performances? |
orchestra | select record_company from orchestra where year_of_founded < 2003 intersect select record_company from orchestra where year_of_founded > 2003 | Question: show the record companies shared by orchestras founded before 2003 and after 2003. | Tables: 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, T... | show the record companies shared by orchestras founded before 2003 and after 2003. |
orchestra | select record_company from orchestra where year_of_founded < 2003 intersect select record_company from orchestra where year_of_founded > 2003 | Question: what are the record companies that are used by both orchestras founded before 2003 and those founded after 2003? | Tables: conductor -> Conductor_ID, Name, Age, Nationality, Year_of_Work. orchestra -> Orchestra_ID, Orchestra, Conductor_ID, Record_Company, Year_of_Founded, Major_Record_Format. performance -> P... | what are the record companies that are used by both orchestras founded before 2003 and those founded after 2003? |
orchestra | select count(*) from orchestra where major_record_format = 'cd' or major_record_format = 'dvd' | Question: find the number of orchestras whose record format is 'cd' or 'dvd'. | Tables: 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, Offi... | find the number of orchestras whose record format is 'cd' or 'dvd'. |
orchestra | select count(*) from orchestra where major_record_format = 'cd' or major_record_format = 'dvd' | Question: count the number of orchestras that have cd or dvd as their record format. | Tables: 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, Dat... | count the number of orchestras that have cd or dvd as their record format. |
orchestra | select year_of_founded from orchestra as t1 join performance as t2 on t1.orchestra_id = t2.orchestra_id group by t2.orchestra_id having count(*) > 1 | Question: show the years in which orchestras that have given more than one performance are founded. | Tables: 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, Orchestr... | show the years in which orchestras that have given more than one performance are founded. |
orchestra | select year_of_founded from orchestra as t1 join performance as t2 on t1.orchestra_id = t2.orchestra_id group by t2.orchestra_id having count(*) > 1 | Question: what are years of founding for orchestras that have had more than a single performance? | Tables: 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_... | what are years of founding for orchestras that have had more than a single performance? |
network_1 | select count(*) from highschooler | Question: how many high schoolers are there? | Tables: Highschooler -> ID, name, grade. Friend -> student_id, friend_id. Likes -> student_id, liked_id. | Joins: Friend.friend_id = Highschooler.ID, Friend.student_id = Highschooler.ID, Likes.student_id = Highschooler.ID, Likes.liked_id = Highschooler.ID, | how many high schoolers are there? |
network_1 | select count(*) from highschooler | Question: count the number of high schoolers. | Tables: Highschooler -> ID, name, grade. Friend -> student_id, friend_id. Likes -> student_id, liked_id. | Joins: Friend.friend_id = Highschooler.ID, Friend.student_id = Highschooler.ID, Likes.student_id = Highschooler.ID, Likes.liked_id = Highschooler.ID, | count the number of high schoolers. |
network_1 | select name , grade from highschooler | Question: show the names and grades of each high schooler. | Tables: Highschooler -> ID, name, grade. Friend -> student_id, friend_id. Likes -> student_id, liked_id. | Joins: Friend.friend_id = Highschooler.ID, Friend.student_id = Highschooler.ID, Likes.student_id = Highschooler.ID, Likes.liked_id = Highschooler.ID, | show the names and grades of each high schooler. |
network_1 | select name , grade from highschooler | Question: what are the names and grades for each high schooler? | Tables: Highschooler -> ID, name, grade. Friend -> student_id, friend_id. Likes -> student_id, liked_id. | Joins: Friend.friend_id = Highschooler.ID, Friend.student_id = Highschooler.ID, Likes.student_id = Highschooler.ID, Likes.liked_id = Highschooler.I... | what are the names and grades for each high schooler? |
network_1 | select grade from highschooler | Question: show all the grades of the high schoolers. | Tables: Highschooler -> ID, name, grade. Friend -> student_id, friend_id. Likes -> student_id, liked_id. | Joins: Friend.friend_id = Highschooler.ID, Friend.student_id = Highschooler.ID, Likes.student_id = Highschooler.ID, Likes.liked_id = Highschooler.ID, | show all the grades of the high schoolers. |
network_1 | select grade from highschooler | Question: what is the grade of each high schooler? | Tables: Highschooler -> ID, name, grade. Friend -> student_id, friend_id. Likes -> student_id, liked_id. | Joins: Friend.friend_id = Highschooler.ID, Friend.student_id = Highschooler.ID, Likes.student_id = Highschooler.ID, Likes.liked_id = Highschooler.ID, | what is the grade of each high schooler? |
network_1 | select grade from highschooler where name = 'kyle' | Question: what grade is kyle in? | Tables: Highschooler -> ID, name, grade. Friend -> student_id, friend_id. Likes -> student_id, liked_id. | Joins: Friend.friend_id = Highschooler.ID, Friend.student_id = Highschooler.ID, Likes.student_id = Highschooler.ID, Likes.liked_id = Highschooler.ID, | what grade is kyle in? |
network_1 | select grade from highschooler where name = 'kyle' | Question: return the grade for the high schooler named kyle. | Tables: Highschooler -> ID, name, grade. Friend -> student_id, friend_id. Likes -> student_id, liked_id. | Joins: Friend.friend_id = Highschooler.ID, Friend.student_id = Highschooler.ID, Likes.student_id = Highschooler.ID, Likes.liked_id = Highschooler.ID, | return the grade for the high schooler named kyle. |
network_1 | select name from highschooler where grade = 10 | Question: show the names of all high schoolers in grade 10. | Tables: Highschooler -> ID, name, grade. Friend -> student_id, friend_id. Likes -> student_id, liked_id. | Joins: Friend.friend_id = Highschooler.ID, Friend.student_id = Highschooler.ID, Likes.student_id = Highschooler.ID, Likes.liked_id = Highschooler.ID, | show the names of all high schoolers in grade 10. |
network_1 | select name from highschooler where grade = 10 | Question: what are the names of all high schoolers in grade 10? | Tables: Highschooler -> ID, name, grade. Friend -> student_id, friend_id. Likes -> student_id, liked_id. | Joins: Friend.friend_id = Highschooler.ID, Friend.student_id = Highschooler.ID, Likes.student_id = Highschooler.ID, Likes.liked_id = Highschooler.I... | what are the names of all high schoolers in grade 10? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.