text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What is the Chinese name of the Eliminated player from Singapore in Index f9?
### INPUT
CREATE TABLE table_name_51 (Chinese VARCHAR, index VARCHAR, status VARCHAR, country VARCHAR)
### OUTPUT
SELECT Chinese AS name FROM table_name_51 WHERE status = "eliminated" AND country = "singapore" AND index = "f9" | {
"input": "CREATE TABLE table_name_51 (Chinese VARCHAR, index VARCHAR, status VARCHAR, country VARCHAR)",
"instruction": "What is the Chinese name of the Eliminated player from Singapore in Index f9?",
"output": "SELECT Chinese AS name FROM table_name_51 WHERE status = \"eliminated\" AND country = \"singapore\" AND index = \"f9\""
} |
### INSTRUCTION
What date and time has a sub-orbital of orbit, a function of aeronomy research, and a Nike Orion rocket, as well as a Poker Flat site?
### INPUT
CREATE TABLE table_name_23 (date_and_time___utc__ VARCHAR, site VARCHAR, rocket VARCHAR, orbit VARCHAR, function VARCHAR)
### OUTPUT
SELECT date_and_time___utc__ FROM table_name_23 WHERE orbit = "sub-orbital" AND function = "aeronomy research" AND rocket = "nike orion" AND site = "poker flat" | {
"input": "CREATE TABLE table_name_23 (date_and_time___utc__ VARCHAR, site VARCHAR, rocket VARCHAR, orbit VARCHAR, function VARCHAR)",
"instruction": "What date and time has a sub-orbital of orbit, a function of aeronomy research, and a Nike Orion rocket, as well as a Poker Flat site?",
"output": "SELECT date_and_time___utc__ FROM table_name_23 WHERE orbit = \"sub-orbital\" AND function = \"aeronomy research\" AND rocket = \"nike orion\" AND site = \"poker flat\""
} |
### INSTRUCTION
WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST?
### INPUT
CREATE TABLE table_name_68 (europe VARCHAR, head_coach VARCHAR, regional_competitions VARCHAR)
### OUTPUT
SELECT europe FROM table_name_68 WHERE head_coach = "vainauskas , sakalauskas" AND regional_competitions = "nebl finalist" | {
"input": "CREATE TABLE table_name_68 (europe VARCHAR, head_coach VARCHAR, regional_competitions VARCHAR)",
"instruction": "WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST?",
"output": "SELECT europe FROM table_name_68 WHERE head_coach = \"vainauskas , sakalauskas\" AND regional_competitions = \"nebl finalist\""
} |
### INSTRUCTION
What is every country with a TV network of AXN India?
### INPUT
CREATE TABLE table_18821196_1 (country VARCHAR, tv_network_s_ VARCHAR)
### OUTPUT
SELECT country FROM table_18821196_1 WHERE tv_network_s_ = "AXN India" | {
"input": "CREATE TABLE table_18821196_1 (country VARCHAR, tv_network_s_ VARCHAR)",
"instruction": "What is every country with a TV network of AXN India?",
"output": "SELECT country FROM table_18821196_1 WHERE tv_network_s_ = \"AXN India\""
} |
### INSTRUCTION
Name the total number of districts for rob teplitz
### INPUT
CREATE TABLE table_1979619_3 (district VARCHAR, representative VARCHAR)
### OUTPUT
SELECT COUNT(district) FROM table_1979619_3 WHERE representative = "Rob Teplitz" | {
"input": "CREATE TABLE table_1979619_3 (district VARCHAR, representative VARCHAR)",
"instruction": "Name the total number of districts for rob teplitz",
"output": "SELECT COUNT(district) FROM table_1979619_3 WHERE representative = \"Rob Teplitz\""
} |
### INSTRUCTION
What is the epa rated combined fuel economy for the all-electric vehicle with dirty electric grid rocky mountains (denver) of 330 g/mi (205 g/km)?
### INPUT
CREATE TABLE table_23840623_4 (epa_rated_combined_fuel_economy VARCHAR, operating_mode VARCHAR, dirty_electric_grid_rocky_mountains__denver_ VARCHAR)
### OUTPUT
SELECT epa_rated_combined_fuel_economy FROM table_23840623_4 WHERE operating_mode = "All-electric" AND dirty_electric_grid_rocky_mountains__denver_ = "330 g/mi (205 g/km)" | {
"input": "CREATE TABLE table_23840623_4 (epa_rated_combined_fuel_economy VARCHAR, operating_mode VARCHAR, dirty_electric_grid_rocky_mountains__denver_ VARCHAR)",
"instruction": "What is the epa rated combined fuel economy for the all-electric vehicle with dirty electric grid rocky mountains (denver) of 330 g/mi (205 g/km)?",
"output": "SELECT epa_rated_combined_fuel_economy FROM table_23840623_4 WHERE operating_mode = \"All-electric\" AND dirty_electric_grid_rocky_mountains__denver_ = \"330 g/mi (205 g/km)\""
} |
### INSTRUCTION
When was radek necas with less than 2.04 height born?
### INPUT
CREATE TABLE table_name_97 (year_born INTEGER, player VARCHAR, height VARCHAR)
### OUTPUT
SELECT AVG(year_born) FROM table_name_97 WHERE player = "radek necas" AND height < 2.04 | {
"input": "CREATE TABLE table_name_97 (year_born INTEGER, player VARCHAR, height VARCHAR)",
"instruction": "When was radek necas with less than 2.04 height born?",
"output": "SELECT AVG(year_born) FROM table_name_97 WHERE player = \"radek necas\" AND height < 2.04"
} |
### INSTRUCTION
Who was the director of Battalion Wars 2 which was released on GCN after 2004?
### INPUT
CREATE TABLE table_name_72 (director VARCHAR, title VARCHAR, platform_s_ VARCHAR, year VARCHAR)
### OUTPUT
SELECT director FROM table_name_72 WHERE platform_s_ = "gcn" AND year > 2004 AND title = "battalion wars 2" | {
"input": "CREATE TABLE table_name_72 (director VARCHAR, title VARCHAR, platform_s_ VARCHAR, year VARCHAR)",
"instruction": "Who was the director of Battalion Wars 2 which was released on GCN after 2004?",
"output": "SELECT director FROM table_name_72 WHERE platform_s_ = \"gcn\" AND year > 2004 AND title = \"battalion wars 2\""
} |
### INSTRUCTION
What change caused a change of staff in March 9, 1865?
### INPUT
CREATE TABLE table_2147588_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR)
### OUTPUT
SELECT reason_for_change FROM table_2147588_3 WHERE date_of_successors_formal_installation = "March 9, 1865" | {
"input": "CREATE TABLE table_2147588_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR)",
"instruction": "What change caused a change of staff in March 9, 1865?",
"output": "SELECT reason_for_change FROM table_2147588_3 WHERE date_of_successors_formal_installation = \"March 9, 1865\""
} |
### INSTRUCTION
What is the storage stability of Arsine with a toxicity of 8, and field stability less than 5?
### INPUT
CREATE TABLE table_name_30 (storage_stability INTEGER, field_stability VARCHAR, toxicity_as_blood_agent VARCHAR, agent VARCHAR)
### OUTPUT
SELECT MIN(storage_stability) FROM table_name_30 WHERE toxicity_as_blood_agent > 8 AND agent = "arsine" AND field_stability < 5 | {
"input": "CREATE TABLE table_name_30 (storage_stability INTEGER, field_stability VARCHAR, toxicity_as_blood_agent VARCHAR, agent VARCHAR)",
"instruction": "What is the storage stability of Arsine with a toxicity of 8, and field stability less than 5?",
"output": "SELECT MIN(storage_stability) FROM table_name_30 WHERE toxicity_as_blood_agent > 8 AND agent = \"arsine\" AND field_stability < 5"
} |
### INSTRUCTION
Which Total has a Finish of t59?
### INPUT
CREATE TABLE table_name_81 (total INTEGER, finish VARCHAR)
### OUTPUT
SELECT MIN(total) FROM table_name_81 WHERE finish = "t59" | {
"input": "CREATE TABLE table_name_81 (total INTEGER, finish VARCHAR)",
"instruction": "Which Total has a Finish of t59?",
"output": "SELECT MIN(total) FROM table_name_81 WHERE finish = \"t59\""
} |
### INSTRUCTION
Who was the Ole Miss player associated with Chuck Dicus?
### INPUT
CREATE TABLE table_name_65 (ole_miss VARCHAR, arkansas VARCHAR)
### OUTPUT
SELECT ole_miss FROM table_name_65 WHERE arkansas = "chuck dicus" | {
"input": "CREATE TABLE table_name_65 (ole_miss VARCHAR, arkansas VARCHAR)",
"instruction": "Who was the Ole Miss player associated with Chuck Dicus?",
"output": "SELECT ole_miss FROM table_name_65 WHERE arkansas = \"chuck dicus\""
} |
### INSTRUCTION
What was the rainfall by volume in Huetar Atlantico where the rainfall depth (mm/year) was 3527?
### INPUT
CREATE TABLE table_25983027_1 (rainfall_by_volume__km_3__year_ VARCHAR, rainfall_by_depth__mm_year_ VARCHAR)
### OUTPUT
SELECT rainfall_by_volume__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_depth__mm_year_ = 3527 | {
"input": "CREATE TABLE table_25983027_1 (rainfall_by_volume__km_3__year_ VARCHAR, rainfall_by_depth__mm_year_ VARCHAR)",
"instruction": "What was the rainfall by volume in Huetar Atlantico where the rainfall depth (mm/year) was 3527?",
"output": "SELECT rainfall_by_volume__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_depth__mm_year_ = 3527"
} |
### INSTRUCTION
Name the title that was written by r. scott gemmill
### INPUT
CREATE TABLE table_17356042_1 (title VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT title FROM table_17356042_1 WHERE written_by = "R. Scott Gemmill" | {
"input": "CREATE TABLE table_17356042_1 (title VARCHAR, written_by VARCHAR)",
"instruction": "Name the title that was written by r. scott gemmill",
"output": "SELECT title FROM table_17356042_1 WHERE written_by = \"R. Scott Gemmill\""
} |
### INSTRUCTION
Who is the Glendale principal with Greg Smorel as m.s. principal and Joleen Reinholz as H.S. principal during 2006-2007?
### INPUT
CREATE TABLE table_name_58 (glendale_principal VARCHAR, year VARCHAR, ms_principal VARCHAR, hs_principal VARCHAR)
### OUTPUT
SELECT glendale_principal FROM table_name_58 WHERE ms_principal = "greg smorel" AND hs_principal = "joleen reinholz" AND year = "2006-2007" | {
"input": "CREATE TABLE table_name_58 (glendale_principal VARCHAR, year VARCHAR, ms_principal VARCHAR, hs_principal VARCHAR)",
"instruction": "Who is the Glendale principal with Greg Smorel as m.s. principal and Joleen Reinholz as H.S. principal during 2006-2007?",
"output": "SELECT glendale_principal FROM table_name_58 WHERE ms_principal = \"greg smorel\" AND hs_principal = \"joleen reinholz\" AND year = \"2006-2007\""
} |
### INSTRUCTION
What is the high average that has a Finale larger than 35, a HK viewers of 2.12 million, and a Peak larger than 40?
### INPUT
CREATE TABLE table_name_36 (average INTEGER, peak VARCHAR, finale VARCHAR, hk_viewers VARCHAR)
### OUTPUT
SELECT MAX(average) FROM table_name_36 WHERE finale > 35 AND hk_viewers = "2.12 million" AND peak > 40 | {
"input": "CREATE TABLE table_name_36 (average INTEGER, peak VARCHAR, finale VARCHAR, hk_viewers VARCHAR)",
"instruction": "What is the high average that has a Finale larger than 35, a HK viewers of 2.12 million, and a Peak larger than 40?",
"output": "SELECT MAX(average) FROM table_name_36 WHERE finale > 35 AND hk_viewers = \"2.12 million\" AND peak > 40"
} |
### INSTRUCTION
What are the wifi and screen mode type of the hardware model named "LG-P760"?
### INPUT
CREATE TABLE phone (chip_model VARCHAR, screen_mode VARCHAR, Hardware_Model_name VARCHAR); CREATE TABLE chip_model (WiFi VARCHAR, Model_name VARCHAR); CREATE TABLE screen_mode (Type VARCHAR, Graphics_mode VARCHAR)
### OUTPUT
SELECT T1.WiFi, T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = "LG-P760" | {
"input": "CREATE TABLE phone (chip_model VARCHAR, screen_mode VARCHAR, Hardware_Model_name VARCHAR); CREATE TABLE chip_model (WiFi VARCHAR, Model_name VARCHAR); CREATE TABLE screen_mode (Type VARCHAR, Graphics_mode VARCHAR)",
"instruction": "What are the wifi and screen mode type of the hardware model named \"LG-P760\"?",
"output": "SELECT T1.WiFi, T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = \"LG-P760\""
} |
### INSTRUCTION
Who is the coach of the team from Port Pirie?
### INPUT
CREATE TABLE table_name_6 (coach VARCHAR, location VARCHAR)
### OUTPUT
SELECT coach FROM table_name_6 WHERE location = "port pirie" | {
"input": "CREATE TABLE table_name_6 (coach VARCHAR, location VARCHAR)",
"instruction": "Who is the coach of the team from Port Pirie?",
"output": "SELECT coach FROM table_name_6 WHERE location = \"port pirie\""
} |
### INSTRUCTION
Find the customer name and date of the orders that have the status "Delivered".
### INPUT
CREATE TABLE customer_orders (order_date VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
### OUTPUT
SELECT t1.customer_name, t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = "Delivered" | {
"input": "CREATE TABLE customer_orders (order_date VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)",
"instruction": "Find the customer name and date of the orders that have the status \"Delivered\".",
"output": "SELECT t1.customer_name, t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = \"Delivered\""
} |
### INSTRUCTION
Name the total number of episodes for coat of cash wearing celebrity is matt di angelo
### INPUT
CREATE TABLE table_1590967_6 (episode_number VARCHAR, coat_of_cash_wearing_celebrity VARCHAR)
### OUTPUT
SELECT COUNT(episode_number) FROM table_1590967_6 WHERE coat_of_cash_wearing_celebrity = "Matt Di Angelo" | {
"input": "CREATE TABLE table_1590967_6 (episode_number VARCHAR, coat_of_cash_wearing_celebrity VARCHAR)",
"instruction": "Name the total number of episodes for coat of cash wearing celebrity is matt di angelo",
"output": "SELECT COUNT(episode_number) FROM table_1590967_6 WHERE coat_of_cash_wearing_celebrity = \"Matt Di Angelo\""
} |
### INSTRUCTION
What is the Staffel A that has a Staffel D of Energie Cottbus and a Staffel C of Chemie Leipzig and a Staffel B of 1. FC Union Berlin?
### INPUT
CREATE TABLE table_name_75 (staffel_a VARCHAR, staffel_b VARCHAR, staffel_d VARCHAR, staffel_c VARCHAR)
### OUTPUT
SELECT staffel_a FROM table_name_75 WHERE staffel_d = "energie cottbus" AND staffel_c = "chemie leipzig" AND staffel_b = "1. fc union berlin" | {
"input": "CREATE TABLE table_name_75 (staffel_a VARCHAR, staffel_b VARCHAR, staffel_d VARCHAR, staffel_c VARCHAR)",
"instruction": "What is the Staffel A that has a Staffel D of Energie Cottbus and a Staffel C of Chemie Leipzig and a Staffel B of 1. FC Union Berlin?",
"output": "SELECT staffel_a FROM table_name_75 WHERE staffel_d = \"energie cottbus\" AND staffel_c = \"chemie leipzig\" AND staffel_b = \"1. fc union berlin\""
} |
### INSTRUCTION
What is Place, when Year is greater than 2006, and when Champion is "Asvel"?
### INPUT
CREATE TABLE table_name_37 (place VARCHAR, year VARCHAR, champion VARCHAR)
### OUTPUT
SELECT place FROM table_name_37 WHERE year > 2006 AND champion = "asvel" | {
"input": "CREATE TABLE table_name_37 (place VARCHAR, year VARCHAR, champion VARCHAR)",
"instruction": "What is Place, when Year is greater than 2006, and when Champion is \"Asvel\"?",
"output": "SELECT place FROM table_name_37 WHERE year > 2006 AND champion = \"asvel\""
} |
### INSTRUCTION
What is the average start with wins larger than 0 and 32nd position?
### INPUT
CREATE TABLE table_name_34 (starts INTEGER, wins VARCHAR, position VARCHAR)
### OUTPUT
SELECT AVG(starts) FROM table_name_34 WHERE wins > 0 AND position = "32nd" | {
"input": "CREATE TABLE table_name_34 (starts INTEGER, wins VARCHAR, position VARCHAR)",
"instruction": "What is the average start with wins larger than 0 and 32nd position?",
"output": "SELECT AVG(starts) FROM table_name_34 WHERE wins > 0 AND position = \"32nd\""
} |
### INSTRUCTION
when the gdp per emissions (in us dollars per ton) is 3903, what is the maximum annual co2 emissions (in thousands of metric tons)?
### INPUT
CREATE TABLE table_2508175_1 (annual_co2_emissions__in_thousands_of_metric_tons_ INTEGER, gdp_per_emissions__in_us_dollars_per_ton_ VARCHAR)
### OUTPUT
SELECT MAX(annual_co2_emissions__in_thousands_of_metric_tons_) FROM table_2508175_1 WHERE gdp_per_emissions__in_us_dollars_per_ton_ = 3903 | {
"input": "CREATE TABLE table_2508175_1 (annual_co2_emissions__in_thousands_of_metric_tons_ INTEGER, gdp_per_emissions__in_us_dollars_per_ton_ VARCHAR)",
"instruction": "when the gdp per emissions (in us dollars per ton) is 3903, what is the maximum annual co2 emissions (in thousands of metric tons)?",
"output": "SELECT MAX(annual_co2_emissions__in_thousands_of_metric_tons_) FROM table_2508175_1 WHERE gdp_per_emissions__in_us_dollars_per_ton_ = 3903"
} |
### INSTRUCTION
How many picks did the Chicago Black Hawks get?
### INPUT
CREATE TABLE table_2679061_11 (pick__number VARCHAR, nhl_team VARCHAR)
### OUTPUT
SELECT COUNT(pick__number) FROM table_2679061_11 WHERE nhl_team = "Chicago Black Hawks" | {
"input": "CREATE TABLE table_2679061_11 (pick__number VARCHAR, nhl_team VARCHAR)",
"instruction": "How many picks did the Chicago Black Hawks get?",
"output": "SELECT COUNT(pick__number) FROM table_2679061_11 WHERE nhl_team = \"Chicago Black Hawks\""
} |
### INSTRUCTION
How many players has the highest points in the game against the Heat?
### INPUT
CREATE TABLE table_23285849_6 (high_points VARCHAR, team VARCHAR)
### OUTPUT
SELECT COUNT(high_points) FROM table_23285849_6 WHERE team = "Heat" | {
"input": "CREATE TABLE table_23285849_6 (high_points VARCHAR, team VARCHAR)",
"instruction": "How many players has the highest points in the game against the Heat?",
"output": "SELECT COUNT(high_points) FROM table_23285849_6 WHERE team = \"Heat\""
} |
### INSTRUCTION
When the player gained below 1,405 yards and lost over 390 yards, what's the sum of the long yards?
### INPUT
CREATE TABLE table_name_59 (long INTEGER, loss VARCHAR, gain VARCHAR)
### OUTPUT
SELECT SUM(long) FROM table_name_59 WHERE loss > 390 AND gain < 1 OFFSET 405 | {
"input": "CREATE TABLE table_name_59 (long INTEGER, loss VARCHAR, gain VARCHAR)",
"instruction": "When the player gained below 1,405 yards and lost over 390 yards, what's the sum of the long yards?",
"output": "SELECT SUM(long) FROM table_name_59 WHERE loss > 390 AND gain < 1 OFFSET 405"
} |
### INSTRUCTION
Which general service in India is a part of the zee variasi network?
### INPUT
CREATE TABLE table_name_96 (service VARCHAR, network VARCHAR, origin_of_programming VARCHAR, genre VARCHAR)
### OUTPUT
SELECT service FROM table_name_96 WHERE origin_of_programming = "india" AND genre = "general" AND network = "zee variasi" | {
"input": "CREATE TABLE table_name_96 (service VARCHAR, network VARCHAR, origin_of_programming VARCHAR, genre VARCHAR)",
"instruction": "Which general service in India is a part of the zee variasi network?",
"output": "SELECT service FROM table_name_96 WHERE origin_of_programming = \"india\" AND genre = \"general\" AND network = \"zee variasi\""
} |
### INSTRUCTION
Find the number of complaints with Product Failure type for each complaint status.
### INPUT
CREATE TABLE complaints (complaint_status_code VARCHAR, complaint_type_code VARCHAR)
### OUTPUT
SELECT complaint_status_code, COUNT(*) FROM complaints WHERE complaint_type_code = "Product Failure" GROUP BY complaint_status_code | {
"input": "CREATE TABLE complaints (complaint_status_code VARCHAR, complaint_type_code VARCHAR)",
"instruction": "Find the number of complaints with Product Failure type for each complaint status.",
"output": "SELECT complaint_status_code, COUNT(*) FROM complaints WHERE complaint_type_code = \"Product Failure\" GROUP BY complaint_status_code"
} |
### INSTRUCTION
Name the most laps for grid more than 9 and the driver being jan heylen
### INPUT
CREATE TABLE table_name_9 (laps INTEGER, grid VARCHAR, driver VARCHAR)
### OUTPUT
SELECT MAX(laps) FROM table_name_9 WHERE grid > 9 AND driver = "jan heylen" | {
"input": "CREATE TABLE table_name_9 (laps INTEGER, grid VARCHAR, driver VARCHAR)",
"instruction": "Name the most laps for grid more than 9 and the driver being jan heylen",
"output": "SELECT MAX(laps) FROM table_name_9 WHERE grid > 9 AND driver = \"jan heylen\""
} |
### INSTRUCTION
What name was proposed on 09/08/1983 in hillsborough county?
### INPUT
CREATE TABLE table_name_73 (name VARCHAR, county VARCHAR, proposed VARCHAR)
### OUTPUT
SELECT name FROM table_name_73 WHERE county = "hillsborough" AND proposed = "09/08/1983" | {
"input": "CREATE TABLE table_name_73 (name VARCHAR, county VARCHAR, proposed VARCHAR)",
"instruction": "What name was proposed on 09/08/1983 in hillsborough county?",
"output": "SELECT name FROM table_name_73 WHERE county = \"hillsborough\" AND proposed = \"09/08/1983\""
} |
### INSTRUCTION
What is the number of series with production code 503?
### INPUT
CREATE TABLE table_11630008_7 (series__number VARCHAR, production_code VARCHAR)
### OUTPUT
SELECT COUNT(series__number) FROM table_11630008_7 WHERE production_code = 503 | {
"input": "CREATE TABLE table_11630008_7 (series__number VARCHAR, production_code VARCHAR)",
"instruction": "What is the number of series with production code 503?",
"output": "SELECT COUNT(series__number) FROM table_11630008_7 WHERE production_code = 503"
} |
### INSTRUCTION
What is Language, when Content is Sport, when HDTV is No, and when Television Service is ESPN America?
### INPUT
CREATE TABLE table_name_71 (language VARCHAR, television_service VARCHAR, content VARCHAR, hdtv VARCHAR)
### OUTPUT
SELECT language FROM table_name_71 WHERE content = "sport" AND hdtv = "no" AND television_service = "espn america" | {
"input": "CREATE TABLE table_name_71 (language VARCHAR, television_service VARCHAR, content VARCHAR, hdtv VARCHAR)",
"instruction": "What is Language, when Content is Sport, when HDTV is No, and when Television Service is ESPN America?",
"output": "SELECT language FROM table_name_71 WHERE content = \"sport\" AND hdtv = \"no\" AND television_service = \"espn america\""
} |
### INSTRUCTION
Name for me the tatsuhito takaiwa for Ryusuke Taguchi of taguchi (14:31)
### INPUT
CREATE TABLE table_name_50 (tatsuhito_takaiwa VARCHAR, ryusuke_taguchi VARCHAR)
### OUTPUT
SELECT tatsuhito_takaiwa FROM table_name_50 WHERE ryusuke_taguchi = "taguchi (14:31)" | {
"input": "CREATE TABLE table_name_50 (tatsuhito_takaiwa VARCHAR, ryusuke_taguchi VARCHAR)",
"instruction": "Name for me the tatsuhito takaiwa for Ryusuke Taguchi of taguchi (14:31)",
"output": "SELECT tatsuhito_takaiwa FROM table_name_50 WHERE ryusuke_taguchi = \"taguchi (14:31)\""
} |
### INSTRUCTION
Find the name of the item with the lowest average rating.
### INPUT
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
### OUTPUT
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) LIMIT 1 | {
"input": "CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)",
"instruction": "Find the name of the item with the lowest average rating.",
"output": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) LIMIT 1"
} |
### INSTRUCTION
Name the number of traditional chinese for album number 6th
### INPUT
CREATE TABLE table_1893815_1 (chinese__traditional_ VARCHAR, album_number VARCHAR)
### OUTPUT
SELECT COUNT(chinese__traditional_) FROM table_1893815_1 WHERE album_number = "6th" | {
"input": "CREATE TABLE table_1893815_1 (chinese__traditional_ VARCHAR, album_number VARCHAR)",
"instruction": "Name the number of traditional chinese for album number 6th",
"output": "SELECT COUNT(chinese__traditional_) FROM table_1893815_1 WHERE album_number = \"6th\""
} |
### INSTRUCTION
How many instrument does the musician with last name "Heilo" use?
### INPUT
CREATE TABLE instruments (bandmateid VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR)
### OUTPUT
SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo" | {
"input": "CREATE TABLE instruments (bandmateid VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR)",
"instruction": "How many instrument does the musician with last name \"Heilo\" use?",
"output": "SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = \"Heilo\""
} |
### INSTRUCTION
If the distribution mechanism is windows nt 4.0 option pack Microsoft office 97 and the features is service release, what is the version?
### INPUT
CREATE TABLE table_2263152_1 (version VARCHAR, features VARCHAR, distribution_mechanism VARCHAR)
### OUTPUT
SELECT version FROM table_2263152_1 WHERE features = "Service release" AND distribution_mechanism = "Windows NT 4.0 Option Pack Microsoft Office 97" | {
"input": "CREATE TABLE table_2263152_1 (version VARCHAR, features VARCHAR, distribution_mechanism VARCHAR)",
"instruction": "If the distribution mechanism is windows nt 4.0 option pack Microsoft office 97 and the features is service release, what is the version?",
"output": "SELECT version FROM table_2263152_1 WHERE features = \"Service release\" AND distribution_mechanism = \"Windows NT 4.0 Option Pack Microsoft Office 97\""
} |
### INSTRUCTION
Show the id, name of each festival and the number of artworks it has nominated.
### INPUT
CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR)
### OUTPUT
SELECT T1.Festival_ID, T3.Festival_Name, COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID | {
"input": "CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR)",
"instruction": "Show the id, name of each festival and the number of artworks it has nominated.",
"output": "SELECT T1.Festival_ID, T3.Festival_Name, COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID"
} |
### INSTRUCTION
What are the papers published under the institution "Indiana University"?
### INPUT
CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)
### OUTPUT
SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Indiana University" | {
"input": "CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)",
"instruction": "What are the papers published under the institution \"Indiana University\"?",
"output": "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Indiana University\""
} |
### INSTRUCTION
What week was the bye week?
### INPUT
CREATE TABLE table_name_46 (week INTEGER, opponent VARCHAR)
### OUTPUT
SELECT AVG(week) FROM table_name_46 WHERE opponent = "bye" | {
"input": "CREATE TABLE table_name_46 (week INTEGER, opponent VARCHAR)",
"instruction": "What week was the bye week?",
"output": "SELECT AVG(week) FROM table_name_46 WHERE opponent = \"bye\""
} |
### INSTRUCTION
List the project details of the projects which did not hire any staff for a researcher role.
### INPUT
CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR, role_code VARCHAR); CREATE TABLE Project_Staff (project_details VARCHAR, project_id VARCHAR, role_code VARCHAR)
### OUTPUT
SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_Staff WHERE role_code = 'researcher') | {
"input": "CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR, role_code VARCHAR); CREATE TABLE Project_Staff (project_details VARCHAR, project_id VARCHAR, role_code VARCHAR)",
"instruction": "List the project details of the projects which did not hire any staff for a researcher role.",
"output": "SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_Staff WHERE role_code = 'researcher')"
} |
### INSTRUCTION
What is the most recent year where the final score is 4–6, 3–6, 6–4, 5–7?
### INPUT
CREATE TABLE table_22839669_1 (year INTEGER, score_in_the_final VARCHAR)
### OUTPUT
SELECT MAX(year) FROM table_22839669_1 WHERE score_in_the_final = "4–6, 3–6, 6–4, 5–7" | {
"input": "CREATE TABLE table_22839669_1 (year INTEGER, score_in_the_final VARCHAR)",
"instruction": "What is the most recent year where the final score is 4–6, 3–6, 6–4, 5–7?",
"output": "SELECT MAX(year) FROM table_22839669_1 WHERE score_in_the_final = \"4–6, 3–6, 6–4, 5–7\""
} |
### INSTRUCTION
Which Label-Nr has a Year smaller than 1968, and a Label of world pacific, and an album of chile con soul?
### INPUT
CREATE TABLE table_name_78 (label VARCHAR, Nr VARCHAR, from_album VARCHAR, year VARCHAR)
### OUTPUT
SELECT label - Nr FROM table_name_78 WHERE year < 1968 AND label = "world pacific" AND from_album = "chile con soul" | {
"input": "CREATE TABLE table_name_78 (label VARCHAR, Nr VARCHAR, from_album VARCHAR, year VARCHAR)",
"instruction": "Which Label-Nr has a Year smaller than 1968, and a Label of world pacific, and an album of chile con soul?",
"output": "SELECT label - Nr FROM table_name_78 WHERE year < 1968 AND label = \"world pacific\" AND from_album = \"chile con soul\""
} |
### INSTRUCTION
What was the score in the game where Carolina was the home team and Niittymaki received the decision?
### INPUT
CREATE TABLE table_name_90 (score VARCHAR, decision VARCHAR, home VARCHAR)
### OUTPUT
SELECT score FROM table_name_90 WHERE decision = "niittymaki" AND home = "carolina" | {
"input": "CREATE TABLE table_name_90 (score VARCHAR, decision VARCHAR, home VARCHAR)",
"instruction": "What was the score in the game where Carolina was the home team and Niittymaki received the decision?",
"output": "SELECT score FROM table_name_90 WHERE decision = \"niittymaki\" AND home = \"carolina\""
} |
### INSTRUCTION
What is the most assists for points 129-3.9?
### INPUT
CREATE TABLE table_22875514_3 (assists INTEGER, points VARCHAR)
### OUTPUT
SELECT MAX(assists) FROM table_22875514_3 WHERE points = "129-3.9" | {
"input": "CREATE TABLE table_22875514_3 (assists INTEGER, points VARCHAR)",
"instruction": "What is the most assists for points 129-3.9?",
"output": "SELECT MAX(assists) FROM table_22875514_3 WHERE points = \"129-3.9\""
} |
### INSTRUCTION
What is the average Loss for the long of more than 12 with a name of opponents with a Gain larger than 1751?
### INPUT
CREATE TABLE table_name_26 (loss INTEGER, gain VARCHAR, long VARCHAR, name VARCHAR)
### OUTPUT
SELECT AVG(loss) FROM table_name_26 WHERE long > 12 AND name = "opponents" AND gain > 1751 | {
"input": "CREATE TABLE table_name_26 (loss INTEGER, gain VARCHAR, long VARCHAR, name VARCHAR)",
"instruction": "What is the average Loss for the long of more than 12 with a name of opponents with a Gain larger than 1751?",
"output": "SELECT AVG(loss) FROM table_name_26 WHERE long > 12 AND name = \"opponents\" AND gain > 1751"
} |
### INSTRUCTION
What is the place of birth when elevated is May 16, 1288, and cardinalatial title is Deacon of S. Eustachio?
### INPUT
CREATE TABLE table_name_78 (place_of_birth VARCHAR, elevated VARCHAR, cardinalatial_title VARCHAR)
### OUTPUT
SELECT place_of_birth FROM table_name_78 WHERE elevated = "may 16, 1288" AND cardinalatial_title = "deacon of s. eustachio" | {
"input": "CREATE TABLE table_name_78 (place_of_birth VARCHAR, elevated VARCHAR, cardinalatial_title VARCHAR)",
"instruction": "What is the place of birth when elevated is May 16, 1288, and cardinalatial title is Deacon of S. Eustachio?",
"output": "SELECT place_of_birth FROM table_name_78 WHERE elevated = \"may 16, 1288\" AND cardinalatial_title = \"deacon of s. eustachio\""
} |
### INSTRUCTION
How tall is the Anqing Bridge which opened prior to 2011?
### INPUT
CREATE TABLE table_name_8 (height_of_bridge_structure VARCHAR, opened VARCHAR, name VARCHAR)
### OUTPUT
SELECT height_of_bridge_structure FROM table_name_8 WHERE opened < 2011 AND name = "anqing bridge" | {
"input": "CREATE TABLE table_name_8 (height_of_bridge_structure VARCHAR, opened VARCHAR, name VARCHAR)",
"instruction": "How tall is the Anqing Bridge which opened prior to 2011?",
"output": "SELECT height_of_bridge_structure FROM table_name_8 WHERE opened < 2011 AND name = \"anqing bridge\""
} |
### INSTRUCTION
What is College/Junior/Club Team (League), when Position is "Defence", when Nationality is "Canada", when Round is less than 5, and when Player is "Josiah Didier"?
### INPUT
CREATE TABLE table_name_18 (college_junior_club_team__league_ VARCHAR, player VARCHAR, round VARCHAR, position VARCHAR, nationality VARCHAR)
### OUTPUT
SELECT college_junior_club_team__league_ FROM table_name_18 WHERE position = "defence" AND nationality = "canada" AND round < 5 AND player = "josiah didier" | {
"input": "CREATE TABLE table_name_18 (college_junior_club_team__league_ VARCHAR, player VARCHAR, round VARCHAR, position VARCHAR, nationality VARCHAR)",
"instruction": "What is College/Junior/Club Team (League), when Position is \"Defence\", when Nationality is \"Canada\", when Round is less than 5, and when Player is \"Josiah Didier\"?",
"output": "SELECT college_junior_club_team__league_ FROM table_name_18 WHERE position = \"defence\" AND nationality = \"canada\" AND round < 5 AND player = \"josiah didier\""
} |
### INSTRUCTION
Name the callsign for davao mindanao region
### INPUT
CREATE TABLE table_27914076_1 (callsign VARCHAR, coverage VARCHAR)
### OUTPUT
SELECT callsign FROM table_27914076_1 WHERE coverage = "Davao Mindanao Region" | {
"input": "CREATE TABLE table_27914076_1 (callsign VARCHAR, coverage VARCHAR)",
"instruction": "Name the callsign for davao mindanao region",
"output": "SELECT callsign FROM table_27914076_1 WHERE coverage = \"Davao Mindanao Region\""
} |
### INSTRUCTION
What was the undecided with Roy Barnes at 47%?
### INPUT
CREATE TABLE table_name_22 (undecided VARCHAR, roy_barnes VARCHAR)
### OUTPUT
SELECT undecided FROM table_name_22 WHERE roy_barnes = "47%" | {
"input": "CREATE TABLE table_name_22 (undecided VARCHAR, roy_barnes VARCHAR)",
"instruction": "What was the undecided with Roy Barnes at 47%?",
"output": "SELECT undecided FROM table_name_22 WHERE roy_barnes = \"47%\""
} |
### INSTRUCTION
Who is the second member that was elected in 1555?
### INPUT
CREATE TABLE table_name_34 (elected VARCHAR)
### OUTPUT
SELECT 2 AS nd_member FROM table_name_34 WHERE elected = "1555" | {
"input": "CREATE TABLE table_name_34 (elected VARCHAR)",
"instruction": "Who is the second member that was elected in 1555?",
"output": "SELECT 2 AS nd_member FROM table_name_34 WHERE elected = \"1555\""
} |
### INSTRUCTION
When thomas löfkvist is the young rider classification and alessandro petacchi is the points classification who are the general classifications?
### INPUT
CREATE TABLE table_18733814_2 (general_classification VARCHAR, points_classification VARCHAR, young_rider_classification VARCHAR)
### OUTPUT
SELECT general_classification FROM table_18733814_2 WHERE points_classification = "Alessandro Petacchi" AND young_rider_classification = "Thomas Löfkvist" | {
"input": "CREATE TABLE table_18733814_2 (general_classification VARCHAR, points_classification VARCHAR, young_rider_classification VARCHAR)",
"instruction": "When thomas löfkvist is the young rider classification and alessandro petacchi is the points classification who are the general classifications? ",
"output": "SELECT general_classification FROM table_18733814_2 WHERE points_classification = \"Alessandro Petacchi\" AND young_rider_classification = \"Thomas Löfkvist\""
} |
### INSTRUCTION
What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue?
### INPUT
CREATE TABLE table_name_56 (date VARCHAR, competition VARCHAR, venue VARCHAR)
### OUTPUT
SELECT date FROM table_name_56 WHERE competition = "2012 afc challenge cup" AND venue = "dasarath rangasala stadium, kathmandu" | {
"input": "CREATE TABLE table_name_56 (date VARCHAR, competition VARCHAR, venue VARCHAR)",
"instruction": "What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue?",
"output": "SELECT date FROM table_name_56 WHERE competition = \"2012 afc challenge cup\" AND venue = \"dasarath rangasala stadium, kathmandu\""
} |
### INSTRUCTION
Name the total number of nicknames for st. bonaventure university
### INPUT
CREATE TABLE table_16383772_1 (nickname VARCHAR, school VARCHAR)
### OUTPUT
SELECT COUNT(nickname) FROM table_16383772_1 WHERE school = "St. Bonaventure University" | {
"input": "CREATE TABLE table_16383772_1 (nickname VARCHAR, school VARCHAR)",
"instruction": "Name the total number of nicknames for st. bonaventure university",
"output": "SELECT COUNT(nickname) FROM table_16383772_1 WHERE school = \"St. Bonaventure University\""
} |
### INSTRUCTION
What is the highest Pick, when College is "Syracuse", and when Overall is less than 18?
### INPUT
CREATE TABLE table_name_40 (pick INTEGER, college VARCHAR, overall VARCHAR)
### OUTPUT
SELECT MAX(pick) FROM table_name_40 WHERE college = "syracuse" AND overall < 18 | {
"input": "CREATE TABLE table_name_40 (pick INTEGER, college VARCHAR, overall VARCHAR)",
"instruction": "What is the highest Pick, when College is \"Syracuse\", and when Overall is less than 18?",
"output": "SELECT MAX(pick) FROM table_name_40 WHERE college = \"syracuse\" AND overall < 18"
} |
### INSTRUCTION
What team appointed a manager on 12 June?
### INPUT
CREATE TABLE table_17327458_1 (team VARCHAR, date_of_appointment VARCHAR)
### OUTPUT
SELECT team FROM table_17327458_1 WHERE date_of_appointment = "12 June" | {
"input": "CREATE TABLE table_17327458_1 (team VARCHAR, date_of_appointment VARCHAR)",
"instruction": "What team appointed a manager on 12 June?",
"output": "SELECT team FROM table_17327458_1 WHERE date_of_appointment = \"12 June\""
} |
### INSTRUCTION
What is the overall pick number for a draft pick smaller than 9, named buck mystrom from Michigan State college?
### INPUT
CREATE TABLE table_name_72 (overall VARCHAR, name VARCHAR, pick VARCHAR, college VARCHAR)
### OUTPUT
SELECT overall FROM table_name_72 WHERE pick < 9 AND college = "michigan state" AND name = "buck mystrom" | {
"input": "CREATE TABLE table_name_72 (overall VARCHAR, name VARCHAR, pick VARCHAR, college VARCHAR)",
"instruction": "What is the overall pick number for a draft pick smaller than 9, named buck mystrom from Michigan State college?",
"output": "SELECT overall FROM table_name_72 WHERE pick < 9 AND college = \"michigan state\" AND name = \"buck mystrom\""
} |
### INSTRUCTION
Show the apartment numbers, start dates, and end dates of all the apartment bookings.
### INPUT
CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, apt_id VARCHAR); CREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR)
### OUTPUT
SELECT T2.apt_number, T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id | {
"input": "CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, apt_id VARCHAR); CREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR)",
"instruction": "Show the apartment numbers, start dates, and end dates of all the apartment bookings.",
"output": "SELECT T2.apt_number, T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id"
} |
### INSTRUCTION
How many scores did Goodman give to "samba / young hearts run free", which was in second place?
### INPUT
CREATE TABLE table_1014319_1 (goodman VARCHAR, result VARCHAR, dance_song VARCHAR)
### OUTPUT
SELECT COUNT(goodman) FROM table_1014319_1 WHERE result = "Second place" AND dance_song = "Samba / Young Hearts Run Free" | {
"input": "CREATE TABLE table_1014319_1 (goodman VARCHAR, result VARCHAR, dance_song VARCHAR)",
"instruction": "How many scores did Goodman give to \"samba / young hearts run free\", which was in second place?",
"output": "SELECT COUNT(goodman) FROM table_1014319_1 WHERE result = \"Second place\" AND dance_song = \"Samba / Young Hearts Run Free\""
} |
### INSTRUCTION
What is the content of the Television service of Vesti?
### INPUT
CREATE TABLE table_name_58 (content VARCHAR, television_service VARCHAR)
### OUTPUT
SELECT content FROM table_name_58 WHERE television_service = "vesti" | {
"input": "CREATE TABLE table_name_58 (content VARCHAR, television_service VARCHAR)",
"instruction": "What is the content of the Television service of Vesti?",
"output": "SELECT content FROM table_name_58 WHERE television_service = \"vesti\""
} |
### INSTRUCTION
What is Date, when Effect is "Shot Down", and when Place is "South of Stanley Airport"?
### INPUT
CREATE TABLE table_name_82 (date VARCHAR, effect VARCHAR, place VARCHAR)
### OUTPUT
SELECT date FROM table_name_82 WHERE effect = "shot down" AND place = "south of stanley airport" | {
"input": "CREATE TABLE table_name_82 (date VARCHAR, effect VARCHAR, place VARCHAR)",
"instruction": "What is Date, when Effect is \"Shot Down\", and when Place is \"South of Stanley Airport\"?",
"output": "SELECT date FROM table_name_82 WHERE effect = \"shot down\" AND place = \"south of stanley airport\""
} |
### INSTRUCTION
Show the start dates and end dates of all the apartment bookings made by guests with gender code "Female".
### INPUT
CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, guest_id VARCHAR); CREATE TABLE Guests (guest_id VARCHAR, gender_code VARCHAR)
### OUTPUT
SELECT T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = "Female" | {
"input": "CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, guest_id VARCHAR); CREATE TABLE Guests (guest_id VARCHAR, gender_code VARCHAR)",
"instruction": "Show the start dates and end dates of all the apartment bookings made by guests with gender code \"Female\".",
"output": "SELECT T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = \"Female\""
} |
### INSTRUCTION
Which event has Toa Naketoatama as an opponent?
### INPUT
CREATE TABLE table_name_92 (event VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT event FROM table_name_92 WHERE opponent = "toa naketoatama" | {
"input": "CREATE TABLE table_name_92 (event VARCHAR, opponent VARCHAR)",
"instruction": "Which event has Toa Naketoatama as an opponent?",
"output": "SELECT event FROM table_name_92 WHERE opponent = \"toa naketoatama\""
} |
### INSTRUCTION
What is the highest number of points scored when Acadie-Bathurst had 4 tied games, less than 257 goals, and over 72 games played?
### INPUT
CREATE TABLE table_name_10 (points INTEGER, games VARCHAR, tied VARCHAR, goals_for VARCHAR)
### OUTPUT
SELECT MAX(points) FROM table_name_10 WHERE tied = "4" AND goals_for < 257 AND games > 72 | {
"input": "CREATE TABLE table_name_10 (points INTEGER, games VARCHAR, tied VARCHAR, goals_for VARCHAR)",
"instruction": "What is the highest number of points scored when Acadie-Bathurst had 4 tied games, less than 257 goals, and over 72 games played?",
"output": "SELECT MAX(points) FROM table_name_10 WHERE tied = \"4\" AND goals_for < 257 AND games > 72"
} |
### INSTRUCTION
what is the debut when the play er is radoslava topalova and the years played is less than 2?
### INPUT
CREATE TABLE table_name_33 (debut INTEGER, player VARCHAR, years_played VARCHAR)
### OUTPUT
SELECT AVG(debut) FROM table_name_33 WHERE player = "radoslava topalova" AND years_played < 2 | {
"input": "CREATE TABLE table_name_33 (debut INTEGER, player VARCHAR, years_played VARCHAR)",
"instruction": "what is the debut when the play er is radoslava topalova and the years played is less than 2?",
"output": "SELECT AVG(debut) FROM table_name_33 WHERE player = \"radoslava topalova\" AND years_played < 2"
} |
### INSTRUCTION
What course are they running on stage 1?
### INPUT
CREATE TABLE table_name_5 (course VARCHAR, stage VARCHAR)
### OUTPUT
SELECT course FROM table_name_5 WHERE stage = "1" | {
"input": "CREATE TABLE table_name_5 (course VARCHAR, stage VARCHAR)",
"instruction": "What course are they running on stage 1?",
"output": "SELECT course FROM table_name_5 WHERE stage = \"1\""
} |
### INSTRUCTION
Name the result for mississippi 2
### INPUT
CREATE TABLE table_1342149_24 (result VARCHAR, district VARCHAR)
### OUTPUT
SELECT result FROM table_1342149_24 WHERE district = "Mississippi 2" | {
"input": "CREATE TABLE table_1342149_24 (result VARCHAR, district VARCHAR)",
"instruction": "Name the result for mississippi 2",
"output": "SELECT result FROM table_1342149_24 WHERE district = \"Mississippi 2\""
} |
### INSTRUCTION
Scunthorpe United as the home team has what tie number?
### INPUT
CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT tie_no FROM table_name_52 WHERE home_team = "scunthorpe united" | {
"input": "CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR)",
"instruction": "Scunthorpe United as the home team has what tie number?",
"output": "SELECT tie_no FROM table_name_52 WHERE home_team = \"scunthorpe united\""
} |
### INSTRUCTION
What is Playoff Result, when Winner is "Alaska Aces", when Win # is greater than 1, when Points is less than 106, and when Year is "2011-12"?
### INPUT
CREATE TABLE table_name_45 (playoff_result VARCHAR, year VARCHAR, points VARCHAR, winner VARCHAR, win__number VARCHAR)
### OUTPUT
SELECT playoff_result FROM table_name_45 WHERE winner = "alaska aces" AND win__number > 1 AND points < 106 AND year = "2011-12" | {
"input": "CREATE TABLE table_name_45 (playoff_result VARCHAR, year VARCHAR, points VARCHAR, winner VARCHAR, win__number VARCHAR)",
"instruction": "What is Playoff Result, when Winner is \"Alaska Aces\", when Win # is greater than 1, when Points is less than 106, and when Year is \"2011-12\"?",
"output": "SELECT playoff_result FROM table_name_45 WHERE winner = \"alaska aces\" AND win__number > 1 AND points < 106 AND year = \"2011-12\""
} |
### INSTRUCTION
What is the person born in Australia, rick springfield notable for?
### INPUT
CREATE TABLE table_name_23 (notable_for VARCHAR, connection_with_australia VARCHAR, name VARCHAR)
### OUTPUT
SELECT notable_for FROM table_name_23 WHERE connection_with_australia = "born in australia" AND name = "rick springfield" | {
"input": "CREATE TABLE table_name_23 (notable_for VARCHAR, connection_with_australia VARCHAR, name VARCHAR)",
"instruction": "What is the person born in Australia, rick springfield notable for?",
"output": "SELECT notable_for FROM table_name_23 WHERE connection_with_australia = \"born in australia\" AND name = \"rick springfield\""
} |
### INSTRUCTION
Find the name of the swimmer who has at least 2 records.
### INPUT
CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR)
### OUTPUT
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id HAVING COUNT(*) >= 2 | {
"input": "CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR)",
"instruction": "Find the name of the swimmer who has at least 2 records.",
"output": "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id HAVING COUNT(*) >= 2"
} |
### INSTRUCTION
How many times was the vote percentage 15.0%?
### INPUT
CREATE TABLE table_26375386_20 (total VARCHAR, vote_percentage VARCHAR)
### OUTPUT
SELECT COUNT(total) FROM table_26375386_20 WHERE vote_percentage = "15.0%" | {
"input": "CREATE TABLE table_26375386_20 (total VARCHAR, vote_percentage VARCHAR)",
"instruction": "How many times was the vote percentage 15.0%?",
"output": "SELECT COUNT(total) FROM table_26375386_20 WHERE vote_percentage = \"15.0%\""
} |
### INSTRUCTION
What's the lane number when time was 20.45 and the react was less than 0.164?
### INPUT
CREATE TABLE table_name_85 (lane INTEGER, react VARCHAR, time VARCHAR)
### OUTPUT
SELECT MAX(lane) FROM table_name_85 WHERE react < 0.164 AND time = "20.45" | {
"input": "CREATE TABLE table_name_85 (lane INTEGER, react VARCHAR, time VARCHAR)",
"instruction": "What's the lane number when time was 20.45 and the react was less than 0.164?",
"output": "SELECT MAX(lane) FROM table_name_85 WHERE react < 0.164 AND time = \"20.45\""
} |
### INSTRUCTION
What is the # of candidates that have a popular vote of 41.37%?
### INPUT
CREATE TABLE table_name_36 (_number_of_candidates INTEGER, _percentage_of_popular_vote VARCHAR)
### OUTPUT
SELECT AVG(_number_of_candidates) FROM table_name_36 WHERE _percentage_of_popular_vote = "41.37%" | {
"input": "CREATE TABLE table_name_36 (_number_of_candidates INTEGER, _percentage_of_popular_vote VARCHAR)",
"instruction": "What is the # of candidates that have a popular vote of 41.37%?",
"output": "SELECT AVG(_number_of_candidates) FROM table_name_36 WHERE _percentage_of_popular_vote = \"41.37%\""
} |
### INSTRUCTION
Name the total number of round for against the netherlands
### INPUT
CREATE TABLE table_22825058_23 (round VARCHAR, against VARCHAR)
### OUTPUT
SELECT COUNT(round) FROM table_22825058_23 WHERE against = "The Netherlands" | {
"input": "CREATE TABLE table_22825058_23 (round VARCHAR, against VARCHAR)",
"instruction": "Name the total number of round for against the netherlands",
"output": "SELECT COUNT(round) FROM table_22825058_23 WHERE against = \"The Netherlands\""
} |
### INSTRUCTION
What is the average membership with 3.33% LDS and less than 47 branches?
### INPUT
CREATE TABLE table_name_15 (membership INTEGER, _percentage_lds VARCHAR, branches VARCHAR)
### OUTPUT
SELECT AVG(membership) FROM table_name_15 WHERE _percentage_lds = "3.33%" AND branches < 47 | {
"input": "CREATE TABLE table_name_15 (membership INTEGER, _percentage_lds VARCHAR, branches VARCHAR)",
"instruction": "What is the average membership with 3.33% LDS and less than 47 branches?",
"output": "SELECT AVG(membership) FROM table_name_15 WHERE _percentage_lds = \"3.33%\" AND branches < 47"
} |
### INSTRUCTION
Name the order number for 1960s
### INPUT
CREATE TABLE table_19508635_1 (order__number VARCHAR, theme VARCHAR)
### OUTPUT
SELECT order__number FROM table_19508635_1 WHERE theme = "1960s" | {
"input": "CREATE TABLE table_19508635_1 (order__number VARCHAR, theme VARCHAR)",
"instruction": "Name the order number for 1960s",
"output": "SELECT order__number FROM table_19508635_1 WHERE theme = \"1960s\""
} |
### INSTRUCTION
What is the carrier of the most expensive phone?
### INPUT
CREATE TABLE phone (Carrier VARCHAR, Price VARCHAR)
### OUTPUT
SELECT Carrier FROM phone ORDER BY Price DESC LIMIT 1 | {
"input": "CREATE TABLE phone (Carrier VARCHAR, Price VARCHAR)",
"instruction": "What is the carrier of the most expensive phone?",
"output": "SELECT Carrier FROM phone ORDER BY Price DESC LIMIT 1"
} |
### INSTRUCTION
Name the result for lukas smital and home
### INPUT
CREATE TABLE table_17120964_5 (result VARCHAR, man_of_the_match VARCHAR, venue VARCHAR)
### OUTPUT
SELECT result FROM table_17120964_5 WHERE man_of_the_match = "Lukas Smital" AND venue = "Home" | {
"input": "CREATE TABLE table_17120964_5 (result VARCHAR, man_of_the_match VARCHAR, venue VARCHAR)",
"instruction": "Name the result for lukas smital and home",
"output": "SELECT result FROM table_17120964_5 WHERE man_of_the_match = \"Lukas Smital\" AND venue = \"Home\""
} |
### INSTRUCTION
Show all template type codes and number of templates for each.
### INPUT
CREATE TABLE Templates (template_type_code VARCHAR)
### OUTPUT
SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code | {
"input": "CREATE TABLE Templates (template_type_code VARCHAR)",
"instruction": "Show all template type codes and number of templates for each.",
"output": "SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code"
} |
### INSTRUCTION
What is the total number of Year, when Result is "Nominated", when Category is "Outstanding Actor in a Musical", and when Award is "Drama Desk Award"?
### INPUT
CREATE TABLE table_name_68 (year VARCHAR, award VARCHAR, result VARCHAR, category VARCHAR)
### OUTPUT
SELECT COUNT(year) FROM table_name_68 WHERE result = "nominated" AND category = "outstanding actor in a musical" AND award = "drama desk award" | {
"input": "CREATE TABLE table_name_68 (year VARCHAR, award VARCHAR, result VARCHAR, category VARCHAR)",
"instruction": "What is the total number of Year, when Result is \"Nominated\", when Category is \"Outstanding Actor in a Musical\", and when Award is \"Drama Desk Award\"?",
"output": "SELECT COUNT(year) FROM table_name_68 WHERE result = \"nominated\" AND category = \"outstanding actor in a musical\" AND award = \"drama desk award\""
} |
### INSTRUCTION
Name the least indian tamil for population density being 240
### INPUT
CREATE TABLE table_24574438_1 (indian_tamil INTEGER, population_density___km_2__ VARCHAR)
### OUTPUT
SELECT MIN(indian_tamil) FROM table_24574438_1 WHERE population_density___km_2__ = 240 | {
"input": "CREATE TABLE table_24574438_1 (indian_tamil INTEGER, population_density___km_2__ VARCHAR)",
"instruction": "Name the least indian tamil for population density being 240",
"output": "SELECT MIN(indian_tamil) FROM table_24574438_1 WHERE population_density___km_2__ = 240"
} |
### INSTRUCTION
How much money does the player with a 72-70-71-72=285 score have?
### INPUT
CREATE TABLE table_name_54 (money___£__ VARCHAR, score VARCHAR)
### OUTPUT
SELECT money___£__ FROM table_name_54 WHERE score = 72 - 70 - 71 - 72 = 285 | {
"input": "CREATE TABLE table_name_54 (money___£__ VARCHAR, score VARCHAR)",
"instruction": "How much money does the player with a 72-70-71-72=285 score have?",
"output": "SELECT money___£__ FROM table_name_54 WHERE score = 72 - 70 - 71 - 72 = 285"
} |
### INSTRUCTION
what is the score on 22 february 1993?
### INPUT
CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_10 WHERE date = "22 february 1993" | {
"input": "CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR)",
"instruction": "what is the score on 22 february 1993?",
"output": "SELECT score FROM table_name_10 WHERE date = \"22 february 1993\""
} |
### INSTRUCTION
Which Prothrombin time that has a Partial thromboplastin time of unaffected, and a Condition of thrombocytopenia?
### INPUT
CREATE TABLE table_name_6 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, condition VARCHAR)
### OUTPUT
SELECT prothrombin_time FROM table_name_6 WHERE partial_thromboplastin_time = "unaffected" AND condition = "thrombocytopenia" | {
"input": "CREATE TABLE table_name_6 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, condition VARCHAR)",
"instruction": "Which Prothrombin time that has a Partial thromboplastin time of unaffected, and a Condition of thrombocytopenia?",
"output": "SELECT prothrombin_time FROM table_name_6 WHERE partial_thromboplastin_time = \"unaffected\" AND condition = \"thrombocytopenia\""
} |
### INSTRUCTION
What was the score against New Orleans?
### INPUT
CREATE TABLE table_23248967_5 (score VARCHAR, team VARCHAR)
### OUTPUT
SELECT score FROM table_23248967_5 WHERE team = "New Orleans" | {
"input": "CREATE TABLE table_23248967_5 (score VARCHAR, team VARCHAR)",
"instruction": "What was the score against New Orleans?",
"output": "SELECT score FROM table_23248967_5 WHERE team = \"New Orleans\""
} |
### INSTRUCTION
Find the name and active date of the customer that use email as the contact channel.
### INPUT
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_contact_channels (active_from_date VARCHAR, customer_id VARCHAR, channel_code VARCHAR)
### OUTPUT
SELECT t1.customer_name, t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' | {
"input": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_contact_channels (active_from_date VARCHAR, customer_id VARCHAR, channel_code VARCHAR)",
"instruction": "Find the name and active date of the customer that use email as the contact channel.",
"output": "SELECT t1.customer_name, t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'"
} |
### INSTRUCTION
Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china?
### INPUT
CREATE TABLE table_name_78 (bronze INTEGER, nation VARCHAR, gold VARCHAR, rank VARCHAR)
### OUTPUT
SELECT MAX(bronze) FROM table_name_78 WHERE gold < 1 AND rank = "17" AND nation = "china" | {
"input": "CREATE TABLE table_name_78 (bronze INTEGER, nation VARCHAR, gold VARCHAR, rank VARCHAR)",
"instruction": "Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china?",
"output": "SELECT MAX(bronze) FROM table_name_78 WHERE gold < 1 AND rank = \"17\" AND nation = \"china\""
} |
### INSTRUCTION
What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue?
### INPUT
CREATE TABLE table_name_40 (height_feet___m VARCHAR, street_address VARCHAR)
### OUTPUT
SELECT height_feet___m FROM table_name_40 WHERE street_address = "2345 grand avenue" | {
"input": "CREATE TABLE table_name_40 (height_feet___m VARCHAR, street_address VARCHAR)",
"instruction": "What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue?",
"output": "SELECT height_feet___m FROM table_name_40 WHERE street_address = \"2345 grand avenue\""
} |
### INSTRUCTION
What is the 2nd leg of the Internacional Team 1?
### INPUT
CREATE TABLE table_name_48 (team_1 VARCHAR)
### OUTPUT
SELECT 2 AS nd_leg FROM table_name_48 WHERE team_1 = "internacional" | {
"input": "CREATE TABLE table_name_48 (team_1 VARCHAR)",
"instruction": "What is the 2nd leg of the Internacional Team 1?",
"output": "SELECT 2 AS nd_leg FROM table_name_48 WHERE team_1 = \"internacional\""
} |
### INSTRUCTION
What are the actual delivery dates of orders with quantity 1?
### INPUT
CREATE TABLE Customer_Orders (Actual_Delivery_Date VARCHAR, Order_ID VARCHAR); CREATE TABLE ORDER_ITEMS (Order_ID VARCHAR, Order_Quantity VARCHAR)
### OUTPUT
SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1 | {
"input": "CREATE TABLE Customer_Orders (Actual_Delivery_Date VARCHAR, Order_ID VARCHAR); CREATE TABLE ORDER_ITEMS (Order_ID VARCHAR, Order_Quantity VARCHAR)",
"instruction": "What are the actual delivery dates of orders with quantity 1?",
"output": "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1"
} |
### INSTRUCTION
What value for university students and adult goes with male gender for minimum weight?
### INPUT
CREATE TABLE table_name_57 (university_students_and_adults__18yrs VARCHAR, _ VARCHAR, gender VARCHAR, specification VARCHAR)
### OUTPUT
SELECT university_students_and_adults__18yrs + _ FROM table_name_57 WHERE gender = "male" AND specification = "minimum weight" | {
"input": "CREATE TABLE table_name_57 (university_students_and_adults__18yrs VARCHAR, _ VARCHAR, gender VARCHAR, specification VARCHAR)",
"instruction": "What value for university students and adult goes with male gender for minimum weight?",
"output": "SELECT university_students_and_adults__18yrs + _ FROM table_name_57 WHERE gender = \"male\" AND specification = \"minimum weight\""
} |
### INSTRUCTION
What is the highest birth/2013 when the death/2012 is 14,1?
### INPUT
CREATE TABLE table_25703_1 (birth_2013 INTEGER, death_2012 VARCHAR)
### OUTPUT
SELECT MAX(birth_2013) FROM table_25703_1 WHERE death_2012 = "14,1" | {
"input": "CREATE TABLE table_25703_1 (birth_2013 INTEGER, death_2012 VARCHAR)",
"instruction": "What is the highest birth/2013 when the death/2012 is 14,1?",
"output": "SELECT MAX(birth_2013) FROM table_25703_1 WHERE death_2012 = \"14,1\""
} |
### INSTRUCTION
What is the highest rank for the team of egypt?
### INPUT
CREATE TABLE table_name_58 (rank INTEGER, country VARCHAR)
### OUTPUT
SELECT MAX(rank) FROM table_name_58 WHERE country = "egypt" | {
"input": "CREATE TABLE table_name_58 (rank INTEGER, country VARCHAR)",
"instruction": "What is the highest rank for the team of egypt?",
"output": "SELECT MAX(rank) FROM table_name_58 WHERE country = \"egypt\""
} |
### INSTRUCTION
Who won the series when the San Francisco Giants lost?
### INPUT
CREATE TABLE table_name_92 (winning_team VARCHAR, losing_team VARCHAR)
### OUTPUT
SELECT winning_team FROM table_name_92 WHERE losing_team = "san francisco giants" | {
"input": "CREATE TABLE table_name_92 (winning_team VARCHAR, losing_team VARCHAR)",
"instruction": "Who won the series when the San Francisco Giants lost?",
"output": "SELECT winning_team FROM table_name_92 WHERE losing_team = \"san francisco giants\""
} |
### INSTRUCTION
Which grand prix had gerhard berger in his fastest lap and a jacques villeneuve pole position?
### INPUT
CREATE TABLE table_name_24 (grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
### OUTPUT
SELECT grand_prix FROM table_name_24 WHERE fastest_lap = "gerhard berger" AND pole_position = "jacques villeneuve" | {
"input": "CREATE TABLE table_name_24 (grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)",
"instruction": "Which grand prix had gerhard berger in his fastest lap and a jacques villeneuve pole position?",
"output": "SELECT grand_prix FROM table_name_24 WHERE fastest_lap = \"gerhard berger\" AND pole_position = \"jacques villeneuve\""
} |
### INSTRUCTION
List first name and last name of customers that have more than 2 payments.
### INPUT
CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customer_Payments (customer_id VARCHAR)
### OUTPUT
SELECT T2.first_name, T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 2 | {
"input": "CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customer_Payments (customer_id VARCHAR)",
"instruction": "List first name and last name of customers that have more than 2 payments.",
"output": "SELECT T2.first_name, T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 2"
} |
### INSTRUCTION
What is the total attendance in a week greater than 1 with an opponent of Philadelphia Eagles?
### INPUT
CREATE TABLE table_name_92 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT COUNT(attendance) FROM table_name_92 WHERE week > 1 AND opponent = "philadelphia eagles" | {
"input": "CREATE TABLE table_name_92 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)",
"instruction": "What is the total attendance in a week greater than 1 with an opponent of Philadelphia Eagles?",
"output": "SELECT COUNT(attendance) FROM table_name_92 WHERE week > 1 AND opponent = \"philadelphia eagles\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.