text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What is the Entered service date of the T413?
### INPUT
CREATE TABLE table_name_32 (entered_service VARCHAR, delivered_as VARCHAR)
### OUTPUT
SELECT entered_service FROM table_name_32 WHERE delivered_as = "t413" | {
"input": "CREATE TABLE table_name_32 (entered_service VARCHAR, delivered_as VARCHAR)",
"instruction": "What is the Entered service date of the T413?",
"output": "SELECT entered_service FROM table_name_32 WHERE delivered_as = \"t413\""
} |
### INSTRUCTION
what is the location when the year is before 1979 and the result is 19-17?
### INPUT
CREATE TABLE table_name_68 (location VARCHAR, year VARCHAR, result VARCHAR)
### OUTPUT
SELECT location FROM table_name_68 WHERE year < 1979 AND result = "19-17" | {
"input": "CREATE TABLE table_name_68 (location VARCHAR, year VARCHAR, result VARCHAR)",
"instruction": "what is the location when the year is before 1979 and the result is 19-17?",
"output": "SELECT location FROM table_name_68 WHERE year < 1979 AND result = \"19-17\""
} |
### INSTRUCTION
Who was the final opponent in the tournament in Taipei, Taiwan on November 14, 1994?
### INPUT
CREATE TABLE table_name_93 (opponent_in_the_final VARCHAR, tournament VARCHAR, date VARCHAR)
### OUTPUT
SELECT opponent_in_the_final FROM table_name_93 WHERE tournament = "taipei, taiwan" AND date = "november 14, 1994" | {
"input": "CREATE TABLE table_name_93 (opponent_in_the_final VARCHAR, tournament VARCHAR, date VARCHAR)",
"instruction": "Who was the final opponent in the tournament in Taipei, Taiwan on November 14, 1994?",
"output": "SELECT opponent_in_the_final FROM table_name_93 WHERE tournament = \"taipei, taiwan\" AND date = \"november 14, 1994\""
} |
### INSTRUCTION
What Opponent has a Site of war memorial stadium • little rock, ar, and a Result of l6–7?
### INPUT
CREATE TABLE table_name_63 (opponent VARCHAR, site VARCHAR, result VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_63 WHERE site = "war memorial stadium • little rock, ar" AND result = "l6–7" | {
"input": "CREATE TABLE table_name_63 (opponent VARCHAR, site VARCHAR, result VARCHAR)",
"instruction": "What Opponent has a Site of war memorial stadium • little rock, ar, and a Result of l6–7?",
"output": "SELECT opponent FROM table_name_63 WHERE site = \"war memorial stadium • little rock, ar\" AND result = \"l6–7\""
} |
### INSTRUCTION
What is Ludo Peeters' team classification?
### INPUT
CREATE TABLE table_name_74 (team_classification VARCHAR, winner VARCHAR)
### OUTPUT
SELECT team_classification FROM table_name_74 WHERE winner = "ludo peeters" | {
"input": "CREATE TABLE table_name_74 (team_classification VARCHAR, winner VARCHAR)",
"instruction": "What is Ludo Peeters' team classification?",
"output": "SELECT team_classification FROM table_name_74 WHERE winner = \"ludo peeters\""
} |
### INSTRUCTION
Which model has a sensor sized 48x36 mm, pixels of 6726 x 5040, and a 33 mp resolution?
### INPUT
CREATE TABLE table_name_87 (model VARCHAR, resolution VARCHAR, sensor_size VARCHAR, active_pixels VARCHAR)
### OUTPUT
SELECT model FROM table_name_87 WHERE sensor_size = "48x36 mm" AND active_pixels = "6726 x 5040" AND resolution = "33 mp" | {
"input": "CREATE TABLE table_name_87 (model VARCHAR, resolution VARCHAR, sensor_size VARCHAR, active_pixels VARCHAR)",
"instruction": "Which model has a sensor sized 48x36 mm, pixels of 6726 x 5040, and a 33 mp resolution?",
"output": "SELECT model FROM table_name_87 WHERE sensor_size = \"48x36 mm\" AND active_pixels = \"6726 x 5040\" AND resolution = \"33 mp\""
} |
### INSTRUCTION
What is the lowest total when the rank is 14 and the gold medals is larger than 0?
### INPUT
CREATE TABLE table_name_34 (total INTEGER, rank VARCHAR, gold VARCHAR)
### OUTPUT
SELECT MIN(total) FROM table_name_34 WHERE rank = "14" AND gold > 0 | {
"input": "CREATE TABLE table_name_34 (total INTEGER, rank VARCHAR, gold VARCHAR)",
"instruction": "What is the lowest total when the rank is 14 and the gold medals is larger than 0?",
"output": "SELECT MIN(total) FROM table_name_34 WHERE rank = \"14\" AND gold > 0"
} |
### INSTRUCTION
Which Rank is the highest one that has a Change smaller than 44, and a Centre of buenos aires, and a Rating larger than 628?
### INPUT
CREATE TABLE table_name_2 (rank INTEGER, rating VARCHAR, change VARCHAR, centre VARCHAR)
### OUTPUT
SELECT MAX(rank) FROM table_name_2 WHERE change < 44 AND centre = "buenos aires" AND rating > 628 | {
"input": "CREATE TABLE table_name_2 (rank INTEGER, rating VARCHAR, change VARCHAR, centre VARCHAR)",
"instruction": "Which Rank is the highest one that has a Change smaller than 44, and a Centre of buenos aires, and a Rating larger than 628?",
"output": "SELECT MAX(rank) FROM table_name_2 WHERE change < 44 AND centre = \"buenos aires\" AND rating > 628"
} |
### INSTRUCTION
What was the earliest year that had a start of Saint-Gaudens and a stage smaller than 15?
### INPUT
CREATE TABLE table_name_56 (year INTEGER, start VARCHAR, stage VARCHAR)
### OUTPUT
SELECT MIN(year) FROM table_name_56 WHERE start = "saint-gaudens" AND stage < 15 | {
"input": "CREATE TABLE table_name_56 (year INTEGER, start VARCHAR, stage VARCHAR)",
"instruction": "What was the earliest year that had a start of Saint-Gaudens and a stage smaller than 15?",
"output": "SELECT MIN(year) FROM table_name_56 WHERE start = \"saint-gaudens\" AND stage < 15"
} |
### INSTRUCTION
Name the least age for distrito nacional
### INPUT
CREATE TABLE table_26301697_2 (age INTEGER, represents VARCHAR)
### OUTPUT
SELECT MIN(age) FROM table_26301697_2 WHERE represents = "Distrito Nacional" | {
"input": "CREATE TABLE table_26301697_2 (age INTEGER, represents VARCHAR)",
"instruction": "Name the least age for distrito nacional",
"output": "SELECT MIN(age) FROM table_26301697_2 WHERE represents = \"Distrito Nacional\""
} |
### INSTRUCTION
On which apparatus did Kanayeva have a final score smaller than 75.5 and a qualifying score smaller than 18.7?
### INPUT
CREATE TABLE table_name_68 (apparatus VARCHAR, score_final VARCHAR, score_qualifying VARCHAR)
### OUTPUT
SELECT apparatus FROM table_name_68 WHERE score_final < 75.5 AND score_qualifying < 18.7 | {
"input": "CREATE TABLE table_name_68 (apparatus VARCHAR, score_final VARCHAR, score_qualifying VARCHAR)",
"instruction": "On which apparatus did Kanayeva have a final score smaller than 75.5 and a qualifying score smaller than 18.7?",
"output": "SELECT apparatus FROM table_name_68 WHERE score_final < 75.5 AND score_qualifying < 18.7"
} |
### INSTRUCTION
Find the name of the instructors who taught C Programming course before.
### INPUT
CREATE TABLE teaches (id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)
### OUTPUT
SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming' | {
"input": "CREATE TABLE teaches (id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)",
"instruction": "Find the name of the instructors who taught C Programming course before.",
"output": "SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming'"
} |
### INSTRUCTION
What Release date has a Version of 1.0, a Category of utilities, a Developer of microsoft, and a Title of msn money?
### INPUT
CREATE TABLE table_name_36 (release_date VARCHAR, title VARCHAR, developer VARCHAR, version VARCHAR, category VARCHAR)
### OUTPUT
SELECT release_date FROM table_name_36 WHERE version = "1.0" AND category = "utilities" AND developer = "microsoft" AND title = "msn money" | {
"input": "CREATE TABLE table_name_36 (release_date VARCHAR, title VARCHAR, developer VARCHAR, version VARCHAR, category VARCHAR)",
"instruction": "What Release date has a Version of 1.0, a Category of utilities, a Developer of microsoft, and a Title of msn money?",
"output": "SELECT release_date FROM table_name_36 WHERE version = \"1.0\" AND category = \"utilities\" AND developer = \"microsoft\" AND title = \"msn money\""
} |
### INSTRUCTION
Can you tell me the Giant Slalom that has the Combined of 1, and the Country of united states, and the Victories larger than 11?
### INPUT
CREATE TABLE table_name_14 (giant_slalom VARCHAR, victories VARCHAR, combined VARCHAR, country VARCHAR)
### OUTPUT
SELECT giant_slalom FROM table_name_14 WHERE combined = "1" AND country = "united states" AND victories > 11 | {
"input": "CREATE TABLE table_name_14 (giant_slalom VARCHAR, victories VARCHAR, combined VARCHAR, country VARCHAR)",
"instruction": "Can you tell me the Giant Slalom that has the Combined of 1, and the Country of united states, and the Victories larger than 11?",
"output": "SELECT giant_slalom FROM table_name_14 WHERE combined = \"1\" AND country = \"united states\" AND victories > 11"
} |
### INSTRUCTION
What was the GP-GS for the 2009 season?
### INPUT
CREATE TABLE table_name_52 (gp_gs VARCHAR, season VARCHAR)
### OUTPUT
SELECT gp_gs FROM table_name_52 WHERE season = "2009" | {
"input": "CREATE TABLE table_name_52 (gp_gs VARCHAR, season VARCHAR)",
"instruction": "What was the GP-GS for the 2009 season?",
"output": "SELECT gp_gs FROM table_name_52 WHERE season = \"2009\""
} |
### INSTRUCTION
Find the dates on which more than one revisions were made.
### INPUT
CREATE TABLE Catalogs (date_of_latest_revision VARCHAR)
### OUTPUT
SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING COUNT(*) > 1 | {
"input": "CREATE TABLE Catalogs (date_of_latest_revision VARCHAR)",
"instruction": "Find the dates on which more than one revisions were made.",
"output": "SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING COUNT(*) > 1"
} |
### INSTRUCTION
In the game held at Arden Street Oval, what was the score of the home team?
### INPUT
CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR)
### OUTPUT
SELECT home_team AS score FROM table_name_23 WHERE venue = "arden street oval" | {
"input": "CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR)",
"instruction": "In the game held at Arden Street Oval, what was the score of the home team?",
"output": "SELECT home_team AS score FROM table_name_23 WHERE venue = \"arden street oval\""
} |
### INSTRUCTION
Find the papers which have "Olin Shivers" as an author.
### INPUT
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)
### OUTPUT
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Olin" AND t1.lname = "Shivers" | {
"input": "CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)",
"instruction": "Find the papers which have \"Olin Shivers\" as an author.",
"output": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Olin\" AND t1.lname = \"Shivers\""
} |
### INSTRUCTION
What was the host for the semi final heat, when Terry Wogan was the National Final main host, and Gaby Roslin was the National Final co-host?
### INPUT
CREATE TABLE table_name_24 (semi_final_heat_host VARCHAR, national_final_main_host VARCHAR, national_final_co_host VARCHAR)
### OUTPUT
SELECT semi_final_heat_host FROM table_name_24 WHERE national_final_main_host = "terry wogan" AND national_final_co_host = "gaby roslin" | {
"input": "CREATE TABLE table_name_24 (semi_final_heat_host VARCHAR, national_final_main_host VARCHAR, national_final_co_host VARCHAR)",
"instruction": "What was the host for the semi final heat, when Terry Wogan was the National Final main host, and Gaby Roslin was the National Final co-host?",
"output": "SELECT semi_final_heat_host FROM table_name_24 WHERE national_final_main_host = \"terry wogan\" AND national_final_co_host = \"gaby roslin\""
} |
### INSTRUCTION
Who is the "CTO" of club "Hopkins Student Enterprises"? Show the first name and last name.
### INPUT
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR, position VARCHAR)
### OUTPUT
SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises" AND t2.position = "CTO" | {
"input": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR, position VARCHAR)",
"instruction": "Who is the \"CTO\" of club \"Hopkins Student Enterprises\"? Show the first name and last name.",
"output": "SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\" AND t2.position = \"CTO\""
} |
### INSTRUCTION
On what date is there a Tryre of d at the Circuit of monaco?
### INPUT
CREATE TABLE table_name_91 (date VARCHAR, tyre VARCHAR, circuit VARCHAR)
### OUTPUT
SELECT date FROM table_name_91 WHERE tyre = "d" AND circuit = "monaco" | {
"input": "CREATE TABLE table_name_91 (date VARCHAR, tyre VARCHAR, circuit VARCHAR)",
"instruction": "On what date is there a Tryre of d at the Circuit of monaco?",
"output": "SELECT date FROM table_name_91 WHERE tyre = \"d\" AND circuit = \"monaco\""
} |
### INSTRUCTION
how many peaks where for the chinese episode named 萬凰之王
### INPUT
CREATE TABLE table_29633639_1 (peak VARCHAR, chinese_title VARCHAR)
### OUTPUT
SELECT COUNT(peak) FROM table_29633639_1 WHERE chinese_title = "萬凰之王" | {
"input": "CREATE TABLE table_29633639_1 (peak VARCHAR, chinese_title VARCHAR)",
"instruction": "how many peaks where for the chinese episode named 萬凰之王",
"output": "SELECT COUNT(peak) FROM table_29633639_1 WHERE chinese_title = \"萬凰之王\""
} |
### INSTRUCTION
Name the number of coverage for 106.7 energy fm
### INPUT
CREATE TABLE table_27914076_1 (coverage VARCHAR, branding VARCHAR)
### OUTPUT
SELECT COUNT(coverage) FROM table_27914076_1 WHERE branding = "106.7 Energy FM" | {
"input": "CREATE TABLE table_27914076_1 (coverage VARCHAR, branding VARCHAR)",
"instruction": "Name the number of coverage for 106.7 energy fm",
"output": "SELECT COUNT(coverage) FROM table_27914076_1 WHERE branding = \"106.7 Energy FM\""
} |
### INSTRUCTION
What was the score of the game on 27 January 1996?
### INPUT
CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_15 WHERE date = "27 january 1996" | {
"input": "CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR)",
"instruction": "What was the score of the game on 27 January 1996?",
"output": "SELECT score FROM table_name_15 WHERE date = \"27 january 1996\""
} |
### INSTRUCTION
Which country had a rank smaller than 7 and a time of 1:43.189?
### INPUT
CREATE TABLE table_name_81 (country VARCHAR, rank VARCHAR, time VARCHAR)
### OUTPUT
SELECT country FROM table_name_81 WHERE rank < 7 AND time = "1:43.189" | {
"input": "CREATE TABLE table_name_81 (country VARCHAR, rank VARCHAR, time VARCHAR)",
"instruction": "Which country had a rank smaller than 7 and a time of 1:43.189?",
"output": "SELECT country FROM table_name_81 WHERE rank < 7 AND time = \"1:43.189\""
} |
### INSTRUCTION
What is Combined, when Super G is less than 10, and when Overall is less than 4?
### INPUT
CREATE TABLE table_name_46 (combined VARCHAR, super_g VARCHAR, overall VARCHAR)
### OUTPUT
SELECT combined FROM table_name_46 WHERE super_g < 10 AND overall < 4 | {
"input": "CREATE TABLE table_name_46 (combined VARCHAR, super_g VARCHAR, overall VARCHAR)",
"instruction": "What is Combined, when Super G is less than 10, and when Overall is less than 4?",
"output": "SELECT combined FROM table_name_46 WHERE super_g < 10 AND overall < 4"
} |
### INSTRUCTION
Which winner has a points classification of Tony Rominger at stage 17?
### INPUT
CREATE TABLE table_name_72 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR)
### OUTPUT
SELECT winner FROM table_name_72 WHERE points_classification = "tony rominger" AND stage = "17" | {
"input": "CREATE TABLE table_name_72 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR)",
"instruction": "Which winner has a points classification of Tony Rominger at stage 17?",
"output": "SELECT winner FROM table_name_72 WHERE points_classification = \"tony rominger\" AND stage = \"17\""
} |
### INSTRUCTION
Which School has a Year Joined larger than 1926, and a Mascot of vikings?
### INPUT
CREATE TABLE table_name_86 (school VARCHAR, year_joined VARCHAR, mascot VARCHAR)
### OUTPUT
SELECT school FROM table_name_86 WHERE year_joined > 1926 AND mascot = "vikings" | {
"input": "CREATE TABLE table_name_86 (school VARCHAR, year_joined VARCHAR, mascot VARCHAR)",
"instruction": "Which School has a Year Joined larger than 1926, and a Mascot of vikings?",
"output": "SELECT school FROM table_name_86 WHERE year_joined > 1926 AND mascot = \"vikings\""
} |
### INSTRUCTION
What is Nat., when Ends is greater than 2010, when Since is 2006, and when Name is Paligeorgos?
### INPUT
CREATE TABLE table_name_92 (nat VARCHAR, name VARCHAR, ends VARCHAR, since VARCHAR)
### OUTPUT
SELECT nat FROM table_name_92 WHERE ends > 2010 AND since = 2006 AND name = "paligeorgos" | {
"input": "CREATE TABLE table_name_92 (nat VARCHAR, name VARCHAR, ends VARCHAR, since VARCHAR)",
"instruction": "What is Nat., when Ends is greater than 2010, when Since is 2006, and when Name is Paligeorgos?",
"output": "SELECT nat FROM table_name_92 WHERE ends > 2010 AND since = 2006 AND name = \"paligeorgos\""
} |
### INSTRUCTION
What method resulted in a win and a time of 4:36?
### INPUT
CREATE TABLE table_name_44 (method VARCHAR, res VARCHAR, time VARCHAR)
### OUTPUT
SELECT method FROM table_name_44 WHERE res = "win" AND time = "4:36" | {
"input": "CREATE TABLE table_name_44 (method VARCHAR, res VARCHAR, time VARCHAR)",
"instruction": "What method resulted in a win and a time of 4:36?",
"output": "SELECT method FROM table_name_44 WHERE res = \"win\" AND time = \"4:36\""
} |
### INSTRUCTION
What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors?
### INPUT
CREATE TABLE table_name_24 (height__ft_ INTEGER, floors VARCHAR, city VARCHAR, height__m_ VARCHAR)
### OUTPUT
SELECT MIN(height__ft_) FROM table_name_24 WHERE city = "frankfurt" AND height__m_ = 257 AND floors < 55 | {
"input": "CREATE TABLE table_name_24 (height__ft_ INTEGER, floors VARCHAR, city VARCHAR, height__m_ VARCHAR)",
"instruction": "What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors?",
"output": "SELECT MIN(height__ft_) FROM table_name_24 WHERE city = \"frankfurt\" AND height__m_ = 257 AND floors < 55"
} |
### INSTRUCTION
Name the representative appointed by george w. bush with presentation of credentials 9 november 2007
### INPUT
CREATE TABLE table_name_65 (representative VARCHAR, appointed_by VARCHAR, presentation_of_credentials VARCHAR)
### OUTPUT
SELECT representative FROM table_name_65 WHERE appointed_by = "george w. bush" AND presentation_of_credentials = "9 november 2007" | {
"input": "CREATE TABLE table_name_65 (representative VARCHAR, appointed_by VARCHAR, presentation_of_credentials VARCHAR)",
"instruction": "Name the representative appointed by george w. bush with presentation of credentials 9 november 2007",
"output": "SELECT representative FROM table_name_65 WHERE appointed_by = \"george w. bush\" AND presentation_of_credentials = \"9 november 2007\""
} |
### INSTRUCTION
When five is the new channel what is the date of original removal?
### INPUT
CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, new_channel_s_ VARCHAR)
### OUTPUT
SELECT date_s__of_original_removal FROM table_19114172_11 WHERE new_channel_s_ = "Five" | {
"input": "CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, new_channel_s_ VARCHAR)",
"instruction": "When five is the new channel what is the date of original removal?",
"output": "SELECT date_s__of_original_removal FROM table_19114172_11 WHERE new_channel_s_ = \"Five\""
} |
### INSTRUCTION
Find the number of female students (with F sex) living in Smith Hall
### INPUT
CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR, sex VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' AND T1.sex = 'F' | {
"input": "CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR, sex VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR)",
"instruction": "Find the number of female students (with F sex) living in Smith Hall",
"output": "SELECT COUNT(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' AND T1.sex = 'F'"
} |
### INSTRUCTION
What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?
### INPUT
CREATE TABLE song (genre_is VARCHAR, rating INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR)
### OUTPUT
SELECT MIN(T1.duration), MIN(T2.rating), T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is | {
"input": "CREATE TABLE song (genre_is VARCHAR, rating INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR)",
"instruction": "What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?",
"output": "SELECT MIN(T1.duration), MIN(T2.rating), T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is"
} |
### INSTRUCTION
what is the loan club with the start source is bbc sport and started on 9 february?
### INPUT
CREATE TABLE table_name_28 (loan_club VARCHAR, start_source VARCHAR, started VARCHAR)
### OUTPUT
SELECT loan_club FROM table_name_28 WHERE start_source = "bbc sport" AND started = "9 february" | {
"input": "CREATE TABLE table_name_28 (loan_club VARCHAR, start_source VARCHAR, started VARCHAR)",
"instruction": "what is the loan club with the start source is bbc sport and started on 9 february?",
"output": "SELECT loan_club FROM table_name_28 WHERE start_source = \"bbc sport\" AND started = \"9 february\""
} |
### INSTRUCTION
What was the record on the game that was played on october 27?
### INPUT
CREATE TABLE table_name_72 (record VARCHAR, date VARCHAR)
### OUTPUT
SELECT record FROM table_name_72 WHERE date = "october 27" | {
"input": "CREATE TABLE table_name_72 (record VARCHAR, date VARCHAR)",
"instruction": "What was the record on the game that was played on october 27?",
"output": "SELECT record FROM table_name_72 WHERE date = \"october 27\""
} |
### INSTRUCTION
What are the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected?
### INPUT
CREATE TABLE table_20592988_1 (platelet_count VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR)
### OUTPUT
SELECT platelet_count FROM table_20592988_1 WHERE prothrombin_time = "Unaffected" AND partial_thromboplastin_time = "Unaffected" | {
"input": "CREATE TABLE table_20592988_1 (platelet_count VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR)",
"instruction": "What are the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected? ",
"output": "SELECT platelet_count FROM table_20592988_1 WHERE prothrombin_time = \"Unaffected\" AND partial_thromboplastin_time = \"Unaffected\""
} |
### INSTRUCTION
What venue hsoted the european cross country championships with a notes of junior men individual 6.595km?
### INPUT
CREATE TABLE table_name_20 (venue VARCHAR, competition VARCHAR, notes VARCHAR)
### OUTPUT
SELECT venue FROM table_name_20 WHERE competition = "european cross country championships" AND notes = "junior men individual 6.595km" | {
"input": "CREATE TABLE table_name_20 (venue VARCHAR, competition VARCHAR, notes VARCHAR)",
"instruction": "What venue hsoted the european cross country championships with a notes of junior men individual 6.595km?",
"output": "SELECT venue FROM table_name_20 WHERE competition = \"european cross country championships\" AND notes = \"junior men individual 6.595km\""
} |
### INSTRUCTION
Find the number of dog pets that are raised by female students (with sex F).
### INPUT
CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR); CREATE TABLE student (stuid VARCHAR, sex VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog' | {
"input": "CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR); CREATE TABLE student (stuid VARCHAR, sex VARCHAR)",
"instruction": "Find the number of dog pets that are raised by female students (with sex F).",
"output": "SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'"
} |
### INSTRUCTION
How many lap two's did marco andretti do?
### INPUT
CREATE TABLE table_23018775_3 (lap_two VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(lap_two) FROM table_23018775_3 WHERE name = "Marco Andretti" | {
"input": "CREATE TABLE table_23018775_3 (lap_two VARCHAR, name VARCHAR)",
"instruction": "How many lap two's did marco andretti do?",
"output": "SELECT COUNT(lap_two) FROM table_23018775_3 WHERE name = \"Marco Andretti\""
} |
### INSTRUCTION
How many production codes are there for the episode that had 4.36 million u.s. viewers?
### INPUT
CREATE TABLE table_28037619_2 (production_code VARCHAR, us_viewers__million_ VARCHAR)
### OUTPUT
SELECT COUNT(production_code) FROM table_28037619_2 WHERE us_viewers__million_ = "4.36" | {
"input": "CREATE TABLE table_28037619_2 (production_code VARCHAR, us_viewers__million_ VARCHAR)",
"instruction": "How many production codes are there for the episode that had 4.36 million u.s. viewers?",
"output": "SELECT COUNT(production_code) FROM table_28037619_2 WHERE us_viewers__million_ = \"4.36\""
} |
### INSTRUCTION
How many dates did Daniel Ruiz win the Spanish Grand Prix?
### INPUT
CREATE TABLE table_28925058_1 (date VARCHAR, grand_prix VARCHAR, race_winner VARCHAR)
### OUTPUT
SELECT COUNT(date) FROM table_28925058_1 WHERE grand_prix = "Spanish grand_prix" AND race_winner = "Daniel Ruiz" | {
"input": "CREATE TABLE table_28925058_1 (date VARCHAR, grand_prix VARCHAR, race_winner VARCHAR)",
"instruction": "How many dates did Daniel Ruiz win the Spanish Grand Prix?",
"output": "SELECT COUNT(date) FROM table_28925058_1 WHERE grand_prix = \"Spanish grand_prix\" AND race_winner = \"Daniel Ruiz\""
} |
### INSTRUCTION
What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?
### INPUT
CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE countries (countryid VARCHAR, countryname VARCHAR); CREATE TABLE car_makers (country VARCHAR, id VARCHAR)
### OUTPUT
SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model = 'fiat' | {
"input": "CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE countries (countryid VARCHAR, countryname VARCHAR); CREATE TABLE car_makers (country VARCHAR, id VARCHAR)",
"instruction": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?",
"output": "SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model = 'fiat'"
} |
### INSTRUCTION
What is the result of the match in round 1r against tunisia and on a hard surface?
### INPUT
CREATE TABLE table_name_37 (result VARCHAR, against VARCHAR, round VARCHAR, surface VARCHAR)
### OUTPUT
SELECT result FROM table_name_37 WHERE round = "1r" AND surface = "hard" AND against = "tunisia" | {
"input": "CREATE TABLE table_name_37 (result VARCHAR, against VARCHAR, round VARCHAR, surface VARCHAR)",
"instruction": "What is the result of the match in round 1r against tunisia and on a hard surface?",
"output": "SELECT result FROM table_name_37 WHERE round = \"1r\" AND surface = \"hard\" AND against = \"tunisia\""
} |
### INSTRUCTION
How many QB ratings for the player with 1069 completions?
### INPUT
CREATE TABLE table_19418696_3 (qb_rating VARCHAR, completions VARCHAR)
### OUTPUT
SELECT COUNT(qb_rating) FROM table_19418696_3 WHERE completions = 1069 | {
"input": "CREATE TABLE table_19418696_3 (qb_rating VARCHAR, completions VARCHAR)",
"instruction": "How many QB ratings for the player with 1069 completions?",
"output": "SELECT COUNT(qb_rating) FROM table_19418696_3 WHERE completions = 1069"
} |
### INSTRUCTION
Whihc Date is the lowest one that has a Competition of league, and a Venue of away, and an Opponent of swindon wildcats, and an Attendance larger than 1,201?
### INPUT
CREATE TABLE table_name_51 (date INTEGER, attendance VARCHAR, opponent VARCHAR, competition VARCHAR, venue VARCHAR)
### OUTPUT
SELECT MIN(date) FROM table_name_51 WHERE competition = "league" AND venue = "away" AND opponent = "swindon wildcats" AND attendance > 1 OFFSET 201 | {
"input": "CREATE TABLE table_name_51 (date INTEGER, attendance VARCHAR, opponent VARCHAR, competition VARCHAR, venue VARCHAR)",
"instruction": "Whihc Date is the lowest one that has a Competition of league, and a Venue of away, and an Opponent of swindon wildcats, and an Attendance larger than 1,201?",
"output": "SELECT MIN(date) FROM table_name_51 WHERE competition = \"league\" AND venue = \"away\" AND opponent = \"swindon wildcats\" AND attendance > 1 OFFSET 201"
} |
### INSTRUCTION
find the name of people whose height is lower than the average.
### INPUT
CREATE TABLE people (name VARCHAR, height INTEGER)
### OUTPUT
SELECT name FROM people WHERE height < (SELECT AVG(height) FROM people) | {
"input": "CREATE TABLE people (name VARCHAR, height INTEGER)",
"instruction": "find the name of people whose height is lower than the average.",
"output": "SELECT name FROM people WHERE height < (SELECT AVG(height) FROM people)"
} |
### INSTRUCTION
What is the Senators' division record?
### INPUT
CREATE TABLE table_name_39 (division_record VARCHAR, team VARCHAR)
### OUTPUT
SELECT division_record FROM table_name_39 WHERE team = "senators" | {
"input": "CREATE TABLE table_name_39 (division_record VARCHAR, team VARCHAR)",
"instruction": "What is the Senators' division record?",
"output": "SELECT division_record FROM table_name_39 WHERE team = \"senators\""
} |
### INSTRUCTION
Which venue did the African Championships have after 2006 with a position of 2nd and 3000 m s'chase in notes?
### INPUT
CREATE TABLE table_name_28 (venue VARCHAR, competition VARCHAR, position VARCHAR, year VARCHAR, notes VARCHAR)
### OUTPUT
SELECT venue FROM table_name_28 WHERE year > 2006 AND notes = "3000 m s'chase" AND position = "2nd" AND competition = "african championships" | {
"input": "CREATE TABLE table_name_28 (venue VARCHAR, competition VARCHAR, position VARCHAR, year VARCHAR, notes VARCHAR)",
"instruction": "Which venue did the African Championships have after 2006 with a position of 2nd and 3000 m s'chase in notes?",
"output": "SELECT venue FROM table_name_28 WHERE year > 2006 AND notes = \"3000 m s'chase\" AND position = \"2nd\" AND competition = \"african championships\""
} |
### INSTRUCTION
What is the rank for Omni nashville hotel?
### INPUT
CREATE TABLE table_name_89 (rank INTEGER, name VARCHAR)
### OUTPUT
SELECT SUM(rank) FROM table_name_89 WHERE name = "omni nashville hotel" | {
"input": "CREATE TABLE table_name_89 (rank INTEGER, name VARCHAR)",
"instruction": "What is the rank for Omni nashville hotel?",
"output": "SELECT SUM(rank) FROM table_name_89 WHERE name = \"omni nashville hotel\""
} |
### INSTRUCTION
What is Airport, when Country is "Egypt", and when ICAO is "Heba"?
### INPUT
CREATE TABLE table_name_35 (airport VARCHAR, country VARCHAR, icao VARCHAR)
### OUTPUT
SELECT airport FROM table_name_35 WHERE country = "egypt" AND icao = "heba" | {
"input": "CREATE TABLE table_name_35 (airport VARCHAR, country VARCHAR, icao VARCHAR)",
"instruction": "What is Airport, when Country is \"Egypt\", and when ICAO is \"Heba\"?",
"output": "SELECT airport FROM table_name_35 WHERE country = \"egypt\" AND icao = \"heba\""
} |
### INSTRUCTION
Name the high points for l 110–112 (ot)
### INPUT
CREATE TABLE table_27733258_6 (high_points VARCHAR, score VARCHAR)
### OUTPUT
SELECT high_points FROM table_27733258_6 WHERE score = "L 110–112 (OT)" | {
"input": "CREATE TABLE table_27733258_6 (high_points VARCHAR, score VARCHAR)",
"instruction": "Name the high points for l 110–112 (ot)",
"output": "SELECT high_points FROM table_27733258_6 WHERE score = \"L 110–112 (OT)\""
} |
### INSTRUCTION
What Opponents in the final had a match in 1984 with a Score in the final of 7–6, 6–1?
### INPUT
CREATE TABLE table_name_77 (opponents_in_the_final VARCHAR, date VARCHAR, score_in_the_final VARCHAR)
### OUTPUT
SELECT opponents_in_the_final FROM table_name_77 WHERE date = 1984 AND score_in_the_final = "7–6, 6–1" | {
"input": "CREATE TABLE table_name_77 (opponents_in_the_final VARCHAR, date VARCHAR, score_in_the_final VARCHAR)",
"instruction": "What Opponents in the final had a match in 1984 with a Score in the final of 7–6, 6–1?",
"output": "SELECT opponents_in_the_final FROM table_name_77 WHERE date = 1984 AND score_in_the_final = \"7–6, 6–1\""
} |
### INSTRUCTION
When Ryan Anderson won the mountains classification, and Michael Rogers won the general classification, who won the sprint classification?
### INPUT
CREATE TABLE table_25055040_22 (sprint_classification VARCHAR, mountains_classification VARCHAR, general_classification VARCHAR)
### OUTPUT
SELECT sprint_classification FROM table_25055040_22 WHERE mountains_classification = "Ryan Anderson" AND general_classification = "Michael Rogers" | {
"input": "CREATE TABLE table_25055040_22 (sprint_classification VARCHAR, mountains_classification VARCHAR, general_classification VARCHAR)",
"instruction": "When Ryan Anderson won the mountains classification, and Michael Rogers won the general classification, who won the sprint classification?",
"output": "SELECT sprint_classification FROM table_25055040_22 WHERE mountains_classification = \"Ryan Anderson\" AND general_classification = \"Michael Rogers\""
} |
### INSTRUCTION
How many apartments do not have any facility?
### INPUT
CREATE TABLE Apartment_Facilities (apt_id VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM Apartments WHERE NOT apt_id IN (SELECT apt_id FROM Apartment_Facilities) | {
"input": "CREATE TABLE Apartment_Facilities (apt_id VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR)",
"instruction": "How many apartments do not have any facility?",
"output": "SELECT COUNT(*) FROM Apartments WHERE NOT apt_id IN (SELECT apt_id FROM Apartment_Facilities)"
} |
### INSTRUCTION
What category is the nominated work of cecilie, winner of the robert award?
### INPUT
CREATE TABLE table_name_43 (category VARCHAR, nominated_work VARCHAR, award VARCHAR)
### OUTPUT
SELECT category FROM table_name_43 WHERE nominated_work = "cecilie" AND award = "robert award" | {
"input": "CREATE TABLE table_name_43 (category VARCHAR, nominated_work VARCHAR, award VARCHAR)",
"instruction": "What category is the nominated work of cecilie, winner of the robert award?",
"output": "SELECT category FROM table_name_43 WHERE nominated_work = \"cecilie\" AND award = \"robert award\""
} |
### INSTRUCTION
Where did Zimbabwe play?
### INPUT
CREATE TABLE table_name_63 (venue VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT venue FROM table_name_63 WHERE opponent = "zimbabwe" | {
"input": "CREATE TABLE table_name_63 (venue VARCHAR, opponent VARCHAR)",
"instruction": "Where did Zimbabwe play?",
"output": "SELECT venue FROM table_name_63 WHERE opponent = \"zimbabwe\""
} |
### INSTRUCTION
How many sound engineers were there for law hakon '3er leek?
### INPUT
CREATE TABLE table_28005100_1 (sound_engineer VARCHAR, title VARCHAR)
### OUTPUT
SELECT COUNT(sound_engineer) FROM table_28005100_1 WHERE title = "Law Hakon '3er Leek" | {
"input": "CREATE TABLE table_28005100_1 (sound_engineer VARCHAR, title VARCHAR)",
"instruction": "How many sound engineers were there for law hakon '3er leek?",
"output": "SELECT COUNT(sound_engineer) FROM table_28005100_1 WHERE title = \"Law Hakon '3er Leek\""
} |
### INSTRUCTION
Rank for viewers larger than 1.244?
### INPUT
CREATE TABLE table_name_21 (nightly_rank VARCHAR, viewers__millions_ INTEGER)
### OUTPUT
SELECT nightly_rank FROM table_name_21 WHERE viewers__millions_ > 1.244 | {
"input": "CREATE TABLE table_name_21 (nightly_rank VARCHAR, viewers__millions_ INTEGER)",
"instruction": "Rank for viewers larger than 1.244?",
"output": "SELECT nightly_rank FROM table_name_21 WHERE viewers__millions_ > 1.244"
} |
### INSTRUCTION
What is the flange thickness when the weight is 19.9?
### INPUT
CREATE TABLE table_2071644_2 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR)
### OUTPUT
SELECT flange_thickness__mm_ FROM table_2071644_2 WHERE weight__kg_m_ = "19.9" | {
"input": "CREATE TABLE table_2071644_2 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR)",
"instruction": "What is the flange thickness when the weight is 19.9?",
"output": "SELECT flange_thickness__mm_ FROM table_2071644_2 WHERE weight__kg_m_ = \"19.9\""
} |
### INSTRUCTION
Which Bronze has a Total larger than 7 and a Silver of 3, and a Games of summer, and a Gold of 5?
### INPUT
CREATE TABLE table_name_65 (bronze VARCHAR, gold VARCHAR, games VARCHAR, total VARCHAR, silver VARCHAR)
### OUTPUT
SELECT bronze FROM table_name_65 WHERE total > 7 AND silver = 3 AND games = "summer" AND gold = 5 | {
"input": "CREATE TABLE table_name_65 (bronze VARCHAR, gold VARCHAR, games VARCHAR, total VARCHAR, silver VARCHAR)",
"instruction": "Which Bronze has a Total larger than 7 and a Silver of 3, and a Games of summer, and a Gold of 5?",
"output": "SELECT bronze FROM table_name_65 WHERE total > 7 AND silver = 3 AND games = \"summer\" AND gold = 5"
} |
### INSTRUCTION
Name the centennial for 1992 akimel
### INPUT
CREATE TABLE table_15977768_1 (centennial VARCHAR, akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river VARCHAR)
### OUTPUT
SELECT centennial FROM table_15977768_1 WHERE akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river = "1992" | {
"input": "CREATE TABLE table_15977768_1 (centennial VARCHAR, akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river VARCHAR)",
"instruction": "Name the centennial for 1992 akimel",
"output": "SELECT centennial FROM table_15977768_1 WHERE akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river = \"1992\""
} |
### INSTRUCTION
List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007.
### INPUT
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE salary (player_id VARCHAR, team_id VARCHAR, year VARCHAR)
### OUTPUT
SELECT T2.name_first, T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first, T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals' | {
"input": "CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE salary (player_id VARCHAR, team_id VARCHAR, year VARCHAR)",
"instruction": "List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007.",
"output": "SELECT T2.name_first, T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first, T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'"
} |
### INSTRUCTION
What are the Ratings of Japanese Title プロポーズ大作戦 episode 11 on Fuji TV station?
### INPUT
CREATE TABLE table_name_32 (average_ratings VARCHAR, japanese_title VARCHAR, episodes VARCHAR, tv_station VARCHAR)
### OUTPUT
SELECT average_ratings FROM table_name_32 WHERE episodes = "11" AND tv_station = "fuji tv" AND japanese_title = "プロポーズ大作戦" | {
"input": "CREATE TABLE table_name_32 (average_ratings VARCHAR, japanese_title VARCHAR, episodes VARCHAR, tv_station VARCHAR)",
"instruction": "What are the Ratings of Japanese Title プロポーズ大作戦 episode 11 on Fuji TV station?",
"output": "SELECT average_ratings FROM table_name_32 WHERE episodes = \"11\" AND tv_station = \"fuji tv\" AND japanese_title = \"プロポーズ大作戦\""
} |
### INSTRUCTION
What is the frequency of the radio station with a call sign of WGNR-FM?
### INPUT
CREATE TABLE table_name_19 (frequency VARCHAR, call_sign VARCHAR)
### OUTPUT
SELECT frequency FROM table_name_19 WHERE call_sign = "wgnr-fm" | {
"input": "CREATE TABLE table_name_19 (frequency VARCHAR, call_sign VARCHAR)",
"instruction": "What is the frequency of the radio station with a call sign of WGNR-FM?",
"output": "SELECT frequency FROM table_name_19 WHERE call_sign = \"wgnr-fm\""
} |
### INSTRUCTION
What is the average year that has a final Tour position of 54 and a final Vuelta position over 55?
### INPUT
CREATE TABLE table_name_67 (year INTEGER, final_position___tour VARCHAR, final_position___vuelta VARCHAR)
### OUTPUT
SELECT AVG(year) FROM table_name_67 WHERE final_position___tour = 54 AND final_position___vuelta > 55 | {
"input": "CREATE TABLE table_name_67 (year INTEGER, final_position___tour VARCHAR, final_position___vuelta VARCHAR)",
"instruction": "What is the average year that has a final Tour position of 54 and a final Vuelta position over 55?",
"output": "SELECT AVG(year) FROM table_name_67 WHERE final_position___tour = 54 AND final_position___vuelta > 55"
} |
### INSTRUCTION
what is the to par for Dave hill?
### INPUT
CREATE TABLE table_name_52 (to_par VARCHAR, player VARCHAR)
### OUTPUT
SELECT to_par FROM table_name_52 WHERE player = "dave hill" | {
"input": "CREATE TABLE table_name_52 (to_par VARCHAR, player VARCHAR)",
"instruction": "what is the to par for Dave hill?",
"output": "SELECT to_par FROM table_name_52 WHERE player = \"dave hill\""
} |
### INSTRUCTION
display the employee number, name( first name and last name ), and salary for all employees who earn more than the average salary and who work in a department with any employee with a 'J' in their first name.
### INPUT
CREATE TABLE employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, salary INTEGER, department_id VARCHAR)
### OUTPUT
SELECT employee_id, first_name, last_name, salary FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) AND department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%J%') | {
"input": "CREATE TABLE employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, salary INTEGER, department_id VARCHAR)",
"instruction": "display the employee number, name( first name and last name ), and salary for all employees who earn more than the average salary and who work in a department with any employee with a 'J' in their first name.",
"output": "SELECT employee_id, first_name, last_name, salary FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) AND department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%J%')"
} |
### INSTRUCTION
What is the english title of the modern drama, episode 20, that airs on 26 sep- 21 oct?
### INPUT
CREATE TABLE table_name_82 (english_title__chinese_title_ VARCHAR, airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR)
### OUTPUT
SELECT english_title__chinese_title_ FROM table_name_82 WHERE genre = "modern drama" AND number_of_episodes = 20 AND airing_date = "26 sep- 21 oct" | {
"input": "CREATE TABLE table_name_82 (english_title__chinese_title_ VARCHAR, airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR)",
"instruction": "What is the english title of the modern drama, episode 20, that airs on 26 sep- 21 oct?",
"output": "SELECT english_title__chinese_title_ FROM table_name_82 WHERE genre = \"modern drama\" AND number_of_episodes = 20 AND airing_date = \"26 sep- 21 oct\""
} |
### INSTRUCTION
What name has pembroke as the built by hm dockyard, and may 1825 as the laid down?
### INPUT
CREATE TABLE table_name_79 (name VARCHAR, built_by_hm_dockyard VARCHAR, laid_down VARCHAR)
### OUTPUT
SELECT name FROM table_name_79 WHERE built_by_hm_dockyard = "pembroke" AND laid_down = "may 1825" | {
"input": "CREATE TABLE table_name_79 (name VARCHAR, built_by_hm_dockyard VARCHAR, laid_down VARCHAR)",
"instruction": "What name has pembroke as the built by hm dockyard, and may 1825 as the laid down?",
"output": "SELECT name FROM table_name_79 WHERE built_by_hm_dockyard = \"pembroke\" AND laid_down = \"may 1825\""
} |
### INSTRUCTION
WHich Tournament has a Partnering of diego pérez and a Opponents in the final of christer allgardh carl limberger?
### INPUT
CREATE TABLE table_name_39 (tournament VARCHAR, partnering VARCHAR, opponents_in_the_final VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_39 WHERE partnering = "diego pérez" AND opponents_in_the_final = "christer allgardh carl limberger" | {
"input": "CREATE TABLE table_name_39 (tournament VARCHAR, partnering VARCHAR, opponents_in_the_final VARCHAR)",
"instruction": "WHich Tournament has a Partnering of diego pérez and a Opponents in the final of christer allgardh carl limberger?",
"output": "SELECT tournament FROM table_name_39 WHERE partnering = \"diego pérez\" AND opponents_in_the_final = \"christer allgardh carl limberger\""
} |
### INSTRUCTION
What's the total number of copies sold for the single that sold 206,030 in the first week?
### INPUT
CREATE TABLE table_name_43 (copies_sold VARCHAR, first_week_sales VARCHAR)
### OUTPUT
SELECT COUNT(copies_sold) FROM table_name_43 WHERE first_week_sales = 206 OFFSET 030 | {
"input": "CREATE TABLE table_name_43 (copies_sold VARCHAR, first_week_sales VARCHAR)",
"instruction": "What's the total number of copies sold for the single that sold 206,030 in the first week?",
"output": "SELECT COUNT(copies_sold) FROM table_name_43 WHERE first_week_sales = 206 OFFSET 030"
} |
### INSTRUCTION
Which Score has an Opponent of melanie south?
### INPUT
CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT score FROM table_name_58 WHERE opponent = "melanie south" | {
"input": "CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR)",
"instruction": "Which Score has an Opponent of melanie south?",
"output": "SELECT score FROM table_name_58 WHERE opponent = \"melanie south\""
} |
### INSTRUCTION
What is the total of Apparent magnitudes for an NGC number larger than 3293?
### INPUT
CREATE TABLE table_name_45 (apparent_magnitude INTEGER, ngc_number INTEGER)
### OUTPUT
SELECT SUM(apparent_magnitude) FROM table_name_45 WHERE ngc_number > 3293 | {
"input": "CREATE TABLE table_name_45 (apparent_magnitude INTEGER, ngc_number INTEGER)",
"instruction": "What is the total of Apparent magnitudes for an NGC number larger than 3293?",
"output": "SELECT SUM(apparent_magnitude) FROM table_name_45 WHERE ngc_number > 3293"
} |
### INSTRUCTION
What's Dell Curry nationality?
### INPUT
CREATE TABLE table_10015132_3 (nationality VARCHAR, player VARCHAR)
### OUTPUT
SELECT nationality FROM table_10015132_3 WHERE player = "Dell Curry" | {
"input": "CREATE TABLE table_10015132_3 (nationality VARCHAR, player VARCHAR)",
"instruction": "What's Dell Curry nationality?",
"output": "SELECT nationality FROM table_10015132_3 WHERE player = \"Dell Curry\""
} |
### INSTRUCTION
What is the maximum training hours for the students whose training hours is greater than 1000 in different positions?
### INPUT
CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pPos VARCHAR, pID VARCHAR)
### OUTPUT
SELECT MAX(T1.HS), pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos | {
"input": "CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pPos VARCHAR, pID VARCHAR)",
"instruction": "What is the maximum training hours for the students whose training hours is greater than 1000 in different positions?",
"output": "SELECT MAX(T1.HS), pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos"
} |
### INSTRUCTION
How low is the Attendance that has an Opponent of devil rays and a Date of may 13?
### INPUT
CREATE TABLE table_name_15 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
### OUTPUT
SELECT MIN(attendance) FROM table_name_15 WHERE opponent = "devil rays" AND date = "may 13" | {
"input": "CREATE TABLE table_name_15 (attendance INTEGER, opponent VARCHAR, date VARCHAR)",
"instruction": "How low is the Attendance that has an Opponent of devil rays and a Date of may 13?",
"output": "SELECT MIN(attendance) FROM table_name_15 WHERE opponent = \"devil rays\" AND date = \"may 13\""
} |
### INSTRUCTION
Name the total number of african record
### INPUT
CREATE TABLE table_23619492_3 (paula_radcliffe___gbr__ VARCHAR, world_record VARCHAR)
### OUTPUT
SELECT COUNT(paula_radcliffe___gbr__) FROM table_23619492_3 WHERE world_record = "African record" | {
"input": "CREATE TABLE table_23619492_3 (paula_radcliffe___gbr__ VARCHAR, world_record VARCHAR)",
"instruction": "Name the total number of african record",
"output": "SELECT COUNT(paula_radcliffe___gbr__) FROM table_23619492_3 WHERE world_record = \"African record\""
} |
### INSTRUCTION
What is Date (Opening), when Opening Film is "Another Myanmar, Mae Sot"?
### INPUT
CREATE TABLE table_name_47 (date__opening_ VARCHAR, opening_film VARCHAR)
### OUTPUT
SELECT date__opening_ FROM table_name_47 WHERE opening_film = "another myanmar, mae sot" | {
"input": "CREATE TABLE table_name_47 (date__opening_ VARCHAR, opening_film VARCHAR)",
"instruction": "What is Date (Opening), when Opening Film is \"Another Myanmar, Mae Sot\"?",
"output": "SELECT date__opening_ FROM table_name_47 WHERE opening_film = \"another myanmar, mae sot\""
} |
### INSTRUCTION
WHich Province of Silla has a Modern equivalent of south jeolla, and a Administrative district of seungju?
### INPUT
CREATE TABLE table_name_33 (province_of_silla VARCHAR, modern_equivalent VARCHAR, administrative_district VARCHAR)
### OUTPUT
SELECT province_of_silla FROM table_name_33 WHERE modern_equivalent = "south jeolla" AND administrative_district = "seungju" | {
"input": "CREATE TABLE table_name_33 (province_of_silla VARCHAR, modern_equivalent VARCHAR, administrative_district VARCHAR)",
"instruction": "WHich Province of Silla has a Modern equivalent of south jeolla, and a Administrative district of seungju?",
"output": "SELECT province_of_silla FROM table_name_33 WHERE modern_equivalent = \"south jeolla\" AND administrative_district = \"seungju\""
} |
### INSTRUCTION
With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match?
### INPUT
CREATE TABLE table_name_1 (Double VARCHAR, non_suited_match VARCHAR, house_edge VARCHAR)
### OUTPUT
SELECT Double AS non_suited_match FROM table_name_1 WHERE non_suited_match = "4:1" AND house_edge = "3.63%" | {
"input": "CREATE TABLE table_name_1 (Double VARCHAR, non_suited_match VARCHAR, house_edge VARCHAR)",
"instruction": "With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match?",
"output": "SELECT Double AS non_suited_match FROM table_name_1 WHERE non_suited_match = \"4:1\" AND house_edge = \"3.63%\""
} |
### INSTRUCTION
What in 2007 has a 2010 of qf, and a 2012 of w?
### INPUT
CREATE TABLE table_name_92 (Id VARCHAR)
### OUTPUT
SELECT 2007 FROM table_name_92 WHERE 2010 = "qf" AND 2012 = "w" | {
"input": "CREATE TABLE table_name_92 (Id VARCHAR)",
"instruction": "What in 2007 has a 2010 of qf, and a 2012 of w?",
"output": "SELECT 2007 FROM table_name_92 WHERE 2010 = \"qf\" AND 2012 = \"w\""
} |
### INSTRUCTION
What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349?
### INPUT
CREATE TABLE table_name_72 (ofsted_number INTEGER, dcsf_number VARCHAR, intake VARCHAR, type VARCHAR, faith VARCHAR)
### OUTPUT
SELECT MIN(ofsted_number) FROM table_name_72 WHERE type = "primary" AND faith = "ce" AND intake = 30 AND dcsf_number < 3349 | {
"input": "CREATE TABLE table_name_72 (ofsted_number INTEGER, dcsf_number VARCHAR, intake VARCHAR, type VARCHAR, faith VARCHAR)",
"instruction": "What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349?",
"output": "SELECT MIN(ofsted_number) FROM table_name_72 WHERE type = \"primary\" AND faith = \"ce\" AND intake = 30 AND dcsf_number < 3349"
} |
### INSTRUCTION
WHich General classification has an Asian rider classification of shinichi fukushima, and a Winner of jeremy hunt?
### INPUT
CREATE TABLE table_name_1 (general_classification VARCHAR, asian_rider_classification VARCHAR, winner VARCHAR)
### OUTPUT
SELECT general_classification FROM table_name_1 WHERE asian_rider_classification = "shinichi fukushima" AND winner = "jeremy hunt" | {
"input": "CREATE TABLE table_name_1 (general_classification VARCHAR, asian_rider_classification VARCHAR, winner VARCHAR)",
"instruction": "WHich General classification has an Asian rider classification of shinichi fukushima, and a Winner of jeremy hunt?",
"output": "SELECT general_classification FROM table_name_1 WHERE asian_rider_classification = \"shinichi fukushima\" AND winner = \"jeremy hunt\""
} |
### INSTRUCTION
What is the western title for the puzzle genre?
### INPUT
CREATE TABLE table_name_56 (western_title VARCHAR, genre VARCHAR)
### OUTPUT
SELECT western_title FROM table_name_56 WHERE genre = "puzzle" | {
"input": "CREATE TABLE table_name_56 (western_title VARCHAR, genre VARCHAR)",
"instruction": "What is the western title for the puzzle genre?",
"output": "SELECT western_title FROM table_name_56 WHERE genre = \"puzzle\""
} |
### INSTRUCTION
Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.
### INPUT
CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR, id VARCHAR)
### OUTPUT
SELECT name, operating_system FROM web_client_accelerator EXCEPT SELECT T1.name, T1.operating_system FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.name = 'Opera' | {
"input": "CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR, id VARCHAR)",
"instruction": "Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.",
"output": "SELECT name, operating_system FROM web_client_accelerator EXCEPT SELECT T1.name, T1.operating_system FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.name = 'Opera'"
} |
### INSTRUCTION
What is every team classification when points classification is Philippe Gilbert if mountains classification is Johnny Hoogerland and stage is less than 9.0?
### INPUT
CREATE TABLE table_25999087_2 (team_classification VARCHAR, stage VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR)
### OUTPUT
SELECT team_classification FROM table_25999087_2 WHERE points_classification = "Philippe Gilbert" AND mountains_classification = "Johnny Hoogerland" AND stage < 9.0 | {
"input": "CREATE TABLE table_25999087_2 (team_classification VARCHAR, stage VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR)",
"instruction": "What is every team classification when points classification is Philippe Gilbert if mountains classification is Johnny Hoogerland and stage is less than 9.0?",
"output": "SELECT team_classification FROM table_25999087_2 WHERE points_classification = \"Philippe Gilbert\" AND mountains_classification = \"Johnny Hoogerland\" AND stage < 9.0"
} |
### INSTRUCTION
What is the average number of goals of park sung-ho at the k-league competition, which has the pohang steelers team and less than 46 total Gs?
### INPUT
CREATE TABLE table_name_65 (goals INTEGER, total_gs VARCHAR, name VARCHAR, competition VARCHAR, team VARCHAR)
### OUTPUT
SELECT AVG(goals) FROM table_name_65 WHERE competition = "k-league" AND team = "pohang steelers" AND name = "park sung-ho" AND total_gs < 46 | {
"input": "CREATE TABLE table_name_65 (goals INTEGER, total_gs VARCHAR, name VARCHAR, competition VARCHAR, team VARCHAR)",
"instruction": "What is the average number of goals of park sung-ho at the k-league competition, which has the pohang steelers team and less than 46 total Gs?",
"output": "SELECT AVG(goals) FROM table_name_65 WHERE competition = \"k-league\" AND team = \"pohang steelers\" AND name = \"park sung-ho\" AND total_gs < 46"
} |
### INSTRUCTION
What is the average attendance when Brewers are the opponent with a score of 6–3?
### INPUT
CREATE TABLE table_name_68 (attendance INTEGER, opponent VARCHAR, score VARCHAR)
### OUTPUT
SELECT AVG(attendance) FROM table_name_68 WHERE opponent = "brewers" AND score = "6–3" | {
"input": "CREATE TABLE table_name_68 (attendance INTEGER, opponent VARCHAR, score VARCHAR)",
"instruction": "What is the average attendance when Brewers are the opponent with a score of 6–3?",
"output": "SELECT AVG(attendance) FROM table_name_68 WHERE opponent = \"brewers\" AND score = \"6–3\""
} |
### INSTRUCTION
For directors who had more than one movie, return the titles and produced years of all movies directed by them.
### INPUT
CREATE TABLE Movie (director VARCHAR, title VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, director VARCHAR)
### OUTPUT
SELECT T1.title, T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title | {
"input": "CREATE TABLE Movie (director VARCHAR, title VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, director VARCHAR)",
"instruction": "For directors who had more than one movie, return the titles and produced years of all movies directed by them.",
"output": "SELECT T1.title, T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title"
} |
### INSTRUCTION
Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?
### INPUT
CREATE TABLE cars_data (horsepower INTEGER); CREATE TABLE car_names (makeid VARCHAR, make VARCHAR); CREATE TABLE cars_data (id VARCHAR, horsepower INTEGER, cylinders VARCHAR)
### OUTPUT
SELECT t2.makeid, t2.make FROM cars_data AS t1 JOIN car_names AS t2 ON t1.id = t2.makeid WHERE t1.horsepower > (SELECT MIN(horsepower) FROM cars_data) AND t1.cylinders < 4 | {
"input": "CREATE TABLE cars_data (horsepower INTEGER); CREATE TABLE car_names (makeid VARCHAR, make VARCHAR); CREATE TABLE cars_data (id VARCHAR, horsepower INTEGER, cylinders VARCHAR)",
"instruction": "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?",
"output": "SELECT t2.makeid, t2.make FROM cars_data AS t1 JOIN car_names AS t2 ON t1.id = t2.makeid WHERE t1.horsepower > (SELECT MIN(horsepower) FROM cars_data) AND t1.cylinders < 4"
} |
### INSTRUCTION
What country has a compulsory deduction of 29.3%?
### INPUT
CREATE TABLE table_24486462_1 (country VARCHAR, compulsory_deduction VARCHAR)
### OUTPUT
SELECT country FROM table_24486462_1 WHERE compulsory_deduction = "29.3%" | {
"input": "CREATE TABLE table_24486462_1 (country VARCHAR, compulsory_deduction VARCHAR)",
"instruction": "What country has a compulsory deduction of 29.3%?",
"output": "SELECT country FROM table_24486462_1 WHERE compulsory_deduction = \"29.3%\""
} |
### INSTRUCTION
Which Top Division debut for Kitazakura has Tournaments less than 88?
### INPUT
CREATE TABLE table_name_12 (top_division_debut VARCHAR, tournaments VARCHAR, name VARCHAR)
### OUTPUT
SELECT top_division_debut FROM table_name_12 WHERE tournaments < 88 AND name = "kitazakura" | {
"input": "CREATE TABLE table_name_12 (top_division_debut VARCHAR, tournaments VARCHAR, name VARCHAR)",
"instruction": "Which Top Division debut for Kitazakura has Tournaments less than 88?",
"output": "SELECT top_division_debut FROM table_name_12 WHERE tournaments < 88 AND name = \"kitazakura\""
} |
### INSTRUCTION
Which Round is the lowest one that has a Pick # larger than 10, and a Position of tight end, and an Overall smaller than 132?
### INPUT
CREATE TABLE table_name_97 (round INTEGER, overall VARCHAR, pick__number VARCHAR, position VARCHAR)
### OUTPUT
SELECT MIN(round) FROM table_name_97 WHERE pick__number > 10 AND position = "tight end" AND overall < 132 | {
"input": "CREATE TABLE table_name_97 (round INTEGER, overall VARCHAR, pick__number VARCHAR, position VARCHAR)",
"instruction": "Which Round is the lowest one that has a Pick # larger than 10, and a Position of tight end, and an Overall smaller than 132?",
"output": "SELECT MIN(round) FROM table_name_97 WHERE pick__number > 10 AND position = \"tight end\" AND overall < 132"
} |
### INSTRUCTION
Find all members of "Bootup Baltimore" whose major is "600". Show the first name and last name.
### INPUT
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, major VARCHAR)
### OUTPUT
SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.major = "600" | {
"input": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, major VARCHAR)",
"instruction": "Find all members of \"Bootup Baltimore\" whose major is \"600\". Show the first name and last name.",
"output": "SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.major = \"600\""
} |
### INSTRUCTION
What are the names of wrestlers and the elimination moves?
### INPUT
CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE elimination (Elimination_Move VARCHAR, Wrestler_ID VARCHAR)
### OUTPUT
SELECT T2.Name, T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID | {
"input": "CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE elimination (Elimination_Move VARCHAR, Wrestler_ID VARCHAR)",
"instruction": "What are the names of wrestlers and the elimination moves?",
"output": "SELECT T2.Name, T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID"
} |
### INSTRUCTION
For the category of most popular star with a result of won for 2007, what was the award?
### INPUT
CREATE TABLE table_name_27 (award VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)
### OUTPUT
SELECT award FROM table_name_27 WHERE result = "won" AND category = "most popular star" AND year = 2007 | {
"input": "CREATE TABLE table_name_27 (award VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)",
"instruction": "For the category of most popular star with a result of won for 2007, what was the award?",
"output": "SELECT award FROM table_name_27 WHERE result = \"won\" AND category = \"most popular star\" AND year = 2007"
} |
### INSTRUCTION
What opponent has an attendance of 20,456?
### INPUT
CREATE TABLE table_name_7 (opponent VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_7 WHERE attendance = "20,456" | {
"input": "CREATE TABLE table_name_7 (opponent VARCHAR, attendance VARCHAR)",
"instruction": "What opponent has an attendance of 20,456?",
"output": "SELECT opponent FROM table_name_7 WHERE attendance = \"20,456\""
} |
### INSTRUCTION
What is the least amount of tropical lows for the 1993–94 season with less than 11 tropical cyclones
### INPUT
CREATE TABLE table_name_41 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR)
### OUTPUT
SELECT MIN(tropical_lows) FROM table_name_41 WHERE season = "1993–94" AND tropical_cyclones < 11 | {
"input": "CREATE TABLE table_name_41 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR)",
"instruction": "What is the least amount of tropical lows for the 1993–94 season with less than 11 tropical cyclones",
"output": "SELECT MIN(tropical_lows) FROM table_name_41 WHERE season = \"1993–94\" AND tropical_cyclones < 11"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.