db_id
stringclasses
20 values
query
stringlengths
20
422
question
stringlengths
18
174
query_toks
listlengths
4
63
query_toks_no_value
listlengths
4
88
question_toks
listlengths
5
33
schema
stringclasses
20 values
world_1
SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5
What are the names and areas of countries with the top 5 largest area?
[ "SELECT", "Name", ",", "SurfaceArea", "FROM", "country", "ORDER", "BY", "SurfaceArea", "DESC", "LIMIT", "5" ]
[ "select", "name", ",", "surfacearea", "from", "country", "order", "by", "surfacearea", "desc", "limit", "value" ]
[ "What", "are", "the", "names", "and", "areas", "of", "countries", "with", "the", "top", "5", "largest", "area", "?" ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5
Return the names and surface areas of the 5 largest countries.
[ "SELECT", "Name", ",", "SurfaceArea", "FROM", "country", "ORDER", "BY", "SurfaceArea", "DESC", "LIMIT", "5" ]
[ "select", "name", ",", "surfacearea", "from", "country", "order", "by", "surfacearea", "desc", "limit", "value" ]
[ "Return", "the", "names", "and", "surface", "areas", "of", "the", "5", "largest", "countries", "." ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT Name FROM country ORDER BY Population DESC LIMIT 3
What are names of countries with the top 3 largest population?
[ "SELECT", "Name", "FROM", "country", "ORDER", "BY", "Population", "DESC", "LIMIT", "3" ]
[ "select", "name", "from", "country", "order", "by", "population", "desc", "limit", "value" ]
[ "What", "are", "names", "of", "countries", "with", "the", "top", "3", "largest", "population", "?" ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT Name FROM country ORDER BY Population DESC LIMIT 3
Return the names of the 3 most populated countries.
[ "SELECT", "Name", "FROM", "country", "ORDER", "BY", "Population", "DESC", "LIMIT", "3" ]
[ "select", "name", "from", "country", "order", "by", "population", "desc", "limit", "value" ]
[ "Return", "the", "names", "of", "the", "3", "most", "populated", "countries", "." ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT Name FROM country ORDER BY Population ASC LIMIT 3
What are the names of the nations with the 3 lowest populations?
[ "SELECT", "Name", "FROM", "country", "ORDER", "BY", "Population", "ASC", "LIMIT", "3" ]
[ "select", "name", "from", "country", "order", "by", "population", "asc", "limit", "value" ]
[ "What", "are", "the", "names", "of", "the", "nations", "with", "the", "3", "lowest", "populations", "?" ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT Name FROM country ORDER BY Population ASC LIMIT 3
Return the names of the 3 countries with the fewest people.
[ "SELECT", "Name", "FROM", "country", "ORDER", "BY", "Population", "ASC", "LIMIT", "3" ]
[ "select", "name", "from", "country", "order", "by", "population", "asc", "limit", "value" ]
[ "Return", "the", "names", "of", "the", "3", "countries", "with", "the", "fewest", "people", "." ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT count(*) FROM country WHERE continent = "Asia"
how many countries are in Asia?
[ "SELECT", "count", "(", "*", ")", "FROM", "country", "WHERE", "continent", "=", "``", "Asia", "''" ]
[ "select", "count", "(", "*", ")", "from", "country", "where", "continent", "=", "value" ]
[ "how", "many", "countries", "are", "in", "Asia", "?" ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT count(*) FROM country WHERE continent = "Asia"
Count the number of countries in Asia.
[ "SELECT", "count", "(", "*", ")", "FROM", "country", "WHERE", "continent", "=", "``", "Asia", "''" ]
[ "select", "count", "(", "*", ")", "from", "country", "where", "continent", "=", "value" ]
[ "Count", "the", "number", "of", "countries", "in", "Asia", "." ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT Name FROM country WHERE continent = "Europe" AND Population = "80000"
What are the names of the countries that are in the continent of Europe and have a population of 80000?
[ "SELECT", "Name", "FROM", "country", "WHERE", "continent", "=", "``", "Europe", "''", "AND", "Population", "=", "``", "80000", "''" ]
[ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "=", "value" ]
[ "What", "are", "the", "names", "of", "the", "countries", "that", "are", "in", "the", "continent", "of", "Europe", "and", "have", "a", "population", "of", "80000", "?" ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT Name FROM country WHERE continent = "Europe" AND Population = "80000"
Give the names of countries that are in Europe and have a population equal to 80000.
[ "SELECT", "Name", "FROM", "country", "WHERE", "continent", "=", "``", "Europe", "''", "AND", "Population", "=", "``", "80000", "''" ]
[ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "=", "value" ]
[ "Give", "the", "names", "of", "countries", "that", "are", "in", "Europe", "and", "have", "a", "population", "equal", "to", "80000", "." ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
select sum(population) , avg(surfacearea) from country where continent = "north america" and surfacearea > 3000
What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?
[ "select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "\"north america\"", "and", "surfacearea", ">", "3000" ]
[ "select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "and", "surfacearea", ">", "value" ]
[ "What", "is", "the", "total", "population", "and", "average", "area", "of", "countries", "in", "the", "continent", "of", "North", "America", "whose", "area", "is", "bigger", "than", "3000", "?" ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
select sum(population) , avg(surfacearea) from country where continent = "north america" and surfacearea > 3000
Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .
[ "select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "\"north america\"", "and", "surfacearea", ">", "3000" ]
[ "select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "and", "surfacearea", ">", "value" ]
[ "Give", "the", "total", "population", "and", "average", "surface", "area", "corresponding", "to", "countries", "in", "North", "America", "that", "have", "a", "surface", "area", "greater", "than", "3000", "." ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000
What are the cities whose population is between 160000 and 900000?
[ "SELECT", "name", "FROM", "city", "WHERE", "Population", "BETWEEN", "160000", "AND", "900000" ]
[ "select", "name", "from", "city", "where", "population", "between", "value", "and", "value" ]
[ "What", "are", "the", "cities", "whose", "population", "is", "between", "160000", "and", "900000", "?" ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
select name from city where population between 160000 and 900000
Return the names of cities that have a population between 160000 and 900000 .
[ "select", "name", "from", "city", "where", "population", "between", "160000", "and", "900000" ]
[ "select", "name", "from", "city", "where", "population", "between", "value", "and", "value" ]
[ "Return", "the", "names", "of", "cities", "that", "have", "a", "population", "between", "160000", "and", "900000", "." ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1
Which language is spoken by the largest number of countries?
[ "SELECT", "LANGUAGE", "FROM", "countrylanguage", "GROUP", "BY", "LANGUAGE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "language", "from", "countrylanguage", "group", "by", "language", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Which", "language", "is", "spoken", "by", "the", "largest", "number", "of", "countries", "?" ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1
Give the language that is spoken in the most countries.
[ "SELECT", "LANGUAGE", "FROM", "countrylanguage", "GROUP", "BY", "LANGUAGE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "language", "from", "countrylanguage", "group", "by", "language", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Give", "the", "language", "that", "is", "spoken", "in", "the", "most", "countries", "." ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode
What is the language spoken by the largest percentage of people in each country?
[ "SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode" ]
[ "select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode" ]
[ "What", "is", "the", "language", "spoken", "by", "the", "largest", "percentage", "of", "people", "in", "each", "country", "?" ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode
What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?
[ "SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode" ]
[ "select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode" ]
[ "What", "are", "the", "country", "codes", "of", "the", "different", "countries", ",", "and", "what", "are", "the", "languages", "spoken", "by", "the", "greatest", "percentage", "of", "people", "for", "each", "?" ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode
What is the total number of countries where Spanish is spoken by the largest percentage of people?
[ "SELECT", "count", "(", "*", ")", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode" ]
[ "select", "count", "(", "*", ")", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode" ]
[ "What", "is", "the", "total", "number", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "largest", "percentage", "of", "people", "?" ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode
Count the number of countries for which Spanish is the predominantly spoken language.
[ "SELECT", "count", "(", "*", ")", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode" ]
[ "select", "count", "(", "*", ")", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode" ]
[ "Count", "the", "number", "of", "countries", "for", "which", "Spanish", "is", "the", "predominantly", "spoken", "language", "." ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode
What are the codes of countries where Spanish is spoken by the largest percentage of people?
[ "SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode" ]
[ "select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode" ]
[ "What", "are", "the", "codes", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "largest", "percentage", "of", "people", "?" ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
world_1
SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode
Return the codes of countries for which Spanish is the predominantly spoken language.
[ "SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode" ]
[ "select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode" ]
[ "Return", "the", "codes", "of", "countries", "for", "which", "Spanish", "is", "the", "predominantly", "spoken", "language", "." ]
CREATE TABLE city ( ID NUMBER PRIMARY KEY, Name TEXT, CountryCode TEXT, District TEXT, Population NUMBER, FOREIGN KEY (CountryCode) REFERENCES country(Code) ); CREATE TABLE sqlite_sequence ( name TEXT, seq TEXT ); CREATE TABLE country ( Code TEXT PRIMARY KEY, Name TEXT, Continent TEXT, Region ...
orchestra
SELECT count(*) FROM conductor
How many conductors are there?
[ "SELECT", "count", "(", "*", ")", "FROM", "conductor" ]
[ "select", "count", "(", "*", ")", "from", "conductor" ]
[ "How", "many", "conductors", "are", "there", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT count(*) FROM conductor
Count the number of conductors.
[ "SELECT", "count", "(", "*", ")", "FROM", "conductor" ]
[ "select", "count", "(", "*", ")", "from", "conductor" ]
[ "Count", "the", "number", "of", "conductors", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Name FROM conductor ORDER BY Age ASC
List the names of conductors in ascending order of age.
[ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Age", "ASC" ]
[ "select", "name", "from", "conductor", "order", "by", "age", "asc" ]
[ "List", "the", "names", "of", "conductors", "in", "ascending", "order", "of", "age", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Name FROM conductor ORDER BY Age ASC
What are the names of conductors, ordered by age?
[ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Age", "ASC" ]
[ "select", "name", "from", "conductor", "order", "by", "age", "asc" ]
[ "What", "are", "the", "names", "of", "conductors", ",", "ordered", "by", "age", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Name FROM conductor WHERE Nationality != 'USA'
What are the names of conductors whose nationalities are not "USA"?
[ "SELECT", "Name", "FROM", "conductor", "WHERE", "Nationality", "!", "=", "'USA", "'" ]
[ "select", "name", "from", "conductor", "where", "nationality", "!", "=", "value" ]
[ "What", "are", "the", "names", "of", "conductors", "whose", "nationalities", "are", "not", "``", "USA", "''", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Name FROM conductor WHERE Nationality != 'USA'
Return the names of conductors that do not have the nationality "USA".
[ "SELECT", "Name", "FROM", "conductor", "WHERE", "Nationality", "!", "=", "'USA", "'" ]
[ "select", "name", "from", "conductor", "where", "nationality", "!", "=", "value" ]
[ "Return", "the", "names", "of", "conductors", "that", "do", "not", "have", "the", "nationality", "``", "USA", "''", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC
What are the record companies of orchestras in descending order of years in which they were founded?
[ "SELECT", "Record_Company", "FROM", "orchestra", "ORDER", "BY", "Year_of_Founded", "DESC" ]
[ "select", "record_company", "from", "orchestra", "order", "by", "year_of_founded", "desc" ]
[ "What", "are", "the", "record", "companies", "of", "orchestras", "in", "descending", "order", "of", "years", "in", "which", "they", "were", "founded", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC
Return the record companies of orchestras, sorted descending by the years in which they were founded.
[ "SELECT", "Record_Company", "FROM", "orchestra", "ORDER", "BY", "Year_of_Founded", "DESC" ]
[ "select", "record_company", "from", "orchestra", "order", "by", "year_of_founded", "desc" ]
[ "Return", "the", "record", "companies", "of", "orchestras", ",", "sorted", "descending", "by", "the", "years", "in", "which", "they", "were", "founded", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT avg(Attendance) FROM SHOW
What is the average attendance of shows?
[ "SELECT", "avg", "(", "Attendance", ")", "FROM", "SHOW" ]
[ "select", "avg", "(", "attendance", ")", "from", "show" ]
[ "What", "is", "the", "average", "attendance", "of", "shows", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT avg(Attendance) FROM SHOW
Return the average attendance across all shows.
[ "SELECT", "avg", "(", "Attendance", ")", "FROM", "SHOW" ]
[ "select", "avg", "(", "attendance", ")", "from", "show" ]
[ "Return", "the", "average", "attendance", "across", "all", "shows", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != "Live final"
What are the maximum and minimum share of performances whose type is not "Live final".
[ "SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!", "=", "``", "Live", "final", "''" ]
[ "select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!", "=", "value" ]
[ "What", "are", "the", "maximum", "and", "minimum", "share", "of", "performances", "whose", "type", "is", "not", "``", "Live", "final", "''", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != "Live final"
Return the maximum and minimum shares for performances that do not have the type "Live final".
[ "SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!", "=", "``", "Live", "final", "''" ]
[ "select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!", "=", "value" ]
[ "Return", "the", "maximum", "and", "minimum", "shares", "for", "performances", "that", "do", "not", "have", "the", "type", "``", "Live", "final", "''", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT count(DISTINCT Nationality) FROM conductor
How many different nationalities do conductors have?
[ "SELECT", "count", "(", "DISTINCT", "Nationality", ")", "FROM", "conductor" ]
[ "select", "count", "(", "distinct", "nationality", ")", "from", "conductor" ]
[ "How", "many", "different", "nationalities", "do", "conductors", "have", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT count(DISTINCT Nationality) FROM conductor
Count the number of different nationalities of conductors.
[ "SELECT", "count", "(", "DISTINCT", "Nationality", ")", "FROM", "conductor" ]
[ "select", "count", "(", "distinct", "nationality", ")", "from", "conductor" ]
[ "Count", "the", "number", "of", "different", "nationalities", "of", "conductors", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Name FROM conductor ORDER BY Year_of_Work DESC
List names of conductors in descending order of years of work.
[ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC" ]
[ "select", "name", "from", "conductor", "order", "by", "year_of_work", "desc" ]
[ "List", "names", "of", "conductors", "in", "descending", "order", "of", "years", "of", "work", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Name FROM conductor ORDER BY Year_of_Work DESC
What are the names of conductors, sorted descending by the number of years they have worked?
[ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC" ]
[ "select", "name", "from", "conductor", "order", "by", "year_of_work", "desc" ]
[ "What", "are", "the", "names", "of", "conductors", ",", "sorted", "descending", "by", "the", "number", "of", "years", "they", "have", "worked", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1
List the name of the conductor with the most years of work.
[ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC", "LIMIT", "1" ]
[ "select", "name", "from", "conductor", "order", "by", "year_of_work", "desc", "limit", "value" ]
[ "List", "the", "name", "of", "the", "conductor", "with", "the", "most", "years", "of", "work", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1
What is the name of the conductor who has worked the greatest number of years?
[ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC", "LIMIT", "1" ]
[ "select", "name", "from", "conductor", "order", "by", "year_of_work", "desc", "limit", "value" ]
[ "What", "is", "the", "name", "of", "the", "conductor", "who", "has", "worked", "the", "greatest", "number", "of", "years", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID
Show the names of conductors and the orchestras they have conducted.
[ "SELECT", "T1.Name", ",", "T2.Orchestra", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID" ]
[ "select", "t1", ".", "name", ",", "t2", ".", "orchestra", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id" ]
[ "Show", "the", "names", "of", "conductors", "and", "the", "orchestras", "they", "have", "conducted", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID
What are the names of conductors as well as the corresonding orchestras that they have conducted?
[ "SELECT", "T1.Name", ",", "T2.Orchestra", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID" ]
[ "select", "t1", ".", "name", ",", "t2", ".", "orchestra", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id" ]
[ "What", "are", "the", "names", "of", "conductors", "as", "well", "as", "the", "corresonding", "orchestras", "that", "they", "have", "conducted", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
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
Show the names of conductors that have conducted more than one orchestras.
[ "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" ]
[ "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", "(", "*", ")", ">", "value" ]
[ "Show", "the", "names", "of", "conductors", "that", "have", "conducted", "more", "than", "one", "orchestras", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
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
What are the names of conductors who have conducted at more than one 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" ]
[ "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", "(", "*", ")", ">", "value" ]
[ "What", "are", "the", "names", "of", "conductors", "who", "have", "conducted", "at", "more", "than", "one", "orchestra", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
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
Show the name of the conductor that has conducted the most number of orchestras.
[ "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" ]
[ "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", "li...
[ "Show", "the", "name", "of", "the", "conductor", "that", "has", "conducted", "the", "most", "number", "of", "orchestras", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
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
What is the name of the conductor who has conducted the most orchestras?
[ "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" ]
[ "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", "li...
[ "What", "is", "the", "name", "of", "the", "conductor", "who", "has", "conducted", "the", "most", "orchestras", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008
Please show the name of the conductor that has conducted orchestras founded after 2008.
[ "SELECT", "T1.Name", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID", "WHERE", "Year_of_Founded", ">", "2008" ]
[ "select", "t1", ".", "name", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id", "where", "year_of_founded", ">", "value" ]
[ "Please", "show", "the", "name", "of", "the", "conductor", "that", "has", "conducted", "orchestras", "founded", "after", "2008", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008
What are the names of conductors who have conducted orchestras founded after the year 2008?
[ "SELECT", "T1.Name", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID", "WHERE", "Year_of_Founded", ">", "2008" ]
[ "select", "t1", ".", "name", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id", "where", "year_of_founded", ">", "value" ]
[ "What", "are", "the", "names", "of", "conductors", "who", "have", "conducted", "orchestras", "founded", "after", "the", "year", "2008", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company
Please show the different record companies and the corresponding number of orchestras.
[ "SELECT", "Record_Company", ",", "COUNT", "(", "*", ")", "FROM", "orchestra", "GROUP", "BY", "Record_Company" ]
[ "select", "record_company", ",", "count", "(", "*", ")", "from", "orchestra", "group", "by", "record_company" ]
[ "Please", "show", "the", "different", "record", "companies", "and", "the", "corresponding", "number", "of", "orchestras", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company
How many orchestras does each record company manage?
[ "SELECT", "Record_Company", ",", "COUNT", "(", "*", ")", "FROM", "orchestra", "GROUP", "BY", "Record_Company" ]
[ "select", "record_company", ",", "count", "(", "*", ")", "from", "orchestra", "group", "by", "record_company" ]
[ "How", "many", "orchestras", "does", "each", "record", "company", "manage", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC
Please show the record formats of orchestras in ascending order of count.
[ "SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC" ]
[ "select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format", "order", "by", "count", "(", "*", ")", "asc" ]
[ "Please", "show", "the", "record", "formats", "of", "orchestras", "in", "ascending", "order", "of", "count", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC
What are the major record formats of orchestras, sorted by their frequency?
[ "SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC" ]
[ "select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format", "order", "by", "count", "(", "*", ")", "asc" ]
[ "What", "are", "the", "major", "record", "formats", "of", "orchestras", ",", "sorted", "by", "their", "frequency", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1
List the record company shared by the most number of orchestras.
[ "SELECT", "Record_Company", "FROM", "orchestra", "GROUP", "BY", "Record_Company", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "record_company", "from", "orchestra", "group", "by", "record_company", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "List", "the", "record", "company", "shared", "by", "the", "most", "number", "of", "orchestras", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1
What is the record company used by the greatest number of orchestras?
[ "SELECT", "Record_Company", "FROM", "orchestra", "GROUP", "BY", "Record_Company", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "record_company", "from", "orchestra", "group", "by", "record_company", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What", "is", "the", "record", "company", "used", "by", "the", "greatest", "number", "of", "orchestras", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)
List the names of orchestras that have no performance.
[ "SELECT", "Orchestra", "FROM", "orchestra", "WHERE", "Orchestra_ID", "NOT", "IN", "(", "SELECT", "Orchestra_ID", "FROM", "performance", ")" ]
[ "select", "orchestra", "from", "orchestra", "where", "orchestra_id", "not", "in", "(", "select", "orchestra_id", "from", "performance", ")" ]
[ "List", "the", "names", "of", "orchestras", "that", "have", "no", "performance", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)
What are the orchestras that do not have any performances?
[ "SELECT", "Orchestra", "FROM", "orchestra", "WHERE", "Orchestra_ID", "NOT", "IN", "(", "SELECT", "Orchestra_ID", "FROM", "performance", ")" ]
[ "select", "orchestra", "from", "orchestra", "where", "orchestra_id", "not", "in", "(", "select", "orchestra_id", "from", "performance", ")" ]
[ "What", "are", "the", "orchestras", "that", "do", "not", "have", "any", "performances", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003
Show the record companies shared by orchestras founded before 2003 and after 2003.
[ "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "2003", "INTERSECT", "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", ">", "2003" ]
[ "select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "value", "intersect", "select", "record_company", "from", "orchestra", "where", "year_of_founded", ">", "value" ]
[ "Show", "the", "record", "companies", "shared", "by", "orchestras", "founded", "before", "2003", "and", "after", "2003", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003
What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?
[ "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "2003", "INTERSECT", "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", ">", "2003" ]
[ "select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "value", "intersect", "select", "record_company", "from", "orchestra", "where", "year_of_founded", ">", "value" ]
[ "What", "are", "the", "record", "companies", "that", "are", "used", "by", "both", "orchestras", "founded", "before", "2003", "and", "those", "founded", "after", "2003", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = "CD" OR Major_Record_Format = "DVD"
Find the number of orchestras whose record format is "CD" or "DVD".
[ "SELECT", "COUNT", "(", "*", ")", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "``", "CD", "''", "OR", "Major_Record_Format", "=", "``", "DVD", "''" ]
[ "select", "count", "(", "*", ")", "from", "orchestra", "where", "major_record_format", "=", "value", "or", "major_record_format", "=", "value" ]
[ "Find", "the", "number", "of", "orchestras", "whose", "record", "format", "is", "``", "CD", "''", "or", "``", "DVD", "''", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
orchestra
SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = "CD" OR Major_Record_Format = "DVD"
Count the number of orchestras that have CD or DVD as their record format.
[ "SELECT", "COUNT", "(", "*", ")", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "``", "CD", "''", "OR", "Major_Record_Format", "=", "``", "DVD", "''" ]
[ "select", "count", "(", "*", ")", "from", "orchestra", "where", "major_record_format", "=", "value", "or", "major_record_format", "=", "value" ]
[ "Count", "the", "number", "of", "orchestras", "that", "have", "CD", "or", "DVD", "as", "their", "record", "format", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
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
Show the years in which orchestras that have given more than one performance are founded.
[ "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" ]
[ "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", "(", "*", ")", ">", "value" ]
[ "Show", "the", "years", "in", "which", "orchestras", "that", "have", "given", "more", "than", "one", "performance", "are", "founded", "." ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
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
What are years of founding for orchestras that have had more than a single performance?
[ "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" ]
[ "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", "(", "*", ")", ">", "value" ]
[ "What", "are", "years", "of", "founding", "for", "orchestras", "that", "have", "had", "more", "than", "a", "single", "performance", "?" ]
CREATE TABLE conductor ( Conductor_ID NUMBER PRIMARY KEY, Name TEXT, Age NUMBER, Nationality TEXT, Year_of_Work NUMBER ); CREATE TABLE orchestra ( Orchestra_ID NUMBER PRIMARY KEY, Orchestra TEXT, Conductor_ID NUMBER, Record_Company TEXT, Year_of_Founded NUMBER, Major_Record_Format TEXT, FOREIGN...
network_1
SELECT count(*) FROM Highschooler
How many high schoolers are there?
[ "SELECT", "count", "(", "*", ")", "FROM", "Highschooler" ]
[ "select", "count", "(", "*", ")", "from", "highschooler" ]
[ "How", "many", "high", "schoolers", "are", "there", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT count(*) FROM Highschooler
Count the number of high schoolers.
[ "SELECT", "count", "(", "*", ")", "FROM", "Highschooler" ]
[ "select", "count", "(", "*", ")", "from", "highschooler" ]
[ "Count", "the", "number", "of", "high", "schoolers", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT name , grade FROM Highschooler
Show the names and grades of each high schooler.
[ "SELECT", "name", ",", "grade", "FROM", "Highschooler" ]
[ "select", "name", ",", "grade", "from", "highschooler" ]
[ "Show", "the", "names", "and", "grades", "of", "each", "high", "schooler", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT name , grade FROM Highschooler
What are the names and grades for each high schooler?
[ "SELECT", "name", ",", "grade", "FROM", "Highschooler" ]
[ "select", "name", ",", "grade", "from", "highschooler" ]
[ "What", "are", "the", "names", "and", "grades", "for", "each", "high", "schooler", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT grade FROM Highschooler
Show all the grades of the high schoolers.
[ "SELECT", "grade", "FROM", "Highschooler" ]
[ "select", "grade", "from", "highschooler" ]
[ "Show", "all", "the", "grades", "of", "the", "high", "schoolers", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT grade FROM Highschooler
What is the grade of each high schooler?
[ "SELECT", "grade", "FROM", "Highschooler" ]
[ "select", "grade", "from", "highschooler" ]
[ "What", "is", "the", "grade", "of", "each", "high", "schooler", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT grade FROM Highschooler WHERE name = "Kyle"
What grade is Kyle in?
[ "SELECT", "grade", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''" ]
[ "select", "grade", "from", "highschooler", "where", "name", "=", "value" ]
[ "What", "grade", "is", "Kyle", "in", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT grade FROM Highschooler WHERE name = "Kyle"
Return the grade for the high schooler named Kyle.
[ "SELECT", "grade", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''" ]
[ "select", "grade", "from", "highschooler", "where", "name", "=", "value" ]
[ "Return", "the", "grade", "for", "the", "high", "schooler", "named", "Kyle", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT name FROM Highschooler WHERE grade = 10
Show the names of all high schoolers in grade 10.
[ "SELECT", "name", "FROM", "Highschooler", "WHERE", "grade", "=", "10" ]
[ "select", "name", "from", "highschooler", "where", "grade", "=", "value" ]
[ "Show", "the", "names", "of", "all", "high", "schoolers", "in", "grade", "10", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT name FROM Highschooler WHERE grade = 10
What are the names of all high schoolers in grade 10?
[ "SELECT", "name", "FROM", "Highschooler", "WHERE", "grade", "=", "10" ]
[ "select", "name", "from", "highschooler", "where", "grade", "=", "value" ]
[ "What", "are", "the", "names", "of", "all", "high", "schoolers", "in", "grade", "10", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT ID FROM Highschooler WHERE name = "Kyle"
Show the ID of the high schooler named Kyle.
[ "SELECT", "ID", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''" ]
[ "select", "id", "from", "highschooler", "where", "name", "=", "value" ]
[ "Show", "the", "ID", "of", "the", "high", "schooler", "named", "Kyle", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT ID FROM Highschooler WHERE name = "Kyle"
What is Kyle's id?
[ "SELECT", "ID", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''" ]
[ "select", "id", "from", "highschooler", "where", "name", "=", "value" ]
[ "What", "is", "Kyle", "'s", "id", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10
How many high schoolers are there in grade 9 or 10?
[ "SELECT", "count", "(", "*", ")", "FROM", "Highschooler", "WHERE", "grade", "=", "9", "OR", "grade", "=", "10" ]
[ "select", "count", "(", "*", ")", "from", "highschooler", "where", "grade", "=", "value", "or", "grade", "=", "value" ]
[ "How", "many", "high", "schoolers", "are", "there", "in", "grade", "9", "or", "10", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10
Count the number of high schoolers in grades 9 or 10.
[ "SELECT", "count", "(", "*", ")", "FROM", "Highschooler", "WHERE", "grade", "=", "9", "OR", "grade", "=", "10" ]
[ "select", "count", "(", "*", ")", "from", "highschooler", "where", "grade", "=", "value", "or", "grade", "=", "value" ]
[ "Count", "the", "number", "of", "high", "schoolers", "in", "grades", "9", "or", "10", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT grade , count(*) FROM Highschooler GROUP BY grade
Show the number of high schoolers for each grade.
[ "SELECT", "grade", ",", "count", "(", "*", ")", "FROM", "Highschooler", "GROUP", "BY", "grade" ]
[ "select", "grade", ",", "count", "(", "*", ")", "from", "highschooler", "group", "by", "grade" ]
[ "Show", "the", "number", "of", "high", "schoolers", "for", "each", "grade", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT grade , count(*) FROM Highschooler GROUP BY grade
How many high schoolers are in each grade?
[ "SELECT", "grade", ",", "count", "(", "*", ")", "FROM", "Highschooler", "GROUP", "BY", "grade" ]
[ "select", "grade", ",", "count", "(", "*", ")", "from", "highschooler", "group", "by", "grade" ]
[ "How", "many", "high", "schoolers", "are", "in", "each", "grade", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1
Which grade has the most high schoolers?
[ "SELECT", "grade", "FROM", "Highschooler", "GROUP", "BY", "grade", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "grade", "from", "highschooler", "group", "by", "grade", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Which", "grade", "has", "the", "most", "high", "schoolers", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1
Return the grade that has the greatest number of high schoolers.
[ "SELECT", "grade", "FROM", "Highschooler", "GROUP", "BY", "grade", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "grade", "from", "highschooler", "group", "by", "grade", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Return", "the", "grade", "that", "has", "the", "greatest", "number", "of", "high", "schoolers", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4
Show me all grades that have at least 4 students.
[ "SELECT", "grade", "FROM", "Highschooler", "GROUP", "BY", "grade", "HAVING", "count", "(", "*", ")", ">", "=", "4" ]
[ "select", "grade", "from", "highschooler", "group", "by", "grade", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "Show", "me", "all", "grades", "that", "have", "at", "least", "4", "students", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4
Which grades have 4 or more high schoolers?
[ "SELECT", "grade", "FROM", "Highschooler", "GROUP", "BY", "grade", "HAVING", "count", "(", "*", ")", ">", "=", "4" ]
[ "select", "grade", "from", "highschooler", "group", "by", "grade", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "Which", "grades", "have", "4", "or", "more", "high", "schoolers", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT student_id , count(*) FROM Friend GROUP BY student_id
Show the student IDs and numbers of friends corresponding to each.
[ "SELECT", "student_id", ",", "count", "(", "*", ")", "FROM", "Friend", "GROUP", "BY", "student_id" ]
[ "select", "student_id", ",", "count", "(", "*", ")", "from", "friend", "group", "by", "student_id" ]
[ "Show", "the", "student", "IDs", "and", "numbers", "of", "friends", "corresponding", "to", "each", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT student_id , count(*) FROM Friend GROUP BY student_id
How many friends does each student have?
[ "SELECT", "student_id", ",", "count", "(", "*", ")", "FROM", "Friend", "GROUP", "BY", "student_id" ]
[ "select", "student_id", ",", "count", "(", "*", ")", "from", "friend", "group", "by", "student_id" ]
[ "How", "many", "friends", "does", "each", "student", "have", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id
Show the names of high school students and their corresponding number of friends.
[ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id" ]
[ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id" ]
[ "Show", "the", "names", "of", "high", "school", "students", "and", "their", "corresponding", "number", "of", "friends", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id
What are the names of the high schoolers and how many friends does each have?
[ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id" ]
[ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id" ]
[ "What", "are", "the", "names", "of", "the", "high", "schoolers", "and", "how", "many", "friends", "does", "each", "have", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1
What is the name of the high schooler who has the greatest number of friends?
[ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value...
[ "What", "is", "the", "name", "of", "the", "high", "schooler", "who", "has", "the", "greatest", "number", "of", "friends", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1
Return the name of the high school student with the most friends.
[ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value...
[ "Return", "the", "name", "of", "the", "high", "school", "student", "with", "the", "most", "friends", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3
Show the names of high schoolers who have at least 3 friends.
[ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", ">", "=", "3" ]
[ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "Show", "the", "names", "of", "high", "schoolers", "who", "have", "at", "least", "3", "friends", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3
What are the names of high schoolers who have 3 or more friends?
[ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", ">", "=", "3" ]
[ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "What", "are", "the", "names", "of", "high", "schoolers", "who", "have", "3", "or", "more", "friends", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = "Kyle"
Show the names of all of the high schooler Kyle's friends.
[ "SELECT", "T3.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "JOIN", "Highschooler", "AS", "T3", "ON", "T1.friend_id", "=", "T3.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ]
[ "select", "t3", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "join", "highschooler", "as", "t3", "on", "t1", ".", "friend_id", "=", "t3", ".", "id", "where", "t2",...
[ "Show", "the", "names", "of", "all", "of", "the", "high", "schooler", "Kyle", "'s", "friends", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = "Kyle"
Return the names of friends of the high school student Kyle.
[ "SELECT", "T3.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "JOIN", "Highschooler", "AS", "T3", "ON", "T1.friend_id", "=", "T3.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ]
[ "select", "t3", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "join", "highschooler", "as", "t3", "on", "t1", ".", "friend_id", "=", "t3", ".", "id", "where", "t2",...
[ "Return", "the", "names", "of", "friends", "of", "the", "high", "school", "student", "Kyle", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = "Kyle"
How many friends does the high school student Kyle have?
[ "SELECT", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ]
[ "select", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ]
[ "How", "many", "friends", "does", "the", "high", "school", "student", "Kyle", "have", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = "Kyle"
Count the number of friends Kyle has.
[ "SELECT", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ]
[ "select", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ]
[ "Count", "the", "number", "of", "friends", "Kyle", "has", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend
Show ids of all students who do not have any friends.
[ "SELECT", "id", "FROM", "Highschooler", "EXCEPT", "SELECT", "student_id", "FROM", "Friend" ]
[ "select", "id", "from", "highschooler", "except", "select", "student_id", "from", "friend" ]
[ "Show", "ids", "of", "all", "students", "who", "do", "not", "have", "any", "friends", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend
What are the ids of high school students who do not have friends?
[ "SELECT", "id", "FROM", "Highschooler", "EXCEPT", "SELECT", "student_id", "FROM", "Friend" ]
[ "select", "id", "from", "highschooler", "except", "select", "student_id", "from", "friend" ]
[ "What", "are", "the", "ids", "of", "high", "school", "students", "who", "do", "not", "have", "friends", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id
Show names of all high school students who do not have any friends.
[ "SELECT", "name", "FROM", "Highschooler", "EXCEPT", "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id" ]
[ "select", "name", "from", "highschooler", "except", "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id" ]
[ "Show", "names", "of", "all", "high", "school", "students", "who", "do", "not", "have", "any", "friends", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id
What are the names of students who have no friends?
[ "SELECT", "name", "FROM", "Highschooler", "EXCEPT", "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id" ]
[ "select", "name", "from", "highschooler", "except", "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id" ]
[ "What", "are", "the", "names", "of", "students", "who", "have", "no", "friends", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes
Show the ids of high schoolers who have friends and are also liked by someone else.
[ "SELECT", "student_id", "FROM", "Friend", "INTERSECT", "SELECT", "liked_id", "FROM", "Likes" ]
[ "select", "student_id", "from", "friend", "intersect", "select", "liked_id", "from", "likes" ]
[ "Show", "the", "ids", "of", "high", "schoolers", "who", "have", "friends", "and", "are", "also", "liked", "by", "someone", "else", "." ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...
network_1
SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes
What are the ids of students who both have friends and are liked?
[ "SELECT", "student_id", "FROM", "Friend", "INTERSECT", "SELECT", "liked_id", "FROM", "Likes" ]
[ "select", "student_id", "from", "friend", "intersect", "select", "liked_id", "from", "likes" ]
[ "What", "are", "the", "ids", "of", "students", "who", "both", "have", "friends", "and", "are", "liked", "?" ]
CREATE TABLE Highschooler ( ID NUMBER PRIMARY KEY, name TEXT, grade NUMBER ); CREATE TABLE Friend ( student_id NUMBER PRIMARY KEY, friend_id NUMBER, FOREIGN KEY (student_id) REFERENCES Highschooler(ID), FOREIGN KEY (friend_id) REFERENCES Highschooler(ID) ); CREATE TABLE Likes ( student_id NUMBER PRIMA...