text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What is the total of the cultural and educational panel when the industrial and commercial panel is 0 and the agricultural panel is greater than 0?
### INPUT
CREATE TABLE table_name_90 (cultural_and_educational_panel INTEGER, industrial_and_commercial_panel VARCHAR, agricultural_panel VARCHAR)
### OUTPUT
SELECT SUM(cultural_and_educational_panel) FROM table_name_90 WHERE industrial_and_commercial_panel = 0 AND agricultural_panel > 0 | {
"input": "CREATE TABLE table_name_90 (cultural_and_educational_panel INTEGER, industrial_and_commercial_panel VARCHAR, agricultural_panel VARCHAR)",
"instruction": "What is the total of the cultural and educational panel when the industrial and commercial panel is 0 and the agricultural panel is greater than 0?",
"output": "SELECT SUM(cultural_and_educational_panel) FROM table_name_90 WHERE industrial_and_commercial_panel = 0 AND agricultural_panel > 0"
} |
### INSTRUCTION
What is the award for the Star Awards earlier than 2005 and the result is won?
### INPUT
CREATE TABLE table_name_31 (award VARCHAR, result VARCHAR, organisation VARCHAR, year VARCHAR)
### OUTPUT
SELECT award FROM table_name_31 WHERE organisation = "star awards" AND year < 2005 AND result = "won" | {
"input": "CREATE TABLE table_name_31 (award VARCHAR, result VARCHAR, organisation VARCHAR, year VARCHAR)",
"instruction": "What is the award for the Star Awards earlier than 2005 and the result is won?",
"output": "SELECT award FROM table_name_31 WHERE organisation = \"star awards\" AND year < 2005 AND result = \"won\""
} |
### INSTRUCTION
What college has a position of defensive line and Grant high school?
### INPUT
CREATE TABLE table_name_5 (college VARCHAR, position VARCHAR, school VARCHAR)
### OUTPUT
SELECT college FROM table_name_5 WHERE position = "defensive line" AND school = "grant high school" | {
"input": "CREATE TABLE table_name_5 (college VARCHAR, position VARCHAR, school VARCHAR)",
"instruction": "What college has a position of defensive line and Grant high school?",
"output": "SELECT college FROM table_name_5 WHERE position = \"defensive line\" AND school = \"grant high school\""
} |
### INSTRUCTION
How many US events did jason bennett win?
### INPUT
CREATE TABLE table_name_83 (events_won__us_series_ INTEGER, name VARCHAR)
### OUTPUT
SELECT AVG(events_won__us_series_) FROM table_name_83 WHERE name = "jason bennett" | {
"input": "CREATE TABLE table_name_83 (events_won__us_series_ INTEGER, name VARCHAR)",
"instruction": "How many US events did jason bennett win?",
"output": "SELECT AVG(events_won__us_series_) FROM table_name_83 WHERE name = \"jason bennett\""
} |
### INSTRUCTION
Which opponent has a game larger than 23, December larger than 8, and record of 8-10-7?
### INPUT
CREATE TABLE table_name_55 (opponent VARCHAR, record VARCHAR, game VARCHAR, december VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_55 WHERE game > 23 AND december > 8 AND record = "8-10-7" | {
"input": "CREATE TABLE table_name_55 (opponent VARCHAR, record VARCHAR, game VARCHAR, december VARCHAR)",
"instruction": "Which opponent has a game larger than 23, December larger than 8, and record of 8-10-7?",
"output": "SELECT opponent FROM table_name_55 WHERE game > 23 AND december > 8 AND record = \"8-10-7\""
} |
### INSTRUCTION
What is listed for the Tries against that has a Played of 22, along with a Club of Ystalyfera RFC?
### INPUT
CREATE TABLE table_name_95 (tries_against VARCHAR, played VARCHAR, club VARCHAR)
### OUTPUT
SELECT tries_against FROM table_name_95 WHERE played = "22" AND club = "ystalyfera rfc" | {
"input": "CREATE TABLE table_name_95 (tries_against VARCHAR, played VARCHAR, club VARCHAR)",
"instruction": "What is listed for the Tries against that has a Played of 22, along with a Club of Ystalyfera RFC?",
"output": "SELECT tries_against FROM table_name_95 WHERE played = \"22\" AND club = \"ystalyfera rfc\""
} |
### INSTRUCTION
What are all the conjugated forms of the verb where the el/ ella/usted verb is piense?
### INPUT
CREATE TABLE table_1977630_2 (nosotros___nosotras VARCHAR, él___ella___usted VARCHAR)
### OUTPUT
SELECT nosotros___nosotras FROM table_1977630_2 WHERE él___ella___usted = "piense" | {
"input": "CREATE TABLE table_1977630_2 (nosotros___nosotras VARCHAR, él___ella___usted VARCHAR)",
"instruction": "What are all the conjugated forms of the verb where the el/ ella/usted verb is piense?",
"output": "SELECT nosotros___nosotras FROM table_1977630_2 WHERE él___ella___usted = \"piense\""
} |
### INSTRUCTION
What is the id and last name of the driver who participated in the most races after 2010?
### INPUT
CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR, year INTEGER); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)
### OUTPUT
SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR, year INTEGER); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)",
"instruction": "What is the id and last name of the driver who participated in the most races after 2010?",
"output": "SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Show the first names and last names of all the guests that have apartment bookings with status code "Confirmed".
### INPUT
CREATE TABLE Apartment_Bookings (guest_id VARCHAR, booking_status_code VARCHAR); CREATE TABLE Guests (guest_first_name VARCHAR, guest_last_name VARCHAR, guest_id VARCHAR)
### OUTPUT
SELECT T2.guest_first_name, T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = "Confirmed" | {
"input": "CREATE TABLE Apartment_Bookings (guest_id VARCHAR, booking_status_code VARCHAR); CREATE TABLE Guests (guest_first_name VARCHAR, guest_last_name VARCHAR, guest_id VARCHAR)",
"instruction": "Show the first names and last names of all the guests that have apartment bookings with status code \"Confirmed\".",
"output": "SELECT T2.guest_first_name, T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = \"Confirmed\""
} |
### INSTRUCTION
Who directed the episode that originally aired on February 25, 2001?
### INPUT
CREATE TABLE table_name_10 (directed_by VARCHAR, original_airdate VARCHAR)
### OUTPUT
SELECT directed_by FROM table_name_10 WHERE original_airdate = "february 25, 2001" | {
"input": "CREATE TABLE table_name_10 (directed_by VARCHAR, original_airdate VARCHAR)",
"instruction": "Who directed the episode that originally aired on February 25, 2001?",
"output": "SELECT directed_by FROM table_name_10 WHERE original_airdate = \"february 25, 2001\""
} |
### INSTRUCTION
What is the total enrollment for a private/catholic affiliation and founded after 1842?
### INPUT
CREATE TABLE table_name_1 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR)
### OUTPUT
SELECT COUNT(enrollment) FROM table_name_1 WHERE affiliation = "private/catholic" AND founded > 1842 | {
"input": "CREATE TABLE table_name_1 (enrollment VARCHAR, affiliation VARCHAR, founded VARCHAR)",
"instruction": "What is the total enrollment for a private/catholic affiliation and founded after 1842?",
"output": "SELECT COUNT(enrollment) FROM table_name_1 WHERE affiliation = \"private/catholic\" AND founded > 1842"
} |
### INSTRUCTION
What catalogue has a track less than 16 and 2/3/56 recorded with a song titled Lawdy Miss Clawdy?
### INPUT
CREATE TABLE table_name_83 (catalogue VARCHAR, song_title VARCHAR, track VARCHAR, recorded VARCHAR)
### OUTPUT
SELECT catalogue FROM table_name_83 WHERE track < 16 AND recorded = "2/3/56" AND song_title = "lawdy miss clawdy" | {
"input": "CREATE TABLE table_name_83 (catalogue VARCHAR, song_title VARCHAR, track VARCHAR, recorded VARCHAR)",
"instruction": "What catalogue has a track less than 16 and 2/3/56 recorded with a song titled Lawdy Miss Clawdy?",
"output": "SELECT catalogue FROM table_name_83 WHERE track < 16 AND recorded = \"2/3/56\" AND song_title = \"lawdy miss clawdy\""
} |
### INSTRUCTION
Count the lowest Year which has gas explosion, Colliery of tylorstown colliery, and a Death toll larger than 57?
### INPUT
CREATE TABLE table_name_15 (year INTEGER, death_toll VARCHAR, cause VARCHAR, colliery VARCHAR)
### OUTPUT
SELECT MIN(year) FROM table_name_15 WHERE cause = "gas explosion" AND colliery = "tylorstown colliery" AND death_toll > 57 | {
"input": "CREATE TABLE table_name_15 (year INTEGER, death_toll VARCHAR, cause VARCHAR, colliery VARCHAR)",
"instruction": "Count the lowest Year which has gas explosion, Colliery of tylorstown colliery, and a Death toll larger than 57?",
"output": "SELECT MIN(year) FROM table_name_15 WHERE cause = \"gas explosion\" AND colliery = \"tylorstown colliery\" AND death_toll > 57"
} |
### INSTRUCTION
Which leading scorer has a Home of grizzlies, and a Record of 10–28?
### INPUT
CREATE TABLE table_name_66 (leading_scorer VARCHAR, home VARCHAR, record VARCHAR)
### OUTPUT
SELECT leading_scorer FROM table_name_66 WHERE home = "grizzlies" AND record = "10–28" | {
"input": "CREATE TABLE table_name_66 (leading_scorer VARCHAR, home VARCHAR, record VARCHAR)",
"instruction": "Which leading scorer has a Home of grizzlies, and a Record of 10–28?",
"output": "SELECT leading_scorer FROM table_name_66 WHERE home = \"grizzlies\" AND record = \"10–28\""
} |
### INSTRUCTION
What is the swimsuit number when the preliminary is 8.721, and the average is more than 8.781?
### INPUT
CREATE TABLE table_name_98 (swimsuit VARCHAR, preliminary VARCHAR, average VARCHAR)
### OUTPUT
SELECT COUNT(swimsuit) FROM table_name_98 WHERE preliminary = 8.721 AND average > 8.781 | {
"input": "CREATE TABLE table_name_98 (swimsuit VARCHAR, preliminary VARCHAR, average VARCHAR)",
"instruction": "What is the swimsuit number when the preliminary is 8.721, and the average is more than 8.781?",
"output": "SELECT COUNT(swimsuit) FROM table_name_98 WHERE preliminary = 8.721 AND average > 8.781"
} |
### INSTRUCTION
Which Ulster player has fewer than 49 caps and plays the wing position?
### INPUT
CREATE TABLE table_name_4 (player VARCHAR, club_province VARCHAR, caps VARCHAR, position VARCHAR)
### OUTPUT
SELECT player FROM table_name_4 WHERE caps < 49 AND position = "wing" AND club_province = "ulster" | {
"input": "CREATE TABLE table_name_4 (player VARCHAR, club_province VARCHAR, caps VARCHAR, position VARCHAR)",
"instruction": "Which Ulster player has fewer than 49 caps and plays the wing position?",
"output": "SELECT player FROM table_name_4 WHERE caps < 49 AND position = \"wing\" AND club_province = \"ulster\""
} |
### INSTRUCTION
What County has a Median household income of $46,872?
### INPUT
CREATE TABLE table_name_36 (county VARCHAR, median_household_income VARCHAR)
### OUTPUT
SELECT county FROM table_name_36 WHERE median_household_income = "$46,872" | {
"input": "CREATE TABLE table_name_36 (county VARCHAR, median_household_income VARCHAR)",
"instruction": "What County has a Median household income of $46,872?",
"output": "SELECT county FROM table_name_36 WHERE median_household_income = \"$46,872\""
} |
### INSTRUCTION
Name the lowest rank for red chillies entertainment for 2013
### INPUT
CREATE TABLE table_name_99 (rank INTEGER, year VARCHAR, studio_s_ VARCHAR)
### OUTPUT
SELECT MIN(rank) FROM table_name_99 WHERE year = 2013 AND studio_s_ = "red chillies entertainment" | {
"input": "CREATE TABLE table_name_99 (rank INTEGER, year VARCHAR, studio_s_ VARCHAR)",
"instruction": "Name the lowest rank for red chillies entertainment for 2013",
"output": "SELECT MIN(rank) FROM table_name_99 WHERE year = 2013 AND studio_s_ = \"red chillies entertainment\""
} |
### INSTRUCTION
What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11?
### INPUT
CREATE TABLE table_name_92 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)
### OUTPUT
SELECT AVG(laps) FROM table_name_92 WHERE manufacturer = "ktm" AND time_retired = "+56.440" AND grid < 11 | {
"input": "CREATE TABLE table_name_92 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)",
"instruction": "What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11?",
"output": "SELECT AVG(laps) FROM table_name_92 WHERE manufacturer = \"ktm\" AND time_retired = \"+56.440\" AND grid < 11"
} |
### INSTRUCTION
What's the number of users in the Nisibon-Yuma within the Del Este district?
### INPUT
CREATE TABLE table_20018310_1 (users___number_ VARCHAR, irrigation_district VARCHAR, juntas_de_regantes__wub_ VARCHAR)
### OUTPUT
SELECT users___number_ FROM table_20018310_1 WHERE irrigation_district = "Del Este" AND juntas_de_regantes__wub_ = "Nisibon-Yuma" | {
"input": "CREATE TABLE table_20018310_1 (users___number_ VARCHAR, irrigation_district VARCHAR, juntas_de_regantes__wub_ VARCHAR)",
"instruction": "What's the number of users in the Nisibon-Yuma within the Del Este district?",
"output": "SELECT users___number_ FROM table_20018310_1 WHERE irrigation_district = \"Del Este\" AND juntas_de_regantes__wub_ = \"Nisibon-Yuma\""
} |
### INSTRUCTION
What is the average year with an award of platinum?
### INPUT
CREATE TABLE table_name_44 (year INTEGER, award_description_s_ VARCHAR)
### OUTPUT
SELECT AVG(year) FROM table_name_44 WHERE award_description_s_ = "platinum" | {
"input": "CREATE TABLE table_name_44 (year INTEGER, award_description_s_ VARCHAR)",
"instruction": "What is the average year with an award of platinum?",
"output": "SELECT AVG(year) FROM table_name_44 WHERE award_description_s_ = \"platinum\""
} |
### INSTRUCTION
What is the 2007 estimate for tulsa-bartlesville, ok csa?
### INPUT
CREATE TABLE table_12720275_1 (combined_statistical_area__or_metropolitan_statistical_area_if_noted_ VARCHAR)
### OUTPUT
SELECT 2007 AS _estimate FROM table_12720275_1 WHERE combined_statistical_area__or_metropolitan_statistical_area_if_noted_ = "Tulsa-Bartlesville, OK CSA" | {
"input": "CREATE TABLE table_12720275_1 (combined_statistical_area__or_metropolitan_statistical_area_if_noted_ VARCHAR)",
"instruction": "What is the 2007 estimate for tulsa-bartlesville, ok csa?",
"output": "SELECT 2007 AS _estimate FROM table_12720275_1 WHERE combined_statistical_area__or_metropolitan_statistical_area_if_noted_ = \"Tulsa-Bartlesville, OK CSA\""
} |
### INSTRUCTION
What is the license that is described as a tool for designing and executing workflows?
### INPUT
CREATE TABLE table_25474825_1 (license VARCHAR, description VARCHAR)
### OUTPUT
SELECT license FROM table_25474825_1 WHERE description = "Tool for designing and executing workflows" | {
"input": "CREATE TABLE table_25474825_1 (license VARCHAR, description VARCHAR)",
"instruction": "What is the license that is described as a tool for designing and executing workflows?",
"output": "SELECT license FROM table_25474825_1 WHERE description = \"Tool for designing and executing workflows\""
} |
### INSTRUCTION
What is the lowest group number that has a Fraction less than 0.000748, a Half-Life of 55.72 and a Decay Constant larger than 0.012400000000000001?
### INPUT
CREATE TABLE table_name_99 (group INTEGER, decay_constant__s_−1__ VARCHAR, fraction VARCHAR, half_life__s_ VARCHAR)
### OUTPUT
SELECT MIN(group) FROM table_name_99 WHERE fraction < 0.000748 AND half_life__s_ = 55.72 AND decay_constant__s_−1__ > 0.012400000000000001 | {
"input": "CREATE TABLE table_name_99 (group INTEGER, decay_constant__s_−1__ VARCHAR, fraction VARCHAR, half_life__s_ VARCHAR)",
"instruction": "What is the lowest group number that has a Fraction less than 0.000748, a Half-Life of 55.72 and a Decay Constant larger than 0.012400000000000001?",
"output": "SELECT MIN(group) FROM table_name_99 WHERE fraction < 0.000748 AND half_life__s_ = 55.72 AND decay_constant__s_−1__ > 0.012400000000000001"
} |
### INSTRUCTION
Find the name and checking balance of the account with the lowest savings balance.
### INPUT
CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
### OUTPUT
SELECT T1.name, T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1 | {
"input": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)",
"instruction": "Find the name and checking balance of the account with the lowest savings balance.",
"output": "SELECT T1.name, T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1"
} |
### INSTRUCTION
What type of ship is a Kobben class vessel that has been in service longer than 2?
### INPUT
CREATE TABLE table_name_18 (type VARCHAR, in_service VARCHAR, vessel VARCHAR)
### OUTPUT
SELECT type FROM table_name_18 WHERE in_service > 2 AND vessel = "kobben class" | {
"input": "CREATE TABLE table_name_18 (type VARCHAR, in_service VARCHAR, vessel VARCHAR)",
"instruction": "What type of ship is a Kobben class vessel that has been in service longer than 2?",
"output": "SELECT type FROM table_name_18 WHERE in_service > 2 AND vessel = \"kobben class\""
} |
### INSTRUCTION
What team was Ryan Callahan, who received a penalty for roughing, playing for?
### INPUT
CREATE TABLE table_name_87 (team VARCHAR, penalty VARCHAR, player VARCHAR)
### OUTPUT
SELECT team FROM table_name_87 WHERE penalty = "roughing" AND player = "ryan callahan" | {
"input": "CREATE TABLE table_name_87 (team VARCHAR, penalty VARCHAR, player VARCHAR)",
"instruction": "What team was Ryan Callahan, who received a penalty for roughing, playing for?",
"output": "SELECT team FROM table_name_87 WHERE penalty = \"roughing\" AND player = \"ryan callahan\""
} |
### INSTRUCTION
What are the template ids with template type description "Presentation".
### INPUT
CREATE TABLE Templates (template_id VARCHAR, template_type_code VARCHAR); CREATE TABLE Ref_template_types (template_type_code VARCHAR, template_type_description VARCHAR)
### OUTPUT
SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = "Presentation" | {
"input": "CREATE TABLE Templates (template_id VARCHAR, template_type_code VARCHAR); CREATE TABLE Ref_template_types (template_type_code VARCHAR, template_type_description VARCHAR)",
"instruction": "What are the template ids with template type description \"Presentation\".",
"output": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\""
} |
### INSTRUCTION
How many mens doubles took place in 1970/1971?
### INPUT
CREATE TABLE table_12266757_1 (mens_doubles VARCHAR, season VARCHAR)
### OUTPUT
SELECT COUNT(mens_doubles) FROM table_12266757_1 WHERE season = "1970/1971" | {
"input": "CREATE TABLE table_12266757_1 (mens_doubles VARCHAR, season VARCHAR)",
"instruction": "How many mens doubles took place in 1970/1971?",
"output": "SELECT COUNT(mens_doubles) FROM table_12266757_1 WHERE season = \"1970/1971\""
} |
### INSTRUCTION
Who is the opponent the Seattle Seahawks played when their record was 1-3?
### INPUT
CREATE TABLE table_name_57 (opponent VARCHAR, record VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_57 WHERE record = "1-3" | {
"input": "CREATE TABLE table_name_57 (opponent VARCHAR, record VARCHAR)",
"instruction": "Who is the opponent the Seattle Seahawks played when their record was 1-3?",
"output": "SELECT opponent FROM table_name_57 WHERE record = \"1-3\""
} |
### INSTRUCTION
What is the population of the Parish, Plumbland, that had a former local authority of Cockermouth Rural District?
### INPUT
CREATE TABLE table_name_5 (population VARCHAR, former_local_authority VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(population) FROM table_name_5 WHERE former_local_authority = "cockermouth rural district" AND name = "plumbland" | {
"input": "CREATE TABLE table_name_5 (population VARCHAR, former_local_authority VARCHAR, name VARCHAR)",
"instruction": "What is the population of the Parish, Plumbland, that had a former local authority of Cockermouth Rural District?",
"output": "SELECT COUNT(population) FROM table_name_5 WHERE former_local_authority = \"cockermouth rural district\" AND name = \"plumbland\""
} |
### INSTRUCTION
what is the gold when the bronze is 1, total is 6 and silver is less than 3?
### INPUT
CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)
### OUTPUT
SELECT SUM(gold) FROM table_name_2 WHERE bronze = 1 AND total = "6" AND silver < 3 | {
"input": "CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)",
"instruction": "what is the gold when the bronze is 1, total is 6 and silver is less than 3?",
"output": "SELECT SUM(gold) FROM table_name_2 WHERE bronze = 1 AND total = \"6\" AND silver < 3"
} |
### INSTRUCTION
Tell me the constructor for Grid more than 4 and drivers being heinz-harald frentzen
### INPUT
CREATE TABLE table_name_57 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)
### OUTPUT
SELECT constructor FROM table_name_57 WHERE grid > 4 AND driver = "heinz-harald frentzen" | {
"input": "CREATE TABLE table_name_57 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)",
"instruction": "Tell me the constructor for Grid more than 4 and drivers being heinz-harald frentzen",
"output": "SELECT constructor FROM table_name_57 WHERE grid > 4 AND driver = \"heinz-harald frentzen\""
} |
### INSTRUCTION
What's the date when Yelena Isinbayeva for Russia was in Beijing, China?
### INPUT
CREATE TABLE table_name_82 (date VARCHAR, athlete VARCHAR, nation VARCHAR, place VARCHAR)
### OUTPUT
SELECT date FROM table_name_82 WHERE nation = "russia" AND place = "beijing, china" AND athlete = "yelena isinbayeva" | {
"input": "CREATE TABLE table_name_82 (date VARCHAR, athlete VARCHAR, nation VARCHAR, place VARCHAR)",
"instruction": "What's the date when Yelena Isinbayeva for Russia was in Beijing, China?",
"output": "SELECT date FROM table_name_82 WHERE nation = \"russia\" AND place = \"beijing, china\" AND athlete = \"yelena isinbayeva\""
} |
### INSTRUCTION
What is essendon's away team score?
### INPUT
CREATE TABLE table_name_1 (away_team VARCHAR)
### OUTPUT
SELECT away_team AS score FROM table_name_1 WHERE away_team = "essendon" | {
"input": "CREATE TABLE table_name_1 (away_team VARCHAR)",
"instruction": "What is essendon's away team score?",
"output": "SELECT away_team AS score FROM table_name_1 WHERE away_team = \"essendon\""
} |
### INSTRUCTION
What's the total population when there are 5.7% Asian American and fewer than 126,965 Asian American Population?
### INPUT
CREATE TABLE table_name_88 (total_population__2010_ INTEGER, _percentage_asian_american VARCHAR, asian_american_population__2010_ VARCHAR)
### OUTPUT
SELECT MIN(total_population__2010_) FROM table_name_88 WHERE _percentage_asian_american = 5.7 AND asian_american_population__2010_ < 126 OFFSET 965 | {
"input": "CREATE TABLE table_name_88 (total_population__2010_ INTEGER, _percentage_asian_american VARCHAR, asian_american_population__2010_ VARCHAR)",
"instruction": "What's the total population when there are 5.7% Asian American and fewer than 126,965 Asian American Population?",
"output": "SELECT MIN(total_population__2010_) FROM table_name_88 WHERE _percentage_asian_american = 5.7 AND asian_american_population__2010_ < 126 OFFSET 965"
} |
### INSTRUCTION
How many tv series had an adult rating of 1.2?
### INPUT
CREATE TABLE table_19188562_2 (tv_season VARCHAR, rating__adults_18_49_ VARCHAR)
### OUTPUT
SELECT COUNT(tv_season) FROM table_19188562_2 WHERE rating__adults_18_49_ = "1.2" | {
"input": "CREATE TABLE table_19188562_2 (tv_season VARCHAR, rating__adults_18_49_ VARCHAR)",
"instruction": "How many tv series had an adult rating of 1.2?",
"output": "SELECT COUNT(tv_season) FROM table_19188562_2 WHERE rating__adults_18_49_ = \"1.2\""
} |
### INSTRUCTION
Which track has a title : Just a little bit
### INPUT
CREATE TABLE table_name_64 (track INTEGER, song_title VARCHAR)
### OUTPUT
SELECT MIN(track) FROM table_name_64 WHERE song_title = "just a little bit" | {
"input": "CREATE TABLE table_name_64 (track INTEGER, song_title VARCHAR)",
"instruction": "Which track has a title : Just a little bit",
"output": "SELECT MIN(track) FROM table_name_64 WHERE song_title = \"just a little bit\""
} |
### INSTRUCTION
In the Indianapolis Sweepstakes race session, what is the championship?
### INPUT
CREATE TABLE table_name_72 (championship VARCHAR, session VARCHAR, event VARCHAR)
### OUTPUT
SELECT championship FROM table_name_72 WHERE session = "race" AND event = "indianapolis sweepstakes" | {
"input": "CREATE TABLE table_name_72 (championship VARCHAR, session VARCHAR, event VARCHAR)",
"instruction": "In the Indianapolis Sweepstakes race session, what is the championship?",
"output": "SELECT championship FROM table_name_72 WHERE session = \"race\" AND event = \"indianapolis sweepstakes\""
} |
### INSTRUCTION
what is the highest grid when the time/retired is fuel pump and the laps is more than 26?
### INPUT
CREATE TABLE table_name_95 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
### OUTPUT
SELECT MAX(grid) FROM table_name_95 WHERE time_retired = "fuel pump" AND laps > 26 | {
"input": "CREATE TABLE table_name_95 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)",
"instruction": "what is the highest grid when the time/retired is fuel pump and the laps is more than 26?",
"output": "SELECT MAX(grid) FROM table_name_95 WHERE time_retired = \"fuel pump\" AND laps > 26"
} |
### INSTRUCTION
Name the least game for l 109–116 (ot)
### INPUT
CREATE TABLE table_27700375_11 (game INTEGER, score VARCHAR)
### OUTPUT
SELECT MIN(game) FROM table_27700375_11 WHERE score = "L 109–116 (OT)" | {
"input": "CREATE TABLE table_27700375_11 (game INTEGER, score VARCHAR)",
"instruction": "Name the least game for l 109–116 (ot)",
"output": "SELECT MIN(game) FROM table_27700375_11 WHERE score = \"L 109–116 (OT)\""
} |
### INSTRUCTION
The ship MS Vistafjord has what in service for NAL?
### INPUT
CREATE TABLE table_name_10 (in_service_for_nal VARCHAR, ship VARCHAR)
### OUTPUT
SELECT in_service_for_nal FROM table_name_10 WHERE ship = "ms vistafjord" | {
"input": "CREATE TABLE table_name_10 (in_service_for_nal VARCHAR, ship VARCHAR)",
"instruction": "The ship MS Vistafjord has what in service for NAL?",
"output": "SELECT in_service_for_nal FROM table_name_10 WHERE ship = \"ms vistafjord\""
} |
### INSTRUCTION
What original air date was the episode with production code of 5.05?
### INPUT
CREATE TABLE table_28089666_1 (original_air_date VARCHAR, production_code VARCHAR)
### OUTPUT
SELECT original_air_date FROM table_28089666_1 WHERE production_code = "5.05" | {
"input": "CREATE TABLE table_28089666_1 (original_air_date VARCHAR, production_code VARCHAR)",
"instruction": "What original air date was the episode with production code of 5.05?",
"output": "SELECT original_air_date FROM table_28089666_1 WHERE production_code = \"5.05\""
} |
### INSTRUCTION
What is the sum of the prominence in m of slovakia?
### INPUT
CREATE TABLE table_name_39 (prominence__m_ INTEGER, country VARCHAR)
### OUTPUT
SELECT SUM(prominence__m_) FROM table_name_39 WHERE country = "slovakia" | {
"input": "CREATE TABLE table_name_39 (prominence__m_ INTEGER, country VARCHAR)",
"instruction": "What is the sum of the prominence in m of slovakia?",
"output": "SELECT SUM(prominence__m_) FROM table_name_39 WHERE country = \"slovakia\""
} |
### INSTRUCTION
What's the name of the train that goes to Bhubaneswar?
### INPUT
CREATE TABLE table_23477312_1 (train_name VARCHAR, destination VARCHAR)
### OUTPUT
SELECT train_name FROM table_23477312_1 WHERE destination = "Bhubaneswar" | {
"input": "CREATE TABLE table_23477312_1 (train_name VARCHAR, destination VARCHAR)",
"instruction": "What's the name of the train that goes to Bhubaneswar?",
"output": "SELECT train_name FROM table_23477312_1 WHERE destination = \"Bhubaneswar\""
} |
### INSTRUCTION
List all every engineer's first name, last name, details and coresponding skill description.
### INPUT
CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, other_details VARCHAR, engineer_id VARCHAR); CREATE TABLE Engineer_Skills (engineer_id VARCHAR, skill_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR)
### OUTPUT
SELECT T1.first_name, T1.last_name, T1.other_details, T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id | {
"input": "CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, other_details VARCHAR, engineer_id VARCHAR); CREATE TABLE Engineer_Skills (engineer_id VARCHAR, skill_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR)",
"instruction": "List all every engineer's first name, last name, details and coresponding skill description.",
"output": "SELECT T1.first_name, T1.last_name, T1.other_details, T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id"
} |
### INSTRUCTION
How many laps are associated with a grid greater than 8, under 11 points, and will power?
### INPUT
CREATE TABLE table_name_29 (laps VARCHAR, driver VARCHAR, grid VARCHAR, points VARCHAR)
### OUTPUT
SELECT COUNT(laps) FROM table_name_29 WHERE grid > 8 AND points < 11 AND driver = "will power" | {
"input": "CREATE TABLE table_name_29 (laps VARCHAR, driver VARCHAR, grid VARCHAR, points VARCHAR)",
"instruction": "How many laps are associated with a grid greater than 8, under 11 points, and will power?",
"output": "SELECT COUNT(laps) FROM table_name_29 WHERE grid > 8 AND points < 11 AND driver = \"will power\""
} |
### INSTRUCTION
What country is Yerevan located in?
### INPUT
CREATE TABLE table_name_21 (country VARCHAR, city VARCHAR)
### OUTPUT
SELECT country FROM table_name_21 WHERE city = "yerevan" | {
"input": "CREATE TABLE table_name_21 (country VARCHAR, city VARCHAR)",
"instruction": "What country is Yerevan located in?",
"output": "SELECT country FROM table_name_21 WHERE city = \"yerevan\""
} |
### INSTRUCTION
When did the term begin that ended January 3, 1995?
### INPUT
CREATE TABLE table_224672_2 (term_began VARCHAR, term_ended VARCHAR)
### OUTPUT
SELECT term_began FROM table_224672_2 WHERE term_ended = "January 3, 1995" | {
"input": "CREATE TABLE table_224672_2 (term_began VARCHAR, term_ended VARCHAR)",
"instruction": "When did the term begin that ended January 3, 1995?",
"output": "SELECT term_began FROM table_224672_2 WHERE term_ended = \"January 3, 1995\""
} |
### INSTRUCTION
Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.
### INPUT
CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR, enzyme_id VARCHAR); CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE enzyme (id VARCHAR, product VARCHAR)
### OUTPUT
SELECT name, trade_name FROM medicine EXCEPT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX' | {
"input": "CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR, enzyme_id VARCHAR); CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE enzyme (id VARCHAR, product VARCHAR)",
"instruction": "Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.",
"output": "SELECT name, trade_name FROM medicine EXCEPT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX'"
} |
### INSTRUCTION
Name the Time of broadcast has a Picture format of 4:3, and Hours of 20:30, and Days of the week of monday, wednesday, friday?
### INPUT
CREATE TABLE table_name_23 (time_of_broadcast VARCHAR, days_of_the_week VARCHAR, picture_format VARCHAR, hours VARCHAR)
### OUTPUT
SELECT time_of_broadcast FROM table_name_23 WHERE picture_format = "4:3" AND hours = "20:30" AND days_of_the_week = "monday, wednesday, friday" | {
"input": "CREATE TABLE table_name_23 (time_of_broadcast VARCHAR, days_of_the_week VARCHAR, picture_format VARCHAR, hours VARCHAR)",
"instruction": "Name the Time of broadcast has a Picture format of 4:3, and Hours of 20:30, and Days of the week of monday, wednesday, friday?",
"output": "SELECT time_of_broadcast FROM table_name_23 WHERE picture_format = \"4:3\" AND hours = \"20:30\" AND days_of_the_week = \"monday, wednesday, friday\""
} |
### INSTRUCTION
Name the Away team which have a Ground of colonial stadium on friday, 2 march?
### INPUT
CREATE TABLE table_name_83 (away_team VARCHAR, ground VARCHAR, date VARCHAR)
### OUTPUT
SELECT away_team FROM table_name_83 WHERE ground = "colonial stadium" AND date = "friday, 2 march" | {
"input": "CREATE TABLE table_name_83 (away_team VARCHAR, ground VARCHAR, date VARCHAR)",
"instruction": "Name the Away team which have a Ground of colonial stadium on friday, 2 march?",
"output": "SELECT away_team FROM table_name_83 WHERE ground = \"colonial stadium\" AND date = \"friday, 2 march\""
} |
### INSTRUCTION
Show the builder of railways associated with the trains named "Andaman Exp".
### INPUT
CREATE TABLE railway (Builder VARCHAR, Railway_ID VARCHAR); CREATE TABLE train (Railway_ID VARCHAR, Name VARCHAR)
### OUTPUT
SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID WHERE T2.Name = "Andaman Exp" | {
"input": "CREATE TABLE railway (Builder VARCHAR, Railway_ID VARCHAR); CREATE TABLE train (Railway_ID VARCHAR, Name VARCHAR)",
"instruction": "Show the builder of railways associated with the trains named \"Andaman Exp\".",
"output": "SELECT T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID WHERE T2.Name = \"Andaman Exp\""
} |
### INSTRUCTION
what is the latitude when water (sqmi) is 0.058 and the ansi code is less than 1759683?
### INPUT
CREATE TABLE table_name_57 (latitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR)
### OUTPUT
SELECT AVG(latitude) FROM table_name_57 WHERE water__sqmi_ = 0.058 AND ansi_code < 1759683 | {
"input": "CREATE TABLE table_name_57 (latitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR)",
"instruction": "what is the latitude when water (sqmi) is 0.058 and the ansi code is less than 1759683?",
"output": "SELECT AVG(latitude) FROM table_name_57 WHERE water__sqmi_ = 0.058 AND ansi_code < 1759683"
} |
### INSTRUCTION
How many subsidiaries of Postermobile Limited?
### INPUT
CREATE TABLE table_1756264_2 (subsidiaries VARCHAR, company_name VARCHAR)
### OUTPUT
SELECT subsidiaries FROM table_1756264_2 WHERE company_name = "POSTERMOBILE LIMITED" | {
"input": "CREATE TABLE table_1756264_2 (subsidiaries VARCHAR, company_name VARCHAR)",
"instruction": "How many subsidiaries of Postermobile Limited?",
"output": "SELECT subsidiaries FROM table_1756264_2 WHERE company_name = \"POSTERMOBILE LIMITED\""
} |
### INSTRUCTION
What is the Higgins with a Scallon that is 2%?
### INPUT
CREATE TABLE table_name_35 (higgins VARCHAR, scallon VARCHAR)
### OUTPUT
SELECT higgins FROM table_name_35 WHERE scallon = "2%" | {
"input": "CREATE TABLE table_name_35 (higgins VARCHAR, scallon VARCHAR)",
"instruction": "What is the Higgins with a Scallon that is 2%?",
"output": "SELECT higgins FROM table_name_35 WHERE scallon = \"2%\""
} |
### INSTRUCTION
What is the waterford score that has a year prior to 1963, with all-ireland hurling final replay as the competition?
### INPUT
CREATE TABLE table_name_7 (waterford_score VARCHAR, year VARCHAR, competition VARCHAR)
### OUTPUT
SELECT waterford_score FROM table_name_7 WHERE year < 1963 AND competition = "all-ireland hurling final replay" | {
"input": "CREATE TABLE table_name_7 (waterford_score VARCHAR, year VARCHAR, competition VARCHAR)",
"instruction": "What is the waterford score that has a year prior to 1963, with all-ireland hurling final replay as the competition?",
"output": "SELECT waterford_score FROM table_name_7 WHERE year < 1963 AND competition = \"all-ireland hurling final replay\""
} |
### INSTRUCTION
Which Player has a Round smaller than 5, and a School/Club Team of florida state?
### INPUT
CREATE TABLE table_name_77 (player VARCHAR, round VARCHAR, school_club_team VARCHAR)
### OUTPUT
SELECT player FROM table_name_77 WHERE round < 5 AND school_club_team = "florida state" | {
"input": "CREATE TABLE table_name_77 (player VARCHAR, round VARCHAR, school_club_team VARCHAR)",
"instruction": "Which Player has a Round smaller than 5, and a School/Club Team of florida state?",
"output": "SELECT player FROM table_name_77 WHERE round < 5 AND school_club_team = \"florida state\""
} |
### INSTRUCTION
In what venue was the Batting team India who featured partners Sachin Tendulkar and Rahul Dravid?
### INPUT
CREATE TABLE table_name_15 (venue VARCHAR, batting_team VARCHAR, batting_partners VARCHAR)
### OUTPUT
SELECT venue FROM table_name_15 WHERE batting_team = "india" AND batting_partners = "sachin tendulkar and rahul dravid" | {
"input": "CREATE TABLE table_name_15 (venue VARCHAR, batting_team VARCHAR, batting_partners VARCHAR)",
"instruction": "In what venue was the Batting team India who featured partners Sachin Tendulkar and Rahul Dravid?",
"output": "SELECT venue FROM table_name_15 WHERE batting_team = \"india\" AND batting_partners = \"sachin tendulkar and rahul dravid\""
} |
### INSTRUCTION
Which Number of electorates (2009) has a District of sheopur, and a Constituency number of 1?
### INPUT
CREATE TABLE table_name_94 (number_of_electorates__2009_ VARCHAR, district VARCHAR, constituency_number VARCHAR)
### OUTPUT
SELECT COUNT(number_of_electorates__2009_) FROM table_name_94 WHERE district = "sheopur" AND constituency_number = "1" | {
"input": "CREATE TABLE table_name_94 (number_of_electorates__2009_ VARCHAR, district VARCHAR, constituency_number VARCHAR)",
"instruction": "Which Number of electorates (2009) has a District of sheopur, and a Constituency number of 1?",
"output": "SELECT COUNT(number_of_electorates__2009_) FROM table_name_94 WHERE district = \"sheopur\" AND constituency_number = \"1\""
} |
### INSTRUCTION
What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?
### INPUT
CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR)
### OUTPUT
SELECT level FROM table_name_21 WHERE season > 2003 AND division = "kakkonen (second division)" AND position = "12th" | {
"input": "CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR)",
"instruction": "What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?",
"output": "SELECT level FROM table_name_21 WHERE season > 2003 AND division = \"kakkonen (second division)\" AND position = \"12th\""
} |
### INSTRUCTION
Who's the actor for the Archers having a character of Martha Woodford?
### INPUT
CREATE TABLE table_name_14 (actor VARCHAR, soap_opera VARCHAR, character VARCHAR)
### OUTPUT
SELECT actor FROM table_name_14 WHERE soap_opera = "the archers" AND character = "martha woodford" | {
"input": "CREATE TABLE table_name_14 (actor VARCHAR, soap_opera VARCHAR, character VARCHAR)",
"instruction": "Who's the actor for the Archers having a character of Martha Woodford?",
"output": "SELECT actor FROM table_name_14 WHERE soap_opera = \"the archers\" AND character = \"martha woodford\""
} |
### INSTRUCTION
What years for the rockets did the player ford, phil phil ford play?
### INPUT
CREATE TABLE table_11734041_6 (years_for_rockets VARCHAR, player VARCHAR)
### OUTPUT
SELECT years_for_rockets FROM table_11734041_6 WHERE player = "Ford, Phil Phil Ford" | {
"input": "CREATE TABLE table_11734041_6 (years_for_rockets VARCHAR, player VARCHAR)",
"instruction": "What years for the rockets did the player ford, phil phil ford play?",
"output": "SELECT years_for_rockets FROM table_11734041_6 WHERE player = \"Ford, Phil Phil Ford\""
} |
### INSTRUCTION
What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical?
### INPUT
CREATE TABLE table_name_96 (year INTEGER, award_ceremony VARCHAR, category VARCHAR)
### OUTPUT
SELECT AVG(year) FROM table_name_96 WHERE award_ceremony = "drama desk award" AND category = "outstanding featured actress in a musical" | {
"input": "CREATE TABLE table_name_96 (year INTEGER, award_ceremony VARCHAR, category VARCHAR)",
"instruction": "What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical?",
"output": "SELECT AVG(year) FROM table_name_96 WHERE award_ceremony = \"drama desk award\" AND category = \"outstanding featured actress in a musical\""
} |
### INSTRUCTION
What is the pick number for Northwestern college?
### INPUT
CREATE TABLE table_10975034_2 (pick__number INTEGER, college VARCHAR)
### OUTPUT
SELECT MAX(pick__number) FROM table_10975034_2 WHERE college = "Northwestern" | {
"input": "CREATE TABLE table_10975034_2 (pick__number INTEGER, college VARCHAR)",
"instruction": "What is the pick number for Northwestern college?",
"output": "SELECT MAX(pick__number) FROM table_10975034_2 WHERE college = \"Northwestern\""
} |
### INSTRUCTION
What is the 100 year for Carbon Dioxide?
### INPUT
CREATE TABLE table_21350772_2 (gas_name VARCHAR)
### OUTPUT
SELECT 100 AS _yr FROM table_21350772_2 WHERE gas_name = "Carbon dioxide" | {
"input": "CREATE TABLE table_21350772_2 (gas_name VARCHAR)",
"instruction": "What is the 100 year for Carbon Dioxide?",
"output": "SELECT 100 AS _yr FROM table_21350772_2 WHERE gas_name = \"Carbon dioxide\""
} |
### INSTRUCTION
With the Republican ticket of Frank M. Williams who was the Progressive ticket?
### INPUT
CREATE TABLE table_name_63 (progressive_ticket VARCHAR, republican_ticket VARCHAR)
### OUTPUT
SELECT progressive_ticket FROM table_name_63 WHERE republican_ticket = "frank m. williams" | {
"input": "CREATE TABLE table_name_63 (progressive_ticket VARCHAR, republican_ticket VARCHAR)",
"instruction": "With the Republican ticket of Frank M. Williams who was the Progressive ticket?",
"output": "SELECT progressive_ticket FROM table_name_63 WHERE republican_ticket = \"frank m. williams\""
} |
### INSTRUCTION
What is the Altitude (meters) associated with a rank smaller than 10, and the range Mühlig-Hofmann Mountains?
### INPUT
CREATE TABLE table_name_72 (altitude__meters_ VARCHAR, range VARCHAR, rank VARCHAR)
### OUTPUT
SELECT COUNT(altitude__meters_) FROM table_name_72 WHERE range = "mühlig-hofmann mountains" AND rank < 10 | {
"input": "CREATE TABLE table_name_72 (altitude__meters_ VARCHAR, range VARCHAR, rank VARCHAR)",
"instruction": "What is the Altitude (meters) associated with a rank smaller than 10, and the range Mühlig-Hofmann Mountains?",
"output": "SELECT COUNT(altitude__meters_) FROM table_name_72 WHERE range = \"mühlig-hofmann mountains\" AND rank < 10"
} |
### INSTRUCTION
Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871?
### INPUT
CREATE TABLE table_name_76 (works_number VARCHAR, date VARCHAR, number VARCHAR, builder VARCHAR, type VARCHAR)
### OUTPUT
SELECT works_number FROM table_name_76 WHERE builder = "avonside engine company" AND type = "4-6-0" AND number < 12 AND date = "december 1871" | {
"input": "CREATE TABLE table_name_76 (works_number VARCHAR, date VARCHAR, number VARCHAR, builder VARCHAR, type VARCHAR)",
"instruction": "Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871?",
"output": "SELECT works_number FROM table_name_76 WHERE builder = \"avonside engine company\" AND type = \"4-6-0\" AND number < 12 AND date = \"december 1871\""
} |
### INSTRUCTION
What is the score of the match with UTC as the runner-up and Saint-Gaudens Bears as the winners?
### INPUT
CREATE TABLE table_name_77 (score VARCHAR, runner_up VARCHAR, winners VARCHAR)
### OUTPUT
SELECT score FROM table_name_77 WHERE runner_up = "utc" AND winners = "saint-gaudens bears" | {
"input": "CREATE TABLE table_name_77 (score VARCHAR, runner_up VARCHAR, winners VARCHAR)",
"instruction": "What is the score of the match with UTC as the runner-up and Saint-Gaudens Bears as the winners?",
"output": "SELECT score FROM table_name_77 WHERE runner_up = \"utc\" AND winners = \"saint-gaudens bears\""
} |
### INSTRUCTION
What's the sum of years when the Artist of the queen were less than 1?
### INPUT
CREATE TABLE table_name_59 (year VARCHAR, artist VARCHAR, weeks_at_number_one VARCHAR)
### OUTPUT
SELECT COUNT(year) FROM table_name_59 WHERE artist = "queen" AND weeks_at_number_one < 1 | {
"input": "CREATE TABLE table_name_59 (year VARCHAR, artist VARCHAR, weeks_at_number_one VARCHAR)",
"instruction": "What's the sum of years when the Artist of the queen were less than 1?",
"output": "SELECT COUNT(year) FROM table_name_59 WHERE artist = \"queen\" AND weeks_at_number_one < 1"
} |
### INSTRUCTION
What athlete has less than 7 gold and 14 total medals?
### INPUT
CREATE TABLE table_name_87 (athlete VARCHAR, gold VARCHAR, total VARCHAR)
### OUTPUT
SELECT athlete FROM table_name_87 WHERE gold < 7 AND total = 14 | {
"input": "CREATE TABLE table_name_87 (athlete VARCHAR, gold VARCHAR, total VARCHAR)",
"instruction": "What athlete has less than 7 gold and 14 total medals?",
"output": "SELECT athlete FROM table_name_87 WHERE gold < 7 AND total = 14"
} |
### INSTRUCTION
Which surface was played during Curitiba tournament?
### INPUT
CREATE TABLE table_name_46 (surface VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT surface FROM table_name_46 WHERE tournament = "curitiba" | {
"input": "CREATE TABLE table_name_46 (surface VARCHAR, tournament VARCHAR)",
"instruction": "Which surface was played during Curitiba tournament?",
"output": "SELECT surface FROM table_name_46 WHERE tournament = \"curitiba\""
} |
### INSTRUCTION
What is the average word count with crs and subframes lesser than 2?
### INPUT
CREATE TABLE table_name_9 (word__number INTEGER, name VARCHAR, subframe__number VARCHAR)
### OUTPUT
SELECT AVG(word__number) FROM table_name_9 WHERE name = "crs" AND subframe__number < 2 | {
"input": "CREATE TABLE table_name_9 (word__number INTEGER, name VARCHAR, subframe__number VARCHAR)",
"instruction": "What is the average word count with crs and subframes lesser than 2?",
"output": "SELECT AVG(word__number) FROM table_name_9 WHERE name = \"crs\" AND subframe__number < 2"
} |
### INSTRUCTION
WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331?
### INPUT
CREATE TABLE table_name_74 (ast_avg INTEGER, total_assists VARCHAR, games VARCHAR, rank VARCHAR)
### OUTPUT
SELECT AVG(ast_avg) FROM table_name_74 WHERE games > 101 AND rank = 5 AND total_assists < 331 | {
"input": "CREATE TABLE table_name_74 (ast_avg INTEGER, total_assists VARCHAR, games VARCHAR, rank VARCHAR)",
"instruction": "WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331?",
"output": "SELECT AVG(ast_avg) FROM table_name_74 WHERE games > 101 AND rank = 5 AND total_assists < 331"
} |
### INSTRUCTION
What is the g (μs/km)when the frequency (hz) is 100k?
### INPUT
CREATE TABLE table_261642_3 (g__μs_km_ VARCHAR, frequency__hz_ VARCHAR)
### OUTPUT
SELECT g__μs_km_ FROM table_261642_3 WHERE frequency__hz_ = "100k" | {
"input": "CREATE TABLE table_261642_3 (g__μs_km_ VARCHAR, frequency__hz_ VARCHAR)",
"instruction": "What is the g (μs/km)when the frequency (hz) is 100k?",
"output": "SELECT g__μs_km_ FROM table_261642_3 WHERE frequency__hz_ = \"100k\""
} |
### INSTRUCTION
What is the time for Adi Bichman?
### INPUT
CREATE TABLE table_name_28 (time VARCHAR, name VARCHAR)
### OUTPUT
SELECT time FROM table_name_28 WHERE name = "adi bichman" | {
"input": "CREATE TABLE table_name_28 (time VARCHAR, name VARCHAR)",
"instruction": "What is the time for Adi Bichman?",
"output": "SELECT time FROM table_name_28 WHERE name = \"adi bichman\""
} |
### INSTRUCTION
Name the background colour for the Australian Capital Territory
### INPUT
CREATE TABLE table_1000181_1 (text_background_colour VARCHAR, state_territory VARCHAR)
### OUTPUT
SELECT text_background_colour FROM table_1000181_1 WHERE state_territory = "Australian Capital Territory" | {
"input": "CREATE TABLE table_1000181_1 (text_background_colour VARCHAR, state_territory VARCHAR)",
"instruction": "Name the background colour for the Australian Capital Territory",
"output": "SELECT text_background_colour FROM table_1000181_1 WHERE state_territory = \"Australian Capital Territory\""
} |
### INSTRUCTION
What is the 2007 value at the 2012 Grand Slam Tournaments?
### INPUT
CREATE TABLE table_name_26 (Id VARCHAR)
### OUTPUT
SELECT 2007 FROM table_name_26 WHERE 2012 = "grand slam tournaments" | {
"input": "CREATE TABLE table_name_26 (Id VARCHAR)",
"instruction": "What is the 2007 value at the 2012 Grand Slam Tournaments?",
"output": "SELECT 2007 FROM table_name_26 WHERE 2012 = \"grand slam tournaments\""
} |
### INSTRUCTION
How many points did landskrona bois get when they were ranked below 18?
### INPUT
CREATE TABLE table_name_68 (points VARCHAR, club VARCHAR, rank VARCHAR)
### OUTPUT
SELECT COUNT(points) FROM table_name_68 WHERE club = "landskrona bois" AND rank < 18 | {
"input": "CREATE TABLE table_name_68 (points VARCHAR, club VARCHAR, rank VARCHAR)",
"instruction": "How many points did landskrona bois get when they were ranked below 18?",
"output": "SELECT COUNT(points) FROM table_name_68 WHERE club = \"landskrona bois\" AND rank < 18"
} |
### INSTRUCTION
Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.
### INPUT
CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR, basePrice VARCHAR, maxOccupancy VARCHAR)
### OUTPUT
SELECT roomName, RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2 | {
"input": "CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR, basePrice VARCHAR, maxOccupancy VARCHAR)",
"instruction": "Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.",
"output": "SELECT roomName, RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2"
} |
### INSTRUCTION
What was the original title of the film directed by Lene Grønlykke and Sven Grønlykke?
### INPUT
CREATE TABLE table_name_72 (original_title VARCHAR, director VARCHAR)
### OUTPUT
SELECT original_title FROM table_name_72 WHERE director = "lene grønlykke and sven grønlykke" | {
"input": "CREATE TABLE table_name_72 (original_title VARCHAR, director VARCHAR)",
"instruction": "What was the original title of the film directed by Lene Grønlykke and Sven Grønlykke?",
"output": "SELECT original_title FROM table_name_72 WHERE director = \"lene grønlykke and sven grønlykke\""
} |
### INSTRUCTION
Find the first name of students who have cat or dog pet.
### INPUT
CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE student (Fname VARCHAR, stuid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)
### OUTPUT
SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog' | {
"input": "CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE student (Fname VARCHAR, stuid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)",
"instruction": "Find the first name of students who have cat or dog pet.",
"output": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'"
} |
### INSTRUCTION
What day did the VFL play Punt Road Oval?
### INPUT
CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR)
### OUTPUT
SELECT date FROM table_name_59 WHERE venue = "punt road oval" | {
"input": "CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR)",
"instruction": "What day did the VFL play Punt Road Oval?",
"output": "SELECT date FROM table_name_59 WHERE venue = \"punt road oval\""
} |
### INSTRUCTION
What are the ids and names of the architects who built at least 3 bridges ?
### INPUT
CREATE TABLE architect (id VARCHAR, name VARCHAR); CREATE TABLE bridge (architect_id VARCHAR)
### OUTPUT
SELECT T1.id, T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) >= 3 | {
"input": "CREATE TABLE architect (id VARCHAR, name VARCHAR); CREATE TABLE bridge (architect_id VARCHAR)",
"instruction": "What are the ids and names of the architects who built at least 3 bridges ?",
"output": "SELECT T1.id, T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) >= 3"
} |
### INSTRUCTION
The film titled Bosko's fox hunt had what as the smallest production number?
### INPUT
CREATE TABLE table_name_56 (production_num INTEGER, title VARCHAR)
### OUTPUT
SELECT MIN(production_num) FROM table_name_56 WHERE title = "bosko's fox hunt" | {
"input": "CREATE TABLE table_name_56 (production_num INTEGER, title VARCHAR)",
"instruction": "The film titled Bosko's fox hunt had what as the smallest production number?",
"output": "SELECT MIN(production_num) FROM table_name_56 WHERE title = \"bosko's fox hunt\""
} |
### INSTRUCTION
What's the date in the United Kingdom having a catalog of reveal50cd/lp?
### INPUT
CREATE TABLE table_name_3 (date VARCHAR, catalog VARCHAR, region VARCHAR)
### OUTPUT
SELECT date FROM table_name_3 WHERE catalog = "reveal50cd/lp" AND region = "united kingdom" | {
"input": "CREATE TABLE table_name_3 (date VARCHAR, catalog VARCHAR, region VARCHAR)",
"instruction": "What's the date in the United Kingdom having a catalog of reveal50cd/lp?",
"output": "SELECT date FROM table_name_3 WHERE catalog = \"reveal50cd/lp\" AND region = \"united kingdom\""
} |
### INSTRUCTION
What was the average number of attendance for the game on November 29, 1981 played after week 13?
### INPUT
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR)
### OUTPUT
SELECT AVG(attendance) FROM table_name_40 WHERE date = "november 29, 1981" AND week > 13 | {
"input": "CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR)",
"instruction": "What was the average number of attendance for the game on November 29, 1981 played after week 13?",
"output": "SELECT AVG(attendance) FROM table_name_40 WHERE date = \"november 29, 1981\" AND week > 13"
} |
### INSTRUCTION
Find the name and id of the good with the highest average rank.
### INPUT
CREATE TABLE review (i_id VARCHAR, rank INTEGER); CREATE TABLE item (title VARCHAR, i_id VARCHAR)
### OUTPUT
SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rank) DESC LIMIT 1 | {
"input": "CREATE TABLE review (i_id VARCHAR, rank INTEGER); CREATE TABLE item (title VARCHAR, i_id VARCHAR)",
"instruction": "Find the name and id of the good with the highest average rank.",
"output": "SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rank) DESC LIMIT 1"
} |
### INSTRUCTION
What was the margin of victory when runner-up was K. J. Choi?
### INPUT
CREATE TABLE table_247955_2 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
### OUTPUT
SELECT margin_of_victory FROM table_247955_2 WHERE runner_s__up = "K. J. Choi" | {
"input": "CREATE TABLE table_247955_2 (margin_of_victory VARCHAR, runner_s__up VARCHAR)",
"instruction": "What was the margin of victory when runner-up was K. J. Choi?",
"output": "SELECT margin_of_victory FROM table_247955_2 WHERE runner_s__up = \"K. J. Choi\""
} |
### INSTRUCTION
Find the city with the largest population that uses English.
### INPUT
CREATE TABLE city (Name VARCHAR, Population VARCHAR, CountryCode VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)
### OUTPUT
SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = "English" ORDER BY T1.Population DESC LIMIT 1 | {
"input": "CREATE TABLE city (Name VARCHAR, Population VARCHAR, CountryCode VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)",
"instruction": "Find the city with the largest population that uses English.",
"output": "SELECT T1.Name, T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1"
} |
### INSTRUCTION
What is the total market value in billions of the company with 20.96 billion in profits and less than 166.99 billions in assets?
### INPUT
CREATE TABLE table_name_34 (market_value__billion_ VARCHAR, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)
### OUTPUT
SELECT COUNT(market_value__billion_) AS $_ FROM table_name_34 WHERE profits__billion_$_ = 20.96 AND assets__billion_$_ < 166.99 | {
"input": "CREATE TABLE table_name_34 (market_value__billion_ VARCHAR, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)",
"instruction": "What is the total market value in billions of the company with 20.96 billion in profits and less than 166.99 billions in assets?",
"output": "SELECT COUNT(market_value__billion_) AS $_ FROM table_name_34 WHERE profits__billion_$_ = 20.96 AND assets__billion_$_ < 166.99"
} |
### INSTRUCTION
When was the original air date written by michael s. chernuchin & joe morgenstern?
### INPUT
CREATE TABLE table_2618072_1 (original_air_date VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT original_air_date FROM table_2618072_1 WHERE written_by = "Michael S. Chernuchin & Joe Morgenstern" | {
"input": "CREATE TABLE table_2618072_1 (original_air_date VARCHAR, written_by VARCHAR)",
"instruction": "When was the original air date written by michael s. chernuchin & joe morgenstern?",
"output": "SELECT original_air_date FROM table_2618072_1 WHERE written_by = \"Michael S. Chernuchin & Joe Morgenstern\""
} |
### INSTRUCTION
Name the nominating festival for un cartus de kent si un pachet de cafea
### INPUT
CREATE TABLE table_name_93 (nominating_festival VARCHAR, film VARCHAR)
### OUTPUT
SELECT nominating_festival FROM table_name_93 WHERE film = "un cartus de kent si un pachet de cafea" | {
"input": "CREATE TABLE table_name_93 (nominating_festival VARCHAR, film VARCHAR)",
"instruction": "Name the nominating festival for un cartus de kent si un pachet de cafea",
"output": "SELECT nominating_festival FROM table_name_93 WHERE film = \"un cartus de kent si un pachet de cafea\""
} |
### INSTRUCTION
Show the average age for male and female students.
### INPUT
CREATE TABLE Student (sex VARCHAR, age INTEGER)
### OUTPUT
SELECT AVG(age), sex FROM Student GROUP BY sex | {
"input": "CREATE TABLE Student (sex VARCHAR, age INTEGER)",
"instruction": "Show the average age for male and female students.",
"output": "SELECT AVG(age), sex FROM Student GROUP BY sex"
} |
### INSTRUCTION
WHAT IS THE ROUND FOR ZACH BOYCHUK?
### INPUT
CREATE TABLE table_name_6 (round VARCHAR, player VARCHAR)
### OUTPUT
SELECT COUNT(round) FROM table_name_6 WHERE player = "zach boychuk" | {
"input": "CREATE TABLE table_name_6 (round VARCHAR, player VARCHAR)",
"instruction": "WHAT IS THE ROUND FOR ZACH BOYCHUK?",
"output": "SELECT COUNT(round) FROM table_name_6 WHERE player = \"zach boychuk\""
} |
### INSTRUCTION
What is the high lap total for cards with a grid larger than 21, and a Time/Retired of +2 laps?
### INPUT
CREATE TABLE table_name_91 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
### OUTPUT
SELECT MAX(laps) FROM table_name_91 WHERE grid > 21 AND time_retired = "+2 laps" | {
"input": "CREATE TABLE table_name_91 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)",
"instruction": "What is the high lap total for cards with a grid larger than 21, and a Time/Retired of +2 laps?",
"output": "SELECT MAX(laps) FROM table_name_91 WHERE grid > 21 AND time_retired = \"+2 laps\""
} |
### INSTRUCTION
What is the home team's score at corio oval?
### INPUT
CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR)
### OUTPUT
SELECT home_team AS score FROM table_name_66 WHERE venue = "corio oval" | {
"input": "CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR)",
"instruction": "What is the home team's score at corio oval?",
"output": "SELECT home_team AS score FROM table_name_66 WHERE venue = \"corio oval\""
} |
### INSTRUCTION
Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5
### INPUT
CREATE TABLE table_name_35 (league_apps VARCHAR, fa_cup_apps VARCHAR, league_goals VARCHAR, position VARCHAR)
### OUTPUT
SELECT league_apps FROM table_name_35 WHERE league_goals < 2 AND position = "df" AND fa_cup_apps = "5" | {
"input": "CREATE TABLE table_name_35 (league_apps VARCHAR, fa_cup_apps VARCHAR, league_goals VARCHAR, position VARCHAR)",
"instruction": "Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5",
"output": "SELECT league_apps FROM table_name_35 WHERE league_goals < 2 AND position = \"df\" AND fa_cup_apps = \"5\""
} |
### INSTRUCTION
Which product has been ordered most number of times?
### INPUT
CREATE TABLE products (product_details VARCHAR, product_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR)
### OUTPUT
SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE products (product_details VARCHAR, product_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR)",
"instruction": "Which product has been ordered most number of times?",
"output": "SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.