dataset_name
stringclasses
1 value
split
stringclasses
1 value
prompt_raw
stringlengths
897
4.29k
messages
listlengths
2
2
question
stringlengths
18
174
sample_id
int64
0
1.03k
db_id
stringclasses
20 values
groundtruth_sqls
listlengths
1
1
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names and areas of countries with the top 5 largest area?
800
world_1
[ "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the names and surface areas of the 5 largest countries.
801
world_1
[ "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are names of countries with the top 3 largest population?
802
world_1
[ "SELECT Name FROM country ORDER BY Population DESC LIMIT 3" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the names of the 3 most populated countries.
803
world_1
[ "SELECT Name FROM country ORDER BY Population DESC LIMIT 3" ]
spider
dev
Database Schema: Table countrylanguage countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode Sample values: "ABW", "AFG", "AGO", "AIA", "ALB" countrylanguage.Percentage: FLOAT(4,1) - percentage Sample values: "5.3", "9.5", "76.7", "7.4", "0.9" countrylanguage.IsOfficial: TEXT - is official S...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of the nations with the 3 lowest populations?
804
world_1
[ "SELECT Name FROM country ORDER BY Population ASC LIMIT 3" ]
spider
dev
Database Schema: Table countrylanguage countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode Sample values: "ABW", "AFG", "AGO", "AIA", "ALB" countrylanguage.Percentage: FLOAT(4,1) - percentage Sample values: "5.3", "9.5", "76.7", "7.4", "0.9" countrylanguage.IsOfficial: TEXT - is official S...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the names of the 3 countries with the fewest people.
805
world_1
[ "SELECT Name FROM country ORDER BY Population ASC LIMIT 3" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
how many countries are in Asia?
806
world_1
[ "SELECT count(*) FROM country WHERE continent = \"Asia\"" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Count the number of countries in Asia.
807
world_1
[ "SELECT count(*) FROM country WHERE continent = \"Asia\"" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of the countries that are in the continent of Europe and have a population of 80000?
808
world_1
[ "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Give the names of countries that are in Europe and have a population equal to 80000.
809
world_1
[ "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\"" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?
810
world_1
[ "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .
811
world_1
[ "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000" ]
spider
dev
Database Schema: Table countrylanguage countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode Sample values: "ABW", "AFG", "AGO", "AIA", "ALB" countrylanguage.Percentage: FLOAT(4,1) - percentage Sample values: "5.3", "9.5", "76.7", "7.4", "0.9" countrylanguage.IsOfficial: TEXT - is official S...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the cities whose population is between 160000 and 900000?
812
world_1
[ "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000" ]
spider
dev
Database Schema: Table countrylanguage countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode Sample values: "ABW", "AFG", "AGO", "AIA", "ALB" countrylanguage.Percentage: FLOAT(4,1) - percentage Sample values: "5.3", "9.5", "76.7", "7.4", "0.9" countrylanguage.IsOfficial: TEXT - is official S...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the names of cities that have a population between 160000 and 900000 .
813
world_1
[ "select name from city where population between 160000 and 900000" ]
spider
dev
Database Schema: Table countrylanguage countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode Sample values: "ABW", "AFG", "AGO", "AIA", "ALB" countrylanguage.Language: CHAR(30) PRIMARY KEY - language Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Which language is spoken by the largest number of countries?
814
world_1
[ "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1" ]
spider
dev
Database Schema: Table countrylanguage countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode Sample values: "ABW", "AFG", "AGO", "AIA", "ALB" countrylanguage.Language: CHAR(30) PRIMARY KEY - language Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Give the language that is spoken in the most countries.
815
world_1
[ "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1" ]
spider
dev
Database Schema: Table countrylanguage countrylanguage.CountryCode: CHAR(3) PRIMARY KEY - countrycode Sample values: "ABW", "AFG", "AGO", "AIA", "ALB" countrylanguage.Language: CHAR(30) PRIMARY KEY - language Sample values: "Philippene Languages", "Indian Languages", "Mixed Languages", "Malenasian Language...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the language spoken by the largest percentage of people in each country?
816
world_1
[ "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?
817
world_1
[ "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the total number of countries where Spanish is spoken by the largest percentage of people?
818
world_1
[ "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Count the number of countries for which Spanish is the predominantly spoken language.
819
world_1
[ "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the codes of countries where Spanish is spoken by the largest percentage of people?
820
world_1
[ "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode" ]
spider
dev
Database Schema: Table country country.LifeExpectancy: FLOAT(3,1) - life expectancy Sample values: "78.4", "45.9", "38.3", "76.1", "71.6" Contains null values: True country.Population: INTEGER - population Sample values: "103000", "22720000", "12878000", "8000", "3401200" country.GovernmentForm: CHAR...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the codes of countries for which Spanish is the predominantly spoken language.
821
world_1
[ "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many conductors are there?
822
orchestra
[ "SELECT count(*) FROM conductor" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Count the number of conductors.
823
orchestra
[ "SELECT count(*) FROM conductor" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List the names of conductors in ascending order of age.
824
orchestra
[ "SELECT Name FROM conductor ORDER BY Age ASC" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of conductors, ordered by age?
825
orchestra
[ "SELECT Name FROM conductor ORDER BY Age ASC" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of conductors whose nationalities are not "USA"?
826
orchestra
[ "SELECT Name FROM conductor WHERE Nationality != 'USA'" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the names of conductors that do not have the nationality "USA".
827
orchestra
[ "SELECT Name FROM conductor WHERE Nationality != 'USA'" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Koch Records / Naxos Records", "Mercury Records", "Decca Records", "Delos Records", "Philips Classics Records" orchestra.Orche...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the record companies of orchestras in descending order of years in which they were founded?
828
orchestra
[ "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Koch Records / Naxos Records", "Mercury Records", "Decca Records", "Delos Records", "Philips Classics Records" orchestra.Orche...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the record companies of orchestras, sorted descending by the years in which they were founded.
829
orchestra
[ "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Orchestra: TEXT - orchestra Sample values: "London Symphony Orchestra", "Columbia Symphony Orchestra", "Royal Concertgebouw Orchestra", "Royal Danish Orchestra", "Detroit Symphony Or...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the average attendance of shows?
830
orchestra
[ "SELECT avg(Attendance) FROM SHOW" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Orchestra: TEXT - orchestra Sample values: "London Symphony Orchestra", "Columbia Symphony Orchestra", "Royal Concertgebouw Orchestra", "Royal Danish Orchestra", "Detroit Symphony Or...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the average attendance across all shows.
831
orchestra
[ "SELECT avg(Attendance) FROM SHOW" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the maximum and minimum share of performances whose type is not "Live final".
832
orchestra
[ "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\"" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Orchestra: TEXT - orchestra Sample values: "London Symphony Orchestra", "Columbia Symphony Orchestra", "Royal Concertgebouw Orchestra", "Royal Danish Orchestra", "Detroit Symphony Or...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the maximum and minimum shares for performances that do not have the type "Live final".
833
orchestra
[ "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\"" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many different nationalities do conductors have?
834
orchestra
[ "SELECT count(DISTINCT Nationality) FROM conductor" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Orchestra: TEXT - orchestra Sample values: "London Symphony Orchestra", "Columbia Symphony Orchestra", "Royal Concertgebouw Orchestra", "Royal Danish Orchestra", "Detroit Symphony Or...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Count the number of different nationalities of conductors.
835
orchestra
[ "SELECT count(DISTINCT Nationality) FROM conductor" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List names of conductors in descending order of years of work.
836
orchestra
[ "SELECT Name FROM conductor ORDER BY Year_of_Work DESC" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of conductors, sorted descending by the number of years they have worked?
837
orchestra
[ "SELECT Name FROM conductor ORDER BY Year_of_Work DESC" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Orchestra: TEXT - orchestra Sample values: "London Symphony Orchestra", "Columbia Symphony Orchestra", "Royal Concertgebouw Orchestra", "Royal Danish Orchestra", "Detroit Symphony Or...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List the name of the conductor with the most years of work.
838
orchestra
[ "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Orchestra: TEXT - orchestra Sample values: "London Symphony Orchestra", "Columbia Symphony Orchestra", "Royal Concertgebouw Orchestra", "Royal Danish Orchestra", "Detroit Symphony Or...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the name of the conductor who has worked the greatest number of years?
839
orchestra
[ "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the names of conductors and the orchestras they have conducted.
840
orchestra
[ "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of conductors as well as the corresonding orchestras that they have conducted?
841
orchestra
[ "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Orchestra: TEXT - orchestra Sample values: "Kirov Orchestra", "Philharmonia Orchestra", "London Symphony Orchestra", "Columbia Symphony Orchestra", "Royal Concertgebouw Orchestra" ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the names of conductors that have conducted more than one orchestras.
842
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" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of conductors who have conducted at more than one orchestra?
843
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" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Orchestra: TEXT - orchestra Sample values: "Kirov Orchestra", "Philharmonia Orchestra", "London Symphony Orchestra", "Columbia Symphony Orchestra", "Royal Concertgebouw Orchestra" ...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the name of the conductor that has conducted the most number of orchestras.
844
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" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the name of the conductor who has conducted the most orchestras?
845
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" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Please show the name of the conductor that has conducted orchestras founded after 2008.
846
orchestra
[ "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of conductors who have conducted orchestras founded after the year 2008?
847
orchestra
[ "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Koch Records / Naxos Records", "Mercury Records", "Decca Records", "Delos Records", "Philips Classics Records" orchestra.Orche...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Please show the different record companies and the corresponding number of orchestras.
848
orchestra
[ "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Koch Records / Naxos Records", "Mercury Records", "Decca Records", "Delos Records", "Philips Classics Records" orchestra.Orche...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many orchestras does each record company manage?
849
orchestra
[ "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Koch Records / Naxos Records", "Mercury Records", "Decca Records", "Delos Records", "Philips Classics Records" orchestra.Orche...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Please show the record formats of orchestras in ascending order of count.
850
orchestra
[ "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Koch Records / Naxos Records", "Mercury Records", "Decca Records", "Delos Records", "Philips Classics Records" orchestra.Orche...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the major record formats of orchestras, sorted by their frequency?
851
orchestra
[ "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Koch Records / Naxos Records", "Mercury Records", "Decca Records", "Delos Records", "Philips Classics Records" orchestra.Orche...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List the record company shared by the most number of orchestras.
852
orchestra
[ "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Koch Records / Naxos Records", "Mercury Records", "Decca Records", "Delos Records", "Philips Classics Records" orchestra.Orche...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the record company used by the greatest number of orchestras?
853
orchestra
[ "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
List the names of orchestras that have no performance.
854
orchestra
[ "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the orchestras that do not have any performances?
855
orchestra
[ "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Koch Records / Naxos Records", "Mercury Records", "Decca Records", "Delos Records", "Philips Classics Records" orchestra.Orche...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the record companies shared by orchestras founded before 2003 and after 2003.
856
orchestra
[ "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Koch Records / Naxos Records", "Mercury Records", "Decca Records", "Delos Records", "Philips Classics Records" orchestra.Orche...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?
857
orchestra
[ "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Koch Records / Naxos Records", "Mercury Records", "Decca Records", "Delos Records", "Philips Classics Records" orchestra.Orche...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Find the number of orchestras whose record format is "CD" or "DVD".
858
orchestra
[ "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Koch Records / Naxos Records", "Mercury Records", "Decca Records", "Delos Records", "Philips Classics Records" orchestra.Orche...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Count the number of orchestras that have CD or DVD as their record format.
859
orchestra
[ "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\"" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the years in which orchestras that have given more than one performance are founded.
860
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" ]
spider
dev
Database Schema: Table orchestra orchestra.Conductor_ID: INT - conductor id Sample values: "1", "2", "3", "4", "5" orchestra.Record_Company: TEXT - record company Sample values: "Mercury Records", "Columbia Masterworks", "Philips", "Kultur", "Decca Records" orchestra.Orchestra: TEXT - orchestra Sampl...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are years of founding for orchestras that have had more than a single performance?
861
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" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many high schoolers are there?
862
network_1
[ "SELECT count(*) FROM Highschooler" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Count the number of high schoolers.
863
network_1
[ "SELECT count(*) FROM Highschooler" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the names and grades of each high schooler.
864
network_1
[ "SELECT name , grade FROM Highschooler" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names and grades for each high schooler?
865
network_1
[ "SELECT name , grade FROM Highschooler" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show all the grades of the high schoolers.
866
network_1
[ "SELECT grade FROM Highschooler" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the grade of each high schooler?
867
network_1
[ "SELECT grade FROM Highschooler" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What grade is Kyle in?
868
network_1
[ "SELECT grade FROM Highschooler WHERE name = \"Kyle\"" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the grade for the high schooler named Kyle.
869
network_1
[ "SELECT grade FROM Highschooler WHERE name = \"Kyle\"" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the names of all high schoolers in grade 10.
870
network_1
[ "SELECT name FROM Highschooler WHERE grade = 10" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of all high schoolers in grade 10?
871
network_1
[ "SELECT name FROM Highschooler WHERE grade = 10" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the ID of the high schooler named Kyle.
872
network_1
[ "SELECT ID FROM Highschooler WHERE name = \"Kyle\"" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is Kyle's id?
873
network_1
[ "SELECT ID FROM Highschooler WHERE name = \"Kyle\"" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many high schoolers are there in grade 9 or 10?
874
network_1
[ "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Count the number of high schoolers in grades 9 or 10.
875
network_1
[ "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the number of high schoolers for each grade.
876
network_1
[ "SELECT grade , count(*) FROM Highschooler GROUP BY grade" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many high schoolers are in each grade?
877
network_1
[ "SELECT grade , count(*) FROM Highschooler GROUP BY grade" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Which grade has the most high schoolers?
878
network_1
[ "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the grade that has the greatest number of high schoolers.
879
network_1
[ "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show me all grades that have at least 4 students.
880
network_1
[ "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Which grades have 4 or more high schoolers?
881
network_1
[ "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the student IDs and numbers of friends corresponding to each.
882
network_1
[ "SELECT student_id , count(*) FROM Friend GROUP BY student_id" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many friends does each student have?
883
network_1
[ "SELECT student_id , count(*) FROM Friend GROUP BY student_id" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the names of high school students and their corresponding number of friends.
884
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" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of the high schoolers and how many friends does each have?
885
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" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What is the name of the high schooler who has the greatest number of friends?
886
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" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the name of the high school student with the most friends.
887
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" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the names of high schoolers who have at least 3 friends.
888
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" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of high schoolers who have 3 or more friends?
889
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" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the names of all of the high schooler Kyle's friends.
890
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\"" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Return the names of friends of the high school student Kyle.
891
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\"" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
How many friends does the high school student Kyle have?
892
network_1
[ "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Count the number of friends Kyle has.
893
network_1
[ "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show ids of all students who do not have any friends.
894
network_1
[ "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the ids of high school students who do not have friends?
895
network_1
[ "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show names of all high school students who do not have any friends.
896
network_1
[ "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the names of students who have no friends?
897
network_1
[ "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
Show the ids of high schoolers who have friends and are also liked by someone else.
898
network_1
[ "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes" ]
spider
dev
Database Schema: Table Friend Friend.student_id: INT PRIMARY KEY - student id Sample values: "1101", "1247", "1304", "1316", "1381" Friend.friend_id: INT PRIMARY KEY - friend id Sample values: "1381", "1689", "1709", "1247", "1782" Table Highschooler Highschooler.ID: INT PRIMARY KEY - id Sample valu...
[ { "content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out...
What are the ids of students who both have friends and are liked?
899
network_1
[ "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes" ]