text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
Find the name of customer who has the highest amount of loans.
### INPUT
CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)
### OUTPUT
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount) DESC LIMIT 1 | {
"input": "CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)",
"instruction": "Find the name of customer who has the highest amount of loans.",
"output": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount) DESC LIMIT 1"
} |
### INSTRUCTION
What number episode in the series had and original United States air date of December 24, 2010?
### INPUT
CREATE TABLE table_29087004_2 (series__number INTEGER, united_states_original_airdate VARCHAR)
### OUTPUT
SELECT MAX(series__number) FROM table_29087004_2 WHERE united_states_original_airdate = "December 24, 2010" | {
"input": "CREATE TABLE table_29087004_2 (series__number INTEGER, united_states_original_airdate VARCHAR)",
"instruction": "What number episode in the series had and original United States air date of December 24, 2010?",
"output": "SELECT MAX(series__number) FROM table_29087004_2 WHERE united_states_original_airdate = \"December 24, 2010\""
} |
### INSTRUCTION
What was the score for the tie that had Shrewsbury Town as home team?
### INPUT
CREATE TABLE table_name_87 (score VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT score FROM table_name_87 WHERE home_team = "shrewsbury town" | {
"input": "CREATE TABLE table_name_87 (score VARCHAR, home_team VARCHAR)",
"instruction": "What was the score for the tie that had Shrewsbury Town as home team?",
"output": "SELECT score FROM table_name_87 WHERE home_team = \"shrewsbury town\""
} |
### INSTRUCTION
What was the nationality of five-eighth player Darren Lockyer?
### INPUT
CREATE TABLE table_name_96 (nationality VARCHAR, player VARCHAR, position VARCHAR)
### OUTPUT
SELECT nationality FROM table_name_96 WHERE player = "darren lockyer" AND position = "five-eighth" | {
"input": "CREATE TABLE table_name_96 (nationality VARCHAR, player VARCHAR, position VARCHAR)",
"instruction": "What was the nationality of five-eighth player Darren Lockyer?",
"output": "SELECT nationality FROM table_name_96 WHERE player = \"darren lockyer\" AND position = \"five-eighth\""
} |
### INSTRUCTION
Goalsagainst of 285, and a Season of 2006–07, and a Games smaller than 70 has what average points?
### INPUT
CREATE TABLE table_name_88 (points INTEGER, games VARCHAR, goalsagainst VARCHAR, season VARCHAR)
### OUTPUT
SELECT AVG(points) FROM table_name_88 WHERE goalsagainst = 285 AND season = "2006–07" AND games < 70 | {
"input": "CREATE TABLE table_name_88 (points INTEGER, games VARCHAR, goalsagainst VARCHAR, season VARCHAR)",
"instruction": "Goalsagainst of 285, and a Season of 2006–07, and a Games smaller than 70 has what average points?",
"output": "SELECT AVG(points) FROM table_name_88 WHERE goalsagainst = 285 AND season = \"2006–07\" AND games < 70"
} |
### INSTRUCTION
What is the date of the game with a result of W 13-10?
### INPUT
CREATE TABLE table_name_53 (date VARCHAR, result VARCHAR)
### OUTPUT
SELECT date FROM table_name_53 WHERE result = "w 13-10" | {
"input": "CREATE TABLE table_name_53 (date VARCHAR, result VARCHAR)",
"instruction": "What is the date of the game with a result of W 13-10?",
"output": "SELECT date FROM table_name_53 WHERE result = \"w 13-10\""
} |
### INSTRUCTION
Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615
### INPUT
CREATE TABLE table_name_62 (prom__m_ INTEGER, height__m_ VARCHAR, class VARCHAR, peak VARCHAR)
### OUTPUT
SELECT MIN(prom__m_) FROM table_name_62 WHERE class = "hewitt" AND peak = "cushat law" AND height__m_ > 615 | {
"input": "CREATE TABLE table_name_62 (prom__m_ INTEGER, height__m_ VARCHAR, class VARCHAR, peak VARCHAR)",
"instruction": "Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615",
"output": "SELECT MIN(prom__m_) FROM table_name_62 WHERE class = \"hewitt\" AND peak = \"cushat law\" AND height__m_ > 615"
} |
### INSTRUCTION
Tell me the call sign for frequency of 0 97.3 fm
### INPUT
CREATE TABLE table_name_67 (call_sign VARCHAR, frequency VARCHAR)
### OUTPUT
SELECT call_sign FROM table_name_67 WHERE frequency = "0 97.3 fm" | {
"input": "CREATE TABLE table_name_67 (call_sign VARCHAR, frequency VARCHAR)",
"instruction": "Tell me the call sign for frequency of 0 97.3 fm",
"output": "SELECT call_sign FROM table_name_67 WHERE frequency = \"0 97.3 fm\""
} |
### INSTRUCTION
What kind of Voltage has a Frequency of 2000mhz, and a Release date in q3 2008?
### INPUT
CREATE TABLE table_name_64 (voltage VARCHAR, frequency VARCHAR, release_date VARCHAR)
### OUTPUT
SELECT voltage FROM table_name_64 WHERE frequency = "2000mhz" AND release_date = "q3 2008" | {
"input": "CREATE TABLE table_name_64 (voltage VARCHAR, frequency VARCHAR, release_date VARCHAR)",
"instruction": "What kind of Voltage has a Frequency of 2000mhz, and a Release date in q3 2008?",
"output": "SELECT voltage FROM table_name_64 WHERE frequency = \"2000mhz\" AND release_date = \"q3 2008\""
} |
### INSTRUCTION
What is the highest number of votes for McCain in a county that voted 1.6% for other, 40.5% for McCain, and fewer than 256,299 votes for Obama?
### INPUT
CREATE TABLE table_name_47 (mccain_number INTEGER, obama_number VARCHAR, others_percentage VARCHAR, mccain_percentage VARCHAR)
### OUTPUT
SELECT MAX(mccain_number) FROM table_name_47 WHERE others_percentage = "1.6%" AND mccain_percentage = "40.5%" AND obama_number < 256 OFFSET 299 | {
"input": "CREATE TABLE table_name_47 (mccain_number INTEGER, obama_number VARCHAR, others_percentage VARCHAR, mccain_percentage VARCHAR)",
"instruction": "What is the highest number of votes for McCain in a county that voted 1.6% for other, 40.5% for McCain, and fewer than 256,299 votes for Obama?",
"output": "SELECT MAX(mccain_number) FROM table_name_47 WHERE others_percentage = \"1.6%\" AND mccain_percentage = \"40.5%\" AND obama_number < 256 OFFSET 299"
} |
### INSTRUCTION
How many episodes were directed by Arlene Sanford?
### INPUT
CREATE TABLE table_26429658_1 (written_by VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT COUNT(written_by) FROM table_26429658_1 WHERE directed_by = "Arlene Sanford" | {
"input": "CREATE TABLE table_26429658_1 (written_by VARCHAR, directed_by VARCHAR)",
"instruction": "How many episodes were directed by Arlene Sanford?",
"output": "SELECT COUNT(written_by) FROM table_26429658_1 WHERE directed_by = \"Arlene Sanford\""
} |
### INSTRUCTION
What team has Steinar Kaldal, a guard / forward?
### INPUT
CREATE TABLE table_name_57 (team VARCHAR, position VARCHAR, player VARCHAR)
### OUTPUT
SELECT team FROM table_name_57 WHERE position = "guard / forward" AND player = "steinar kaldal" | {
"input": "CREATE TABLE table_name_57 (team VARCHAR, position VARCHAR, player VARCHAR)",
"instruction": "What team has Steinar Kaldal, a guard / forward?",
"output": "SELECT team FROM table_name_57 WHERE position = \"guard / forward\" AND player = \"steinar kaldal\""
} |
### INSTRUCTION
Find the number of flights landing in the city of Aberdeen or Abilene.
### INPUT
CREATE TABLE Airports (AirportCode VARCHAR, city VARCHAR); CREATE TABLE Flights (DestAirport VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = "Aberdeen" OR T2.city = "Abilene" | {
"input": "CREATE TABLE Airports (AirportCode VARCHAR, city VARCHAR); CREATE TABLE Flights (DestAirport VARCHAR)",
"instruction": "Find the number of flights landing in the city of Aberdeen or Abilene.",
"output": "SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\""
} |
### INSTRUCTION
What is the average hexadecimal with a decimal less than 53, an octal less than 61, and a glyph greater than 0?
### INPUT
CREATE TABLE table_name_62 (hexadecimal INTEGER, glyph VARCHAR, decimal VARCHAR, octal VARCHAR)
### OUTPUT
SELECT AVG(hexadecimal) FROM table_name_62 WHERE decimal < 53 AND octal < 61 AND glyph > 0 | {
"input": "CREATE TABLE table_name_62 (hexadecimal INTEGER, glyph VARCHAR, decimal VARCHAR, octal VARCHAR)",
"instruction": "What is the average hexadecimal with a decimal less than 53, an octal less than 61, and a glyph greater than 0?",
"output": "SELECT AVG(hexadecimal) FROM table_name_62 WHERE decimal < 53 AND octal < 61 AND glyph > 0"
} |
### INSTRUCTION
how many times is the name Derek Smith when the round is higher than 3?
### INPUT
CREATE TABLE table_name_63 (overall VARCHAR, name VARCHAR, round VARCHAR)
### OUTPUT
SELECT COUNT(overall) FROM table_name_63 WHERE name = "derek smith" AND round > 3 | {
"input": "CREATE TABLE table_name_63 (overall VARCHAR, name VARCHAR, round VARCHAR)",
"instruction": "how many times is the name Derek Smith when the round is higher than 3?",
"output": "SELECT COUNT(overall) FROM table_name_63 WHERE name = \"derek smith\" AND round > 3"
} |
### INSTRUCTION
In how many episodes was Dave's team made up of David Walliams and Louis Walsh?
### INPUT
CREATE TABLE table_23292220_3 (episode VARCHAR, daves_team VARCHAR)
### OUTPUT
SELECT COUNT(episode) FROM table_23292220_3 WHERE daves_team = "David Walliams and Louis Walsh" | {
"input": "CREATE TABLE table_23292220_3 (episode VARCHAR, daves_team VARCHAR)",
"instruction": "In how many episodes was Dave's team made up of David Walliams and Louis Walsh?",
"output": "SELECT COUNT(episode) FROM table_23292220_3 WHERE daves_team = \"David Walliams and Louis Walsh\""
} |
### INSTRUCTION
What is Location Attendance, when Date is "December 30"?
### INPUT
CREATE TABLE table_name_63 (location_attendance VARCHAR, date VARCHAR)
### OUTPUT
SELECT location_attendance FROM table_name_63 WHERE date = "december 30" | {
"input": "CREATE TABLE table_name_63 (location_attendance VARCHAR, date VARCHAR)",
"instruction": "What is Location Attendance, when Date is \"December 30\"?",
"output": "SELECT location_attendance FROM table_name_63 WHERE date = \"december 30\""
} |
### INSTRUCTION
What are the GDP and population of the city that already served as a host more than once?
### INPUT
CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE city (city_id VARCHAR)
### OUTPUT
SELECT t1.gdp, t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY t2.Host_City HAVING COUNT(*) > 1 | {
"input": "CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE city (city_id VARCHAR)",
"instruction": "What are the GDP and population of the city that already served as a host more than once?",
"output": "SELECT t1.gdp, t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY t2.Host_City HAVING COUNT(*) > 1"
} |
### INSTRUCTION
What was the outcome from the 2009 match in the final against Chong Wei Feng?
### INPUT
CREATE TABLE table_name_44 (outcome VARCHAR, year VARCHAR, opponent_in_final VARCHAR)
### OUTPUT
SELECT outcome FROM table_name_44 WHERE year = 2009 AND opponent_in_final = "chong wei feng" | {
"input": "CREATE TABLE table_name_44 (outcome VARCHAR, year VARCHAR, opponent_in_final VARCHAR)",
"instruction": "What was the outcome from the 2009 match in the final against Chong Wei Feng?",
"output": "SELECT outcome FROM table_name_44 WHERE year = 2009 AND opponent_in_final = \"chong wei feng\""
} |
### INSTRUCTION
What date was the opponent VFL Sindelfingen?
### INPUT
CREATE TABLE table_name_98 (date VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT date FROM table_name_98 WHERE opponent = "vfl sindelfingen" | {
"input": "CREATE TABLE table_name_98 (date VARCHAR, opponent VARCHAR)",
"instruction": "What date was the opponent VFL Sindelfingen?",
"output": "SELECT date FROM table_name_98 WHERE opponent = \"vfl sindelfingen\""
} |
### INSTRUCTION
Which Position has an Event of 10,000 m, and a Competition of world championships, and a Year larger than 1993?
### INPUT
CREATE TABLE table_name_8 (position VARCHAR, year VARCHAR, event VARCHAR, competition VARCHAR)
### OUTPUT
SELECT position FROM table_name_8 WHERE event = "10,000 m" AND competition = "world championships" AND year > 1993 | {
"input": "CREATE TABLE table_name_8 (position VARCHAR, year VARCHAR, event VARCHAR, competition VARCHAR)",
"instruction": "Which Position has an Event of 10,000 m, and a Competition of world championships, and a Year larger than 1993?",
"output": "SELECT position FROM table_name_8 WHERE event = \"10,000 m\" AND competition = \"world championships\" AND year > 1993"
} |
### INSTRUCTION
What Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder?
### INPUT
CREATE TABLE table_name_86 (release_date VARCHAR, title VARCHAR, category VARCHAR, developer VARCHAR)
### OUTPUT
SELECT release_date FROM table_name_86 WHERE category = "utilities" AND developer = "microsoft" AND title = "chord finder" | {
"input": "CREATE TABLE table_name_86 (release_date VARCHAR, title VARCHAR, category VARCHAR, developer VARCHAR)",
"instruction": "What Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder?",
"output": "SELECT release_date FROM table_name_86 WHERE category = \"utilities\" AND developer = \"microsoft\" AND title = \"chord finder\""
} |
### INSTRUCTION
What is the sum number of grid where time/retired is 2:41:38.4 and laps were more than 40?
### INPUT
CREATE TABLE table_name_60 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
### OUTPUT
SELECT COUNT(grid) FROM table_name_60 WHERE time_retired = "2:41:38.4" AND laps > 40 | {
"input": "CREATE TABLE table_name_60 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)",
"instruction": "What is the sum number of grid where time/retired is 2:41:38.4 and laps were more than 40?",
"output": "SELECT COUNT(grid) FROM table_name_60 WHERE time_retired = \"2:41:38.4\" AND laps > 40"
} |
### INSTRUCTION
Find the names of users whose emails contain ‘superstar’ or ‘edu’.
### INPUT
CREATE TABLE user_profiles (name VARCHAR, email VARCHAR)
### OUTPUT
SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%' | {
"input": "CREATE TABLE user_profiles (name VARCHAR, email VARCHAR)",
"instruction": "Find the names of users whose emails contain ‘superstar’ or ‘edu’.",
"output": "SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'"
} |
### INSTRUCTION
What's the Time/Retired of 80 laps with a Grid larger than 2?
### INPUT
CREATE TABLE table_name_51 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
### OUTPUT
SELECT time_retired FROM table_name_51 WHERE laps = 80 AND grid > 2 | {
"input": "CREATE TABLE table_name_51 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)",
"instruction": "What's the Time/Retired of 80 laps with a Grid larger than 2?",
"output": "SELECT time_retired FROM table_name_51 WHERE laps = 80 AND grid > 2"
} |
### INSTRUCTION
What is the lowest cr number?
### INPUT
CREATE TABLE table_1886270_1 (cr_no INTEGER)
### OUTPUT
SELECT MIN(cr_no) FROM table_1886270_1 | {
"input": "CREATE TABLE table_1886270_1 (cr_no INTEGER)",
"instruction": "What is the lowest cr number?",
"output": "SELECT MIN(cr_no) FROM table_1886270_1"
} |
### INSTRUCTION
How many have been replaced where the appointment date is 10 December 2007 and the manner of departure is quit?
### INPUT
CREATE TABLE table_11713303_2 (replaced_by VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR)
### OUTPUT
SELECT COUNT(replaced_by) FROM table_11713303_2 WHERE date_of_appointment = "10 December 2007" AND manner_of_departure = "Quit" | {
"input": "CREATE TABLE table_11713303_2 (replaced_by VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR)",
"instruction": "How many have been replaced where the appointment date is 10 December 2007 and the manner of departure is quit?",
"output": "SELECT COUNT(replaced_by) FROM table_11713303_2 WHERE date_of_appointment = \"10 December 2007\" AND manner_of_departure = \"Quit\""
} |
### INSTRUCTION
what is the most silver when the event is 2008 summer paralympics and bronze is less than 1?
### INPUT
CREATE TABLE table_name_86 (silver INTEGER, event VARCHAR, bronze VARCHAR)
### OUTPUT
SELECT MAX(silver) FROM table_name_86 WHERE event = "2008 summer paralympics" AND bronze < 1 | {
"input": "CREATE TABLE table_name_86 (silver INTEGER, event VARCHAR, bronze VARCHAR)",
"instruction": "what is the most silver when the event is 2008 summer paralympics and bronze is less than 1?",
"output": "SELECT MAX(silver) FROM table_name_86 WHERE event = \"2008 summer paralympics\" AND bronze < 1"
} |
### INSTRUCTION
What years for the rockets did player ford, alton alton ford play?
### INPUT
CREATE TABLE table_11734041_6 (years_for_rockets VARCHAR, player VARCHAR)
### OUTPUT
SELECT years_for_rockets FROM table_11734041_6 WHERE player = "Ford, Alton Alton Ford" | {
"input": "CREATE TABLE table_11734041_6 (years_for_rockets VARCHAR, player VARCHAR)",
"instruction": "What years for the rockets did player ford, alton alton ford play?",
"output": "SELECT years_for_rockets FROM table_11734041_6 WHERE player = \"Ford, Alton Alton Ford\""
} |
### INSTRUCTION
How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n
### INPUT
CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR); CREATE TABLE Business_Rates (cmi_cross_ref_id VARCHAR)
### OUTPUT
SELECT T2.cmi_cross_ref_id, T2.master_customer_id, COUNT(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id | {
"input": "CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR); CREATE TABLE Business_Rates (cmi_cross_ref_id VARCHAR)",
"instruction": "How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n",
"output": "SELECT T2.cmi_cross_ref_id, T2.master_customer_id, COUNT(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id"
} |
### INSTRUCTION
On July 31, 2008, what are the Democrat: Vivian Davis Figures percentages?
### INPUT
CREATE TABLE table_16751596_12 (democrat VARCHAR, dates_administered VARCHAR)
### OUTPUT
SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE dates_administered = "July 31, 2008" | {
"input": "CREATE TABLE table_16751596_12 (democrat VARCHAR, dates_administered VARCHAR)",
"instruction": "On July 31, 2008, what are the Democrat: Vivian Davis Figures percentages?",
"output": "SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE dates_administered = \"July 31, 2008\""
} |
### INSTRUCTION
Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .
### INPUT
CREATE TABLE students (first_name VARCHAR, permanent_address_id VARCHAR, cell_mobile_number VARCHAR); CREATE TABLE addresses (address_id VARCHAR, country VARCHAR)
### OUTPUT
SELECT t1.first_name FROM students AS t1 JOIN addresses AS t2 ON t1.permanent_address_id = t2.address_id WHERE t2.country = 'haiti' OR t1.cell_mobile_number = '09700166582' | {
"input": "CREATE TABLE students (first_name VARCHAR, permanent_address_id VARCHAR, cell_mobile_number VARCHAR); CREATE TABLE addresses (address_id VARCHAR, country VARCHAR)",
"instruction": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .",
"output": "SELECT t1.first_name FROM students AS t1 JOIN addresses AS t2 ON t1.permanent_address_id = t2.address_id WHERE t2.country = 'haiti' OR t1.cell_mobile_number = '09700166582'"
} |
### INSTRUCTION
Find the countries that have never participated in any competition with Friendly type.
### INPUT
CREATE TABLE competition (country VARCHAR, competition_type VARCHAR)
### OUTPUT
SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly' | {
"input": "CREATE TABLE competition (country VARCHAR, competition_type VARCHAR)",
"instruction": "Find the countries that have never participated in any competition with Friendly type.",
"output": "SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly'"
} |
### INSTRUCTION
How many ranks are in liverpool with more than 3 platforms and an annual interchange less than 0.778 million?
### INPUT
CREATE TABLE table_name_91 (rank VARCHAR, annual_interchanges__millions__2011_12 VARCHAR, location VARCHAR, number_of_platforms VARCHAR)
### OUTPUT
SELECT COUNT(rank) FROM table_name_91 WHERE location = "liverpool" AND number_of_platforms > 3 AND annual_interchanges__millions__2011_12 < 0.778 | {
"input": "CREATE TABLE table_name_91 (rank VARCHAR, annual_interchanges__millions__2011_12 VARCHAR, location VARCHAR, number_of_platforms VARCHAR)",
"instruction": "How many ranks are in liverpool with more than 3 platforms and an annual interchange less than 0.778 million?",
"output": "SELECT COUNT(rank) FROM table_name_91 WHERE location = \"liverpool\" AND number_of_platforms > 3 AND annual_interchanges__millions__2011_12 < 0.778"
} |
### INSTRUCTION
What is teh stage with Daniele Bennati as the points classification and Giovanni VIsconti as the general classification?
### INPUT
CREATE TABLE table_name_36 (stage VARCHAR, points_classification VARCHAR, general_classification VARCHAR)
### OUTPUT
SELECT stage FROM table_name_36 WHERE points_classification = "daniele bennati" AND general_classification = "giovanni visconti" | {
"input": "CREATE TABLE table_name_36 (stage VARCHAR, points_classification VARCHAR, general_classification VARCHAR)",
"instruction": "What is teh stage with Daniele Bennati as the points classification and Giovanni VIsconti as the general classification?",
"output": "SELECT stage FROM table_name_36 WHERE points_classification = \"daniele bennati\" AND general_classification = \"giovanni visconti\""
} |
### INSTRUCTION
Can you tell me the Location Attendance that has the High assists of luke ridnour (10), and the Date of december 3?
### INPUT
CREATE TABLE table_name_10 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR)
### OUTPUT
SELECT location_attendance FROM table_name_10 WHERE high_assists = "luke ridnour (10)" AND date = "december 3" | {
"input": "CREATE TABLE table_name_10 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR)",
"instruction": "Can you tell me the Location Attendance that has the High assists of luke ridnour (10), and the Date of december 3?",
"output": "SELECT location_attendance FROM table_name_10 WHERE high_assists = \"luke ridnour (10)\" AND date = \"december 3\""
} |
### INSTRUCTION
Which country has a to par of +2 for Bernhard Langer?
### INPUT
CREATE TABLE table_name_3 (country VARCHAR, to_par VARCHAR, player VARCHAR)
### OUTPUT
SELECT country FROM table_name_3 WHERE to_par = "+2" AND player = "bernhard langer" | {
"input": "CREATE TABLE table_name_3 (country VARCHAR, to_par VARCHAR, player VARCHAR)",
"instruction": "Which country has a to par of +2 for Bernhard Langer?",
"output": "SELECT country FROM table_name_3 WHERE to_par = \"+2\" AND player = \"bernhard langer\""
} |
### INSTRUCTION
What is the least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows.
### INPUT
CREATE TABLE table_name_88 (Severe INTEGER, strongest_storm VARCHAR, tropical_lows VARCHAR)
### OUTPUT
SELECT MIN(Severe) AS tropical_cyclones FROM table_name_88 WHERE strongest_storm = "tiffany" AND tropical_lows > 10 | {
"input": "CREATE TABLE table_name_88 (Severe INTEGER, strongest_storm VARCHAR, tropical_lows VARCHAR)",
"instruction": "What is the least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows.",
"output": "SELECT MIN(Severe) AS tropical_cyclones FROM table_name_88 WHERE strongest_storm = \"tiffany\" AND tropical_lows > 10"
} |
### INSTRUCTION
When birkenhead is the city/town and merseyside is the county and england is the country how many ranks are there?
### INPUT
CREATE TABLE table_23248420_1 (rank VARCHAR, city_town VARCHAR, country VARCHAR, county VARCHAR)
### OUTPUT
SELECT COUNT(rank) FROM table_23248420_1 WHERE country = "England" AND county = "Merseyside" AND city_town = "Birkenhead" | {
"input": "CREATE TABLE table_23248420_1 (rank VARCHAR, city_town VARCHAR, country VARCHAR, county VARCHAR)",
"instruction": "When birkenhead is the city/town and merseyside is the county and england is the country how many ranks are there?",
"output": "SELECT COUNT(rank) FROM table_23248420_1 WHERE country = \"England\" AND county = \"Merseyside\" AND city_town = \"Birkenhead\""
} |
### INSTRUCTION
What Gershausen has a Willingshain of 243 and Reckerode of 224?
### INPUT
CREATE TABLE table_name_46 (gershausen VARCHAR, willingshain VARCHAR, reckerode_ VARCHAR)
### OUTPUT
SELECT gershausen FROM table_name_46 WHERE willingshain = "243" AND reckerode_ * * * * = "224" | {
"input": "CREATE TABLE table_name_46 (gershausen VARCHAR, willingshain VARCHAR, reckerode_ VARCHAR)",
"instruction": "What Gershausen has a Willingshain of 243 and Reckerode of 224?",
"output": "SELECT gershausen FROM table_name_46 WHERE willingshain = \"243\" AND reckerode_ * * * * = \"224\""
} |
### INSTRUCTION
Find the id and surname of the driver who participated the most number of races?
### INPUT
CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)
### OUTPUT
SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)",
"instruction": "Find the id and surname of the driver who participated the most number of races?",
"output": "SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Find the title of course whose prerequisite is course Differential Geometry.
### INPUT
CREATE TABLE prereq (course_id VARCHAR, prereq_id VARCHAR); CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR)
### OUTPUT
SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry') | {
"input": "CREATE TABLE prereq (course_id VARCHAR, prereq_id VARCHAR); CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR)",
"instruction": "Find the title of course whose prerequisite is course Differential Geometry.",
"output": "SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry')"
} |
### INSTRUCTION
What is the Score of the Chicago Black Hawks Home game with the Visiting Vancouver Canucks on November 17?
### INPUT
CREATE TABLE table_name_30 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)
### OUTPUT
SELECT score FROM table_name_30 WHERE home = "chicago black hawks" AND visitor = "vancouver canucks" AND date = "november 17" | {
"input": "CREATE TABLE table_name_30 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)",
"instruction": "What is the Score of the Chicago Black Hawks Home game with the Visiting Vancouver Canucks on November 17?",
"output": "SELECT score FROM table_name_30 WHERE home = \"chicago black hawks\" AND visitor = \"vancouver canucks\" AND date = \"november 17\""
} |
### INSTRUCTION
state the number of surface where championship is australian open and score in the final is 6–3, 4–6, 11–9
### INPUT
CREATE TABLE table_1918850_2 (surface VARCHAR, championship VARCHAR, score_in_the_final VARCHAR)
### OUTPUT
SELECT COUNT(surface) FROM table_1918850_2 WHERE championship = "Australian Open" AND score_in_the_final = "6–3, 4–6, 11–9" | {
"input": "CREATE TABLE table_1918850_2 (surface VARCHAR, championship VARCHAR, score_in_the_final VARCHAR)",
"instruction": "state the number of surface where championship is australian open and score in the final is 6–3, 4–6, 11–9",
"output": "SELECT COUNT(surface) FROM table_1918850_2 WHERE championship = \"Australian Open\" AND score_in_the_final = \"6–3, 4–6, 11–9\""
} |
### INSTRUCTION
What denominations are the stamps with themes opera, léopold simoneau and pierrette alarie?
### INPUT
CREATE TABLE table_11900773_4 (denomination VARCHAR, theme VARCHAR)
### OUTPUT
SELECT denomination FROM table_11900773_4 WHERE theme = "Opera, Léopold Simoneau and Pierrette Alarie" | {
"input": "CREATE TABLE table_11900773_4 (denomination VARCHAR, theme VARCHAR)",
"instruction": "What denominations are the stamps with themes opera, léopold simoneau and pierrette alarie?",
"output": "SELECT denomination FROM table_11900773_4 WHERE theme = \"Opera, Léopold Simoneau and Pierrette Alarie\""
} |
### INSTRUCTION
Which city is the address of the store named "FJA Filming" located in?
### INPUT
CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Stores (Address_ID VARCHAR, Store_Name VARCHAR)
### OUTPUT
SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = "FJA Filming" | {
"input": "CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Stores (Address_ID VARCHAR, Store_Name VARCHAR)",
"instruction": "Which city is the address of the store named \"FJA Filming\" located in?",
"output": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = \"FJA Filming\""
} |
### INSTRUCTION
Which constructor had a grid number bigger than 14, laps of more than 93, and rank higher than 25?
### INPUT
CREATE TABLE table_name_2 (constructor VARCHAR, rank VARCHAR, grid VARCHAR, laps VARCHAR)
### OUTPUT
SELECT constructor FROM table_name_2 WHERE grid > 14 AND laps > 93 AND rank > 25 | {
"input": "CREATE TABLE table_name_2 (constructor VARCHAR, rank VARCHAR, grid VARCHAR, laps VARCHAR)",
"instruction": "Which constructor had a grid number bigger than 14, laps of more than 93, and rank higher than 25?",
"output": "SELECT constructor FROM table_name_2 WHERE grid > 14 AND laps > 93 AND rank > 25"
} |
### INSTRUCTION
What is the total number of 1sts that Martin Schmitt had where he less than 235.7 points?
### INPUT
### OUTPUT
SELECT COUNT(*) FROM table_name_81 WHERE name = "martin schmitt" AND points < 235.7 | {
"input": "",
"instruction": "What is the total number of 1sts that Martin Schmitt had where he less than 235.7 points?",
"output": "SELECT COUNT(*) FROM table_name_81 WHERE name = \"martin schmitt\" AND points < 235.7"
} |
### INSTRUCTION
What team has rank 3?
### INPUT
CREATE TABLE table_name_73 (team VARCHAR, rank VARCHAR)
### OUTPUT
SELECT team FROM table_name_73 WHERE rank = 3 | {
"input": "CREATE TABLE table_name_73 (team VARCHAR, rank VARCHAR)",
"instruction": "What team has rank 3?",
"output": "SELECT team FROM table_name_73 WHERE rank = 3"
} |
### INSTRUCTION
What make and model of the diesel vehicle with a high floor type, bike capacity less than 3, and a quantity of 4?
### INPUT
CREATE TABLE table_name_67 (make_and_model VARCHAR, quantity VARCHAR, bicycle_capacity† VARCHAR, fuel_propulsion VARCHAR, floor_type VARCHAR)
### OUTPUT
SELECT make_and_model FROM table_name_67 WHERE fuel_propulsion = "diesel" AND floor_type = "high" AND bicycle_capacity† < 3 AND quantity = 4 | {
"input": "CREATE TABLE table_name_67 (make_and_model VARCHAR, quantity VARCHAR, bicycle_capacity† VARCHAR, fuel_propulsion VARCHAR, floor_type VARCHAR)",
"instruction": "What make and model of the diesel vehicle with a high floor type, bike capacity less than 3, and a quantity of 4?",
"output": "SELECT make_and_model FROM table_name_67 WHERE fuel_propulsion = \"diesel\" AND floor_type = \"high\" AND bicycle_capacity† < 3 AND quantity = 4"
} |
### INSTRUCTION
What are the order dates of orders with price higher than 1000?
### INPUT
CREATE TABLE Products (Product_ID VARCHAR, Product_price INTEGER); CREATE TABLE ORDER_ITEMS (Order_ID VARCHAR, Product_ID VARCHAR); CREATE TABLE Customer_Orders (Order_Date VARCHAR, Order_ID VARCHAR)
### OUTPUT
SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000 | {
"input": "CREATE TABLE Products (Product_ID VARCHAR, Product_price INTEGER); CREATE TABLE ORDER_ITEMS (Order_ID VARCHAR, Product_ID VARCHAR); CREATE TABLE Customer_Orders (Order_Date VARCHAR, Order_ID VARCHAR)",
"instruction": "What are the order dates of orders with price higher than 1000?",
"output": "SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000"
} |
### INSTRUCTION
Year of 2006-07 had what studio host?
### INPUT
CREATE TABLE table_name_10 (studio_host VARCHAR, year VARCHAR)
### OUTPUT
SELECT studio_host FROM table_name_10 WHERE year = "2006-07" | {
"input": "CREATE TABLE table_name_10 (studio_host VARCHAR, year VARCHAR)",
"instruction": "Year of 2006-07 had what studio host?",
"output": "SELECT studio_host FROM table_name_10 WHERE year = \"2006-07\""
} |
### INSTRUCTION
Which of the radio stations has the organization of ente público radio televisión madrid (eprtvm)?
### INPUT
CREATE TABLE table_23143607_1 (radio_stations VARCHAR, organization VARCHAR)
### OUTPUT
SELECT radio_stations FROM table_23143607_1 WHERE organization = "Ente Público Radio Televisión Madrid (EPRTVM)" | {
"input": "CREATE TABLE table_23143607_1 (radio_stations VARCHAR, organization VARCHAR)",
"instruction": "Which of the radio stations has the organization of ente público radio televisión madrid (eprtvm)?",
"output": "SELECT radio_stations FROM table_23143607_1 WHERE organization = \"Ente Público Radio Televisión Madrid (EPRTVM)\""
} |
### INSTRUCTION
List all car plates in the capital of Wilno since the year of 1937.
### INPUT
CREATE TABLE table_11654169_1 (car_plates__since_1937_ VARCHAR, capital VARCHAR)
### OUTPUT
SELECT car_plates__since_1937_ FROM table_11654169_1 WHERE capital = "Wilno" | {
"input": "CREATE TABLE table_11654169_1 (car_plates__since_1937_ VARCHAR, capital VARCHAR)",
"instruction": "List all car plates in the capital of Wilno since the year of 1937.",
"output": "SELECT car_plates__since_1937_ FROM table_11654169_1 WHERE capital = \"Wilno\""
} |
### INSTRUCTION
How many rain figures are provided for sunlight hours in 1966?
### INPUT
CREATE TABLE table_12837_1 (rain VARCHAR, sunlight_hours VARCHAR)
### OUTPUT
SELECT COUNT(rain) FROM table_12837_1 WHERE sunlight_hours = 1966 | {
"input": "CREATE TABLE table_12837_1 (rain VARCHAR, sunlight_hours VARCHAR)",
"instruction": "How many rain figures are provided for sunlight hours in 1966?",
"output": "SELECT COUNT(rain) FROM table_12837_1 WHERE sunlight_hours = 1966"
} |
### INSTRUCTION
How may lecturers are there in the case when there are more than 8 assistant professors, fewer than 35 associate professors, more than 14 professors and total of more than 81?
### INPUT
CREATE TABLE table_name_71 (lecturers VARCHAR, total VARCHAR, associate_professors VARCHAR, assistant_professors VARCHAR, professors VARCHAR)
### OUTPUT
SELECT COUNT(lecturers) FROM table_name_71 WHERE assistant_professors > 8 AND professors > 14 AND associate_professors < 35 AND total > 81 | {
"input": "CREATE TABLE table_name_71 (lecturers VARCHAR, total VARCHAR, associate_professors VARCHAR, assistant_professors VARCHAR, professors VARCHAR)",
"instruction": "How may lecturers are there in the case when there are more than 8 assistant professors, fewer than 35 associate professors, more than 14 professors and total of more than 81?",
"output": "SELECT COUNT(lecturers) FROM table_name_71 WHERE assistant_professors > 8 AND professors > 14 AND associate_professors < 35 AND total > 81"
} |
### INSTRUCTION
Show the names of members and the dates of performances they attended in descending order of attendance of the performances.
### INPUT
CREATE TABLE performance (Date VARCHAR, Performance_ID VARCHAR, Attendance VARCHAR); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR)
### OUTPUT
SELECT T2.Name, T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T3.Attendance DESC | {
"input": "CREATE TABLE performance (Date VARCHAR, Performance_ID VARCHAR, Attendance VARCHAR); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR)",
"instruction": "Show the names of members and the dates of performances they attended in descending order of attendance of the performances.",
"output": "SELECT T2.Name, T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T3.Attendance DESC"
} |
### INSTRUCTION
What is the Total with the Event 2004 Athens and Gold less than 20?
### INPUT
CREATE TABLE table_name_21 (total INTEGER, event VARCHAR, gold VARCHAR)
### OUTPUT
SELECT SUM(total) FROM table_name_21 WHERE event = "2004 athens" AND gold < 20 | {
"input": "CREATE TABLE table_name_21 (total INTEGER, event VARCHAR, gold VARCHAR)",
"instruction": "What is the Total with the Event 2004 Athens and Gold less than 20?",
"output": "SELECT SUM(total) FROM table_name_21 WHERE event = \"2004 athens\" AND gold < 20"
} |
### INSTRUCTION
If the player is Corey Pavin when he had a To par of over 7, what was the sum of his totals?
### INPUT
CREATE TABLE table_name_77 (total INTEGER, to_par VARCHAR, player VARCHAR)
### OUTPUT
SELECT SUM(total) FROM table_name_77 WHERE to_par > 7 AND player = "corey pavin" | {
"input": "CREATE TABLE table_name_77 (total INTEGER, to_par VARCHAR, player VARCHAR)",
"instruction": "If the player is Corey Pavin when he had a To par of over 7, what was the sum of his totals?",
"output": "SELECT SUM(total) FROM table_name_77 WHERE to_par > 7 AND player = \"corey pavin\""
} |
### INSTRUCTION
What was the name for the race in the Miramas circuit?
### INPUT
CREATE TABLE table_name_31 (name VARCHAR, circuit VARCHAR)
### OUTPUT
SELECT name FROM table_name_31 WHERE circuit = "miramas" | {
"input": "CREATE TABLE table_name_31 (name VARCHAR, circuit VARCHAR)",
"instruction": "What was the name for the race in the Miramas circuit?",
"output": "SELECT name FROM table_name_31 WHERE circuit = \"miramas\""
} |
### INSTRUCTION
What is the id and detail of the vehicle used in lessons for most of the times?
### INPUT
CREATE TABLE Lessons (vehicle_id VARCHAR); CREATE TABLE Vehicles (vehicle_id VARCHAR, vehicle_details VARCHAR)
### OUTPUT
SELECT T1.vehicle_id, T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Lessons (vehicle_id VARCHAR); CREATE TABLE Vehicles (vehicle_id VARCHAR, vehicle_details VARCHAR)",
"instruction": "What is the id and detail of the vehicle used in lessons for most of the times?",
"output": "SELECT T1.vehicle_id, T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
what is the no when the distance is 4168km?
### INPUT
CREATE TABLE table_26745820_1 (no VARCHAR, distance VARCHAR)
### OUTPUT
SELECT no FROM table_26745820_1 WHERE distance = "4168km" | {
"input": "CREATE TABLE table_26745820_1 (no VARCHAR, distance VARCHAR)",
"instruction": "what is the no when the distance is 4168km?",
"output": "SELECT no FROM table_26745820_1 WHERE distance = \"4168km\""
} |
### INSTRUCTION
Return the names of songs for which format is mp3 and resolution is below 1000.
### INPUT
CREATE TABLE song (song_name VARCHAR, resolution INTEGER); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE files (f_id VARCHAR, formats VARCHAR)
### OUTPUT
SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" INTERSECT SELECT song_name FROM song WHERE resolution < 1000 | {
"input": "CREATE TABLE song (song_name VARCHAR, resolution INTEGER); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE files (f_id VARCHAR, formats VARCHAR)",
"instruction": "Return the names of songs for which format is mp3 and resolution is below 1000.",
"output": "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = \"mp3\" INTERSECT SELECT song_name FROM song WHERE resolution < 1000"
} |
### INSTRUCTION
What venue had south melbourne as the home team?
### INPUT
CREATE TABLE table_name_90 (venue VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT venue FROM table_name_90 WHERE home_team = "south melbourne" | {
"input": "CREATE TABLE table_name_90 (venue VARCHAR, home_team VARCHAR)",
"instruction": "What venue had south melbourne as the home team?",
"output": "SELECT venue FROM table_name_90 WHERE home_team = \"south melbourne\""
} |
### INSTRUCTION
What is the name of the player from club Circolo Nautico Posillipo and a position of D?
### INPUT
CREATE TABLE table_name_95 (name VARCHAR, pos VARCHAR, club VARCHAR)
### OUTPUT
SELECT name FROM table_name_95 WHERE pos = "d" AND club = "circolo nautico posillipo" | {
"input": "CREATE TABLE table_name_95 (name VARCHAR, pos VARCHAR, club VARCHAR)",
"instruction": "What is the name of the player from club Circolo Nautico Posillipo and a position of D?",
"output": "SELECT name FROM table_name_95 WHERE pos = \"d\" AND club = \"circolo nautico posillipo\""
} |
### INSTRUCTION
Why did the change happen in the state where the formal installation happen on February 14, 1859?
### INPUT
CREATE TABLE table_1802760_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR)
### OUTPUT
SELECT reason_for_change FROM table_1802760_3 WHERE date_of_successors_formal_installation = "February 14, 1859" | {
"input": "CREATE TABLE table_1802760_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR)",
"instruction": "Why did the change happen in the state where the formal installation happen on February 14, 1859?",
"output": "SELECT reason_for_change FROM table_1802760_3 WHERE date_of_successors_formal_installation = \"February 14, 1859\""
} |
### INSTRUCTION
How many years did he have an average finish of 29.2?
### INPUT
CREATE TABLE table_1637041_2 (winnings VARCHAR, avg_finish VARCHAR)
### OUTPUT
SELECT COUNT(winnings) FROM table_1637041_2 WHERE avg_finish = "29.2" | {
"input": "CREATE TABLE table_1637041_2 (winnings VARCHAR, avg_finish VARCHAR)",
"instruction": "How many years did he have an average finish of 29.2?",
"output": "SELECT COUNT(winnings) FROM table_1637041_2 WHERE avg_finish = \"29.2\""
} |
### INSTRUCTION
What's the nationality of the player coming from Edmonton Oil Kings (WCHL)?
### INPUT
CREATE TABLE table_1965650_4 (nationality VARCHAR, college_junior_club_team VARCHAR)
### OUTPUT
SELECT nationality FROM table_1965650_4 WHERE college_junior_club_team = "Edmonton Oil Kings (WCHL)" | {
"input": "CREATE TABLE table_1965650_4 (nationality VARCHAR, college_junior_club_team VARCHAR)",
"instruction": "What's the nationality of the player coming from Edmonton Oil Kings (WCHL)?",
"output": "SELECT nationality FROM table_1965650_4 WHERE college_junior_club_team = \"Edmonton Oil Kings (WCHL)\""
} |
### INSTRUCTION
size (steps) that has a size (cents) of 58.54, and a just ratio of 28:27, and a just (cents) larger than 62.96 is what total number?
### INPUT
CREATE TABLE table_name_44 (size__steps_ VARCHAR, just__cents_ VARCHAR, size__cents_ VARCHAR, just_ratio VARCHAR)
### OUTPUT
SELECT COUNT(size__steps_) FROM table_name_44 WHERE size__cents_ = 58.54 AND just_ratio = "28:27" AND just__cents_ > 62.96 | {
"input": "CREATE TABLE table_name_44 (size__steps_ VARCHAR, just__cents_ VARCHAR, size__cents_ VARCHAR, just_ratio VARCHAR)",
"instruction": "size (steps) that has a size (cents) of 58.54, and a just ratio of 28:27, and a just (cents) larger than 62.96 is what total number?",
"output": "SELECT COUNT(size__steps_) FROM table_name_44 WHERE size__cents_ = 58.54 AND just_ratio = \"28:27\" AND just__cents_ > 62.96"
} |
### INSTRUCTION
Tell me the declination with apparent magnitude more than 10.4 and NGC number of 5112
### INPUT
CREATE TABLE table_name_12 (declination___j2000__ VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR)
### OUTPUT
SELECT declination___j2000__ FROM table_name_12 WHERE apparent_magnitude > 10.4 AND ngc_number = 5112 | {
"input": "CREATE TABLE table_name_12 (declination___j2000__ VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR)",
"instruction": "Tell me the declination with apparent magnitude more than 10.4 and NGC number of 5112",
"output": "SELECT declination___j2000__ FROM table_name_12 WHERE apparent_magnitude > 10.4 AND ngc_number = 5112"
} |
### INSTRUCTION
What is the council area for the Larkhall urban sub-area?
### INPUT
CREATE TABLE table_name_51 (council_area VARCHAR, urban_sub_area VARCHAR)
### OUTPUT
SELECT council_area FROM table_name_51 WHERE urban_sub_area = "larkhall" | {
"input": "CREATE TABLE table_name_51 (council_area VARCHAR, urban_sub_area VARCHAR)",
"instruction": "What is the council area for the Larkhall urban sub-area?",
"output": "SELECT council_area FROM table_name_51 WHERE urban_sub_area = \"larkhall\""
} |
### INSTRUCTION
Show all paragraph texts for the document "Customer reviews".
### INPUT
CREATE TABLE Paragraphs (paragraph_text VARCHAR, document_id VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR)
### OUTPUT
SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = "Customer reviews" | {
"input": "CREATE TABLE Paragraphs (paragraph_text VARCHAR, document_id VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR)",
"instruction": "Show all paragraph texts for the document \"Customer reviews\".",
"output": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\""
} |
### INSTRUCTION
What is the Latitude of the Alajen Vallis named after 1997?
### INPUT
CREATE TABLE table_name_86 (latitude VARCHAR, year_named VARCHAR, name VARCHAR)
### OUTPUT
SELECT latitude FROM table_name_86 WHERE year_named > 1997 AND name = "alajen vallis" | {
"input": "CREATE TABLE table_name_86 (latitude VARCHAR, year_named VARCHAR, name VARCHAR)",
"instruction": "What is the Latitude of the Alajen Vallis named after 1997?",
"output": "SELECT latitude FROM table_name_86 WHERE year_named > 1997 AND name = \"alajen vallis\""
} |
### INSTRUCTION
In language where Thursday is برس وار bres'var, what is Sunday?
### INPUT
CREATE TABLE table_1277350_3 (sunday_surya__the_sun_ VARCHAR, thursday_guru__jupiter_ VARCHAR)
### OUTPUT
SELECT sunday_surya__the_sun_ FROM table_1277350_3 WHERE thursday_guru__jupiter_ = "برس وار Bres'var" | {
"input": "CREATE TABLE table_1277350_3 (sunday_surya__the_sun_ VARCHAR, thursday_guru__jupiter_ VARCHAR)",
"instruction": "In language where Thursday is برس وار bres'var, what is Sunday?",
"output": "SELECT sunday_surya__the_sun_ FROM table_1277350_3 WHERE thursday_guru__jupiter_ = \"برس وار Bres'var\""
} |
### INSTRUCTION
Name the attribute for mutation and domcharacterdatamodified
### INPUT
CREATE TABLE table_name_81 (attribute VARCHAR, category VARCHAR, type VARCHAR)
### OUTPUT
SELECT attribute FROM table_name_81 WHERE category = "mutation" AND type = "domcharacterdatamodified" | {
"input": "CREATE TABLE table_name_81 (attribute VARCHAR, category VARCHAR, type VARCHAR)",
"instruction": "Name the attribute for mutation and domcharacterdatamodified",
"output": "SELECT attribute FROM table_name_81 WHERE category = \"mutation\" AND type = \"domcharacterdatamodified\""
} |
### INSTRUCTION
List the name of all projects that are operated longer than the average working hours of all projects.
### INPUT
CREATE TABLE projects (name VARCHAR, hours INTEGER)
### OUTPUT
SELECT name FROM projects WHERE hours > (SELECT AVG(hours) FROM projects) | {
"input": "CREATE TABLE projects (name VARCHAR, hours INTEGER)",
"instruction": "List the name of all projects that are operated longer than the average working hours of all projects.",
"output": "SELECT name FROM projects WHERE hours > (SELECT AVG(hours) FROM projects)"
} |
### INSTRUCTION
What are the name of the countries where there is not a single car maker?
### INPUT
CREATE TABLE countries (CountryName VARCHAR, countryId VARCHAR); CREATE TABLE countries (CountryName VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR)
### OUTPUT
SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country | {
"input": "CREATE TABLE countries (CountryName VARCHAR, countryId VARCHAR); CREATE TABLE countries (CountryName VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR)",
"instruction": "What are the name of the countries where there is not a single car maker?",
"output": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country"
} |
### INSTRUCTION
Tell me the average year for rank more than 3 and 28 floors
### INPUT
CREATE TABLE table_name_84 (year INTEGER, rank VARCHAR, floors VARCHAR)
### OUTPUT
SELECT AVG(year) FROM table_name_84 WHERE rank > 3 AND floors = 28 | {
"input": "CREATE TABLE table_name_84 (year INTEGER, rank VARCHAR, floors VARCHAR)",
"instruction": "Tell me the average year for rank more than 3 and 28 floors",
"output": "SELECT AVG(year) FROM table_name_84 WHERE rank > 3 AND floors = 28"
} |
### INSTRUCTION
What team acquired as a rookie draft in the position of guard Dennis Miranda?
### INPUT
CREATE TABLE table_name_84 (school_club_team VARCHAR, name VARCHAR, acquisition_via VARCHAR, position VARCHAR)
### OUTPUT
SELECT school_club_team FROM table_name_84 WHERE acquisition_via = "rookie draft" AND position = "guard" AND name = "dennis miranda" | {
"input": "CREATE TABLE table_name_84 (school_club_team VARCHAR, name VARCHAR, acquisition_via VARCHAR, position VARCHAR)",
"instruction": "What team acquired as a rookie draft in the position of guard Dennis Miranda?",
"output": "SELECT school_club_team FROM table_name_84 WHERE acquisition_via = \"rookie draft\" AND position = \"guard\" AND name = \"dennis miranda\""
} |
### INSTRUCTION
What is the Number of Households that have a Per Capita Income of $21,345?
### INPUT
CREATE TABLE table_name_59 (number_of_households INTEGER, per_capita_income VARCHAR)
### OUTPUT
SELECT AVG(number_of_households) FROM table_name_59 WHERE per_capita_income = "$21,345" | {
"input": "CREATE TABLE table_name_59 (number_of_households INTEGER, per_capita_income VARCHAR)",
"instruction": "What is the Number of Households that have a Per Capita Income of $21,345?",
"output": "SELECT AVG(number_of_households) FROM table_name_59 WHERE per_capita_income = \"$21,345\""
} |
### INSTRUCTION
Which best 3-year period has a best 15-year period of smyslov; kasparov, and a Position of 5?
### INPUT
CREATE TABLE table_name_61 (best_3_year_period VARCHAR, best_15_year_period VARCHAR, position VARCHAR)
### OUTPUT
SELECT best_3_year_period FROM table_name_61 WHERE best_15_year_period = "smyslov; kasparov" AND position = 5 | {
"input": "CREATE TABLE table_name_61 (best_3_year_period VARCHAR, best_15_year_period VARCHAR, position VARCHAR)",
"instruction": "Which best 3-year period has a best 15-year period of smyslov; kasparov, and a Position of 5?",
"output": "SELECT best_3_year_period FROM table_name_61 WHERE best_15_year_period = \"smyslov; kasparov\" AND position = 5"
} |
### INSTRUCTION
What is the province where the age of the contestant is 27?
### INPUT
CREATE TABLE table_18349697_1 (province VARCHAR, _community VARCHAR, age VARCHAR)
### OUTPUT
SELECT province, _community FROM table_18349697_1 WHERE age = 27 | {
"input": "CREATE TABLE table_18349697_1 (province VARCHAR, _community VARCHAR, age VARCHAR)",
"instruction": "What is the province where the age of the contestant is 27?",
"output": "SELECT province, _community FROM table_18349697_1 WHERE age = 27"
} |
### INSTRUCTION
What are the names of the tourist attractions that have parking or shopping as their feature details?
### INPUT
CREATE TABLE Tourist_Attraction_Features (tourist_attraction_id VARCHAR, Feature_ID VARCHAR); CREATE TABLE Features (Feature_ID VARCHAR, feature_Details VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, tourist_attraction_id VARCHAR)
### OUTPUT
SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'shopping' | {
"input": "CREATE TABLE Tourist_Attraction_Features (tourist_attraction_id VARCHAR, Feature_ID VARCHAR); CREATE TABLE Features (Feature_ID VARCHAR, feature_Details VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, tourist_attraction_id VARCHAR)",
"instruction": "What are the names of the tourist attractions that have parking or shopping as their feature details?",
"output": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'shopping'"
} |
### INSTRUCTION
What's the total of rank 8 when Silver medals are 0 and gold is more than 1?
### INPUT
CREATE TABLE table_name_2 (total VARCHAR, gold VARCHAR, silver VARCHAR, rank VARCHAR)
### OUTPUT
SELECT COUNT(total) FROM table_name_2 WHERE silver = 0 AND rank = 8 AND gold > 1 | {
"input": "CREATE TABLE table_name_2 (total VARCHAR, gold VARCHAR, silver VARCHAR, rank VARCHAR)",
"instruction": "What's the total of rank 8 when Silver medals are 0 and gold is more than 1?",
"output": "SELECT COUNT(total) FROM table_name_2 WHERE silver = 0 AND rank = 8 AND gold > 1"
} |
### INSTRUCTION
Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.
### INPUT
CREATE TABLE Owners (owner_id VARCHAR, last_name VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR, dog_id VARCHAR); CREATE TABLE Treatments (dog_id VARCHAR)
### OUTPUT
SELECT T1.owner_id, T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Owners (owner_id VARCHAR, last_name VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR, dog_id VARCHAR); CREATE TABLE Treatments (dog_id VARCHAR)",
"instruction": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.",
"output": "SELECT T1.owner_id, T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Find the minimum grade of students who have no friends.
### INPUT
CREATE TABLE Highschooler (id VARCHAR); CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (grade INTEGER, id VARCHAR)
### OUTPUT
SELECT MIN(grade) FROM Highschooler WHERE NOT id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id) | {
"input": "CREATE TABLE Highschooler (id VARCHAR); CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (grade INTEGER, id VARCHAR)",
"instruction": "Find the minimum grade of students who have no friends.",
"output": "SELECT MIN(grade) FROM Highschooler WHERE NOT id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)"
} |
### INSTRUCTION
Tell me the most Att with a long of 27 with yards longer than 27
### INPUT
CREATE TABLE table_name_24 (att INTEGER, long VARCHAR, yards VARCHAR)
### OUTPUT
SELECT MAX(att) FROM table_name_24 WHERE long = 27 AND yards > 27 | {
"input": "CREATE TABLE table_name_24 (att INTEGER, long VARCHAR, yards VARCHAR)",
"instruction": "Tell me the most Att with a long of 27 with yards longer than 27",
"output": "SELECT MAX(att) FROM table_name_24 WHERE long = 27 AND yards > 27"
} |
### INSTRUCTION
What is ASTC Member, when State is Arkansas, when AAM Member is No, and when AAM Accredited is Yes?
### INPUT
CREATE TABLE table_name_39 (astc_member VARCHAR, aam_accredited VARCHAR, state VARCHAR, aam_member VARCHAR)
### OUTPUT
SELECT astc_member FROM table_name_39 WHERE state = "arkansas" AND aam_member = "no" AND aam_accredited = "yes" | {
"input": "CREATE TABLE table_name_39 (astc_member VARCHAR, aam_accredited VARCHAR, state VARCHAR, aam_member VARCHAR)",
"instruction": "What is ASTC Member, when State is Arkansas, when AAM Member is No, and when AAM Accredited is Yes?",
"output": "SELECT astc_member FROM table_name_39 WHERE state = \"arkansas\" AND aam_member = \"no\" AND aam_accredited = \"yes\""
} |
### INSTRUCTION
Which driver won the Phillip Island Grand Prix Circuit?
### INPUT
CREATE TABLE table_name_61 (winner VARCHAR, circuit VARCHAR)
### OUTPUT
SELECT winner FROM table_name_61 WHERE circuit = "phillip island grand prix circuit" | {
"input": "CREATE TABLE table_name_61 (winner VARCHAR, circuit VARCHAR)",
"instruction": "Which driver won the Phillip Island Grand Prix Circuit?",
"output": "SELECT winner FROM table_name_61 WHERE circuit = \"phillip island grand prix circuit\""
} |
### INSTRUCTION
What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?
### INPUT
CREATE TABLE table_name_41 (total_apps INTEGER, fa_cup_apps VARCHAR, total_goals VARCHAR)
### OUTPUT
SELECT MAX(total_apps) FROM table_name_41 WHERE fa_cup_apps = 26 AND total_goals > 9 | {
"input": "CREATE TABLE table_name_41 (total_apps INTEGER, fa_cup_apps VARCHAR, total_goals VARCHAR)",
"instruction": "What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?",
"output": "SELECT MAX(total_apps) FROM table_name_41 WHERE fa_cup_apps = 26 AND total_goals > 9"
} |
### INSTRUCTION
What was the crowd size for the game where Footscray was the away team?
### INPUT
CREATE TABLE table_name_21 (crowd VARCHAR, away_team VARCHAR)
### OUTPUT
SELECT COUNT(crowd) FROM table_name_21 WHERE away_team = "footscray" | {
"input": "CREATE TABLE table_name_21 (crowd VARCHAR, away_team VARCHAR)",
"instruction": "What was the crowd size for the game where Footscray was the away team?",
"output": "SELECT COUNT(crowd) FROM table_name_21 WHERE away_team = \"footscray\""
} |
### INSTRUCTION
What are the wines that have prices lower than 50 and have appelations in Monterey county?
### INPUT
CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR); CREATE TABLE WINE (Name VARCHAR, Appelation VARCHAR, price VARCHAR)
### OUTPUT
SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Monterey" AND T2.price < 50 | {
"input": "CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR); CREATE TABLE WINE (Name VARCHAR, Appelation VARCHAR, price VARCHAR)",
"instruction": "What are the wines that have prices lower than 50 and have appelations in Monterey county?",
"output": "SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = \"Monterey\" AND T2.price < 50"
} |
### INSTRUCTION
What shows for 1992 when 1988 is A, at the Australian Open?
### INPUT
CREATE TABLE table_name_43 (tournament VARCHAR)
### OUTPUT
SELECT 1992 FROM table_name_43 WHERE 1988 = "a" AND tournament = "australian open" | {
"input": "CREATE TABLE table_name_43 (tournament VARCHAR)",
"instruction": "What shows for 1992 when 1988 is A, at the Australian Open?",
"output": "SELECT 1992 FROM table_name_43 WHERE 1988 = \"a\" AND tournament = \"australian open\""
} |
### INSTRUCTION
Show the name of the customer who has the most orders.
### INPUT
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)
### OUTPUT
SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)",
"instruction": "Show the name of the customer who has the most orders.",
"output": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What are the years that have a duration of 15 years and giulia poggi as the character?
### INPUT
CREATE TABLE table_name_33 (years VARCHAR, duration VARCHAR, character VARCHAR)
### OUTPUT
SELECT years FROM table_name_33 WHERE duration = "15 years" AND character = "giulia poggi" | {
"input": "CREATE TABLE table_name_33 (years VARCHAR, duration VARCHAR, character VARCHAR)",
"instruction": "What are the years that have a duration of 15 years and giulia poggi as the character?",
"output": "SELECT years FROM table_name_33 WHERE duration = \"15 years\" AND character = \"giulia poggi\""
} |
### INSTRUCTION
What is the home team of the match on 21 September 2008 with an attendance less than 2248 and a 2:0 score?
### INPUT
CREATE TABLE table_name_60 (home VARCHAR, date VARCHAR, attendance VARCHAR, score VARCHAR)
### OUTPUT
SELECT home FROM table_name_60 WHERE attendance < 2248 AND score = "2:0" AND date = "21 september 2008" | {
"input": "CREATE TABLE table_name_60 (home VARCHAR, date VARCHAR, attendance VARCHAR, score VARCHAR)",
"instruction": "What is the home team of the match on 21 September 2008 with an attendance less than 2248 and a 2:0 score?",
"output": "SELECT home FROM table_name_60 WHERE attendance < 2248 AND score = \"2:0\" AND date = \"21 september 2008\""
} |
### INSTRUCTION
What kind of sockets does a 2100MHz Athlon X2 QL-64 use?
### INPUT
CREATE TABLE table_27277284_27 (socket VARCHAR, frequency VARCHAR, model_number VARCHAR)
### OUTPUT
SELECT socket FROM table_27277284_27 WHERE frequency = "2100MHz" AND model_number = "Athlon X2 QL-64" | {
"input": "CREATE TABLE table_27277284_27 (socket VARCHAR, frequency VARCHAR, model_number VARCHAR)",
"instruction": "What kind of sockets does a 2100MHz Athlon X2 QL-64 use?",
"output": "SELECT socket FROM table_27277284_27 WHERE frequency = \"2100MHz\" AND model_number = \"Athlon X2 QL-64\""
} |
### INSTRUCTION
How many episodes are directed by Jamie Payne?
### INPUT
CREATE TABLE table_29574579_1 (episode VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT COUNT(episode) FROM table_29574579_1 WHERE directed_by = "Jamie Payne" | {
"input": "CREATE TABLE table_29574579_1 (episode VARCHAR, directed_by VARCHAR)",
"instruction": "How many episodes are directed by Jamie Payne?",
"output": "SELECT COUNT(episode) FROM table_29574579_1 WHERE directed_by = \"Jamie Payne\""
} |
### INSTRUCTION
Who is the highest ranked player that has earnings below 395,386?
### INPUT
CREATE TABLE table_name_70 (rank INTEGER, earnings__$__ INTEGER)
### OUTPUT
SELECT MAX(rank) FROM table_name_70 WHERE earnings__$__ < 395 OFFSET 386 | {
"input": "CREATE TABLE table_name_70 (rank INTEGER, earnings__$__ INTEGER)",
"instruction": "Who is the highest ranked player that has earnings below 395,386?",
"output": "SELECT MAX(rank) FROM table_name_70 WHERE earnings__$__ < 395 OFFSET 386"
} |
### INSTRUCTION
Who are all winning drivers if winning team is Carlin Motorsport and circuit is Croft?
### INPUT
CREATE TABLE table_26137666_3 (winning_driver VARCHAR, winning_team VARCHAR, circuit VARCHAR)
### OUTPUT
SELECT winning_driver FROM table_26137666_3 WHERE winning_team = "Carlin Motorsport" AND circuit = "Croft" | {
"input": "CREATE TABLE table_26137666_3 (winning_driver VARCHAR, winning_team VARCHAR, circuit VARCHAR)",
"instruction": "Who are all winning drivers if winning team is Carlin Motorsport and circuit is Croft?",
"output": "SELECT winning_driver FROM table_26137666_3 WHERE winning_team = \"Carlin Motorsport\" AND circuit = \"Croft\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.