text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
Find the names of all procedures which cost more than 1000 but which physician John Wen was not trained in?
### INPUT
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)
### OUTPUT
SELECT name FROM procedures WHERE cost > 1000 EXCEPT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" | {
"input": "CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)",
"instruction": "Find the names of all procedures which cost more than 1000 but which physician John Wen was not trained in?",
"output": "SELECT name FROM procedures WHERE cost > 1000 EXCEPT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\""
} |
### INSTRUCTION
What is the theme and artist name for the exhibition with a ticket price higher than the average?
### INPUT
CREATE TABLE exhibition (ticket_price INTEGER); CREATE TABLE exhibition (theme VARCHAR, artist_id VARCHAR, ticket_price INTEGER); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR)
### OUTPUT
SELECT T1.theme, T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT AVG(ticket_price) FROM exhibition) | {
"input": "CREATE TABLE exhibition (ticket_price INTEGER); CREATE TABLE exhibition (theme VARCHAR, artist_id VARCHAR, ticket_price INTEGER); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR)",
"instruction": "What is the theme and artist name for the exhibition with a ticket price higher than the average?",
"output": "SELECT T1.theme, T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT AVG(ticket_price) FROM exhibition)"
} |
### INSTRUCTION
when points for was points for what was the points?
### INPUT
CREATE TABLE table_name_86 (points VARCHAR, points_for VARCHAR)
### OUTPUT
SELECT points FROM table_name_86 WHERE points_for = "points for" | {
"input": "CREATE TABLE table_name_86 (points VARCHAR, points_for VARCHAR)",
"instruction": "when points for was points for what was the points?",
"output": "SELECT points FROM table_name_86 WHERE points_for = \"points for\""
} |
### INSTRUCTION
Which tournament had an outcome of winner, a hard surface, and happened on August 26, 2006?
### INPUT
CREATE TABLE table_name_76 (tournament VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_76 WHERE outcome = "winner" AND surface = "hard" AND date = "august 26, 2006" | {
"input": "CREATE TABLE table_name_76 (tournament VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR)",
"instruction": "Which tournament had an outcome of winner, a hard surface, and happened on August 26, 2006?",
"output": "SELECT tournament FROM table_name_76 WHERE outcome = \"winner\" AND surface = \"hard\" AND date = \"august 26, 2006\""
} |
### INSTRUCTION
What's the total number of League Cup with a Play-off larger than 2, and a Name of Mitch Cook Category:Articles with hCards?
### INPUT
CREATE TABLE table_name_8 (league VARCHAR, play_offs VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(league) AS Cup FROM table_name_8 WHERE play_offs > 2 AND name = "mitch cook category:articles with hcards" | {
"input": "CREATE TABLE table_name_8 (league VARCHAR, play_offs VARCHAR, name VARCHAR)",
"instruction": "What's the total number of League Cup with a Play-off larger than 2, and a Name of Mitch Cook Category:Articles with hCards?",
"output": "SELECT COUNT(league) AS Cup FROM table_name_8 WHERE play_offs > 2 AND name = \"mitch cook category:articles with hcards\""
} |
### INSTRUCTION
Name the average debt as % of value for operating income more than -16 and % change on year being 62
### INPUT
CREATE TABLE table_name_7 (debt_as__percentage_of_value INTEGER, _percentage_change_on_year VARCHAR, operating_income__$m_ VARCHAR)
### OUTPUT
SELECT AVG(debt_as__percentage_of_value) FROM table_name_7 WHERE _percentage_change_on_year = "62" AND operating_income__$m_ > -16 | {
"input": "CREATE TABLE table_name_7 (debt_as__percentage_of_value INTEGER, _percentage_change_on_year VARCHAR, operating_income__$m_ VARCHAR)",
"instruction": "Name the average debt as % of value for operating income more than -16 and % change on year being 62",
"output": "SELECT AVG(debt_as__percentage_of_value) FROM table_name_7 WHERE _percentage_change_on_year = \"62\" AND operating_income__$m_ > -16"
} |
### INSTRUCTION
What position did the person finish in with a notes of junior men individual 5.64km?
### INPUT
CREATE TABLE table_name_95 (position VARCHAR, notes VARCHAR)
### OUTPUT
SELECT position FROM table_name_95 WHERE notes = "junior men individual 5.64km" | {
"input": "CREATE TABLE table_name_95 (position VARCHAR, notes VARCHAR)",
"instruction": "What position did the person finish in with a notes of junior men individual 5.64km?",
"output": "SELECT position FROM table_name_95 WHERE notes = \"junior men individual 5.64km\""
} |
### INSTRUCTION
What is the average Prize fund ( US$ ), when OWGR pts is greater than 20, and when Dates is Nov 6-9?
### INPUT
CREATE TABLE table_name_56 (prize_fund___us INTEGER, owgr_pts VARCHAR, dates VARCHAR)
### OUTPUT
SELECT AVG(prize_fund___us) AS $__ FROM table_name_56 WHERE owgr_pts > 20 AND dates = "nov 6-9" | {
"input": "CREATE TABLE table_name_56 (prize_fund___us INTEGER, owgr_pts VARCHAR, dates VARCHAR)",
"instruction": "What is the average Prize fund ( US$ ), when OWGR pts is greater than 20, and when Dates is Nov 6-9?",
"output": "SELECT AVG(prize_fund___us) AS $__ FROM table_name_56 WHERE owgr_pts > 20 AND dates = \"nov 6-9\""
} |
### INSTRUCTION
What is the amount of renewable electricity without hydrogen power when the percentage of renewable energy is 83.4?
### INPUT
CREATE TABLE table_25244412_1 (renewable_electricity_w_o_hydro__gw•h_ VARCHAR, _percentage_renewable VARCHAR)
### OUTPUT
SELECT renewable_electricity_w_o_hydro__gw•h_ FROM table_25244412_1 WHERE _percentage_renewable = "83.4" | {
"input": "CREATE TABLE table_25244412_1 (renewable_electricity_w_o_hydro__gw•h_ VARCHAR, _percentage_renewable VARCHAR)",
"instruction": "What is the amount of renewable electricity without hydrogen power when the percentage of renewable energy is 83.4?",
"output": "SELECT renewable_electricity_w_o_hydro__gw•h_ FROM table_25244412_1 WHERE _percentage_renewable = \"83.4\""
} |
### INSTRUCTION
Show the apartment numbers of apartments with bookings that have status code both "Provisional" and "Confirmed"
### INPUT
CREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR); CREATE TABLE Apartment_Bookings (apt_id VARCHAR, booking_status_code VARCHAR)
### OUTPUT
SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Confirmed" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Provisional" | {
"input": "CREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR); CREATE TABLE Apartment_Bookings (apt_id VARCHAR, booking_status_code VARCHAR)",
"instruction": "Show the apartment numbers of apartments with bookings that have status code both \"Provisional\" and \"Confirmed\"",
"output": "SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Confirmed\" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Provisional\""
} |
### INSTRUCTION
Which tournament had a playoff with a margin of victory?
### INPUT
CREATE TABLE table_name_49 (tournament VARCHAR, margin_of_victory VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_49 WHERE margin_of_victory = "playoff" | {
"input": "CREATE TABLE table_name_49 (tournament VARCHAR, margin_of_victory VARCHAR)",
"instruction": "Which tournament had a playoff with a margin of victory?",
"output": "SELECT tournament FROM table_name_49 WHERE margin_of_victory = \"playoff\""
} |
### INSTRUCTION
What was the result for song of the year award in 1994?
### INPUT
CREATE TABLE table_name_69 (result VARCHAR, year VARCHAR, award VARCHAR)
### OUTPUT
SELECT result FROM table_name_69 WHERE year = 1994 AND award = "song of the year" | {
"input": "CREATE TABLE table_name_69 (result VARCHAR, year VARCHAR, award VARCHAR)",
"instruction": "What was the result for song of the year award in 1994?",
"output": "SELECT result FROM table_name_69 WHERE year = 1994 AND award = \"song of the year\""
} |
### INSTRUCTION
Show the names and ids of tourist attractions that are visited at least two times.
### INPUT
CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
### OUTPUT
SELECT T1.Name, T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING COUNT(*) >= 2 | {
"input": "CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)",
"instruction": "Show the names and ids of tourist attractions that are visited at least two times.",
"output": "SELECT T1.Name, T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING COUNT(*) >= 2"
} |
### INSTRUCTION
What is the phonetic realisation if the phonemic value is /v/ and the without niqqud is as initial letter: ו?
### INPUT
CREATE TABLE table_name_12 (phonetic_realisation VARCHAR, phonemic_value VARCHAR, without_niqqud VARCHAR)
### OUTPUT
SELECT phonetic_realisation FROM table_name_12 WHERE phonemic_value = "/v/" AND without_niqqud = "as initial letter: ו" | {
"input": "CREATE TABLE table_name_12 (phonetic_realisation VARCHAR, phonemic_value VARCHAR, without_niqqud VARCHAR)",
"instruction": "What is the phonetic realisation if the phonemic value is /v/ and the without niqqud is as initial letter: ו?",
"output": "SELECT phonetic_realisation FROM table_name_12 WHERE phonemic_value = \"/v/\" AND without_niqqud = \"as initial letter: ו\""
} |
### INSTRUCTION
what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0?
### INPUT
CREATE TABLE table_name_27 (Id VARCHAR)
### OUTPUT
SELECT SUM(1999) FROM table_name_27 WHERE 1990 > 0 AND 2003 = 3 AND 2007 > 1 AND 1996 > 0 | {
"input": "CREATE TABLE table_name_27 (Id VARCHAR)",
"instruction": "what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0?",
"output": "SELECT SUM(1999) FROM table_name_27 WHERE 1990 > 0 AND 2003 = 3 AND 2007 > 1 AND 1996 > 0"
} |
### INSTRUCTION
What is the total for Bob Tway for the year won before 2002 with a to par bigger than 7?
### INPUT
CREATE TABLE table_name_2 (total VARCHAR, to_par VARCHAR, year_won VARCHAR, player VARCHAR)
### OUTPUT
SELECT COUNT(total) FROM table_name_2 WHERE year_won < 2002 AND player = "bob tway" AND to_par > 7 | {
"input": "CREATE TABLE table_name_2 (total VARCHAR, to_par VARCHAR, year_won VARCHAR, player VARCHAR)",
"instruction": "What is the total for Bob Tway for the year won before 2002 with a to par bigger than 7?",
"output": "SELECT COUNT(total) FROM table_name_2 WHERE year_won < 2002 AND player = \"bob tway\" AND to_par > 7"
} |
### INSTRUCTION
Which Frequency has a Website of •, and a Webcast of •in san antonio?
### INPUT
CREATE TABLE table_name_44 (frequency INTEGER, city_of_license VARCHAR, website VARCHAR, webcast VARCHAR)
### OUTPUT
SELECT AVG(frequency) FROM table_name_44 WHERE website = "•" AND webcast = "•" AND city_of_license = "san antonio" | {
"input": "CREATE TABLE table_name_44 (frequency INTEGER, city_of_license VARCHAR, website VARCHAR, webcast VARCHAR)",
"instruction": "Which Frequency has a Website of •, and a Webcast of •in san antonio?",
"output": "SELECT AVG(frequency) FROM table_name_44 WHERE website = \"•\" AND webcast = \"•\" AND city_of_license = \"san antonio\""
} |
### INSTRUCTION
What year was the Album/Song Speaking louder than before?
### INPUT
CREATE TABLE table_name_39 (year INTEGER, album___song VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_39 WHERE album___song = "speaking louder than before" | {
"input": "CREATE TABLE table_name_39 (year INTEGER, album___song VARCHAR)",
"instruction": "What year was the Album/Song Speaking louder than before?",
"output": "SELECT SUM(year) FROM table_name_39 WHERE album___song = \"speaking louder than before\""
} |
### INSTRUCTION
What round was the debut of defender Stephen Laybutt?
### INPUT
CREATE TABLE table_name_11 (debut VARCHAR, position VARCHAR, name VARCHAR)
### OUTPUT
SELECT debut FROM table_name_11 WHERE position = "defender" AND name = "stephen laybutt" | {
"input": "CREATE TABLE table_name_11 (debut VARCHAR, position VARCHAR, name VARCHAR)",
"instruction": "What round was the debut of defender Stephen Laybutt?",
"output": "SELECT debut FROM table_name_11 WHERE position = \"defender\" AND name = \"stephen laybutt\""
} |
### INSTRUCTION
What Score has a Place of t6, a Country of united states, and a Player of fred couples?
### INPUT
CREATE TABLE table_name_7 (score VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)
### OUTPUT
SELECT score FROM table_name_7 WHERE place = "t6" AND country = "united states" AND player = "fred couples" | {
"input": "CREATE TABLE table_name_7 (score VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)",
"instruction": "What Score has a Place of t6, a Country of united states, and a Player of fred couples?",
"output": "SELECT score FROM table_name_7 WHERE place = \"t6\" AND country = \"united states\" AND player = \"fred couples\""
} |
### INSTRUCTION
Find the title of course that is provided by Statistics but not Psychology departments.
### INPUT
CREATE TABLE course (title VARCHAR, dept_name VARCHAR)
### OUTPUT
SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology' | {
"input": "CREATE TABLE course (title VARCHAR, dept_name VARCHAR)",
"instruction": "Find the title of course that is provided by Statistics but not Psychology departments.",
"output": "SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology'"
} |
### INSTRUCTION
WHAT IS THE TYPE OF LAND WITH A 2007 POPULATION SMALLER THAN 4346, 2010 POPULATION LARGER THAN 3385, FROM BARANGAY OF MANALONGON?
### INPUT
CREATE TABLE table_name_10 (geographic_character VARCHAR, barangay VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR)
### OUTPUT
SELECT geographic_character FROM table_name_10 WHERE population__2007_ < 4346 AND population__2010_ > 3385 AND barangay = "manalongon" | {
"input": "CREATE TABLE table_name_10 (geographic_character VARCHAR, barangay VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR)",
"instruction": "WHAT IS THE TYPE OF LAND WITH A 2007 POPULATION SMALLER THAN 4346, 2010 POPULATION LARGER THAN 3385, FROM BARANGAY OF MANALONGON?",
"output": "SELECT geographic_character FROM table_name_10 WHERE population__2007_ < 4346 AND population__2010_ > 3385 AND barangay = \"manalongon\""
} |
### INSTRUCTION
When Fabrizio Baldassari is the runner-up what is the total prize money?
### INPUT
CREATE TABLE table_12454156_1 (prize_money VARCHAR, runner_up VARCHAR)
### OUTPUT
SELECT prize_money FROM table_12454156_1 WHERE runner_up = "Fabrizio Baldassari" | {
"input": "CREATE TABLE table_12454156_1 (prize_money VARCHAR, runner_up VARCHAR)",
"instruction": "When Fabrizio Baldassari is the runner-up what is the total prize money?",
"output": "SELECT prize_money FROM table_12454156_1 WHERE runner_up = \"Fabrizio Baldassari\""
} |
### INSTRUCTION
What was the essendon score when they were at home?
### INPUT
CREATE TABLE table_name_25 (home_team VARCHAR)
### OUTPUT
SELECT home_team AS score FROM table_name_25 WHERE home_team = "essendon" | {
"input": "CREATE TABLE table_name_25 (home_team VARCHAR)",
"instruction": "What was the essendon score when they were at home?",
"output": "SELECT home_team AS score FROM table_name_25 WHERE home_team = \"essendon\""
} |
### INSTRUCTION
Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes?
### INPUT
CREATE TABLE table_name_22 (format VARCHAR, open_standard VARCHAR, image_support VARCHAR, interactivity_support VARCHAR, word_wrap_support VARCHAR)
### OUTPUT
SELECT format FROM table_name_22 WHERE interactivity_support = "no" AND word_wrap_support = "yes" AND image_support = "yes" AND open_standard = "yes" | {
"input": "CREATE TABLE table_name_22 (format VARCHAR, open_standard VARCHAR, image_support VARCHAR, interactivity_support VARCHAR, word_wrap_support VARCHAR)",
"instruction": "Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes?",
"output": "SELECT format FROM table_name_22 WHERE interactivity_support = \"no\" AND word_wrap_support = \"yes\" AND image_support = \"yes\" AND open_standard = \"yes\""
} |
### INSTRUCTION
How many South Asians on average were in Alberta in 2001 and in 2011 had 159,055?
### INPUT
CREATE TABLE table_name_86 (south_asians_2001 INTEGER, province VARCHAR, south_asians_2011 VARCHAR)
### OUTPUT
SELECT AVG(south_asians_2001) FROM table_name_86 WHERE province = "alberta" AND south_asians_2011 > 159 OFFSET 055 | {
"input": "CREATE TABLE table_name_86 (south_asians_2001 INTEGER, province VARCHAR, south_asians_2011 VARCHAR)",
"instruction": "How many South Asians on average were in Alberta in 2001 and in 2011 had 159,055?",
"output": "SELECT AVG(south_asians_2001) FROM table_name_86 WHERE province = \"alberta\" AND south_asians_2011 > 159 OFFSET 055"
} |
### INSTRUCTION
What is the full number of Total Seats with a constituency seat number bigger than 0 with the Liberal Democrat party, and the Regional seat number is smaller than 6?
### INPUT
CREATE TABLE table_name_26 (total_seats INTEGER, regional_seats VARCHAR, constituency_seats VARCHAR, party VARCHAR)
### OUTPUT
SELECT SUM(total_seats) FROM table_name_26 WHERE constituency_seats > 0 AND party = "liberal democrat" AND regional_seats < 6 | {
"input": "CREATE TABLE table_name_26 (total_seats INTEGER, regional_seats VARCHAR, constituency_seats VARCHAR, party VARCHAR)",
"instruction": "What is the full number of Total Seats with a constituency seat number bigger than 0 with the Liberal Democrat party, and the Regional seat number is smaller than 6?",
"output": "SELECT SUM(total_seats) FROM table_name_26 WHERE constituency_seats > 0 AND party = \"liberal democrat\" AND regional_seats < 6"
} |
### INSTRUCTION
How much Position has a Lost of 8, and a Played larger than 14?
### INPUT
CREATE TABLE table_name_78 (position INTEGER, lost VARCHAR, played VARCHAR)
### OUTPUT
SELECT SUM(position) FROM table_name_78 WHERE lost = 8 AND played > 14 | {
"input": "CREATE TABLE table_name_78 (position INTEGER, lost VARCHAR, played VARCHAR)",
"instruction": "How much Position has a Lost of 8, and a Played larger than 14?",
"output": "SELECT SUM(position) FROM table_name_78 WHERE lost = 8 AND played > 14"
} |
### INSTRUCTION
Who is the semi-final second television commentator with graham norton as the final television commentator and scott mills as the spokesperson before 2013?
### INPUT
CREATE TABLE table_name_51 (semi_final_second_television_commentator VARCHAR, year_s_ VARCHAR, final_television_commentator VARCHAR, spokesperson VARCHAR)
### OUTPUT
SELECT semi_final_second_television_commentator FROM table_name_51 WHERE final_television_commentator = "graham norton" AND spokesperson = "scott mills" AND year_s_ < 2013 | {
"input": "CREATE TABLE table_name_51 (semi_final_second_television_commentator VARCHAR, year_s_ VARCHAR, final_television_commentator VARCHAR, spokesperson VARCHAR)",
"instruction": "Who is the semi-final second television commentator with graham norton as the final television commentator and scott mills as the spokesperson before 2013?",
"output": "SELECT semi_final_second_television_commentator FROM table_name_51 WHERE final_television_commentator = \"graham norton\" AND spokesperson = \"scott mills\" AND year_s_ < 2013"
} |
### INSTRUCTION
What were the points per game in the selection where the rebounds per game were 15.0?
### INPUT
CREATE TABLE table_25774493_3 (points_per_game VARCHAR, rebounds_per_game VARCHAR)
### OUTPUT
SELECT points_per_game FROM table_25774493_3 WHERE rebounds_per_game = "15.0" | {
"input": "CREATE TABLE table_25774493_3 (points_per_game VARCHAR, rebounds_per_game VARCHAR)",
"instruction": "What were the points per game in the selection where the rebounds per game were 15.0?",
"output": "SELECT points_per_game FROM table_25774493_3 WHERE rebounds_per_game = \"15.0\""
} |
### INSTRUCTION
What was Hawthorn's score as the away team?
### INPUT
CREATE TABLE table_name_96 (away_team VARCHAR)
### OUTPUT
SELECT away_team AS score FROM table_name_96 WHERE away_team = "hawthorn" | {
"input": "CREATE TABLE table_name_96 (away_team VARCHAR)",
"instruction": "What was Hawthorn's score as the away team?",
"output": "SELECT away_team AS score FROM table_name_96 WHERE away_team = \"hawthorn\""
} |
### INSTRUCTION
What is the brand name for the antibody Brentuximab Vedotin?
### INPUT
CREATE TABLE table_1661124_1 (brand_name VARCHAR, antibody VARCHAR)
### OUTPUT
SELECT brand_name FROM table_1661124_1 WHERE antibody = "Brentuximab vedotin" | {
"input": "CREATE TABLE table_1661124_1 (brand_name VARCHAR, antibody VARCHAR)",
"instruction": "What is the brand name for the antibody Brentuximab Vedotin?",
"output": "SELECT brand_name FROM table_1661124_1 WHERE antibody = \"Brentuximab vedotin\""
} |
### INSTRUCTION
Name the ppv for sky famiglia and dar 16:9 for mtv dance
### INPUT
CREATE TABLE table_15887683_10 (ppv VARCHAR, television_service VARCHAR, package_option VARCHAR, dar VARCHAR)
### OUTPUT
SELECT ppv FROM table_15887683_10 WHERE package_option = "Sky Famiglia" AND dar = "16:9" AND television_service = "MTV Dance" | {
"input": "CREATE TABLE table_15887683_10 (ppv VARCHAR, television_service VARCHAR, package_option VARCHAR, dar VARCHAR)",
"instruction": "Name the ppv for sky famiglia and dar 16:9 for mtv dance",
"output": "SELECT ppv FROM table_15887683_10 WHERE package_option = \"Sky Famiglia\" AND dar = \"16:9\" AND television_service = \"MTV Dance\""
} |
### INSTRUCTION
Show name of all students who have some friends and also are liked by someone else.
### INPUT
CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Likes (student_id VARCHAR, liked_id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, liked_id VARCHAR)
### OUTPUT
SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id | {
"input": "CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Likes (student_id VARCHAR, liked_id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, liked_id VARCHAR)",
"instruction": "Show name of all students who have some friends and also are liked by someone else.",
"output": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id"
} |
### INSTRUCTION
Which Calendar has a WYSIWYG Editor of no, and an Unread message tracking of session, and an Image attachment of no?
### INPUT
CREATE TABLE table_name_91 (calendar VARCHAR, image_attachment VARCHAR, wysiwyg_editor VARCHAR, unread_message_tracking VARCHAR)
### OUTPUT
SELECT calendar FROM table_name_91 WHERE wysiwyg_editor = "no" AND unread_message_tracking = "session" AND image_attachment = "no" | {
"input": "CREATE TABLE table_name_91 (calendar VARCHAR, image_attachment VARCHAR, wysiwyg_editor VARCHAR, unread_message_tracking VARCHAR)",
"instruction": "Which Calendar has a WYSIWYG Editor of no, and an Unread message tracking of session, and an Image attachment of no?",
"output": "SELECT calendar FROM table_name_91 WHERE wysiwyg_editor = \"no\" AND unread_message_tracking = \"session\" AND image_attachment = \"no\""
} |
### INSTRUCTION
What was the oilers record for the game on November 27 when the Edmonton oilers were playing at home and the Chicago Blackhawks were the visiting team?
### INPUT
CREATE TABLE table_name_85 (record VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)
### OUTPUT
SELECT record FROM table_name_85 WHERE home = "edmonton oilers" AND visitor = "chicago blackhawks" AND date = "november 27" | {
"input": "CREATE TABLE table_name_85 (record VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR)",
"instruction": "What was the oilers record for the game on November 27 when the Edmonton oilers were playing at home and the Chicago Blackhawks were the visiting team?",
"output": "SELECT record FROM table_name_85 WHERE home = \"edmonton oilers\" AND visitor = \"chicago blackhawks\" AND date = \"november 27\""
} |
### INSTRUCTION
What score won $36,090?
### INPUT
CREATE TABLE table_name_65 (score VARCHAR, money___$__ VARCHAR)
### OUTPUT
SELECT score FROM table_name_65 WHERE money___$__ = "36,090" | {
"input": "CREATE TABLE table_name_65 (score VARCHAR, money___$__ VARCHAR)",
"instruction": "What score won $36,090?",
"output": "SELECT score FROM table_name_65 WHERE money___$__ = \"36,090\""
} |
### INSTRUCTION
What is the city location of the tournament currently known as the Medibank International Sydney?
### INPUT
CREATE TABLE table_20630462_1 (city_s_ VARCHAR, also_currently_known_as VARCHAR)
### OUTPUT
SELECT city_s_ FROM table_20630462_1 WHERE also_currently_known_as = "Medibank International Sydney" | {
"input": "CREATE TABLE table_20630462_1 (city_s_ VARCHAR, also_currently_known_as VARCHAR)",
"instruction": "What is the city location of the tournament currently known as the Medibank International Sydney?",
"output": "SELECT city_s_ FROM table_20630462_1 WHERE also_currently_known_as = \"Medibank International Sydney\""
} |
### INSTRUCTION
Who's the Republican ticket with a Communist ticket of elizabeth gurley flynn?
### INPUT
CREATE TABLE table_name_32 (republican_ticket VARCHAR, communist_ticket VARCHAR)
### OUTPUT
SELECT republican_ticket FROM table_name_32 WHERE communist_ticket = "elizabeth gurley flynn" | {
"input": "CREATE TABLE table_name_32 (republican_ticket VARCHAR, communist_ticket VARCHAR)",
"instruction": "Who's the Republican ticket with a Communist ticket of elizabeth gurley flynn?",
"output": "SELECT republican_ticket FROM table_name_32 WHERE communist_ticket = \"elizabeth gurley flynn\""
} |
### INSTRUCTION
Where was the world race walking cup held before 2001?
### INPUT
CREATE TABLE table_name_49 (venue VARCHAR, year VARCHAR, competition VARCHAR)
### OUTPUT
SELECT venue FROM table_name_49 WHERE year < 2001 AND competition = "world race walking cup" | {
"input": "CREATE TABLE table_name_49 (venue VARCHAR, year VARCHAR, competition VARCHAR)",
"instruction": "Where was the world race walking cup held before 2001?",
"output": "SELECT venue FROM table_name_49 WHERE year < 2001 AND competition = \"world race walking cup\""
} |
### INSTRUCTION
What type of chipset is in the Precision t3400 model with the PCI Express graphics?
### INPUT
CREATE TABLE table_name_97 (chipset VARCHAR, graphics VARCHAR, model VARCHAR)
### OUTPUT
SELECT chipset FROM table_name_97 WHERE graphics = "pci express" AND model = "precision t3400" | {
"input": "CREATE TABLE table_name_97 (chipset VARCHAR, graphics VARCHAR, model VARCHAR)",
"instruction": "What type of chipset is in the Precision t3400 model with the PCI Express graphics?",
"output": "SELECT chipset FROM table_name_97 WHERE graphics = \"pci express\" AND model = \"precision t3400\""
} |
### INSTRUCTION
How many elections had 1423 average voters per candidate?
### INPUT
CREATE TABLE table_19698421_1 (change__percentage_points_ VARCHAR, average_voters_per_candidate VARCHAR)
### OUTPUT
SELECT COUNT(change__percentage_points_) FROM table_19698421_1 WHERE average_voters_per_candidate = 1423 | {
"input": "CREATE TABLE table_19698421_1 (change__percentage_points_ VARCHAR, average_voters_per_candidate VARCHAR)",
"instruction": "How many elections had 1423 average voters per candidate?",
"output": "SELECT COUNT(change__percentage_points_) FROM table_19698421_1 WHERE average_voters_per_candidate = 1423"
} |
### INSTRUCTION
for the name of jamar jackson what is the class?
### INPUT
CREATE TABLE table_name_87 (class VARCHAR, name VARCHAR)
### OUTPUT
SELECT class FROM table_name_87 WHERE name = "jamar jackson" | {
"input": "CREATE TABLE table_name_87 (class VARCHAR, name VARCHAR)",
"instruction": "for the name of jamar jackson what is the class?",
"output": "SELECT class FROM table_name_87 WHERE name = \"jamar jackson\""
} |
### INSTRUCTION
How many attended the game that was a Loss of k. gross (1-1)?
### INPUT
CREATE TABLE table_name_68 (attendance INTEGER, loss VARCHAR)
### OUTPUT
SELECT MAX(attendance) FROM table_name_68 WHERE loss = "k. gross (1-1)" | {
"input": "CREATE TABLE table_name_68 (attendance INTEGER, loss VARCHAR)",
"instruction": "How many attended the game that was a Loss of k. gross (1-1)?",
"output": "SELECT MAX(attendance) FROM table_name_68 WHERE loss = \"k. gross (1-1)\""
} |
### INSTRUCTION
What is the result of the match with a H/A of A and a kick off at 1992-10-31 16:00?
### INPUT
CREATE TABLE table_name_14 (result VARCHAR, h___a VARCHAR, kick_off VARCHAR)
### OUTPUT
SELECT result FROM table_name_14 WHERE h___a = "a" AND kick_off = "1992-10-31 16:00" | {
"input": "CREATE TABLE table_name_14 (result VARCHAR, h___a VARCHAR, kick_off VARCHAR)",
"instruction": "What is the result of the match with a H/A of A and a kick off at 1992-10-31 16:00?",
"output": "SELECT result FROM table_name_14 WHERE h___a = \"a\" AND kick_off = \"1992-10-31 16:00\""
} |
### INSTRUCTION
How many site entries are there at 3:30pm and the visiting team is coastal carolina?
### INPUT
CREATE TABLE table_28298589_2 (site VARCHAR, time VARCHAR, visiting_team VARCHAR)
### OUTPUT
SELECT COUNT(site) FROM table_28298589_2 WHERE time = "3:30pm" AND visiting_team = "Coastal Carolina" | {
"input": "CREATE TABLE table_28298589_2 (site VARCHAR, time VARCHAR, visiting_team VARCHAR)",
"instruction": "How many site entries are there at 3:30pm and the visiting team is coastal carolina?",
"output": "SELECT COUNT(site) FROM table_28298589_2 WHERE time = \"3:30pm\" AND visiting_team = \"Coastal Carolina\""
} |
### INSTRUCTION
When was the venue named nassau veterans memorial coliseum established??
### INPUT
CREATE TABLE table_name_45 (established INTEGER, venue VARCHAR)
### OUTPUT
SELECT MAX(established) FROM table_name_45 WHERE venue = "nassau veterans memorial coliseum" | {
"input": "CREATE TABLE table_name_45 (established INTEGER, venue VARCHAR)",
"instruction": "When was the venue named nassau veterans memorial coliseum established??",
"output": "SELECT MAX(established) FROM table_name_45 WHERE venue = \"nassau veterans memorial coliseum\""
} |
### INSTRUCTION
Find the name and level of catalog structure with level between 5 and 10.
### INPUT
CREATE TABLE Catalog_Structure (catalog_level_name VARCHAR, catalog_level_number INTEGER)
### OUTPUT
SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 | {
"input": "CREATE TABLE Catalog_Structure (catalog_level_name VARCHAR, catalog_level_number INTEGER)",
"instruction": "Find the name and level of catalog structure with level between 5 and 10.",
"output": "SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10"
} |
### INSTRUCTION
which chapter was Transmitted on wednesday if the episode of "363 the hangover part ii" was transmitted on monday?
### INPUT
CREATE TABLE table_18173916_8 (wednesday VARCHAR, monday VARCHAR)
### OUTPUT
SELECT wednesday FROM table_18173916_8 WHERE monday = "363 The Hangover Part II" | {
"input": "CREATE TABLE table_18173916_8 (wednesday VARCHAR, monday VARCHAR)",
"instruction": "which chapter was Transmitted on wednesday if the episode of \"363 the hangover part ii\" was transmitted on monday? ",
"output": "SELECT wednesday FROM table_18173916_8 WHERE monday = \"363 The Hangover Part II\""
} |
### INSTRUCTION
Which date has 3 as the goal?
### INPUT
CREATE TABLE table_name_55 (date VARCHAR, goal VARCHAR)
### OUTPUT
SELECT date FROM table_name_55 WHERE goal = 3 | {
"input": "CREATE TABLE table_name_55 (date VARCHAR, goal VARCHAR)",
"instruction": "Which date has 3 as the goal?",
"output": "SELECT date FROM table_name_55 WHERE goal = 3"
} |
### INSTRUCTION
What is the total number of S No(s), when the Margin is 16 runs?
### INPUT
CREATE TABLE table_name_88 (s_no VARCHAR, margin VARCHAR)
### OUTPUT
SELECT COUNT(s_no) FROM table_name_88 WHERE margin = "16 runs" | {
"input": "CREATE TABLE table_name_88 (s_no VARCHAR, margin VARCHAR)",
"instruction": "What is the total number of S No(s), when the Margin is 16 runs?",
"output": "SELECT COUNT(s_no) FROM table_name_88 WHERE margin = \"16 runs\""
} |
### INSTRUCTION
Who was the home team on June 9?
### INPUT
CREATE TABLE table_name_81 (home VARCHAR, date VARCHAR)
### OUTPUT
SELECT home FROM table_name_81 WHERE date = "june 9" | {
"input": "CREATE TABLE table_name_81 (home VARCHAR, date VARCHAR)",
"instruction": "Who was the home team on June 9?",
"output": "SELECT home FROM table_name_81 WHERE date = \"june 9\""
} |
### INSTRUCTION
what is the english translation when the Language is english, Draw is smaller than 16, and the Artist is aysel and arash?
### INPUT
CREATE TABLE table_name_51 (english_translation VARCHAR, artist VARCHAR, language VARCHAR, draw VARCHAR)
### OUTPUT
SELECT english_translation FROM table_name_51 WHERE language = "english" AND draw < 16 AND artist = "aysel and arash" | {
"input": "CREATE TABLE table_name_51 (english_translation VARCHAR, artist VARCHAR, language VARCHAR, draw VARCHAR)",
"instruction": "what is the english translation when the Language is english, Draw is smaller than 16, and the Artist is aysel and arash?",
"output": "SELECT english_translation FROM table_name_51 WHERE language = \"english\" AND draw < 16 AND artist = \"aysel and arash\""
} |
### INSTRUCTION
Show the description and code of the attraction type most tourist attractions belong to.
### INPUT
CREATE TABLE Ref_Attraction_Types (Attraction_Type_Description VARCHAR, Attraction_Type_Code VARCHAR); CREATE TABLE Tourist_Attractions (Attraction_Type_Code VARCHAR)
### OUTPUT
SELECT T1.Attraction_Type_Description, T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Ref_Attraction_Types (Attraction_Type_Description VARCHAR, Attraction_Type_Code VARCHAR); CREATE TABLE Tourist_Attractions (Attraction_Type_Code VARCHAR)",
"instruction": "Show the description and code of the attraction type most tourist attractions belong to.",
"output": "SELECT T1.Attraction_Type_Description, T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.
### INPUT
CREATE TABLE Documents (document_type_code VARCHAR, document_name VARCHAR, document_description VARCHAR)
### OUTPUT
SELECT document_type_code, document_name, document_description FROM Documents WHERE document_name = 'Noel CV' OR document_name = 'King Book' | {
"input": "CREATE TABLE Documents (document_type_code VARCHAR, document_name VARCHAR, document_description VARCHAR)",
"instruction": "List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.",
"output": "SELECT document_type_code, document_name, document_description FROM Documents WHERE document_name = 'Noel CV' OR document_name = 'King Book'"
} |
### INSTRUCTION
Which Vertices have a Dual Archimedean solid of truncated dodecahedron?
### INPUT
CREATE TABLE table_name_28 (vertices INTEGER, dual_archimedean_solid VARCHAR)
### OUTPUT
SELECT MAX(vertices) FROM table_name_28 WHERE dual_archimedean_solid = "truncated dodecahedron" | {
"input": "CREATE TABLE table_name_28 (vertices INTEGER, dual_archimedean_solid VARCHAR)",
"instruction": "Which Vertices have a Dual Archimedean solid of truncated dodecahedron?",
"output": "SELECT MAX(vertices) FROM table_name_28 WHERE dual_archimedean_solid = \"truncated dodecahedron\""
} |
### INSTRUCTION
Which ship was sunk at 01:00?
### INPUT
CREATE TABLE table_name_96 (name_of_ship VARCHAR, fate VARCHAR, time VARCHAR)
### OUTPUT
SELECT name_of_ship FROM table_name_96 WHERE fate = "sunk at" AND time = "01:00" | {
"input": "CREATE TABLE table_name_96 (name_of_ship VARCHAR, fate VARCHAR, time VARCHAR)",
"instruction": "Which ship was sunk at 01:00?",
"output": "SELECT name_of_ship FROM table_name_96 WHERE fate = \"sunk at\" AND time = \"01:00\""
} |
### INSTRUCTION
List the names of all songs that have 4 minute duration or are in English.
### INPUT
CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE song (song_name VARCHAR, languages VARCHAR)
### OUTPUT
SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages = "english" | {
"input": "CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE song (song_name VARCHAR, languages VARCHAR)",
"instruction": "List the names of all songs that have 4 minute duration or are in English.",
"output": "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE \"4:%\" UNION SELECT song_name FROM song WHERE languages = \"english\""
} |
### INSTRUCTION
What was the Date From for Theo Robinson, who was with the team until the end of season?
### INPUT
CREATE TABLE table_name_30 (date_from VARCHAR, date_to VARCHAR, name VARCHAR)
### OUTPUT
SELECT date_from FROM table_name_30 WHERE date_to = "end of season" AND name = "theo robinson" | {
"input": "CREATE TABLE table_name_30 (date_from VARCHAR, date_to VARCHAR, name VARCHAR)",
"instruction": "What was the Date From for Theo Robinson, who was with the team until the end of season?",
"output": "SELECT date_from FROM table_name_30 WHERE date_to = \"end of season\" AND name = \"theo robinson\""
} |
### INSTRUCTION
How many total wins have 3 as the Top-35 and less than 5 cuts made?
### INPUT
CREATE TABLE table_name_40 (wins INTEGER, top_25 VARCHAR, cuts_made VARCHAR)
### OUTPUT
SELECT SUM(wins) FROM table_name_40 WHERE top_25 = 3 AND cuts_made < 5 | {
"input": "CREATE TABLE table_name_40 (wins INTEGER, top_25 VARCHAR, cuts_made VARCHAR)",
"instruction": "How many total wins have 3 as the Top-35 and less than 5 cuts made?",
"output": "SELECT SUM(wins) FROM table_name_40 WHERE top_25 = 3 AND cuts_made < 5"
} |
### INSTRUCTION
display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working.
### INPUT
CREATE TABLE countries (country_name VARCHAR, country_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR); CREATE TABLE locations (location_id VARCHAR, country_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, employee_id VARCHAR, department_id VARCHAR)
### OUTPUT
SELECT T1.first_name, T1.last_name, T1.employee_id, T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id | {
"input": "CREATE TABLE countries (country_name VARCHAR, country_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR); CREATE TABLE locations (location_id VARCHAR, country_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, employee_id VARCHAR, department_id VARCHAR)",
"instruction": "display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working.",
"output": "SELECT T1.first_name, T1.last_name, T1.employee_id, T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id"
} |
### INSTRUCTION
Name the total number for % popular vote for # of seats won for 83
### INPUT
CREATE TABLE table_19769687_3 (_percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR)
### OUTPUT
SELECT COUNT(_percentage_of_popular_vote) FROM table_19769687_3 WHERE _number_of_seats_won = 83 | {
"input": "CREATE TABLE table_19769687_3 (_percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR)",
"instruction": "Name the total number for % popular vote for # of seats won for 83",
"output": "SELECT COUNT(_percentage_of_popular_vote) FROM table_19769687_3 WHERE _number_of_seats_won = 83"
} |
### INSTRUCTION
Find the category descriptions of the products whose descriptions include letter 't'.
### INPUT
CREATE TABLE ref_product_categories (product_category_description VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_description VARCHAR)
### OUTPUT
SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' | {
"input": "CREATE TABLE ref_product_categories (product_category_description VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_description VARCHAR)",
"instruction": "Find the category descriptions of the products whose descriptions include letter 't'.",
"output": "SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%'"
} |
### INSTRUCTION
What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57?
### INPUT
CREATE TABLE table_name_67 (year INTEGER, rider VARCHAR, final_position___giro VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR)
### OUTPUT
SELECT MIN(year) FROM table_name_67 WHERE final_position___tour > 72 AND final_position___vuelta < 77 AND final_position___giro < 57 AND rider = "valdimir poelnikov" | {
"input": "CREATE TABLE table_name_67 (year INTEGER, rider VARCHAR, final_position___giro VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR)",
"instruction": "What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57?",
"output": "SELECT MIN(year) FROM table_name_67 WHERE final_position___tour > 72 AND final_position___vuelta < 77 AND final_position___giro < 57 AND rider = \"valdimir poelnikov\""
} |
### INSTRUCTION
List the names of technicians who have not been assigned to repair machines.
### INPUT
CREATE TABLE technician (Name VARCHAR, technician_id VARCHAR); CREATE TABLE repair_assignment (Name VARCHAR, technician_id VARCHAR)
### OUTPUT
SELECT Name FROM technician WHERE NOT technician_id IN (SELECT technician_id FROM repair_assignment) | {
"input": "CREATE TABLE technician (Name VARCHAR, technician_id VARCHAR); CREATE TABLE repair_assignment (Name VARCHAR, technician_id VARCHAR)",
"instruction": "List the names of technicians who have not been assigned to repair machines.",
"output": "SELECT Name FROM technician WHERE NOT technician_id IN (SELECT technician_id FROM repair_assignment)"
} |
### INSTRUCTION
What is the smallest lane for rank 6?
### INPUT
CREATE TABLE table_name_64 (lane INTEGER, rank VARCHAR)
### OUTPUT
SELECT MIN(lane) FROM table_name_64 WHERE rank = 6 | {
"input": "CREATE TABLE table_name_64 (lane INTEGER, rank VARCHAR)",
"instruction": "What is the smallest lane for rank 6?",
"output": "SELECT MIN(lane) FROM table_name_64 WHERE rank = 6"
} |
### INSTRUCTION
When the # is 4, what is the pop./ km²?
### INPUT
CREATE TABLE table_2252745_1 (pop__km² VARCHAR, _number VARCHAR)
### OUTPUT
SELECT pop__km² FROM table_2252745_1 WHERE _number = 4 | {
"input": "CREATE TABLE table_2252745_1 (pop__km² VARCHAR, _number VARCHAR)",
"instruction": "When the # is 4, what is the pop./ km²?",
"output": "SELECT pop__km² FROM table_2252745_1 WHERE _number = 4"
} |
### INSTRUCTION
For games on December 20, how many points did the scoring leaders get?
### INPUT
CREATE TABLE table_10812293_4 (high_points VARCHAR, date VARCHAR)
### OUTPUT
SELECT high_points FROM table_10812293_4 WHERE date = "December 20" | {
"input": "CREATE TABLE table_10812293_4 (high_points VARCHAR, date VARCHAR)",
"instruction": "For games on December 20, how many points did the scoring leaders get?",
"output": "SELECT high_points FROM table_10812293_4 WHERE date = \"December 20\""
} |
### INSTRUCTION
What date is the 1:00 pm game at arrowhead stadium?
### INPUT
CREATE TABLE table_name_37 (date VARCHAR, time___et__ VARCHAR, game_site VARCHAR)
### OUTPUT
SELECT date FROM table_name_37 WHERE time___et__ = "1:00 pm" AND game_site = "arrowhead stadium" | {
"input": "CREATE TABLE table_name_37 (date VARCHAR, time___et__ VARCHAR, game_site VARCHAR)",
"instruction": "What date is the 1:00 pm game at arrowhead stadium?",
"output": "SELECT date FROM table_name_37 WHERE time___et__ = \"1:00 pm\" AND game_site = \"arrowhead stadium\""
} |
### INSTRUCTION
What is Fractievoorzitter, when Lijsttrekker is "No Elections", and when Year is after 2005?
### INPUT
CREATE TABLE table_name_80 (fractievoorzitter VARCHAR, lijsttrekker VARCHAR, year VARCHAR)
### OUTPUT
SELECT fractievoorzitter FROM table_name_80 WHERE lijsttrekker = "no elections" AND year > 2005 | {
"input": "CREATE TABLE table_name_80 (fractievoorzitter VARCHAR, lijsttrekker VARCHAR, year VARCHAR)",
"instruction": "What is Fractievoorzitter, when Lijsttrekker is \"No Elections\", and when Year is after 2005?",
"output": "SELECT fractievoorzitter FROM table_name_80 WHERE lijsttrekker = \"no elections\" AND year > 2005"
} |
### INSTRUCTION
Daily ridership greater that 414 is associated with which length?
### INPUT
CREATE TABLE table_name_60 (length VARCHAR, daily_ridership INTEGER)
### OUTPUT
SELECT length FROM table_name_60 WHERE daily_ridership > 414 | {
"input": "CREATE TABLE table_name_60 (length VARCHAR, daily_ridership INTEGER)",
"instruction": "Daily ridership greater that 414 is associated with which length?",
"output": "SELECT length FROM table_name_60 WHERE daily_ridership > 414"
} |
### INSTRUCTION
How many allsvenskan titles did club aik have after its introduction after 2000, with stars symbolizing the number of swedish championship titles ?
### INPUT
CREATE TABLE table_name_78 (allsvenskan_titles INTEGER, introduced VARCHAR, stars_symbolizes VARCHAR, club VARCHAR)
### OUTPUT
SELECT SUM(allsvenskan_titles) FROM table_name_78 WHERE stars_symbolizes = "number of swedish championship titles" AND club = "aik" AND introduced > 2000 | {
"input": "CREATE TABLE table_name_78 (allsvenskan_titles INTEGER, introduced VARCHAR, stars_symbolizes VARCHAR, club VARCHAR)",
"instruction": "How many allsvenskan titles did club aik have after its introduction after 2000, with stars symbolizing the number of swedish championship titles ?",
"output": "SELECT SUM(allsvenskan_titles) FROM table_name_78 WHERE stars_symbolizes = \"number of swedish championship titles\" AND club = \"aik\" AND introduced > 2000"
} |
### INSTRUCTION
What is the total number of First Elected, when Party is "Democratic", and when District is "Tennessee 5"?
### INPUT
CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, district VARCHAR)
### OUTPUT
SELECT COUNT(first_elected) FROM table_name_28 WHERE party = "democratic" AND district = "tennessee 5" | {
"input": "CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, district VARCHAR)",
"instruction": "What is the total number of First Elected, when Party is \"Democratic\", and when District is \"Tennessee 5\"?",
"output": "SELECT COUNT(first_elected) FROM table_name_28 WHERE party = \"democratic\" AND district = \"tennessee 5\""
} |
### INSTRUCTION
Who are the judges in the Netherlands for the season airing 28 November 2011 – 24 December 2011?
### INPUT
CREATE TABLE table_27487310_5 (judges VARCHAR, country VARCHAR, air_dates VARCHAR)
### OUTPUT
SELECT judges FROM table_27487310_5 WHERE country = "Netherlands" AND air_dates = "28 November 2011 – 24 December 2011" | {
"input": "CREATE TABLE table_27487310_5 (judges VARCHAR, country VARCHAR, air_dates VARCHAR)",
"instruction": "Who are the judges in the Netherlands for the season airing 28 November 2011 – 24 December 2011?",
"output": "SELECT judges FROM table_27487310_5 WHERE country = \"Netherlands\" AND air_dates = \"28 November 2011 – 24 December 2011\""
} |
### INSTRUCTION
What is the name of the player acquired via import and larger than 22?
### INPUT
CREATE TABLE table_name_55 (name VARCHAR, acquisition_via VARCHAR, number VARCHAR)
### OUTPUT
SELECT name FROM table_name_55 WHERE acquisition_via = "import" AND number > 22 | {
"input": "CREATE TABLE table_name_55 (name VARCHAR, acquisition_via VARCHAR, number VARCHAR)",
"instruction": "What is the name of the player acquired via import and larger than 22?",
"output": "SELECT name FROM table_name_55 WHERE acquisition_via = \"import\" AND number > 22"
} |
### INSTRUCTION
What is the highest tonnage for a ship from Great Britain named Newton Ash?
### INPUT
CREATE TABLE table_name_13 (tonnage INTEGER, nationality VARCHAR, ship VARCHAR)
### OUTPUT
SELECT MAX(tonnage) FROM table_name_13 WHERE nationality = "great britain" AND ship = "newton ash" | {
"input": "CREATE TABLE table_name_13 (tonnage INTEGER, nationality VARCHAR, ship VARCHAR)",
"instruction": "What is the highest tonnage for a ship from Great Britain named Newton Ash?",
"output": "SELECT MAX(tonnage) FROM table_name_13 WHERE nationality = \"great britain\" AND ship = \"newton ash\""
} |
### INSTRUCTION
Who directed the episode written by Jason Yoshimura?
### INPUT
CREATE TABLE table_2345558_1 (director VARCHAR, writer_s_ VARCHAR)
### OUTPUT
SELECT director FROM table_2345558_1 WHERE writer_s_ = "Jason Yoshimura" | {
"input": "CREATE TABLE table_2345558_1 (director VARCHAR, writer_s_ VARCHAR)",
"instruction": "Who directed the episode written by Jason Yoshimura?",
"output": "SELECT director FROM table_2345558_1 WHERE writer_s_ = \"Jason Yoshimura\""
} |
### INSTRUCTION
Who is the operator when willowbrook was the bodybuilder?
### INPUT
CREATE TABLE table_28035004_1 (operator VARCHAR, bodybuilder VARCHAR)
### OUTPUT
SELECT operator FROM table_28035004_1 WHERE bodybuilder = "Willowbrook" | {
"input": "CREATE TABLE table_28035004_1 (operator VARCHAR, bodybuilder VARCHAR)",
"instruction": "Who is the operator when willowbrook was the bodybuilder?",
"output": "SELECT operator FROM table_28035004_1 WHERE bodybuilder = \"Willowbrook\""
} |
### INSTRUCTION
What is the greatest lane that David Payne was in when he ran longer than 13.17?
### INPUT
CREATE TABLE table_name_99 (lane INTEGER, athlete VARCHAR, time VARCHAR)
### OUTPUT
SELECT MAX(lane) FROM table_name_99 WHERE athlete = "david payne" AND time > 13.17 | {
"input": "CREATE TABLE table_name_99 (lane INTEGER, athlete VARCHAR, time VARCHAR)",
"instruction": "What is the greatest lane that David Payne was in when he ran longer than 13.17?",
"output": "SELECT MAX(lane) FROM table_name_99 WHERE athlete = \"david payne\" AND time > 13.17"
} |
### INSTRUCTION
Which Nationality has a Player of rudy poeschek?
### INPUT
CREATE TABLE table_name_51 (nationality VARCHAR, player VARCHAR)
### OUTPUT
SELECT nationality FROM table_name_51 WHERE player = "rudy poeschek" | {
"input": "CREATE TABLE table_name_51 (nationality VARCHAR, player VARCHAR)",
"instruction": "Which Nationality has a Player of rudy poeschek?",
"output": "SELECT nationality FROM table_name_51 WHERE player = \"rudy poeschek\""
} |
### INSTRUCTION
Tell me the tv time for attendance of 60,894
### INPUT
CREATE TABLE table_name_86 (tv_time VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT tv_time FROM table_name_86 WHERE attendance = "60,894" | {
"input": "CREATE TABLE table_name_86 (tv_time VARCHAR, attendance VARCHAR)",
"instruction": "Tell me the tv time for attendance of 60,894",
"output": "SELECT tv_time FROM table_name_86 WHERE attendance = \"60,894\""
} |
### INSTRUCTION
Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist?
### INPUT
CREATE TABLE table_name_44 (issue INTEGER, artist VARCHAR, spoofed_title VARCHAR)
### OUTPUT
SELECT SUM(issue) FROM table_name_44 WHERE artist = "mort drucker" AND spoofed_title = "route 67" | {
"input": "CREATE TABLE table_name_44 (issue INTEGER, artist VARCHAR, spoofed_title VARCHAR)",
"instruction": "Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist?",
"output": "SELECT SUM(issue) FROM table_name_44 WHERE artist = \"mort drucker\" AND spoofed_title = \"route 67\""
} |
### INSTRUCTION
Find all the songs that do not have a lead vocal.
### INPUT
CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE vocals (songid VARCHAR)
### OUTPUT
SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "lead" | {
"input": "CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE vocals (songid VARCHAR)",
"instruction": "Find all the songs that do not have a lead vocal.",
"output": "SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = \"lead\""
} |
### INSTRUCTION
What are the id and name of the museum visited most times?
### INPUT
CREATE TABLE museum (name VARCHAR, Museum_ID VARCHAR); CREATE TABLE visit (Museum_ID VARCHAR)
### OUTPUT
SELECT t2.Museum_ID, t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE museum (name VARCHAR, Museum_ID VARCHAR); CREATE TABLE visit (Museum_ID VARCHAR)",
"instruction": "What are the id and name of the museum visited most times?",
"output": "SELECT t2.Museum_ID, t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Can one access the Jersey territory using a Croatian identity card?
### INPUT
CREATE TABLE table_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR)
### OUTPUT
SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = "Jersey" | {
"input": "CREATE TABLE table_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR)",
"instruction": "Can one access the Jersey territory using a Croatian identity card?",
"output": "SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = \"Jersey\""
} |
### INSTRUCTION
What date was the surface hard and Eva Hrdinová was the opponent?
### INPUT
CREATE TABLE table_name_40 (date VARCHAR, surface VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT date FROM table_name_40 WHERE surface = "hard" AND opponent = "eva hrdinová" | {
"input": "CREATE TABLE table_name_40 (date VARCHAR, surface VARCHAR, opponent VARCHAR)",
"instruction": "What date was the surface hard and Eva Hrdinová was the opponent?",
"output": "SELECT date FROM table_name_40 WHERE surface = \"hard\" AND opponent = \"eva hrdinová\""
} |
### INSTRUCTION
Find courses that ran in Fall 2009 and in Spring 2010.
### INPUT
CREATE TABLE SECTION (course_id VARCHAR, semester VARCHAR, YEAR VARCHAR)
### OUTPUT
SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 INTERSECT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 | {
"input": "CREATE TABLE SECTION (course_id VARCHAR, semester VARCHAR, YEAR VARCHAR)",
"instruction": "Find courses that ran in Fall 2009 and in Spring 2010.",
"output": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 INTERSECT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010"
} |
### INSTRUCTION
What is the name origin with a diameter of 220.0 kilometers?
### INPUT
CREATE TABLE table_16799784_14 (name VARCHAR, diameter__km_ VARCHAR)
### OUTPUT
SELECT name AS origin FROM table_16799784_14 WHERE diameter__km_ = "220.0" | {
"input": "CREATE TABLE table_16799784_14 (name VARCHAR, diameter__km_ VARCHAR)",
"instruction": "What is the name origin with a diameter of 220.0 kilometers?",
"output": "SELECT name AS origin FROM table_16799784_14 WHERE diameter__km_ = \"220.0\""
} |
### INSTRUCTION
Which fault log included the most number of faulty parts? List the fault log id, description and record time.
### INPUT
CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR, fault_description VARCHAR, fault_log_entry_datetime VARCHAR); CREATE TABLE Fault_Log_Parts (fault_log_entry_id VARCHAR)
### OUTPUT
SELECT T1.fault_log_entry_id, T1.fault_description, T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR, fault_description VARCHAR, fault_log_entry_datetime VARCHAR); CREATE TABLE Fault_Log_Parts (fault_log_entry_id VARCHAR)",
"instruction": "Which fault log included the most number of faulty parts? List the fault log id, description and record time.",
"output": "SELECT T1.fault_log_entry_id, T1.fault_description, T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What city was completed in 1910-1978?
### INPUT
CREATE TABLE table_name_23 (city VARCHAR, completion VARCHAR)
### OUTPUT
SELECT city FROM table_name_23 WHERE completion = "1910-1978" | {
"input": "CREATE TABLE table_name_23 (city VARCHAR, completion VARCHAR)",
"instruction": "What city was completed in 1910-1978?",
"output": "SELECT city FROM table_name_23 WHERE completion = \"1910-1978\""
} |
### INSTRUCTION
What season has a runner-up of waseda, and a title of 47th?
### INPUT
CREATE TABLE table_name_25 (season VARCHAR, runner_up VARCHAR, title VARCHAR)
### OUTPUT
SELECT season FROM table_name_25 WHERE runner_up = "waseda" AND title = "47th" | {
"input": "CREATE TABLE table_name_25 (season VARCHAR, runner_up VARCHAR, title VARCHAR)",
"instruction": "What season has a runner-up of waseda, and a title of 47th?",
"output": "SELECT season FROM table_name_25 WHERE runner_up = \"waseda\" AND title = \"47th\""
} |
### INSTRUCTION
What is the date of vacancy of team fc bayern munich, which had a date of appointment on 27 April 2009?
### INPUT
CREATE TABLE table_name_24 (date_of_vacancy VARCHAR, team VARCHAR, date_of_appointment VARCHAR)
### OUTPUT
SELECT date_of_vacancy FROM table_name_24 WHERE team = "fc bayern munich" AND date_of_appointment = "27 april 2009" | {
"input": "CREATE TABLE table_name_24 (date_of_vacancy VARCHAR, team VARCHAR, date_of_appointment VARCHAR)",
"instruction": "What is the date of vacancy of team fc bayern munich, which had a date of appointment on 27 April 2009?",
"output": "SELECT date_of_vacancy FROM table_name_24 WHERE team = \"fc bayern munich\" AND date_of_appointment = \"27 april 2009\""
} |
### INSTRUCTION
What is the id and trade name of the medicines can interact with at least 3 enzymes?
### INPUT
CREATE TABLE medicine (id VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
### OUTPUT
SELECT T1.id, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3 | {
"input": "CREATE TABLE medicine (id VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)",
"instruction": "What is the id and trade name of the medicines can interact with at least 3 enzymes?",
"output": "SELECT T1.id, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3"
} |
### INSTRUCTION
What day was the total smaller than 19 at Venue of anz stadium?
### INPUT
CREATE TABLE table_name_42 (date VARCHAR, total VARCHAR, venue VARCHAR)
### OUTPUT
SELECT date FROM table_name_42 WHERE total < 19 AND venue = "anz stadium" | {
"input": "CREATE TABLE table_name_42 (date VARCHAR, total VARCHAR, venue VARCHAR)",
"instruction": "What day was the total smaller than 19 at Venue of anz stadium?",
"output": "SELECT date FROM table_name_42 WHERE total < 19 AND venue = \"anz stadium\""
} |
### INSTRUCTION
Role of narrator, and a Radio Station/Production Company of bbc audiobooks, and a Release/Air Date of 13 november 2008 is what sum of the year?
### INPUT
CREATE TABLE table_name_96 (year INTEGER, release_air_date VARCHAR, role VARCHAR, radio_station_production_company VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_96 WHERE role = "narrator" AND radio_station_production_company = "bbc audiobooks" AND release_air_date = "13 november 2008" | {
"input": "CREATE TABLE table_name_96 (year INTEGER, release_air_date VARCHAR, role VARCHAR, radio_station_production_company VARCHAR)",
"instruction": "Role of narrator, and a Radio Station/Production Company of bbc audiobooks, and a Release/Air Date of 13 november 2008 is what sum of the year?",
"output": "SELECT SUM(year) FROM table_name_96 WHERE role = \"narrator\" AND radio_station_production_company = \"bbc audiobooks\" AND release_air_date = \"13 november 2008\""
} |
### INSTRUCTION
What is the African Spoonbill when the Hadeda Ibis is the Brown Snake Eagle?
### INPUT
CREATE TABLE table_20042805_2 (african_spoonbill VARCHAR, hadeda_ibis VARCHAR)
### OUTPUT
SELECT african_spoonbill FROM table_20042805_2 WHERE hadeda_ibis = "Brown Snake Eagle" | {
"input": "CREATE TABLE table_20042805_2 (african_spoonbill VARCHAR, hadeda_ibis VARCHAR)",
"instruction": "What is the African Spoonbill when the Hadeda Ibis is the Brown Snake Eagle?",
"output": "SELECT african_spoonbill FROM table_20042805_2 WHERE hadeda_ibis = \"Brown Snake Eagle\""
} |
### INSTRUCTION
What report has a score of 0-0 with Sydney FC?
### INPUT
CREATE TABLE table_name_49 (report VARCHAR, score VARCHAR, away_team VARCHAR)
### OUTPUT
SELECT report FROM table_name_49 WHERE score = "0-0" AND away_team = "sydney fc" | {
"input": "CREATE TABLE table_name_49 (report VARCHAR, score VARCHAR, away_team VARCHAR)",
"instruction": "What report has a score of 0-0 with Sydney FC?",
"output": "SELECT report FROM table_name_49 WHERE score = \"0-0\" AND away_team = \"sydney fc\""
} |
### INSTRUCTION
What is the born-died that has office of 13 September 1229 as the entered?
### INPUT
CREATE TABLE table_name_8 (born_died VARCHAR, entered_office VARCHAR)
### OUTPUT
SELECT born_died FROM table_name_8 WHERE entered_office = "13 september 1229" | {
"input": "CREATE TABLE table_name_8 (born_died VARCHAR, entered_office VARCHAR)",
"instruction": "What is the born-died that has office of 13 September 1229 as the entered?",
"output": "SELECT born_died FROM table_name_8 WHERE entered_office = \"13 september 1229\""
} |
### INSTRUCTION
Which film actor (actress) starred the most films? List his or her first name, last name and actor id.
### INPUT
CREATE TABLE film_actor (actor_id VARCHAR); CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR, actor_id VARCHAR)
### OUTPUT
SELECT T2.first_name, T2.last_name, T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE film_actor (actor_id VARCHAR); CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR, actor_id VARCHAR)",
"instruction": "Which film actor (actress) starred the most films? List his or her first name, last name and actor id.",
"output": "SELECT T2.first_name, T2.last_name, T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
how many times is the fa cup apps more than 0, the position mf and the league goals 4?
### INPUT
CREATE TABLE table_name_52 (total_goals VARCHAR, league_goals VARCHAR, fa_cup_apps VARCHAR, position VARCHAR)
### OUTPUT
SELECT COUNT(total_goals) FROM table_name_52 WHERE fa_cup_apps > 0 AND position = "mf" AND league_goals = 4 | {
"input": "CREATE TABLE table_name_52 (total_goals VARCHAR, league_goals VARCHAR, fa_cup_apps VARCHAR, position VARCHAR)",
"instruction": "how many times is the fa cup apps more than 0, the position mf and the league goals 4?",
"output": "SELECT COUNT(total_goals) FROM table_name_52 WHERE fa_cup_apps > 0 AND position = \"mf\" AND league_goals = 4"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.