text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
When was the mcdonald's lpga championship?
### INPUT
CREATE TABLE table_17335602_1 (date VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT date FROM table_17335602_1 WHERE tournament = "McDonald's LPGA Championship" | {
"input": "CREATE TABLE table_17335602_1 (date VARCHAR, tournament VARCHAR)",
"instruction": "When was the mcdonald's lpga championship?",
"output": "SELECT date FROM table_17335602_1 WHERE tournament = \"McDonald's LPGA Championship\""
} |
### INSTRUCTION
Name the nominated work for 1996 and festival of black maria film and video festival
### INPUT
CREATE TABLE table_name_7 (nominated_work VARCHAR, year VARCHAR, festival VARCHAR)
### OUTPUT
SELECT nominated_work FROM table_name_7 WHERE year = 1996 AND festival = "black maria film and video festival" | {
"input": "CREATE TABLE table_name_7 (nominated_work VARCHAR, year VARCHAR, festival VARCHAR)",
"instruction": "Name the nominated work for 1996 and festival of black maria film and video festival",
"output": "SELECT nominated_work FROM table_name_7 WHERE year = 1996 AND festival = \"black maria film and video festival\""
} |
### INSTRUCTION
What week had an attendance of 14,381?
### INPUT
CREATE TABLE table_name_25 (week INTEGER, attendance VARCHAR)
### OUTPUT
SELECT AVG(week) FROM table_name_25 WHERE attendance = "14,381" | {
"input": "CREATE TABLE table_name_25 (week INTEGER, attendance VARCHAR)",
"instruction": "What week had an attendance of 14,381?",
"output": "SELECT AVG(week) FROM table_name_25 WHERE attendance = \"14,381\""
} |
### INSTRUCTION
What is the nationality of the player from Vancouver Canucks?
### INPUT
CREATE TABLE table_1013129_3 (nationality VARCHAR, nhl_team VARCHAR)
### OUTPUT
SELECT nationality FROM table_1013129_3 WHERE nhl_team = "Vancouver Canucks" | {
"input": "CREATE TABLE table_1013129_3 (nationality VARCHAR, nhl_team VARCHAR)",
"instruction": "What is the nationality of the player from Vancouver Canucks?",
"output": "SELECT nationality FROM table_1013129_3 WHERE nhl_team = \"Vancouver Canucks\""
} |
### INSTRUCTION
How many values of Other A correspond to Tommy Johnson Category:Articles with hCards?
### INPUT
CREATE TABLE table_14962287_2 (other_a VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(other_a) FROM table_14962287_2 WHERE name = "Tommy Johnson Category:Articles with hCards" | {
"input": "CREATE TABLE table_14962287_2 (other_a VARCHAR, name VARCHAR)",
"instruction": "How many values of Other A correspond to Tommy Johnson Category:Articles with hCards?",
"output": "SELECT COUNT(other_a) FROM table_14962287_2 WHERE name = \"Tommy Johnson Category:Articles with hCards\""
} |
### INSTRUCTION
What is the average value for Pick #, when Position is Linebacker, when Player is Bob Bruenig, and when Round is less than 3?
### INPUT
CREATE TABLE table_name_87 (pick__number INTEGER, round VARCHAR, position VARCHAR, player VARCHAR)
### OUTPUT
SELECT AVG(pick__number) FROM table_name_87 WHERE position = "linebacker" AND player = "bob bruenig" AND round < 3 | {
"input": "CREATE TABLE table_name_87 (pick__number INTEGER, round VARCHAR, position VARCHAR, player VARCHAR)",
"instruction": "What is the average value for Pick #, when Position is Linebacker, when Player is Bob Bruenig, and when Round is less than 3?",
"output": "SELECT AVG(pick__number) FROM table_name_87 WHERE position = \"linebacker\" AND player = \"bob bruenig\" AND round < 3"
} |
### INSTRUCTION
Name the score for moscow, ussr 15 february 1971
### INPUT
CREATE TABLE table_name_57 (score_in_the_final VARCHAR, location VARCHAR, date VARCHAR)
### OUTPUT
SELECT score_in_the_final FROM table_name_57 WHERE location = "moscow, ussr" AND date = "15 february 1971" | {
"input": "CREATE TABLE table_name_57 (score_in_the_final VARCHAR, location VARCHAR, date VARCHAR)",
"instruction": "Name the score for moscow, ussr 15 february 1971",
"output": "SELECT score_in_the_final FROM table_name_57 WHERE location = \"moscow, ussr\" AND date = \"15 february 1971\""
} |
### INSTRUCTION
What was the score when the record was 21-31-13?
### INPUT
CREATE TABLE table_17360840_9 (score VARCHAR, record VARCHAR)
### OUTPUT
SELECT score FROM table_17360840_9 WHERE record = "21-31-13" | {
"input": "CREATE TABLE table_17360840_9 (score VARCHAR, record VARCHAR)",
"instruction": "What was the score when the record was 21-31-13?",
"output": "SELECT score FROM table_17360840_9 WHERE record = \"21-31-13\""
} |
### INSTRUCTION
What was the pick # of the player who has a hometown/school of Atlanta, GA?
### INPUT
CREATE TABLE table_name_62 (pick INTEGER, hometown_school VARCHAR)
### OUTPUT
SELECT AVG(pick) FROM table_name_62 WHERE hometown_school = "atlanta, ga" | {
"input": "CREATE TABLE table_name_62 (pick INTEGER, hometown_school VARCHAR)",
"instruction": "What was the pick # of the player who has a hometown/school of Atlanta, GA?",
"output": "SELECT AVG(pick) FROM table_name_62 WHERE hometown_school = \"atlanta, ga\""
} |
### INSTRUCTION
What is the coordinate velocity v dx/dt in units of c total number if the velocity angle η in i-radians is ln[2 + √5] ≅ 1.444?
### INPUT
CREATE TABLE table_15314901_1 (coordinate_velocity_v_dx_dt_in_units_of_c VARCHAR, velocity_angle_η_in_i_radians VARCHAR)
### OUTPUT
SELECT COUNT(coordinate_velocity_v_dx_dt_in_units_of_c) FROM table_15314901_1 WHERE velocity_angle_η_in_i_radians = "ln[2 + √5] ≅ 1.444" | {
"input": "CREATE TABLE table_15314901_1 (coordinate_velocity_v_dx_dt_in_units_of_c VARCHAR, velocity_angle_η_in_i_radians VARCHAR)",
"instruction": "What is the coordinate velocity v dx/dt in units of c total number if the velocity angle η in i-radians is ln[2 + √5] ≅ 1.444?",
"output": "SELECT COUNT(coordinate_velocity_v_dx_dt_in_units_of_c) FROM table_15314901_1 WHERE velocity_angle_η_in_i_radians = \"ln[2 + √5] ≅ 1.444\""
} |
### INSTRUCTION
Show the season, the player, and the name of the country that player belongs to.
### INPUT
CREATE TABLE match_season (Season VARCHAR, Player VARCHAR, Country VARCHAR); CREATE TABLE country (Country_name VARCHAR, Country_id VARCHAR)
### OUTPUT
SELECT T2.Season, T2.Player, T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country | {
"input": "CREATE TABLE match_season (Season VARCHAR, Player VARCHAR, Country VARCHAR); CREATE TABLE country (Country_name VARCHAR, Country_id VARCHAR)",
"instruction": "Show the season, the player, and the name of the country that player belongs to.",
"output": "SELECT T2.Season, T2.Player, T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country"
} |
### INSTRUCTION
Which Date has a Record of 3-4?
### INPUT
CREATE TABLE table_name_30 (date VARCHAR, record VARCHAR)
### OUTPUT
SELECT date FROM table_name_30 WHERE record = "3-4" | {
"input": "CREATE TABLE table_name_30 (date VARCHAR, record VARCHAR)",
"instruction": "Which Date has a Record of 3-4?",
"output": "SELECT date FROM table_name_30 WHERE record = \"3-4\""
} |
### INSTRUCTION
Which Score has a Couple of cristián & cheryl, and a Style of cha-cha-cha?
### INPUT
CREATE TABLE table_name_7 (score VARCHAR, couple VARCHAR, style VARCHAR)
### OUTPUT
SELECT score FROM table_name_7 WHERE couple = "cristián & cheryl" AND style = "cha-cha-cha" | {
"input": "CREATE TABLE table_name_7 (score VARCHAR, couple VARCHAR, style VARCHAR)",
"instruction": "Which Score has a Couple of cristián & cheryl, and a Style of cha-cha-cha?",
"output": "SELECT score FROM table_name_7 WHERE couple = \"cristián & cheryl\" AND style = \"cha-cha-cha\""
} |
### INSTRUCTION
Name the youth classification for michael barry
### INPUT
CREATE TABLE table_23944514_15 (youth_classification VARCHAR, aggressive_rider VARCHAR)
### OUTPUT
SELECT youth_classification FROM table_23944514_15 WHERE aggressive_rider = "Michael Barry" | {
"input": "CREATE TABLE table_23944514_15 (youth_classification VARCHAR, aggressive_rider VARCHAR)",
"instruction": "Name the youth classification for michael barry",
"output": "SELECT youth_classification FROM table_23944514_15 WHERE aggressive_rider = \"Michael Barry\""
} |
### INSTRUCTION
What is the sum of the home wins of the Boston College Eagles, which has more than 6 wins?
### INPUT
CREATE TABLE table_name_89 (Home INTEGER, institution VARCHAR, wins VARCHAR)
### OUTPUT
SELECT SUM(Home) AS wins FROM table_name_89 WHERE institution = "boston college eagles" AND wins > 6 | {
"input": "CREATE TABLE table_name_89 (Home INTEGER, institution VARCHAR, wins VARCHAR)",
"instruction": "What is the sum of the home wins of the Boston College Eagles, which has more than 6 wins?",
"output": "SELECT SUM(Home) AS wins FROM table_name_89 WHERE institution = \"boston college eagles\" AND wins > 6"
} |
### INSTRUCTION
What was the amount of Births (000s) that had a death rate larger than 7.6, and a Year of 1990-2009?
### INPUT
CREATE TABLE table_name_59 (births__000s_ INTEGER, deaths VARCHAR, year VARCHAR)
### OUTPUT
SELECT SUM(births__000s_) FROM table_name_59 WHERE deaths > 7.6 AND year = "1990-2009" | {
"input": "CREATE TABLE table_name_59 (births__000s_ INTEGER, deaths VARCHAR, year VARCHAR)",
"instruction": "What was the amount of Births (000s) that had a death rate larger than 7.6, and a Year of 1990-2009?",
"output": "SELECT SUM(births__000s_) FROM table_name_59 WHERE deaths > 7.6 AND year = \"1990-2009\""
} |
### INSTRUCTION
What Club has Fiba European Champion's Cup and an Italian Cup?
### INPUT
CREATE TABLE table_name_27 (club VARCHAR, european_cup VARCHAR, national_cup VARCHAR)
### OUTPUT
SELECT club FROM table_name_27 WHERE european_cup = "fiba european champion's cup" AND national_cup = "italian cup" | {
"input": "CREATE TABLE table_name_27 (club VARCHAR, european_cup VARCHAR, national_cup VARCHAR)",
"instruction": "What Club has Fiba European Champion's Cup and an Italian Cup?",
"output": "SELECT club FROM table_name_27 WHERE european_cup = \"fiba european champion's cup\" AND national_cup = \"italian cup\""
} |
### INSTRUCTION
List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200.
### INPUT
CREATE TABLE people (weight VARCHAR, people_id VARCHAR, height VARCHAR); CREATE TABLE body_builder (people_id VARCHAR, snatch VARCHAR)
### OUTPUT
SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T1.snatch > 140 OR T2.height > 200 | {
"input": "CREATE TABLE people (weight VARCHAR, people_id VARCHAR, height VARCHAR); CREATE TABLE body_builder (people_id VARCHAR, snatch VARCHAR)",
"instruction": "List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200.",
"output": "SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T1.snatch > 140 OR T2.height > 200"
} |
### INSTRUCTION
Where has a Name of zhongornis?
### INPUT
CREATE TABLE table_name_84 (location VARCHAR, name VARCHAR)
### OUTPUT
SELECT location FROM table_name_84 WHERE name = "zhongornis" | {
"input": "CREATE TABLE table_name_84 (location VARCHAR, name VARCHAR)",
"instruction": "Where has a Name of zhongornis?",
"output": "SELECT location FROM table_name_84 WHERE name = \"zhongornis\""
} |
### INSTRUCTION
What is the lowest division in the playoffs and did not qualify for the Open Cup in 2002?
### INPUT
CREATE TABLE table_name_91 (division INTEGER, year VARCHAR, playoffs VARCHAR, open_cup VARCHAR)
### OUTPUT
SELECT MIN(division) FROM table_name_91 WHERE playoffs = "did not qualify" AND open_cup = "did not qualify" AND year = "2002" | {
"input": "CREATE TABLE table_name_91 (division INTEGER, year VARCHAR, playoffs VARCHAR, open_cup VARCHAR)",
"instruction": "What is the lowest division in the playoffs and did not qualify for the Open Cup in 2002?",
"output": "SELECT MIN(division) FROM table_name_91 WHERE playoffs = \"did not qualify\" AND open_cup = \"did not qualify\" AND year = \"2002\""
} |
### INSTRUCTION
What are the first name and last name of the professionals who have done treatment with cost below average?
### INPUT
CREATE TABLE Treatments (cost_of_treatment INTEGER); CREATE TABLE Professionals (first_name VARCHAR, last_name VARCHAR); CREATE TABLE Treatments (Id VARCHAR)
### OUTPUT
SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments) | {
"input": "CREATE TABLE Treatments (cost_of_treatment INTEGER); CREATE TABLE Professionals (first_name VARCHAR, last_name VARCHAR); CREATE TABLE Treatments (Id VARCHAR)",
"instruction": "What are the first name and last name of the professionals who have done treatment with cost below average?",
"output": "SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments)"
} |
### INSTRUCTION
When Date has a Game larger than 4 and a Team of san antonio, and a Record of 4-3?
### INPUT
CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR, game VARCHAR, team VARCHAR)
### OUTPUT
SELECT date FROM table_name_86 WHERE game > 4 AND team = "san antonio" AND record = "4-3" | {
"input": "CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR, game VARCHAR, team VARCHAR)",
"instruction": "When Date has a Game larger than 4 and a Team of san antonio, and a Record of 4-3?",
"output": "SELECT date FROM table_name_86 WHERE game > 4 AND team = \"san antonio\" AND record = \"4-3\""
} |
### INSTRUCTION
Name the interview for peru delegate
### INPUT
CREATE TABLE table_11674683_2 (interview VARCHAR, delegate VARCHAR)
### OUTPUT
SELECT interview FROM table_11674683_2 WHERE delegate = "Peru" | {
"input": "CREATE TABLE table_11674683_2 (interview VARCHAR, delegate VARCHAR)",
"instruction": "Name the interview for peru delegate",
"output": "SELECT interview FROM table_11674683_2 WHERE delegate = \"Peru\""
} |
### INSTRUCTION
Show all train names and times in stations in London in descending order by train time.
### INPUT
CREATE TABLE train_station (station_id VARCHAR, train_id VARCHAR); CREATE TABLE station (station_id VARCHAR, location VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, train_id VARCHAR)
### OUTPUT
SELECT T3.name, T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T2.location = 'London' ORDER BY T3.time DESC | {
"input": "CREATE TABLE train_station (station_id VARCHAR, train_id VARCHAR); CREATE TABLE station (station_id VARCHAR, location VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, train_id VARCHAR)",
"instruction": "Show all train names and times in stations in London in descending order by train time.",
"output": "SELECT T3.name, T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T2.location = 'London' ORDER BY T3.time DESC"
} |
### INSTRUCTION
Which Filename extension has a Word wrap support of yes, an Open standard of no, and an Interactivity support of yes?
### INPUT
CREATE TABLE table_name_26 (filename_extension VARCHAR, interactivity_support VARCHAR, word_wrap_support VARCHAR, open_standard VARCHAR)
### OUTPUT
SELECT filename_extension FROM table_name_26 WHERE word_wrap_support = "yes" AND open_standard = "no" AND interactivity_support = "yes" | {
"input": "CREATE TABLE table_name_26 (filename_extension VARCHAR, interactivity_support VARCHAR, word_wrap_support VARCHAR, open_standard VARCHAR)",
"instruction": "Which Filename extension has a Word wrap support of yes, an Open standard of no, and an Interactivity support of yes?",
"output": "SELECT filename_extension FROM table_name_26 WHERE word_wrap_support = \"yes\" AND open_standard = \"no\" AND interactivity_support = \"yes\""
} |
### INSTRUCTION
Find the names of districts where have both city mall and village store type stores.
### INPUT
CREATE TABLE district (District_name VARCHAR, district_id VARCHAR); CREATE TABLE store (store_id VARCHAR, Type VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR)
### OUTPUT
SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = "City Mall" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = "Village Store" | {
"input": "CREATE TABLE district (District_name VARCHAR, district_id VARCHAR); CREATE TABLE store (store_id VARCHAR, Type VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR)",
"instruction": "Find the names of districts where have both city mall and village store type stores.",
"output": "SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = \"City Mall\" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = \"Village Store\""
} |
### INSTRUCTION
What is the lowest combined mpg in the US for the A6 transmission, a CO2 g/km under 303, engine capacity over 2461, and L/100km urban (cold) of 15.9?
### INPUT
CREATE TABLE table_name_11 (mpg_us_combined INTEGER, l_100km_urban__cold_ VARCHAR, engine_capacity VARCHAR, transmission VARCHAR, co_2_g_km VARCHAR)
### OUTPUT
SELECT MIN(mpg_us_combined) FROM table_name_11 WHERE transmission = "a6" AND co_2_g_km < 303 AND engine_capacity > 2461 AND l_100km_urban__cold_ = 15.9 | {
"input": "CREATE TABLE table_name_11 (mpg_us_combined INTEGER, l_100km_urban__cold_ VARCHAR, engine_capacity VARCHAR, transmission VARCHAR, co_2_g_km VARCHAR)",
"instruction": "What is the lowest combined mpg in the US for the A6 transmission, a CO2 g/km under 303, engine capacity over 2461, and L/100km urban (cold) of 15.9?",
"output": "SELECT MIN(mpg_us_combined) FROM table_name_11 WHERE transmission = \"a6\" AND co_2_g_km < 303 AND engine_capacity > 2461 AND l_100km_urban__cold_ = 15.9"
} |
### INSTRUCTION
Show the parties that have both representatives in New York state and representatives in Pennsylvania state.
### INPUT
CREATE TABLE representative (Party VARCHAR, State VARCHAR)
### OUTPUT
SELECT Party FROM representative WHERE State = "New York" INTERSECT SELECT Party FROM representative WHERE State = "Pennsylvania" | {
"input": "CREATE TABLE representative (Party VARCHAR, State VARCHAR)",
"instruction": "Show the parties that have both representatives in New York state and representatives in Pennsylvania state.",
"output": "SELECT Party FROM representative WHERE State = \"New York\" INTERSECT SELECT Party FROM representative WHERE State = \"Pennsylvania\""
} |
### INSTRUCTION
What is the torque when engine code is N46B20 and power is ps (kw; hp)@6400?
### INPUT
CREATE TABLE table_name_97 (torque VARCHAR, engine_code VARCHAR, power VARCHAR)
### OUTPUT
SELECT torque FROM table_name_97 WHERE engine_code = "n46b20" AND power = "ps (kw; hp)@6400" | {
"input": "CREATE TABLE table_name_97 (torque VARCHAR, engine_code VARCHAR, power VARCHAR)",
"instruction": "What is the torque when engine code is N46B20 and power is ps (kw; hp)@6400?",
"output": "SELECT torque FROM table_name_97 WHERE engine_code = \"n46b20\" AND power = \"ps (kw; hp)@6400\""
} |
### INSTRUCTION
What is the Tyres with a ford dfz v8 engine(s) with a chassis of coloni fc187?
### INPUT
CREATE TABLE table_name_27 (tyres VARCHAR, engine_s_ VARCHAR, chassis VARCHAR)
### OUTPUT
SELECT tyres FROM table_name_27 WHERE engine_s_ = "ford dfz v8" AND chassis = "coloni fc187" | {
"input": "CREATE TABLE table_name_27 (tyres VARCHAR, engine_s_ VARCHAR, chassis VARCHAR)",
"instruction": "What is the Tyres with a ford dfz v8 engine(s) with a chassis of coloni fc187?",
"output": "SELECT tyres FROM table_name_27 WHERE engine_s_ = \"ford dfz v8\" AND chassis = \"coloni fc187\""
} |
### INSTRUCTION
What is the operator of the ensemble from Yorkshire?
### INPUT
CREATE TABLE table_name_99 (operator VARCHAR, region VARCHAR)
### OUTPUT
SELECT operator FROM table_name_99 WHERE region = "yorkshire" | {
"input": "CREATE TABLE table_name_99 (operator VARCHAR, region VARCHAR)",
"instruction": "What is the operator of the ensemble from Yorkshire?",
"output": "SELECT operator FROM table_name_99 WHERE region = \"yorkshire\""
} |
### INSTRUCTION
What is Stop No., when Destination is [2778] Claisebrook Station Platforms?
### INPUT
CREATE TABLE table_name_25 (stop_no VARCHAR, destination VARCHAR)
### OUTPUT
SELECT stop_no FROM table_name_25 WHERE destination = "[2778] claisebrook station platforms" | {
"input": "CREATE TABLE table_name_25 (stop_no VARCHAR, destination VARCHAR)",
"instruction": "What is Stop No., when Destination is [2778] Claisebrook Station Platforms?",
"output": "SELECT stop_no FROM table_name_25 WHERE destination = \"[2778] claisebrook station platforms\""
} |
### INSTRUCTION
What team was the lower when the winner was the new york jets, and a Year earlier than 1994, and a Result of 37–13?
### INPUT
CREATE TABLE table_name_98 (loser VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR)
### OUTPUT
SELECT loser FROM table_name_98 WHERE winner = "new york jets" AND year < 1994 AND result = "37–13" | {
"input": "CREATE TABLE table_name_98 (loser VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR)",
"instruction": "What team was the lower when the winner was the new york jets, and a Year earlier than 1994, and a Result of 37–13?",
"output": "SELECT loser FROM table_name_98 WHERE winner = \"new york jets\" AND year < 1994 AND result = \"37–13\""
} |
### INSTRUCTION
Who had a larger rank than 3, less than 6 lanes, and a time of 1:58.15?
### INPUT
CREATE TABLE table_name_32 (name VARCHAR, time VARCHAR, rank VARCHAR, lane VARCHAR)
### OUTPUT
SELECT name FROM table_name_32 WHERE rank > 3 AND lane < 6 AND time = "1:58.15" | {
"input": "CREATE TABLE table_name_32 (name VARCHAR, time VARCHAR, rank VARCHAR, lane VARCHAR)",
"instruction": "Who had a larger rank than 3, less than 6 lanes, and a time of 1:58.15?",
"output": "SELECT name FROM table_name_32 WHERE rank > 3 AND lane < 6 AND time = \"1:58.15\""
} |
### INSTRUCTION
What are all the production codes of episodes written by Michael G. Moye?
### INPUT
CREATE TABLE table_2226817_8 (production_code VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT production_code FROM table_2226817_8 WHERE written_by = "Michael G. Moye" | {
"input": "CREATE TABLE table_2226817_8 (production_code VARCHAR, written_by VARCHAR)",
"instruction": "What are all the production codes of episodes written by Michael G. Moye?",
"output": "SELECT production_code FROM table_2226817_8 WHERE written_by = \"Michael G. Moye\""
} |
### INSTRUCTION
What school is in Richmond?
### INPUT
CREATE TABLE table_2076608_3 (school VARCHAR, location_s_ VARCHAR)
### OUTPUT
SELECT school FROM table_2076608_3 WHERE location_s_ = "Richmond" | {
"input": "CREATE TABLE table_2076608_3 (school VARCHAR, location_s_ VARCHAR)",
"instruction": "What school is in Richmond?",
"output": "SELECT school FROM table_2076608_3 WHERE location_s_ = \"Richmond\""
} |
### INSTRUCTION
What is the title of the episode with the original air date of february 6, 1997?
### INPUT
CREATE TABLE table_11951237_3 (title VARCHAR, original_air_date VARCHAR)
### OUTPUT
SELECT title FROM table_11951237_3 WHERE original_air_date = "February 6, 1997" | {
"input": "CREATE TABLE table_11951237_3 (title VARCHAR, original_air_date VARCHAR)",
"instruction": "What is the title of the episode with the original air date of february 6, 1997?",
"output": "SELECT title FROM table_11951237_3 WHERE original_air_date = \"February 6, 1997\""
} |
### INSTRUCTION
Name the total number of series for april 26
### INPUT
CREATE TABLE table_17621978_11 (series VARCHAR, date VARCHAR)
### OUTPUT
SELECT COUNT(series) FROM table_17621978_11 WHERE date = "April 26" | {
"input": "CREATE TABLE table_17621978_11 (series VARCHAR, date VARCHAR)",
"instruction": "Name the total number of series for april 26",
"output": "SELECT COUNT(series) FROM table_17621978_11 WHERE date = \"April 26\""
} |
### INSTRUCTION
What percentage of people said they would consider Rudy Giuliani as a candidate according to the Newsweek poll that showed 32% opposed him?
### INPUT
CREATE TABLE table_name_21 (consider VARCHAR, candidate VARCHAR, poll_source VARCHAR, oppose VARCHAR)
### OUTPUT
SELECT consider FROM table_name_21 WHERE poll_source = "newsweek poll" AND oppose = "32%" AND candidate = "rudy giuliani" | {
"input": "CREATE TABLE table_name_21 (consider VARCHAR, candidate VARCHAR, poll_source VARCHAR, oppose VARCHAR)",
"instruction": "What percentage of people said they would consider Rudy Giuliani as a candidate according to the Newsweek poll that showed 32% opposed him?",
"output": "SELECT consider FROM table_name_21 WHERE poll_source = \"newsweek poll\" AND oppose = \"32%\" AND candidate = \"rudy giuliani\""
} |
### INSTRUCTION
When was the date of death for the person married to Charles II?
### INPUT
CREATE TABLE table_name_86 (death VARCHAR, spouse VARCHAR)
### OUTPUT
SELECT death FROM table_name_86 WHERE spouse = "charles ii" | {
"input": "CREATE TABLE table_name_86 (death VARCHAR, spouse VARCHAR)",
"instruction": "When was the date of death for the person married to Charles II?",
"output": "SELECT death FROM table_name_86 WHERE spouse = \"charles ii\""
} |
### INSTRUCTION
How many Placings have Points smaller than 330.84, and a Name of silvo svajger?
### INPUT
CREATE TABLE table_name_1 (placings VARCHAR, points VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(placings) FROM table_name_1 WHERE points < 330.84 AND name = "silvo svajger" | {
"input": "CREATE TABLE table_name_1 (placings VARCHAR, points VARCHAR, name VARCHAR)",
"instruction": "How many Placings have Points smaller than 330.84, and a Name of silvo svajger?",
"output": "SELECT COUNT(placings) FROM table_name_1 WHERE points < 330.84 AND name = \"silvo svajger\""
} |
### INSTRUCTION
Who are the members of the club named "Hopkins Student Enterprises"? Show the last name.
### INPUT
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)
### OUTPUT
SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises" | {
"input": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)",
"instruction": "Who are the members of the club named \"Hopkins Student Enterprises\"? Show the last name.",
"output": "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\""
} |
### INSTRUCTION
How many episodes were written by Warren Leight?
### INPUT
CREATE TABLE table_29154676_1 (season_no VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT COUNT(season_no) FROM table_29154676_1 WHERE written_by = "Warren Leight" | {
"input": "CREATE TABLE table_29154676_1 (season_no VARCHAR, written_by VARCHAR)",
"instruction": "How many episodes were written by Warren Leight?",
"output": "SELECT COUNT(season_no) FROM table_29154676_1 WHERE written_by = \"Warren Leight\""
} |
### INSTRUCTION
Please show the titles of films and the types of market estimations.
### INPUT
CREATE TABLE film (Title VARCHAR, Film_ID VARCHAR); CREATE TABLE film_market_estimation (Type VARCHAR, Film_ID VARCHAR)
### OUTPUT
SELECT T1.Title, T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID | {
"input": "CREATE TABLE film (Title VARCHAR, Film_ID VARCHAR); CREATE TABLE film_market_estimation (Type VARCHAR, Film_ID VARCHAR)",
"instruction": "Please show the titles of films and the types of market estimations.",
"output": "SELECT T1.Title, T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID"
} |
### INSTRUCTION
What date had Alexander Krasnorutskiy as a partner with a score of 6–3, 4–6, 6–2?
### INPUT
CREATE TABLE table_name_2 (date VARCHAR, partner VARCHAR, score VARCHAR)
### OUTPUT
SELECT date FROM table_name_2 WHERE partner = "alexander krasnorutskiy" AND score = "6–3, 4–6, 6–2" | {
"input": "CREATE TABLE table_name_2 (date VARCHAR, partner VARCHAR, score VARCHAR)",
"instruction": "What date had Alexander Krasnorutskiy as a partner with a score of 6–3, 4–6, 6–2?",
"output": "SELECT date FROM table_name_2 WHERE partner = \"alexander krasnorutskiy\" AND score = \"6–3, 4–6, 6–2\""
} |
### INSTRUCTION
what is the highest % hydropower when the % oil is less than 24.5, country is united arab emirates and the % nuclear power is 0?
### INPUT
CREATE TABLE table_name_80 (_percentage_hydropower INTEGER, _percentage_nuclear_power VARCHAR, _percentage_oil VARCHAR, country VARCHAR)
### OUTPUT
SELECT MAX(_percentage_hydropower) FROM table_name_80 WHERE _percentage_oil < 24.5 AND country = "united arab emirates" AND _percentage_nuclear_power < 0 | {
"input": "CREATE TABLE table_name_80 (_percentage_hydropower INTEGER, _percentage_nuclear_power VARCHAR, _percentage_oil VARCHAR, country VARCHAR)",
"instruction": "what is the highest % hydropower when the % oil is less than 24.5, country is united arab emirates and the % nuclear power is 0?",
"output": "SELECT MAX(_percentage_hydropower) FROM table_name_80 WHERE _percentage_oil < 24.5 AND country = \"united arab emirates\" AND _percentage_nuclear_power < 0"
} |
### INSTRUCTION
Name the polyunsaturated fat with total fat of 100g and monounsaturated fat of 20g (84g in high oleic variety)
### INPUT
CREATE TABLE table_name_96 (polyunsaturated_fat VARCHAR, total_fat VARCHAR, monounsaturated_fat VARCHAR)
### OUTPUT
SELECT polyunsaturated_fat FROM table_name_96 WHERE total_fat = "100g" AND monounsaturated_fat = "20g (84g in high oleic variety)" | {
"input": "CREATE TABLE table_name_96 (polyunsaturated_fat VARCHAR, total_fat VARCHAR, monounsaturated_fat VARCHAR)",
"instruction": "Name the polyunsaturated fat with total fat of 100g and monounsaturated fat of 20g (84g in high oleic variety)",
"output": "SELECT polyunsaturated_fat FROM table_name_96 WHERE total_fat = \"100g\" AND monounsaturated_fat = \"20g (84g in high oleic variety)\""
} |
### INSTRUCTION
I want the team with replaced by being csaba lászló
### INPUT
CREATE TABLE table_name_24 (team VARCHAR, replaced_by VARCHAR)
### OUTPUT
SELECT team FROM table_name_24 WHERE replaced_by = "csaba lászló" | {
"input": "CREATE TABLE table_name_24 (team VARCHAR, replaced_by VARCHAR)",
"instruction": "I want the team with replaced by being csaba lászló",
"output": "SELECT team FROM table_name_24 WHERE replaced_by = \"csaba lászló\""
} |
### INSTRUCTION
What is the Area of the Allardville Parish with a Population smaller than 2,151?
### INPUT
CREATE TABLE table_name_10 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR)
### OUTPUT
SELECT SUM(area_km_2) FROM table_name_10 WHERE official_name = "allardville" AND population < 2 OFFSET 151 | {
"input": "CREATE TABLE table_name_10 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR)",
"instruction": "What is the Area of the Allardville Parish with a Population smaller than 2,151?",
"output": "SELECT SUM(area_km_2) FROM table_name_10 WHERE official_name = \"allardville\" AND population < 2 OFFSET 151"
} |
### INSTRUCTION
Find the number of amenities for each of the dorms that can accommodate more than 100 students.
### INPUT
CREATE TABLE dorm (dormid VARCHAR, student_capacity INTEGER); CREATE TABLE has_amenity (dormid VARCHAR)
### OUTPUT
SELECT COUNT(*), T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid | {
"input": "CREATE TABLE dorm (dormid VARCHAR, student_capacity INTEGER); CREATE TABLE has_amenity (dormid VARCHAR)",
"instruction": "Find the number of amenities for each of the dorms that can accommodate more than 100 students.",
"output": "SELECT COUNT(*), T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid"
} |
### INSTRUCTION
what is the total number of seats 2006 that has parties and voter turnout in % and whose %2006 is greater than 51.5?
### INPUT
CREATE TABLE table_name_33 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR)
### OUTPUT
SELECT SUM(seats_2006) FROM table_name_33 WHERE parties_and_voter_communities = "voter turnout in %" AND _percentage_2006 > 51.5 | {
"input": "CREATE TABLE table_name_33 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR)",
"instruction": "what is the total number of seats 2006 that has parties and voter turnout in % and whose %2006 is greater than 51.5?",
"output": "SELECT SUM(seats_2006) FROM table_name_33 WHERE parties_and_voter_communities = \"voter turnout in %\" AND _percentage_2006 > 51.5"
} |
### INSTRUCTION
Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers.
### INPUT
CREATE TABLE station (LOCATION VARCHAR, number_of_platforms VARCHAR, total_passengers VARCHAR)
### OUTPUT
SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms >= 15 AND total_passengers > 25 | {
"input": "CREATE TABLE station (LOCATION VARCHAR, number_of_platforms VARCHAR, total_passengers VARCHAR)",
"instruction": "Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers.",
"output": "SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms >= 15 AND total_passengers > 25"
} |
### INSTRUCTION
Which district has both stores with less than 3000 products and stores with more than 10000 products?
### INPUT
CREATE TABLE shop (district VARCHAR, Number_products INTEGER)
### OUTPUT
SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000 | {
"input": "CREATE TABLE shop (district VARCHAR, Number_products INTEGER)",
"instruction": "Which district has both stores with less than 3000 products and stores with more than 10000 products?",
"output": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000"
} |
### INSTRUCTION
What mean total had a league number of 18, Richard Logan as a player, and a play-offs number smaller than 1?
### INPUT
CREATE TABLE table_name_88 (total INTEGER, play_offs VARCHAR, league VARCHAR, player VARCHAR)
### OUTPUT
SELECT AVG(total) FROM table_name_88 WHERE league = 18 AND player = "richard logan" AND play_offs < 1 | {
"input": "CREATE TABLE table_name_88 (total INTEGER, play_offs VARCHAR, league VARCHAR, player VARCHAR)",
"instruction": "What mean total had a league number of 18, Richard Logan as a player, and a play-offs number smaller than 1?",
"output": "SELECT AVG(total) FROM table_name_88 WHERE league = 18 AND player = \"richard logan\" AND play_offs < 1"
} |
### INSTRUCTION
How many episodes have a segment d that is goalie masks (part 2)?
### INPUT
CREATE TABLE table_name_53 (episode VARCHAR, segment_d VARCHAR)
### OUTPUT
SELECT COUNT(episode) FROM table_name_53 WHERE segment_d = "goalie masks (part 2)" | {
"input": "CREATE TABLE table_name_53 (episode VARCHAR, segment_d VARCHAR)",
"instruction": "How many episodes have a segment d that is goalie masks (part 2)?",
"output": "SELECT COUNT(episode) FROM table_name_53 WHERE segment_d = \"goalie masks (part 2)\""
} |
### INSTRUCTION
What was the record when Vancouver was the visitor?
### INPUT
CREATE TABLE table_name_9 (record VARCHAR, visitor VARCHAR)
### OUTPUT
SELECT record FROM table_name_9 WHERE visitor = "vancouver" | {
"input": "CREATE TABLE table_name_9 (record VARCHAR, visitor VARCHAR)",
"instruction": "What was the record when Vancouver was the visitor?",
"output": "SELECT record FROM table_name_9 WHERE visitor = \"vancouver\""
} |
### INSTRUCTION
What is the membership card held by both members living in Hartford and ones living in Waterbury address?
### INPUT
CREATE TABLE member (membership_card VARCHAR, address VARCHAR)
### OUTPUT
SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury' | {
"input": "CREATE TABLE member (membership_card VARCHAR, address VARCHAR)",
"instruction": "What is the membership card held by both members living in Hartford and ones living in Waterbury address?",
"output": "SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury'"
} |
### INSTRUCTION
What is the number for swimsuit when the evening gown number is larger than 9.257 and the interview number is 9.357?
### INPUT
CREATE TABLE table_name_25 (swimsuit INTEGER, evening_gown VARCHAR, interview VARCHAR)
### OUTPUT
SELECT SUM(swimsuit) FROM table_name_25 WHERE evening_gown > 9.257 AND interview = 9.357 | {
"input": "CREATE TABLE table_name_25 (swimsuit INTEGER, evening_gown VARCHAR, interview VARCHAR)",
"instruction": "What is the number for swimsuit when the evening gown number is larger than 9.257 and the interview number is 9.357?",
"output": "SELECT SUM(swimsuit) FROM table_name_25 WHERE evening_gown > 9.257 AND interview = 9.357"
} |
### INSTRUCTION
What's the total for the wc belgrade event with 10 rank points?
### INPUT
CREATE TABLE table_name_3 (total VARCHAR, event VARCHAR, rank_points VARCHAR)
### OUTPUT
SELECT total FROM table_name_3 WHERE event = "wc belgrade" AND rank_points = "10" | {
"input": "CREATE TABLE table_name_3 (total VARCHAR, event VARCHAR, rank_points VARCHAR)",
"instruction": "What's the total for the wc belgrade event with 10 rank points?",
"output": "SELECT total FROM table_name_3 WHERE event = \"wc belgrade\" AND rank_points = \"10\""
} |
### INSTRUCTION
Show the names of singers and the total sales of their songs.
### INPUT
CREATE TABLE singer (Name VARCHAR, Singer_ID VARCHAR); CREATE TABLE song (Sales INTEGER, Singer_ID VARCHAR)
### OUTPUT
SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name | {
"input": "CREATE TABLE singer (Name VARCHAR, Singer_ID VARCHAR); CREATE TABLE song (Sales INTEGER, Singer_ID VARCHAR)",
"instruction": "Show the names of singers and the total sales of their songs.",
"output": "SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name"
} |
### INSTRUCTION
Which Partner has an Opponents of wayne arthurs sandon stolle?
### INPUT
CREATE TABLE table_name_24 (partner VARCHAR, opponents VARCHAR)
### OUTPUT
SELECT partner FROM table_name_24 WHERE opponents = "wayne arthurs sandon stolle" | {
"input": "CREATE TABLE table_name_24 (partner VARCHAR, opponents VARCHAR)",
"instruction": "Which Partner has an Opponents of wayne arthurs sandon stolle?",
"output": "SELECT partner FROM table_name_24 WHERE opponents = \"wayne arthurs sandon stolle\""
} |
### INSTRUCTION
How many capitals had brest litovsk voivodeship as voivodeship after 1569?
### INPUT
CREATE TABLE table_1784514_1 (capital VARCHAR, voivodeship_after_1569 VARCHAR)
### OUTPUT
SELECT COUNT(capital) FROM table_1784514_1 WHERE voivodeship_after_1569 = "Brest Litovsk Voivodeship" | {
"input": "CREATE TABLE table_1784514_1 (capital VARCHAR, voivodeship_after_1569 VARCHAR)",
"instruction": "How many capitals had brest litovsk voivodeship as voivodeship after 1569?",
"output": "SELECT COUNT(capital) FROM table_1784514_1 WHERE voivodeship_after_1569 = \"Brest Litovsk Voivodeship\""
} |
### INSTRUCTION
What is the average round when there is a defensive back and an overall smaller than 199?
### INPUT
CREATE TABLE table_name_49 (round INTEGER, position VARCHAR, overall VARCHAR)
### OUTPUT
SELECT AVG(round) FROM table_name_49 WHERE position = "defensive back" AND overall < 199 | {
"input": "CREATE TABLE table_name_49 (round INTEGER, position VARCHAR, overall VARCHAR)",
"instruction": "What is the average round when there is a defensive back and an overall smaller than 199?",
"output": "SELECT AVG(round) FROM table_name_49 WHERE position = \"defensive back\" AND overall < 199"
} |
### INSTRUCTION
How many students enrolled in class ACCT-211?
### INPUT
CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211' | {
"input": "CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR)",
"instruction": "How many students enrolled in class ACCT-211?",
"output": "SELECT COUNT(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211'"
} |
### INSTRUCTION
What is the position when lost is less than 7?
### INPUT
CREATE TABLE table_name_60 (position INTEGER, lost INTEGER)
### OUTPUT
SELECT AVG(position) FROM table_name_60 WHERE lost < 7 | {
"input": "CREATE TABLE table_name_60 (position INTEGER, lost INTEGER)",
"instruction": "What is the position when lost is less than 7?",
"output": "SELECT AVG(position) FROM table_name_60 WHERE lost < 7"
} |
### INSTRUCTION
What was the year when My Mother's Teahouse was not nominated?
### INPUT
CREATE TABLE table_17350255_1 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR)
### OUTPUT
SELECT year__ceremony_ FROM table_17350255_1 WHERE result = "Not Nominated" AND film_title_used_in_nomination = "My Mother's Teahouse" | {
"input": "CREATE TABLE table_17350255_1 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR)",
"instruction": "What was the year when My Mother's Teahouse was not nominated?",
"output": "SELECT year__ceremony_ FROM table_17350255_1 WHERE result = \"Not Nominated\" AND film_title_used_in_nomination = \"My Mother's Teahouse\""
} |
### INSTRUCTION
When 17.07 is the loa (metres) what is the type of yacht?
### INPUT
CREATE TABLE table_1858574_2 (yacht VARCHAR, loa__metres_ VARCHAR)
### OUTPUT
SELECT yacht AS Type FROM table_1858574_2 WHERE loa__metres_ = "17.07" | {
"input": "CREATE TABLE table_1858574_2 (yacht VARCHAR, loa__metres_ VARCHAR)",
"instruction": "When 17.07 is the loa (metres) what is the type of yacht?",
"output": "SELECT yacht AS Type FROM table_1858574_2 WHERE loa__metres_ = \"17.07\""
} |
### INSTRUCTION
Who is the runner(s)-up for the Lady Carling Open with 3 strokes margin of victory?
### INPUT
CREATE TABLE table_name_10 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT runner_s__up FROM table_name_10 WHERE margin_of_victory = "3 strokes" AND tournament = "lady carling open" | {
"input": "CREATE TABLE table_name_10 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)",
"instruction": "Who is the runner(s)-up for the Lady Carling Open with 3 strokes margin of victory?",
"output": "SELECT runner_s__up FROM table_name_10 WHERE margin_of_victory = \"3 strokes\" AND tournament = \"lady carling open\""
} |
### INSTRUCTION
What is Record, when Location Attendance, is Madison Square Garden 19,009?
### INPUT
CREATE TABLE table_name_32 (record VARCHAR, location_attendance VARCHAR)
### OUTPUT
SELECT record FROM table_name_32 WHERE location_attendance = "madison square garden 19,009" | {
"input": "CREATE TABLE table_name_32 (record VARCHAR, location_attendance VARCHAR)",
"instruction": "What is Record, when Location Attendance, is Madison Square Garden 19,009?",
"output": "SELECT record FROM table_name_32 WHERE location_attendance = \"madison square garden 19,009\""
} |
### INSTRUCTION
What is the highest Points in Position 2 with more than 3 Drawn games?
### INPUT
CREATE TABLE table_name_75 (points INTEGER, position VARCHAR, drawn VARCHAR)
### OUTPUT
SELECT MAX(points) FROM table_name_75 WHERE position = 2 AND drawn > 3 | {
"input": "CREATE TABLE table_name_75 (points INTEGER, position VARCHAR, drawn VARCHAR)",
"instruction": "What is the highest Points in Position 2 with more than 3 Drawn games?",
"output": "SELECT MAX(points) FROM table_name_75 WHERE position = 2 AND drawn > 3"
} |
### INSTRUCTION
Which episode was directed by steven depaul
### INPUT
CREATE TABLE table_11665016_2 (title VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT title FROM table_11665016_2 WHERE directed_by = "Steven DePaul" | {
"input": "CREATE TABLE table_11665016_2 (title VARCHAR, directed_by VARCHAR)",
"instruction": "Which episode was directed by steven depaul",
"output": "SELECT title FROM table_11665016_2 WHERE directed_by = \"Steven DePaul\""
} |
### INSTRUCTION
What was the original airdate for the episode written by daisuke habara and directed by akimitsu sasaki
### INPUT
CREATE TABLE table_29039942_1 (original_airdate VARCHAR, writer VARCHAR, director VARCHAR)
### OUTPUT
SELECT original_airdate FROM table_29039942_1 WHERE writer = "Daisuke Habara" AND director = "Akimitsu Sasaki" | {
"input": "CREATE TABLE table_29039942_1 (original_airdate VARCHAR, writer VARCHAR, director VARCHAR)",
"instruction": "What was the original airdate for the episode written by daisuke habara and directed by akimitsu sasaki",
"output": "SELECT original_airdate FROM table_29039942_1 WHERE writer = \"Daisuke Habara\" AND director = \"Akimitsu Sasaki\""
} |
### INSTRUCTION
Which Pos has a Team of roush fenway racing, and a Car # of 99?
### INPUT
CREATE TABLE table_name_32 (pos INTEGER, team VARCHAR, car__number VARCHAR)
### OUTPUT
SELECT SUM(pos) FROM table_name_32 WHERE team = "roush fenway racing" AND car__number = 99 | {
"input": "CREATE TABLE table_name_32 (pos INTEGER, team VARCHAR, car__number VARCHAR)",
"instruction": "Which Pos has a Team of roush fenway racing, and a Car # of 99?",
"output": "SELECT SUM(pos) FROM table_name_32 WHERE team = \"roush fenway racing\" AND car__number = 99"
} |
### INSTRUCTION
Show the document id with paragraph text 'Brazil' and 'Ireland'.
### INPUT
CREATE TABLE Paragraphs (document_id VARCHAR, paragraph_text VARCHAR)
### OUTPUT
SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland' | {
"input": "CREATE TABLE Paragraphs (document_id VARCHAR, paragraph_text VARCHAR)",
"instruction": "Show the document id with paragraph text 'Brazil' and 'Ireland'.",
"output": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'"
} |
### INSTRUCTION
When did slađana pejić, who was evicted on day 29, enter the house?
### INPUT
CREATE TABLE table_name_82 (entered_the_house VARCHAR, evicted VARCHAR, name VARCHAR)
### OUTPUT
SELECT entered_the_house FROM table_name_82 WHERE evicted = "day 29" AND name = "slađana pejić" | {
"input": "CREATE TABLE table_name_82 (entered_the_house VARCHAR, evicted VARCHAR, name VARCHAR)",
"instruction": "When did slađana pejić, who was evicted on day 29, enter the house?",
"output": "SELECT entered_the_house FROM table_name_82 WHERE evicted = \"day 29\" AND name = \"slađana pejić\""
} |
### INSTRUCTION
How many Goals have Years at club of 1961–1966, and a Debut year larger than 1961?
### INPUT
CREATE TABLE table_name_9 (goals VARCHAR, years_at_club VARCHAR, debut_year VARCHAR)
### OUTPUT
SELECT COUNT(goals) FROM table_name_9 WHERE years_at_club = "1961–1966" AND debut_year > 1961 | {
"input": "CREATE TABLE table_name_9 (goals VARCHAR, years_at_club VARCHAR, debut_year VARCHAR)",
"instruction": "How many Goals have Years at club of 1961–1966, and a Debut year larger than 1961?",
"output": "SELECT COUNT(goals) FROM table_name_9 WHERE years_at_club = \"1961–1966\" AND debut_year > 1961"
} |
### INSTRUCTION
Who is the Director that has a Film title of nick carter in prague?
### INPUT
CREATE TABLE table_name_66 (director VARCHAR, film_title_used_in_nomination VARCHAR)
### OUTPUT
SELECT director FROM table_name_66 WHERE film_title_used_in_nomination = "nick carter in prague" | {
"input": "CREATE TABLE table_name_66 (director VARCHAR, film_title_used_in_nomination VARCHAR)",
"instruction": "Who is the Director that has a Film title of nick carter in prague?",
"output": "SELECT director FROM table_name_66 WHERE film_title_used_in_nomination = \"nick carter in prague\""
} |
### INSTRUCTION
Name the year with the best female pop vocal album and result of won
### INPUT
CREATE TABLE table_name_43 (year VARCHAR, category VARCHAR, result VARCHAR)
### OUTPUT
SELECT year FROM table_name_43 WHERE category = "best female pop vocal album" AND result = "won" | {
"input": "CREATE TABLE table_name_43 (year VARCHAR, category VARCHAR, result VARCHAR)",
"instruction": "Name the year with the best female pop vocal album and result of won",
"output": "SELECT year FROM table_name_43 WHERE category = \"best female pop vocal album\" AND result = \"won\""
} |
### INSTRUCTION
What is the final score in 2007 for the world league in novi sad played against Italy?
### INPUT
CREATE TABLE table_name_31 (final_score VARCHAR, opponent VARCHAR, town VARCHAR, year VARCHAR, competition VARCHAR)
### OUTPUT
SELECT final_score FROM table_name_31 WHERE year = 2007 AND competition = "world league" AND town = "novi sad" AND opponent = "italy" | {
"input": "CREATE TABLE table_name_31 (final_score VARCHAR, opponent VARCHAR, town VARCHAR, year VARCHAR, competition VARCHAR)",
"instruction": "What is the final score in 2007 for the world league in novi sad played against Italy?",
"output": "SELECT final_score FROM table_name_31 WHERE year = 2007 AND competition = \"world league\" AND town = \"novi sad\" AND opponent = \"italy\""
} |
### INSTRUCTION
When did the tom smith built train enter service with a number under 7007?
### INPUT
CREATE TABLE table_name_73 (entered_service INTEGER, builder VARCHAR, number VARCHAR)
### OUTPUT
SELECT AVG(entered_service) FROM table_name_73 WHERE builder = "tom smith" AND number < 7007 | {
"input": "CREATE TABLE table_name_73 (entered_service INTEGER, builder VARCHAR, number VARCHAR)",
"instruction": "When did the tom smith built train enter service with a number under 7007?",
"output": "SELECT AVG(entered_service) FROM table_name_73 WHERE builder = \"tom smith\" AND number < 7007"
} |
### INSTRUCTION
Find the names of states that have some college students playing in goalie and mid positions.
### INPUT
CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)
### OUTPUT
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' | {
"input": "CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)",
"instruction": "Find the names of states that have some college students playing in goalie and mid positions.",
"output": "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid'"
} |
### INSTRUCTION
Show all artist names who didn't have an exhibition in 2004.
### INPUT
CREATE TABLE exhibition (artist_id VARCHAR, year VARCHAR); CREATE TABLE artist (name VARCHAR); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR)
### OUTPUT
SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.year = 2004 | {
"input": "CREATE TABLE exhibition (artist_id VARCHAR, year VARCHAR); CREATE TABLE artist (name VARCHAR); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR)",
"instruction": "Show all artist names who didn't have an exhibition in 2004.",
"output": "SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.year = 2004"
} |
### INSTRUCTION
What is the smallest withdrawn value with a GNRI greater than 172, name of Croagh Patrick and was rebuilt before 1939?
### INPUT
CREATE TABLE table_name_10 (withdrawn INTEGER, rebuilt VARCHAR, gnri_no VARCHAR, name VARCHAR)
### OUTPUT
SELECT MIN(withdrawn) FROM table_name_10 WHERE gnri_no > 172 AND name = "croagh patrick" AND rebuilt < 1939 | {
"input": "CREATE TABLE table_name_10 (withdrawn INTEGER, rebuilt VARCHAR, gnri_no VARCHAR, name VARCHAR)",
"instruction": "What is the smallest withdrawn value with a GNRI greater than 172, name of Croagh Patrick and was rebuilt before 1939?",
"output": "SELECT MIN(withdrawn) FROM table_name_10 WHERE gnri_no > 172 AND name = \"croagh patrick\" AND rebuilt < 1939"
} |
### INSTRUCTION
Name the audition city for hyatt regency chicago
### INPUT
CREATE TABLE table_22897967_1 (audition_city VARCHAR, callback_venue VARCHAR)
### OUTPUT
SELECT audition_city FROM table_22897967_1 WHERE callback_venue = "Hyatt Regency Chicago" | {
"input": "CREATE TABLE table_22897967_1 (audition_city VARCHAR, callback_venue VARCHAR)",
"instruction": "Name the audition city for hyatt regency chicago",
"output": "SELECT audition_city FROM table_22897967_1 WHERE callback_venue = \"Hyatt Regency Chicago\""
} |
### INSTRUCTION
What is the pick # for nhl team vancouver canucks?
### INPUT
CREATE TABLE table_2679061_6 (pick__number INTEGER, nhl_team VARCHAR)
### OUTPUT
SELECT MIN(pick__number) FROM table_2679061_6 WHERE nhl_team = "Vancouver Canucks" | {
"input": "CREATE TABLE table_2679061_6 (pick__number INTEGER, nhl_team VARCHAR)",
"instruction": "What is the pick # for nhl team vancouver canucks?",
"output": "SELECT MIN(pick__number) FROM table_2679061_6 WHERE nhl_team = \"Vancouver Canucks\""
} |
### INSTRUCTION
What's the series number of the episode seen by 9.35 million people in the US?
### INPUT
CREATE TABLE table_19401346_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)
### OUTPUT
SELECT MIN(no_in_series) FROM table_19401346_1 WHERE us_viewers__millions_ = "9.35" | {
"input": "CREATE TABLE table_19401346_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)",
"instruction": "What's the series number of the episode seen by 9.35 million people in the US?",
"output": "SELECT MIN(no_in_series) FROM table_19401346_1 WHERE us_viewers__millions_ = \"9.35\""
} |
### INSTRUCTION
How many legs were lost for Trina Gulliver with more than 3 played?
### INPUT
CREATE TABLE table_name_11 (legs_lost VARCHAR, player VARCHAR, played VARCHAR)
### OUTPUT
SELECT COUNT(legs_lost) FROM table_name_11 WHERE player = "trina gulliver" AND played > 3 | {
"input": "CREATE TABLE table_name_11 (legs_lost VARCHAR, player VARCHAR, played VARCHAR)",
"instruction": "How many legs were lost for Trina Gulliver with more than 3 played?",
"output": "SELECT COUNT(legs_lost) FROM table_name_11 WHERE player = \"trina gulliver\" AND played > 3"
} |
### INSTRUCTION
What is Country, when Previous Team (League) is "Kingston Frontenacs ( OHL )", and when Player is "Anthony Stewart Category:Articles with hCards"?
### INPUT
CREATE TABLE table_name_45 (country VARCHAR, previous_team__league_ VARCHAR, player VARCHAR)
### OUTPUT
SELECT country FROM table_name_45 WHERE previous_team__league_ = "kingston frontenacs ( ohl )" AND player = "anthony stewart category:articles with hcards" | {
"input": "CREATE TABLE table_name_45 (country VARCHAR, previous_team__league_ VARCHAR, player VARCHAR)",
"instruction": "What is Country, when Previous Team (League) is \"Kingston Frontenacs ( OHL )\", and when Player is \"Anthony Stewart Category:Articles with hCards\"?",
"output": "SELECT country FROM table_name_45 WHERE previous_team__league_ = \"kingston frontenacs ( ohl )\" AND player = \"anthony stewart category:articles with hcards\""
} |
### INSTRUCTION
Who had the fastest lap when David Coulthard had pole position and Michael Schumacher as a winning driver.
### INPUT
CREATE TABLE table_name_32 (fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)
### OUTPUT
SELECT fastest_lap FROM table_name_32 WHERE pole_position = "david coulthard" AND winning_driver = "michael schumacher" | {
"input": "CREATE TABLE table_name_32 (fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)",
"instruction": "Who had the fastest lap when David Coulthard had pole position and Michael Schumacher as a winning driver.",
"output": "SELECT fastest_lap FROM table_name_32 WHERE pole_position = \"david coulthard\" AND winning_driver = \"michael schumacher\""
} |
### INSTRUCTION
What province has an election after 2009?
### INPUT
CREATE TABLE table_name_55 (province VARCHAR, election INTEGER)
### OUTPUT
SELECT province FROM table_name_55 WHERE election > 2009 | {
"input": "CREATE TABLE table_name_55 (province VARCHAR, election INTEGER)",
"instruction": "What province has an election after 2009?",
"output": "SELECT province FROM table_name_55 WHERE election > 2009"
} |
### INSTRUCTION
Find the names of the users whose number of followers is greater than that of the user named "Tyler Swift".
### INPUT
CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)
### OUTPUT
SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > (SELECT COUNT(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift') | {
"input": "CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)",
"instruction": "Find the names of the users whose number of followers is greater than that of the user named \"Tyler Swift\".",
"output": "SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > (SELECT COUNT(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift')"
} |
### INSTRUCTION
What was the winning score for the Andy Williams-San Diego Open Invitational tournament?
### INPUT
CREATE TABLE table_name_60 (winning_score VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT winning_score FROM table_name_60 WHERE tournament = "andy williams-san diego open invitational" | {
"input": "CREATE TABLE table_name_60 (winning_score VARCHAR, tournament VARCHAR)",
"instruction": "What was the winning score for the Andy Williams-San Diego Open Invitational tournament?",
"output": "SELECT winning_score FROM table_name_60 WHERE tournament = \"andy williams-san diego open invitational\""
} |
### INSTRUCTION
What is the time when ss12 is stage?
### INPUT
CREATE TABLE table_21578303_2 (time VARCHAR, stage VARCHAR)
### OUTPUT
SELECT time FROM table_21578303_2 WHERE stage = "SS12" | {
"input": "CREATE TABLE table_21578303_2 (time VARCHAR, stage VARCHAR)",
"instruction": "What is the time when ss12 is stage?",
"output": "SELECT time FROM table_21578303_2 WHERE stage = \"SS12\""
} |
### INSTRUCTION
I want the driver for ferrari who made Laps less than 26 and grids more than 9
### INPUT
CREATE TABLE table_name_69 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
### OUTPUT
SELECT driver FROM table_name_69 WHERE grid > 9 AND laps < 26 AND constructor = "ferrari" | {
"input": "CREATE TABLE table_name_69 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)",
"instruction": "I want the driver for ferrari who made Laps less than 26 and grids more than 9",
"output": "SELECT driver FROM table_name_69 WHERE grid > 9 AND laps < 26 AND constructor = \"ferrari\""
} |
### INSTRUCTION
Which nation has total medals under 63, less than 2 silver, more than 2 bronze, and a rank of 8?
### INPUT
CREATE TABLE table_name_69 (nation VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)
### OUTPUT
SELECT nation FROM table_name_69 WHERE total < 63 AND silver < 2 AND bronze > 2 AND rank = "8" | {
"input": "CREATE TABLE table_name_69 (nation VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)",
"instruction": "Which nation has total medals under 63, less than 2 silver, more than 2 bronze, and a rank of 8?",
"output": "SELECT nation FROM table_name_69 WHERE total < 63 AND silver < 2 AND bronze > 2 AND rank = \"8\""
} |
### INSTRUCTION
What's the lowest goal difference when the position is higher than 16?
### INPUT
CREATE TABLE table_name_85 (goal_difference INTEGER, position INTEGER)
### OUTPUT
SELECT MIN(goal_difference) FROM table_name_85 WHERE position > 16 | {
"input": "CREATE TABLE table_name_85 (goal_difference INTEGER, position INTEGER)",
"instruction": "What's the lowest goal difference when the position is higher than 16?",
"output": "SELECT MIN(goal_difference) FROM table_name_85 WHERE position > 16"
} |
### INSTRUCTION
What is the Player that has a Place of t2, and a Score of 74-70-68=212?
### INPUT
CREATE TABLE table_name_64 (player VARCHAR, place VARCHAR, score VARCHAR)
### OUTPUT
SELECT player FROM table_name_64 WHERE place = "t2" AND score = 74 - 70 - 68 = 212 | {
"input": "CREATE TABLE table_name_64 (player VARCHAR, place VARCHAR, score VARCHAR)",
"instruction": "What is the Player that has a Place of t2, and a Score of 74-70-68=212?",
"output": "SELECT player FROM table_name_64 WHERE place = \"t2\" AND score = 74 - 70 - 68 = 212"
} |
### INSTRUCTION
What was the name of the competition that had Peterborough Phantoms as an opponent and a date of 2?
### INPUT
CREATE TABLE table_name_26 (competition VARCHAR, opponent VARCHAR, date VARCHAR)
### OUTPUT
SELECT competition FROM table_name_26 WHERE opponent = "peterborough phantoms" AND date = 2 | {
"input": "CREATE TABLE table_name_26 (competition VARCHAR, opponent VARCHAR, date VARCHAR)",
"instruction": "What was the name of the competition that had Peterborough Phantoms as an opponent and a date of 2?",
"output": "SELECT competition FROM table_name_26 WHERE opponent = \"peterborough phantoms\" AND date = 2"
} |
### INSTRUCTION
Graham rahal for n/h/l racing has a qual 2 greater than 59.384 and how much lowest best?
### INPUT
CREATE TABLE table_name_34 (best INTEGER, qual_2 VARCHAR, team VARCHAR, name VARCHAR)
### OUTPUT
SELECT MIN(best) FROM table_name_34 WHERE team = "n/h/l racing" AND name = "graham rahal" AND qual_2 > 59.384 | {
"input": "CREATE TABLE table_name_34 (best INTEGER, qual_2 VARCHAR, team VARCHAR, name VARCHAR)",
"instruction": "Graham rahal for n/h/l racing has a qual 2 greater than 59.384 and how much lowest best?",
"output": "SELECT MIN(best) FROM table_name_34 WHERE team = \"n/h/l racing\" AND name = \"graham rahal\" AND qual_2 > 59.384"
} |
### INSTRUCTION
What is the lambda function without a pseudorandom number generation, no s default argument, no functions, and no eval function?
### INPUT
CREATE TABLE table_name_10 (lambda_functions VARCHAR, eval_function VARCHAR, functions VARCHAR, pseudorandom_number_generation VARCHAR, s_default_argument VARCHAR)
### OUTPUT
SELECT lambda_functions FROM table_name_10 WHERE pseudorandom_number_generation = "no" AND s_default_argument = "no" AND functions = "no" AND eval_function = "no" | {
"input": "CREATE TABLE table_name_10 (lambda_functions VARCHAR, eval_function VARCHAR, functions VARCHAR, pseudorandom_number_generation VARCHAR, s_default_argument VARCHAR)",
"instruction": "What is the lambda function without a pseudorandom number generation, no s default argument, no functions, and no eval function?",
"output": "SELECT lambda_functions FROM table_name_10 WHERE pseudorandom_number_generation = \"no\" AND s_default_argument = \"no\" AND functions = \"no\" AND eval_function = \"no\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.