text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?
### INPUT
CREATE TABLE table_24302700_6 (event_6_atlas_stones VARCHAR, event_3_dead_lift VARCHAR)
### OUTPUT
SELECT COUNT(event_6_atlas_stones) FROM table_24302700_6 WHERE event_3_dead_lift = "2 (6 in 30.89s)" | {
"input": "CREATE TABLE table_24302700_6 (event_6_atlas_stones VARCHAR, event_3_dead_lift VARCHAR)",
"instruction": "What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?",
"output": "SELECT COUNT(event_6_atlas_stones) FROM table_24302700_6 WHERE event_3_dead_lift = \"2 (6 in 30.89s)\""
} |
### INSTRUCTION
Which tournament has a 2013 of 1r, and a 2012 of 1r?
### INPUT
CREATE TABLE table_name_38 (tournament VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_38 WHERE 2013 = "1r" AND 2012 = "1r" | {
"input": "CREATE TABLE table_name_38 (tournament VARCHAR)",
"instruction": "Which tournament has a 2013 of 1r, and a 2012 of 1r?",
"output": "SELECT tournament FROM table_name_38 WHERE 2013 = \"1r\" AND 2012 = \"1r\""
} |
### INSTRUCTION
What was the name of the Visiting team at Jack Murphy Stadium?
### INPUT
CREATE TABLE table_name_90 (visiting_team VARCHAR, stadium VARCHAR)
### OUTPUT
SELECT visiting_team FROM table_name_90 WHERE stadium = "jack murphy stadium" | {
"input": "CREATE TABLE table_name_90 (visiting_team VARCHAR, stadium VARCHAR)",
"instruction": "What was the name of the Visiting team at Jack Murphy Stadium?",
"output": "SELECT visiting_team FROM table_name_90 WHERE stadium = \"jack murphy stadium\""
} |
### INSTRUCTION
What was the date administered from a source of Rasmussen Reports and a lead margin over 32?
### INPUT
CREATE TABLE table_name_19 (dates_administered VARCHAR, poll_source VARCHAR, lead_margin VARCHAR)
### OUTPUT
SELECT dates_administered FROM table_name_19 WHERE poll_source = "rasmussen reports" AND lead_margin > 32 | {
"input": "CREATE TABLE table_name_19 (dates_administered VARCHAR, poll_source VARCHAR, lead_margin VARCHAR)",
"instruction": "What was the date administered from a source of Rasmussen Reports and a lead margin over 32?",
"output": "SELECT dates_administered FROM table_name_19 WHERE poll_source = \"rasmussen reports\" AND lead_margin > 32"
} |
### INSTRUCTION
What is Director, when Primary Language(s) is "Azerbaijani", and when Original Title is "Buta"?
### INPUT
CREATE TABLE table_name_90 (director VARCHAR, primary_language_s_ VARCHAR, original_title VARCHAR)
### OUTPUT
SELECT director FROM table_name_90 WHERE primary_language_s_ = "azerbaijani" AND original_title = "buta" | {
"input": "CREATE TABLE table_name_90 (director VARCHAR, primary_language_s_ VARCHAR, original_title VARCHAR)",
"instruction": "What is Director, when Primary Language(s) is \"Azerbaijani\", and when Original Title is \"Buta\"?",
"output": "SELECT director FROM table_name_90 WHERE primary_language_s_ = \"azerbaijani\" AND original_title = \"buta\""
} |
### INSTRUCTION
how many laps were there when the grid was 24?
### INPUT
CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR)
### OUTPUT
SELECT COUNT(laps) FROM table_name_25 WHERE grid = 24 | {
"input": "CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR)",
"instruction": "how many laps were there when the grid was 24?",
"output": "SELECT COUNT(laps) FROM table_name_25 WHERE grid = 24"
} |
### INSTRUCTION
What is the score for Lucas Glover of the United States?
### INPUT
CREATE TABLE table_name_31 (score VARCHAR, country VARCHAR, player VARCHAR)
### OUTPUT
SELECT score FROM table_name_31 WHERE country = "united states" AND player = "lucas glover" | {
"input": "CREATE TABLE table_name_31 (score VARCHAR, country VARCHAR, player VARCHAR)",
"instruction": "What is the score for Lucas Glover of the United States?",
"output": "SELECT score FROM table_name_31 WHERE country = \"united states\" AND player = \"lucas glover\""
} |
### INSTRUCTION
How many laps recorded in 2001?
### INPUT
CREATE TABLE table_17802778_1 (laps VARCHAR, year VARCHAR)
### OUTPUT
SELECT laps FROM table_17802778_1 WHERE year = 2001 | {
"input": "CREATE TABLE table_17802778_1 (laps VARCHAR, year VARCHAR)",
"instruction": "How many laps recorded in 2001?",
"output": "SELECT laps FROM table_17802778_1 WHERE year = 2001"
} |
### INSTRUCTION
How many cities are in Australia?
### INPUT
CREATE TABLE country (country_id VARCHAR, country VARCHAR); CREATE TABLE city (country_id VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia' | {
"input": "CREATE TABLE country (country_id VARCHAR, country VARCHAR); CREATE TABLE city (country_id VARCHAR)",
"instruction": "How many cities are in Australia?",
"output": "SELECT COUNT(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia'"
} |
### INSTRUCTION
Who is performer 4 on episode 3, where Jim Sweeney was performer 1?
### INPUT
CREATE TABLE table_name_86 (performer_4 VARCHAR, performer_1 VARCHAR, episode VARCHAR)
### OUTPUT
SELECT performer_4 FROM table_name_86 WHERE performer_1 = "jim sweeney" AND episode = 3 | {
"input": "CREATE TABLE table_name_86 (performer_4 VARCHAR, performer_1 VARCHAR, episode VARCHAR)",
"instruction": "Who is performer 4 on episode 3, where Jim Sweeney was performer 1?",
"output": "SELECT performer_4 FROM table_name_86 WHERE performer_1 = \"jim sweeney\" AND episode = 3"
} |
### INSTRUCTION
What is the release price for the GPU frequency of standard power, embedded?
### INPUT
CREATE TABLE table_name_96 (release_price___usd__ VARCHAR, gpu_frequency VARCHAR)
### OUTPUT
SELECT release_price___usd__ FROM table_name_96 WHERE gpu_frequency = "standard power, embedded" | {
"input": "CREATE TABLE table_name_96 (release_price___usd__ VARCHAR, gpu_frequency VARCHAR)",
"instruction": "What is the release price for the GPU frequency of standard power, embedded?",
"output": "SELECT release_price___usd__ FROM table_name_96 WHERE gpu_frequency = \"standard power, embedded\""
} |
### INSTRUCTION
What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 3809959540?
### INPUT
CREATE TABLE table_name_20 (longitude VARCHAR, geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR)
### OUTPUT
SELECT COUNT(longitude) FROM table_name_20 WHERE ansi_code < 1036534 AND water__sqmi_ = 0 AND geo_id > 3809959540 | {
"input": "CREATE TABLE table_name_20 (longitude VARCHAR, geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR)",
"instruction": "What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 3809959540?",
"output": "SELECT COUNT(longitude) FROM table_name_20 WHERE ansi_code < 1036534 AND water__sqmi_ = 0 AND geo_id > 3809959540"
} |
### INSTRUCTION
What is the region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009?
### INPUT
CREATE TABLE table_240936_2 (region_1__can_ VARCHAR, region_2__uk_ VARCHAR)
### OUTPUT
SELECT region_1__can_ FROM table_240936_2 WHERE region_2__uk_ = "May 18, 2009" | {
"input": "CREATE TABLE table_240936_2 (region_1__can_ VARCHAR, region_2__uk_ VARCHAR)",
"instruction": "What is the region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009?",
"output": "SELECT region_1__can_ FROM table_240936_2 WHERE region_2__uk_ = \"May 18, 2009\""
} |
### INSTRUCTION
Which lead has Kirsty Balfour as second?
### INPUT
CREATE TABLE table_name_22 (lead VARCHAR, skip VARCHAR)
### OUTPUT
SELECT lead FROM table_name_22 WHERE skip = "kirsty balfour" | {
"input": "CREATE TABLE table_name_22 (lead VARCHAR, skip VARCHAR)",
"instruction": "Which lead has Kirsty Balfour as second?",
"output": "SELECT lead FROM table_name_22 WHERE skip = \"kirsty balfour\""
} |
### INSTRUCTION
Name the replaced by for slaven belupo
### INPUT
CREATE TABLE table_27225944_3 (replaced_by VARCHAR, team VARCHAR)
### OUTPUT
SELECT replaced_by FROM table_27225944_3 WHERE team = "Slaven Belupo" | {
"input": "CREATE TABLE table_27225944_3 (replaced_by VARCHAR, team VARCHAR)",
"instruction": "Name the replaced by for slaven belupo",
"output": "SELECT replaced_by FROM table_27225944_3 WHERE team = \"Slaven Belupo\""
} |
### INSTRUCTION
When was the game at Gillette Stadium that ended in a final score of 30-17?
### INPUT
CREATE TABLE table_name_37 (date VARCHAR, final_score VARCHAR, stadium VARCHAR)
### OUTPUT
SELECT date FROM table_name_37 WHERE final_score = "30-17" AND stadium = "gillette stadium" | {
"input": "CREATE TABLE table_name_37 (date VARCHAR, final_score VARCHAR, stadium VARCHAR)",
"instruction": "When was the game at Gillette Stadium that ended in a final score of 30-17?",
"output": "SELECT date FROM table_name_37 WHERE final_score = \"30-17\" AND stadium = \"gillette stadium\""
} |
### INSTRUCTION
What is the winning score with a margin of victory of 4 strokes for the NEC Invitational tournament?
### INPUT
CREATE TABLE table_name_93 (winning_score VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT winning_score FROM table_name_93 WHERE margin_of_victory = "4 strokes" AND tournament = "nec invitational" | {
"input": "CREATE TABLE table_name_93 (winning_score VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)",
"instruction": "What is the winning score with a margin of victory of 4 strokes for the NEC Invitational tournament?",
"output": "SELECT winning_score FROM table_name_93 WHERE margin_of_victory = \"4 strokes\" AND tournament = \"nec invitational\""
} |
### INSTRUCTION
Find the number of clubs where "Tracy Kim" is a member.
### INPUT
CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR)
### OUTPUT
SELECT COUNT(*) 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 t3.fname = "Tracy" AND t3.lname = "Kim" | {
"input": "CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR)",
"instruction": "Find the number of clubs where \"Tracy Kim\" is a member.",
"output": "SELECT COUNT(*) 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 t3.fname = \"Tracy\" AND t3.lname = \"Kim\""
} |
### INSTRUCTION
Which Goals For has a Position larger than 2, a Lost larger than 18, a Team of matlock town, and a Goals Against larger than 79?
### INPUT
CREATE TABLE table_name_74 (goals_for INTEGER, goals_against VARCHAR, team VARCHAR, position VARCHAR, lost VARCHAR)
### OUTPUT
SELECT MAX(goals_for) FROM table_name_74 WHERE position > 2 AND lost > 18 AND team = "matlock town" AND goals_against > 79 | {
"input": "CREATE TABLE table_name_74 (goals_for INTEGER, goals_against VARCHAR, team VARCHAR, position VARCHAR, lost VARCHAR)",
"instruction": "Which Goals For has a Position larger than 2, a Lost larger than 18, a Team of matlock town, and a Goals Against larger than 79?",
"output": "SELECT MAX(goals_for) FROM table_name_74 WHERE position > 2 AND lost > 18 AND team = \"matlock town\" AND goals_against > 79"
} |
### INSTRUCTION
Which date's visitor was jazz, when the leading scorer was Mehmet Okur (22)?
### INPUT
CREATE TABLE table_name_4 (date VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)
### OUTPUT
SELECT date FROM table_name_4 WHERE visitor = "jazz" AND leading_scorer = "mehmet okur (22)" | {
"input": "CREATE TABLE table_name_4 (date VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)",
"instruction": "Which date's visitor was jazz, when the leading scorer was Mehmet Okur (22)?",
"output": "SELECT date FROM table_name_4 WHERE visitor = \"jazz\" AND leading_scorer = \"mehmet okur (22)\""
} |
### INSTRUCTION
What's the total number of points when the vancouver carlings have fewer than 12 losses and more than 32 games?
### INPUT
CREATE TABLE table_name_1 (points VARCHAR, games VARCHAR, losses VARCHAR, team_name VARCHAR)
### OUTPUT
SELECT COUNT(points) FROM table_name_1 WHERE losses < 12 AND team_name = "vancouver carlings" AND games > 32 | {
"input": "CREATE TABLE table_name_1 (points VARCHAR, games VARCHAR, losses VARCHAR, team_name VARCHAR)",
"instruction": "What's the total number of points when the vancouver carlings have fewer than 12 losses and more than 32 games?",
"output": "SELECT COUNT(points) FROM table_name_1 WHERE losses < 12 AND team_name = \"vancouver carlings\" AND games > 32"
} |
### INSTRUCTION
What is the lowest weight class (kg) that has sofia, bulgaria as the venue?
### INPUT
CREATE TABLE table_name_73 (weight_class__kg_ INTEGER, venue VARCHAR)
### OUTPUT
SELECT MIN(weight_class__kg_) FROM table_name_73 WHERE venue = "sofia, bulgaria" | {
"input": "CREATE TABLE table_name_73 (weight_class__kg_ INTEGER, venue VARCHAR)",
"instruction": "What is the lowest weight class (kg) that has sofia, bulgaria as the venue?",
"output": "SELECT MIN(weight_class__kg_) FROM table_name_73 WHERE venue = \"sofia, bulgaria\""
} |
### INSTRUCTION
Which Winning constructor has a Winning driver of felice nazzaro?
### INPUT
CREATE TABLE table_name_52 (winning_constructor VARCHAR, winning_driver VARCHAR)
### OUTPUT
SELECT winning_constructor FROM table_name_52 WHERE winning_driver = "felice nazzaro" | {
"input": "CREATE TABLE table_name_52 (winning_constructor VARCHAR, winning_driver VARCHAR)",
"instruction": "Which Winning constructor has a Winning driver of felice nazzaro?",
"output": "SELECT winning_constructor FROM table_name_52 WHERE winning_driver = \"felice nazzaro\""
} |
### INSTRUCTION
What city and state are the miners located in?
### INPUT
CREATE TABLE table_11044765_1 (location VARCHAR, mascot VARCHAR)
### OUTPUT
SELECT location FROM table_11044765_1 WHERE mascot = "Miners" | {
"input": "CREATE TABLE table_11044765_1 (location VARCHAR, mascot VARCHAR)",
"instruction": "What city and state are the miners located in?",
"output": "SELECT location FROM table_11044765_1 WHERE mascot = \"Miners\""
} |
### INSTRUCTION
What number corresponds to Presidet Yves Krattinger of the Socialist party?
### INPUT
CREATE TABLE table_name_14 (number VARCHAR, party VARCHAR, président VARCHAR)
### OUTPUT
SELECT number FROM table_name_14 WHERE party = "socialist party" AND président = "yves krattinger" | {
"input": "CREATE TABLE table_name_14 (number VARCHAR, party VARCHAR, président VARCHAR)",
"instruction": "What number corresponds to Presidet Yves Krattinger of the Socialist party?",
"output": "SELECT number FROM table_name_14 WHERE party = \"socialist party\" AND président = \"yves krattinger\""
} |
### INSTRUCTION
Which network has model nForce Professional 3400 MCP?
### INPUT
CREATE TABLE table_name_29 (network VARCHAR, model VARCHAR)
### OUTPUT
SELECT network FROM table_name_29 WHERE model = "nforce professional 3400 mcp" | {
"input": "CREATE TABLE table_name_29 (network VARCHAR, model VARCHAR)",
"instruction": "Which network has model nForce Professional 3400 MCP?",
"output": "SELECT network FROM table_name_29 WHERE model = \"nforce professional 3400 mcp\""
} |
### INSTRUCTION
What is the voltage range (v) if the clock multiplier is 3x or 2x mode and part number is a80486dx4wb-100?
### INPUT
CREATE TABLE table_15261_1 (voltage_range__v_ VARCHAR, clock_multiplier VARCHAR, part_number VARCHAR)
### OUTPUT
SELECT COUNT(voltage_range__v_) FROM table_15261_1 WHERE clock_multiplier = "3X or 2X mode" AND part_number = "A80486DX4WB-100" | {
"input": "CREATE TABLE table_15261_1 (voltage_range__v_ VARCHAR, clock_multiplier VARCHAR, part_number VARCHAR)",
"instruction": "What is the voltage range (v) if the clock multiplier is 3x or 2x mode and part number is a80486dx4wb-100?",
"output": "SELECT COUNT(voltage_range__v_) FROM table_15261_1 WHERE clock_multiplier = \"3X or 2X mode\" AND part_number = \"A80486DX4WB-100\""
} |
### INSTRUCTION
What is the Format with a Catalog that is vcrd 103?
### INPUT
CREATE TABLE table_name_78 (format VARCHAR, catalog VARCHAR)
### OUTPUT
SELECT format FROM table_name_78 WHERE catalog = "vcrd 103" | {
"input": "CREATE TABLE table_name_78 (format VARCHAR, catalog VARCHAR)",
"instruction": "What is the Format with a Catalog that is vcrd 103?",
"output": "SELECT format FROM table_name_78 WHERE catalog = \"vcrd 103\""
} |
### INSTRUCTION
What year was the startup for the Project Named of taq taq ph 2?
### INPUT
CREATE TABLE table_name_51 (year_startup VARCHAR, project_name VARCHAR)
### OUTPUT
SELECT year_startup FROM table_name_51 WHERE project_name = "taq taq ph 2" | {
"input": "CREATE TABLE table_name_51 (year_startup VARCHAR, project_name VARCHAR)",
"instruction": "What year was the startup for the Project Named of taq taq ph 2?",
"output": "SELECT year_startup FROM table_name_51 WHERE project_name = \"taq taq ph 2\""
} |
### INSTRUCTION
What is the platform for the game of the third-person shooter genre?
### INPUT
CREATE TABLE table_name_65 (platform_s_ VARCHAR, genre VARCHAR)
### OUTPUT
SELECT platform_s_ FROM table_name_65 WHERE genre = "third-person shooter" | {
"input": "CREATE TABLE table_name_65 (platform_s_ VARCHAR, genre VARCHAR)",
"instruction": "What is the platform for the game of the third-person shooter genre?",
"output": "SELECT platform_s_ FROM table_name_65 WHERE genre = \"third-person shooter\""
} |
### INSTRUCTION
When 17,874 (33.2) is the percentage against what is the percentage for?
### INPUT
CREATE TABLE table_20683381_3 (for___percentage_ VARCHAR, against___percentage_ VARCHAR)
### OUTPUT
SELECT for___percentage_ FROM table_20683381_3 WHERE against___percentage_ = "17,874 (33.2)" | {
"input": "CREATE TABLE table_20683381_3 (for___percentage_ VARCHAR, against___percentage_ VARCHAR)",
"instruction": "When 17,874 (33.2) is the percentage against what is the percentage for?",
"output": "SELECT for___percentage_ FROM table_20683381_3 WHERE against___percentage_ = \"17,874 (33.2)\""
} |
### INSTRUCTION
What country does the player who joined the Vancouver Canucks originally hail from?
### INPUT
CREATE TABLE table_2886617_4 (nationality VARCHAR, nhl_team VARCHAR)
### OUTPUT
SELECT nationality FROM table_2886617_4 WHERE nhl_team = "Vancouver Canucks" | {
"input": "CREATE TABLE table_2886617_4 (nationality VARCHAR, nhl_team VARCHAR)",
"instruction": "What country does the player who joined the Vancouver Canucks originally hail from?",
"output": "SELECT nationality FROM table_2886617_4 WHERE nhl_team = \"Vancouver Canucks\""
} |
### INSTRUCTION
What is the total championships of James Henry that has a league cup more than 1?
### INPUT
CREATE TABLE table_name_4 (championship INTEGER, league_cup VARCHAR, name VARCHAR)
### OUTPUT
SELECT SUM(championship) FROM table_name_4 WHERE league_cup > 1 AND name = "james henry" | {
"input": "CREATE TABLE table_name_4 (championship INTEGER, league_cup VARCHAR, name VARCHAR)",
"instruction": "What is the total championships of James Henry that has a league cup more than 1?",
"output": "SELECT SUM(championship) FROM table_name_4 WHERE league_cup > 1 AND name = \"james henry\""
} |
### INSTRUCTION
What is the total number of Matches, when Clubs is 588 → 406?
### INPUT
CREATE TABLE table_name_16 (matches VARCHAR, clubs VARCHAR)
### OUTPUT
SELECT COUNT(matches) FROM table_name_16 WHERE clubs = "588 → 406" | {
"input": "CREATE TABLE table_name_16 (matches VARCHAR, clubs VARCHAR)",
"instruction": "What is the total number of Matches, when Clubs is 588 → 406?",
"output": "SELECT COUNT(matches) FROM table_name_16 WHERE clubs = \"588 → 406\""
} |
### INSTRUCTION
Find the name of students who took some course offered by Statistics department.
### INPUT
CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE takes (course_id VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR)
### OUTPUT
SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics' | {
"input": "CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE takes (course_id VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR)",
"instruction": "Find the name of students who took some course offered by Statistics department.",
"output": "SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics'"
} |
### INSTRUCTION
What is the Venue with a Result that is win, and a Score that is 5-0?
### INPUT
CREATE TABLE table_name_35 (venue VARCHAR, result VARCHAR, score VARCHAR)
### OUTPUT
SELECT venue FROM table_name_35 WHERE result = "win" AND score = "5-0" | {
"input": "CREATE TABLE table_name_35 (venue VARCHAR, result VARCHAR, score VARCHAR)",
"instruction": "What is the Venue with a Result that is win, and a Score that is 5-0?",
"output": "SELECT venue FROM table_name_35 WHERE result = \"win\" AND score = \"5-0\""
} |
### INSTRUCTION
what is the platform when the frequency (per hour) is 4 and the destination is west croydon?
### INPUT
CREATE TABLE table_name_98 (platform INTEGER, frequency__per_hour_ VARCHAR, destination VARCHAR)
### OUTPUT
SELECT SUM(platform) FROM table_name_98 WHERE frequency__per_hour_ = 4 AND destination = "west croydon" | {
"input": "CREATE TABLE table_name_98 (platform INTEGER, frequency__per_hour_ VARCHAR, destination VARCHAR)",
"instruction": "what is the platform when the frequency (per hour) is 4 and the destination is west croydon?",
"output": "SELECT SUM(platform) FROM table_name_98 WHERE frequency__per_hour_ = 4 AND destination = \"west croydon\""
} |
### INSTRUCTION
Which Year started is the lowest one that has a Number of cars larger than 7, and a Car # of 100?
### INPUT
CREATE TABLE table_name_30 (year_started INTEGER, number_of_cars VARCHAR, car__number VARCHAR)
### OUTPUT
SELECT MIN(year_started) FROM table_name_30 WHERE number_of_cars > 7 AND car__number = "100" | {
"input": "CREATE TABLE table_name_30 (year_started INTEGER, number_of_cars VARCHAR, car__number VARCHAR)",
"instruction": "Which Year started is the lowest one that has a Number of cars larger than 7, and a Car # of 100?",
"output": "SELECT MIN(year_started) FROM table_name_30 WHERE number_of_cars > 7 AND car__number = \"100\""
} |
### INSTRUCTION
How many solar eclipse during August 21-22 where June 10-11 on June 11, 1983?
### INPUT
CREATE TABLE table_25287007_2 (august_21_22 VARCHAR, june_10_11 VARCHAR)
### OUTPUT
SELECT COUNT(august_21_22) FROM table_25287007_2 WHERE june_10_11 = "June 11, 1983" | {
"input": "CREATE TABLE table_25287007_2 (august_21_22 VARCHAR, june_10_11 VARCHAR)",
"instruction": "How many solar eclipse during August 21-22 where June 10-11 on June 11, 1983?",
"output": "SELECT COUNT(august_21_22) FROM table_25287007_2 WHERE june_10_11 = \"June 11, 1983\""
} |
### INSTRUCTION
What is the average rank of Roman Koudelka, who has less than 274.4 points?
### INPUT
CREATE TABLE table_name_41 (rank INTEGER, points VARCHAR, name VARCHAR)
### OUTPUT
SELECT AVG(rank) FROM table_name_41 WHERE points < 274.4 AND name = "roman koudelka" | {
"input": "CREATE TABLE table_name_41 (rank INTEGER, points VARCHAR, name VARCHAR)",
"instruction": "What is the average rank of Roman Koudelka, who has less than 274.4 points?",
"output": "SELECT AVG(rank) FROM table_name_41 WHERE points < 274.4 AND name = \"roman koudelka\""
} |
### INSTRUCTION
How many different total results are there for the model with parchment/black interior/roof?
### INPUT
CREATE TABLE table_2066296_5 (totals VARCHAR, interior_roof VARCHAR)
### OUTPUT
SELECT COUNT(totals) FROM table_2066296_5 WHERE interior_roof = "Parchment/black" | {
"input": "CREATE TABLE table_2066296_5 (totals VARCHAR, interior_roof VARCHAR)",
"instruction": "How many different total results are there for the model with parchment/black interior/roof?",
"output": "SELECT COUNT(totals) FROM table_2066296_5 WHERE interior_roof = \"Parchment/black\""
} |
### INSTRUCTION
How many times did outgoing manager Bart de Roover vacated a position?
### INPUT
CREATE TABLE table_27374004_4 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
### OUTPUT
SELECT COUNT(date_of_vacancy) FROM table_27374004_4 WHERE outgoing_manager = "Bart De Roover" | {
"input": "CREATE TABLE table_27374004_4 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)",
"instruction": "How many times did outgoing manager Bart de Roover vacated a position?",
"output": "SELECT COUNT(date_of_vacancy) FROM table_27374004_4 WHERE outgoing_manager = \"Bart De Roover\""
} |
### INSTRUCTION
Who had the high assists when the score was l 85–118 (ot)
### INPUT
CREATE TABLE table_23248869_8 (high_assists VARCHAR, score VARCHAR)
### OUTPUT
SELECT high_assists FROM table_23248869_8 WHERE score = "L 85–118 (OT)" | {
"input": "CREATE TABLE table_23248869_8 (high_assists VARCHAR, score VARCHAR)",
"instruction": "Who had the high assists when the score was l 85–118 (ot)",
"output": "SELECT high_assists FROM table_23248869_8 WHERE score = \"L 85–118 (OT)\""
} |
### INSTRUCTION
Which dance has the worst dancer(s) as marissa jaret winokur?
### INPUT
CREATE TABLE table_name_52 (dance VARCHAR, worst_dancer_s_ VARCHAR)
### OUTPUT
SELECT dance FROM table_name_52 WHERE worst_dancer_s_ = "marissa jaret winokur" | {
"input": "CREATE TABLE table_name_52 (dance VARCHAR, worst_dancer_s_ VARCHAR)",
"instruction": "Which dance has the worst dancer(s) as marissa jaret winokur?",
"output": "SELECT dance FROM table_name_52 WHERE worst_dancer_s_ = \"marissa jaret winokur\""
} |
### INSTRUCTION
List the first name and last name of all customers.
### INPUT
CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR)
### OUTPUT
SELECT first_name, last_name FROM Customers | {
"input": "CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR)",
"instruction": "List the first name and last name of all customers.",
"output": "SELECT first_name, last_name FROM Customers"
} |
### INSTRUCTION
what's the introduced where notes is 9 withdrawn in 1946 after fire
### INPUT
CREATE TABLE table_1181375_1 (introduced VARCHAR, notes VARCHAR)
### OUTPUT
SELECT introduced FROM table_1181375_1 WHERE notes = "9 withdrawn in 1946 after fire" | {
"input": "CREATE TABLE table_1181375_1 (introduced VARCHAR, notes VARCHAR)",
"instruction": " what's the introduced where notes is 9 withdrawn in 1946 after fire",
"output": "SELECT introduced FROM table_1181375_1 WHERE notes = \"9 withdrawn in 1946 after fire\""
} |
### INSTRUCTION
What date was the match on a clay surface against Andrea Hlaváčková?
### INPUT
CREATE TABLE table_name_55 (date VARCHAR, surface VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT date FROM table_name_55 WHERE surface = "clay" AND opponent = "andrea hlaváčková" | {
"input": "CREATE TABLE table_name_55 (date VARCHAR, surface VARCHAR, opponent VARCHAR)",
"instruction": "What date was the match on a clay surface against Andrea Hlaváčková?",
"output": "SELECT date FROM table_name_55 WHERE surface = \"clay\" AND opponent = \"andrea hlaváčková\""
} |
### INSTRUCTION
Show the name of the conductor that has conducted the most number of orchestras.
### INPUT
CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR)
### OUTPUT
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR)",
"instruction": "Show the name of the conductor that has conducted the most number of orchestras.",
"output": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What is the Date when the week is more than 3 and the attendance shows bye?
### INPUT
CREATE TABLE table_name_39 (date VARCHAR, week VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT date FROM table_name_39 WHERE week > 3 AND attendance = "bye" | {
"input": "CREATE TABLE table_name_39 (date VARCHAR, week VARCHAR, attendance VARCHAR)",
"instruction": "What is the Date when the week is more than 3 and the attendance shows bye?",
"output": "SELECT date FROM table_name_39 WHERE week > 3 AND attendance = \"bye\""
} |
### INSTRUCTION
What is the name of the breed with the most dogs?
### INPUT
CREATE TABLE Dogs (breed_code VARCHAR); CREATE TABLE Breeds (breed_name VARCHAR, breed_code VARCHAR)
### OUTPUT
SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Dogs (breed_code VARCHAR); CREATE TABLE Breeds (breed_name VARCHAR, breed_code VARCHAR)",
"instruction": "What is the name of the breed with the most dogs?",
"output": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
WHAT IS THE SUB-PARISH WITH A YEAR AFTER 1916, IN ortnevik?
### INPUT
CREATE TABLE table_name_41 (sub_parish__sogn_ VARCHAR, year_built VARCHAR, location_of_the_church VARCHAR)
### OUTPUT
SELECT sub_parish__sogn_ FROM table_name_41 WHERE year_built > 1916 AND location_of_the_church = "ortnevik" | {
"input": "CREATE TABLE table_name_41 (sub_parish__sogn_ VARCHAR, year_built VARCHAR, location_of_the_church VARCHAR)",
"instruction": "WHAT IS THE SUB-PARISH WITH A YEAR AFTER 1916, IN ortnevik?",
"output": "SELECT sub_parish__sogn_ FROM table_name_41 WHERE year_built > 1916 AND location_of_the_church = \"ortnevik\""
} |
### INSTRUCTION
Who's the Republican ticket with a Communist ticket of (none), and a Socialist ticket of joseph g. glass?
### INPUT
CREATE TABLE table_name_8 (republican_ticket VARCHAR, communist_ticket VARCHAR, socialist_ticket VARCHAR)
### OUTPUT
SELECT republican_ticket FROM table_name_8 WHERE communist_ticket = "(none)" AND socialist_ticket = "joseph g. glass" | {
"input": "CREATE TABLE table_name_8 (republican_ticket VARCHAR, communist_ticket VARCHAR, socialist_ticket VARCHAR)",
"instruction": "Who's the Republican ticket with a Communist ticket of (none), and a Socialist ticket of joseph g. glass?",
"output": "SELECT republican_ticket FROM table_name_8 WHERE communist_ticket = \"(none)\" AND socialist_ticket = \"joseph g. glass\""
} |
### INSTRUCTION
What is the first name and job id for all employees in the Finance department?
### INPUT
CREATE TABLE departments (department_id VARCHAR, department_name VARCHAR); CREATE TABLE employees (first_name VARCHAR, job_id VARCHAR, department_id VARCHAR)
### OUTPUT
SELECT T1.first_name, T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance' | {
"input": "CREATE TABLE departments (department_id VARCHAR, department_name VARCHAR); CREATE TABLE employees (first_name VARCHAR, job_id VARCHAR, department_id VARCHAR)",
"instruction": "What is the first name and job id for all employees in the Finance department?",
"output": "SELECT T1.first_name, T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'"
} |
### INSTRUCTION
What is Score In The Final, when Championship is "Athens , Greece", and when Outcome is "Winner"?
### INPUT
CREATE TABLE table_name_96 (score_in_the_final VARCHAR, championship VARCHAR, outcome VARCHAR)
### OUTPUT
SELECT score_in_the_final FROM table_name_96 WHERE championship = "athens , greece" AND outcome = "winner" | {
"input": "CREATE TABLE table_name_96 (score_in_the_final VARCHAR, championship VARCHAR, outcome VARCHAR)",
"instruction": "What is Score In The Final, when Championship is \"Athens , Greece\", and when Outcome is \"Winner\"?",
"output": "SELECT score_in_the_final FROM table_name_96 WHERE championship = \"athens , greece\" AND outcome = \"winner\""
} |
### INSTRUCTION
Who was the sponsor for the bill introduced February 28, 2005 with cosponsors less than 200?
### INPUT
CREATE TABLE table_name_18 (sponsor_s_ VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR)
### OUTPUT
SELECT sponsor_s_ FROM table_name_18 WHERE _number_of_cosponsors < 200 AND date_introduced = "february 28, 2005" | {
"input": "CREATE TABLE table_name_18 (sponsor_s_ VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR)",
"instruction": "Who was the sponsor for the bill introduced February 28, 2005 with cosponsors less than 200?",
"output": "SELECT sponsor_s_ FROM table_name_18 WHERE _number_of_cosponsors < 200 AND date_introduced = \"february 28, 2005\""
} |
### INSTRUCTION
What was the box score for the game where the away team was the sydney spirit?
### INPUT
CREATE TABLE table_name_40 (Box VARCHAR, away_team VARCHAR)
### OUTPUT
SELECT Box AS score FROM table_name_40 WHERE away_team = "sydney spirit" | {
"input": "CREATE TABLE table_name_40 (Box VARCHAR, away_team VARCHAR)",
"instruction": "What was the box score for the game where the away team was the sydney spirit?",
"output": "SELECT Box AS score FROM table_name_40 WHERE away_team = \"sydney spirit\""
} |
### INSTRUCTION
Who directed the episode that aired on july15,2012?
### INPUT
CREATE TABLE table_20704243_6 (directed_by VARCHAR, original_air_date VARCHAR)
### OUTPUT
SELECT directed_by FROM table_20704243_6 WHERE original_air_date = "July15,2012" | {
"input": "CREATE TABLE table_20704243_6 (directed_by VARCHAR, original_air_date VARCHAR)",
"instruction": "Who directed the episode that aired on july15,2012?",
"output": "SELECT directed_by FROM table_20704243_6 WHERE original_air_date = \"July15,2012\""
} |
### INSTRUCTION
What is the average number of wins for entries with more than 32 points, a goal difference smaller than 23, and a Goals against of 36, and a Played smaller than 30?
### INPUT
CREATE TABLE table_name_61 (wins INTEGER, played VARCHAR, goals_against VARCHAR, points VARCHAR, goal_difference VARCHAR)
### OUTPUT
SELECT AVG(wins) FROM table_name_61 WHERE points > 32 AND goal_difference < 23 AND goals_against = 36 AND played < 30 | {
"input": "CREATE TABLE table_name_61 (wins INTEGER, played VARCHAR, goals_against VARCHAR, points VARCHAR, goal_difference VARCHAR)",
"instruction": "What is the average number of wins for entries with more than 32 points, a goal difference smaller than 23, and a Goals against of 36, and a Played smaller than 30?",
"output": "SELECT AVG(wins) FROM table_name_61 WHERE points > 32 AND goal_difference < 23 AND goals_against = 36 AND played < 30"
} |
### INSTRUCTION
If the position in table is 10th, and the manner of departure was resigned, what was the date of vacancy?
### INPUT
CREATE TABLE table_27133147_3 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)
### OUTPUT
SELECT date_of_vacancy FROM table_27133147_3 WHERE manner_of_departure = "Resigned" AND position_in_table = "10th" | {
"input": "CREATE TABLE table_27133147_3 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)",
"instruction": "If the position in table is 10th, and the manner of departure was resigned, what was the date of vacancy?",
"output": "SELECT date_of_vacancy FROM table_27133147_3 WHERE manner_of_departure = \"Resigned\" AND position_in_table = \"10th\""
} |
### INSTRUCTION
How many trips started from Mountain View city and ended at Palo Alto city?
### INPUT
CREATE TABLE station (city VARCHAR, id VARCHAR); CREATE TABLE trip (end_station_id VARCHAR, id VARCHAR); CREATE TABLE station (id VARCHAR, city VARCHAR); CREATE TABLE trip (start_station_id VARCHAR, id VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = "Mountain View" AND T3.city = "Palo Alto" | {
"input": "CREATE TABLE station (city VARCHAR, id VARCHAR); CREATE TABLE trip (end_station_id VARCHAR, id VARCHAR); CREATE TABLE station (id VARCHAR, city VARCHAR); CREATE TABLE trip (start_station_id VARCHAR, id VARCHAR)",
"instruction": "How many trips started from Mountain View city and ended at Palo Alto city?",
"output": "SELECT COUNT(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = \"Mountain View\" AND T3.city = \"Palo Alto\""
} |
### INSTRUCTION
What is the production code of the episode written by José Molina that aired on October 12, 2004?
### INPUT
CREATE TABLE table_10935548_1 (production_code VARCHAR, written_by VARCHAR, original_air_date VARCHAR)
### OUTPUT
SELECT production_code FROM table_10935548_1 WHERE written_by = "José Molina" AND original_air_date = "October 12, 2004" | {
"input": "CREATE TABLE table_10935548_1 (production_code VARCHAR, written_by VARCHAR, original_air_date VARCHAR)",
"instruction": "What is the production code of the episode written by José Molina that aired on October 12, 2004?",
"output": "SELECT production_code FROM table_10935548_1 WHERE written_by = \"José Molina\" AND original_air_date = \"October 12, 2004\""
} |
### INSTRUCTION
What are the coupon amount of the coupons owned by both good and bad customers?
### INPUT
CREATE TABLE Discount_Coupons (coupon_amount VARCHAR, coupon_id VARCHAR); CREATE TABLE customers (coupon_id VARCHAR, good_or_bad_customer VARCHAR)
### OUTPUT
SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'bad' | {
"input": "CREATE TABLE Discount_Coupons (coupon_amount VARCHAR, coupon_id VARCHAR); CREATE TABLE customers (coupon_id VARCHAR, good_or_bad_customer VARCHAR)",
"instruction": "What are the coupon amount of the coupons owned by both good and bad customers?",
"output": "SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'bad'"
} |
### INSTRUCTION
Name the record for arizona
### INPUT
CREATE TABLE table_22815259_1 (record VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT record FROM table_22815259_1 WHERE opponent = "Arizona" | {
"input": "CREATE TABLE table_22815259_1 (record VARCHAR, opponent VARCHAR)",
"instruction": "Name the record for arizona",
"output": "SELECT record FROM table_22815259_1 WHERE opponent = \"Arizona\""
} |
### INSTRUCTION
When a private individual is the source and 018 is the story number what is the total footage remaining from missing episodes (mm:ss)?
### INPUT
CREATE TABLE table_1889619_5 (total_footage_remaining_from_missing_episodes__mm VARCHAR, story_no VARCHAR, source VARCHAR)
### OUTPUT
SELECT total_footage_remaining_from_missing_episodes__mm AS :ss_ FROM table_1889619_5 WHERE story_no = "018" AND source = "Private individual" | {
"input": "CREATE TABLE table_1889619_5 (total_footage_remaining_from_missing_episodes__mm VARCHAR, story_no VARCHAR, source VARCHAR)",
"instruction": "When a private individual is the source and 018 is the story number what is the total footage remaining from missing episodes (mm:ss)?",
"output": "SELECT total_footage_remaining_from_missing_episodes__mm AS :ss_ FROM table_1889619_5 WHERE story_no = \"018\" AND source = \"Private individual\""
} |
### INSTRUCTION
When massachusetts 6th is the district what is the reason for vacancy?
### INPUT
CREATE TABLE table_2417445_4 (reason_for_vacancy VARCHAR, district VARCHAR)
### OUTPUT
SELECT reason_for_vacancy FROM table_2417445_4 WHERE district = "Massachusetts 6th" | {
"input": "CREATE TABLE table_2417445_4 (reason_for_vacancy VARCHAR, district VARCHAR)",
"instruction": "When massachusetts 6th is the district what is the reason for vacancy?",
"output": "SELECT reason_for_vacancy FROM table_2417445_4 WHERE district = \"Massachusetts 6th\""
} |
### INSTRUCTION
Which gold Coast has a Melbourne of yes, a Perth of yes, an Auckland of no, and a Sydney of no?
### INPUT
CREATE TABLE table_name_36 (gold_coast VARCHAR, sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, perth VARCHAR)
### OUTPUT
SELECT gold_coast FROM table_name_36 WHERE melbourne = "yes" AND perth = "yes" AND auckland = "no" AND sydney = "no" | {
"input": "CREATE TABLE table_name_36 (gold_coast VARCHAR, sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, perth VARCHAR)",
"instruction": "Which gold Coast has a Melbourne of yes, a Perth of yes, an Auckland of no, and a Sydney of no?",
"output": "SELECT gold_coast FROM table_name_36 WHERE melbourne = \"yes\" AND perth = \"yes\" AND auckland = \"no\" AND sydney = \"no\""
} |
### INSTRUCTION
What is the y = 2011 when the expression is month = floor ((d + e + 114) / 31)?
### INPUT
CREATE TABLE table_214479_8 (y_ VARCHAR, _2011 VARCHAR, expression VARCHAR, month VARCHAR, d VARCHAR, e VARCHAR)
### OUTPUT
SELECT y_ = _2011 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31) | {
"input": "CREATE TABLE table_214479_8 (y_ VARCHAR, _2011 VARCHAR, expression VARCHAR, month VARCHAR, d VARCHAR, e VARCHAR)",
"instruction": "What is the y = 2011 when the expression is month = floor ((d + e + 114) / 31)?",
"output": "SELECT y_ = _2011 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31)"
} |
### INSTRUCTION
What's the value for race 4 when race 3 is dns and race 2 is 27?
### INPUT
CREATE TABLE table_name_55 (race_4 VARCHAR, race_3 VARCHAR, race_2 VARCHAR)
### OUTPUT
SELECT race_4 FROM table_name_55 WHERE race_3 = "dns" AND race_2 = "27" | {
"input": "CREATE TABLE table_name_55 (race_4 VARCHAR, race_3 VARCHAR, race_2 VARCHAR)",
"instruction": "What's the value for race 4 when race 3 is dns and race 2 is 27?",
"output": "SELECT race_4 FROM table_name_55 WHERE race_3 = \"dns\" AND race_2 = \"27\""
} |
### INSTRUCTION
Which Manhattan number appeared when Richmond (Staten Island) was 78%?
### INPUT
CREATE TABLE table_name_21 (manhattan VARCHAR, richmond_ VARCHAR, staten_is VARCHAR)
### OUTPUT
SELECT manhattan FROM table_name_21 WHERE richmond_[staten_is] = "78%" | {
"input": "CREATE TABLE table_name_21 (manhattan VARCHAR, richmond_ VARCHAR, staten_is VARCHAR)",
"instruction": "Which Manhattan number appeared when Richmond (Staten Island) was 78%?",
"output": "SELECT manhattan FROM table_name_21 WHERE richmond_[staten_is] = \"78%\""
} |
### INSTRUCTION
What is the place of birth when the elevator is Nicholas IV, and elector is Napoleone Orsini Frangipani?
### INPUT
CREATE TABLE table_name_7 (place_of_birth VARCHAR, elevator VARCHAR, elector VARCHAR)
### OUTPUT
SELECT place_of_birth FROM table_name_7 WHERE elevator = "nicholas iv" AND elector = "napoleone orsini frangipani" | {
"input": "CREATE TABLE table_name_7 (place_of_birth VARCHAR, elevator VARCHAR, elector VARCHAR)",
"instruction": "What is the place of birth when the elevator is Nicholas IV, and elector is Napoleone Orsini Frangipani?",
"output": "SELECT place_of_birth FROM table_name_7 WHERE elevator = \"nicholas iv\" AND elector = \"napoleone orsini frangipani\""
} |
### INSTRUCTION
When has a Surface of hard, a Tournament of wrexham , great britain?
### INPUT
CREATE TABLE table_name_46 (date VARCHAR, surface VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT date FROM table_name_46 WHERE surface = "hard" AND tournament = "wrexham , great britain" | {
"input": "CREATE TABLE table_name_46 (date VARCHAR, surface VARCHAR, tournament VARCHAR)",
"instruction": "When has a Surface of hard, a Tournament of wrexham , great britain?",
"output": "SELECT date FROM table_name_46 WHERE surface = \"hard\" AND tournament = \"wrexham , great britain\""
} |
### INSTRUCTION
What was the result of the election when Tic Forrester ran as an incumbent?
### INPUT
CREATE TABLE table_1342149_11 (result VARCHAR, incumbent VARCHAR)
### OUTPUT
SELECT result FROM table_1342149_11 WHERE incumbent = "Tic Forrester" | {
"input": "CREATE TABLE table_1342149_11 (result VARCHAR, incumbent VARCHAR)",
"instruction": "What was the result of the election when Tic Forrester ran as an incumbent?",
"output": "SELECT result FROM table_1342149_11 WHERE incumbent = \"Tic Forrester\""
} |
### INSTRUCTION
Who was the winning driver of the British Grand Prix where Giuseppe Farina had the fastest lap?
### INPUT
CREATE TABLE table_name_21 (winning_driver VARCHAR, fastest_lap VARCHAR, race VARCHAR)
### OUTPUT
SELECT winning_driver FROM table_name_21 WHERE fastest_lap = "giuseppe farina" AND race = "british grand prix" | {
"input": "CREATE TABLE table_name_21 (winning_driver VARCHAR, fastest_lap VARCHAR, race VARCHAR)",
"instruction": "Who was the winning driver of the British Grand Prix where Giuseppe Farina had the fastest lap?",
"output": "SELECT winning_driver FROM table_name_21 WHERE fastest_lap = \"giuseppe farina\" AND race = \"british grand prix\""
} |
### INSTRUCTION
Show the names of festivals that have nominated artworks of type "Program Talent Show".
### INPUT
CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR, Type VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR)
### OUTPUT
SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T2.Type = "Program Talent Show" | {
"input": "CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR, Type VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR)",
"instruction": "Show the names of festivals that have nominated artworks of type \"Program Talent Show\".",
"output": "SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T2.Type = \"Program Talent Show\""
} |
### INSTRUCTION
When 3 is the position what is the sail number?
### INPUT
CREATE TABLE table_1858574_2 (sail_number VARCHAR, position VARCHAR)
### OUTPUT
SELECT sail_number FROM table_1858574_2 WHERE position = 3 | {
"input": "CREATE TABLE table_1858574_2 (sail_number VARCHAR, position VARCHAR)",
"instruction": "When 3 is the position what is the sail number?",
"output": "SELECT sail_number FROM table_1858574_2 WHERE position = 3"
} |
### INSTRUCTION
If the poverty rate is 12.9%, what is the county?
### INPUT
CREATE TABLE table_22815568_6 (county VARCHAR, poverty_rate VARCHAR)
### OUTPUT
SELECT county FROM table_22815568_6 WHERE poverty_rate = "12.9%" | {
"input": "CREATE TABLE table_22815568_6 (county VARCHAR, poverty_rate VARCHAR)",
"instruction": "If the poverty rate is 12.9%, what is the county?",
"output": "SELECT county FROM table_22815568_6 WHERE poverty_rate = \"12.9%\""
} |
### INSTRUCTION
What is the date of vacancy when the team is manchester city and replaced by is mark hughes?
### INPUT
CREATE TABLE table_10592536_8 (date_of_vacancy VARCHAR, team VARCHAR, replaced_by VARCHAR)
### OUTPUT
SELECT date_of_vacancy FROM table_10592536_8 WHERE team = "Manchester City" AND replaced_by = "Mark Hughes" | {
"input": "CREATE TABLE table_10592536_8 (date_of_vacancy VARCHAR, team VARCHAR, replaced_by VARCHAR)",
"instruction": "What is the date of vacancy when the team is manchester city and replaced by is mark hughes?",
"output": "SELECT date_of_vacancy FROM table_10592536_8 WHERE team = \"Manchester City\" AND replaced_by = \"Mark Hughes\""
} |
### INSTRUCTION
Who were the authors of the episode first broadcast on August 10, 2012?
### INPUT
CREATE TABLE table_28081876_6 (written_by VARCHAR, original_air_date VARCHAR)
### OUTPUT
SELECT written_by FROM table_28081876_6 WHERE original_air_date = "August 10, 2012" | {
"input": "CREATE TABLE table_28081876_6 (written_by VARCHAR, original_air_date VARCHAR)",
"instruction": "Who were the authors of the episode first broadcast on August 10, 2012?",
"output": "SELECT written_by FROM table_28081876_6 WHERE original_air_date = \"August 10, 2012\""
} |
### INSTRUCTION
Name the artist of 2 draw
### INPUT
CREATE TABLE table_14977252_2 (artist VARCHAR, draw VARCHAR)
### OUTPUT
SELECT artist FROM table_14977252_2 WHERE draw = 2 | {
"input": "CREATE TABLE table_14977252_2 (artist VARCHAR, draw VARCHAR)",
"instruction": "Name the artist of 2 draw",
"output": "SELECT artist FROM table_14977252_2 WHERE draw = 2"
} |
### INSTRUCTION
How many documents are using the template with type code 'PPT'?
### INPUT
CREATE TABLE Templates (Template_ID VARCHAR, Template_Type_Code VARCHAR); CREATE TABLE Documents (Template_ID VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT' | {
"input": "CREATE TABLE Templates (Template_ID VARCHAR, Template_Type_Code VARCHAR); CREATE TABLE Documents (Template_ID VARCHAR)",
"instruction": "How many documents are using the template with type code 'PPT'?",
"output": "SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'"
} |
### INSTRUCTION
What is the smallest number of assists with 70 Pims and less than 19 goals?
### INPUT
CREATE TABLE table_name_71 (assists INTEGER, pims VARCHAR, goals VARCHAR)
### OUTPUT
SELECT MIN(assists) FROM table_name_71 WHERE pims = 70 AND goals < 19 | {
"input": "CREATE TABLE table_name_71 (assists INTEGER, pims VARCHAR, goals VARCHAR)",
"instruction": "What is the smallest number of assists with 70 Pims and less than 19 goals?",
"output": "SELECT MIN(assists) FROM table_name_71 WHERE pims = 70 AND goals < 19"
} |
### INSTRUCTION
How many points against has team Cardiff had when there were less than 7 tries?
### INPUT
CREATE TABLE table_name_97 (points_against VARCHAR, team VARCHAR, tries_against VARCHAR)
### OUTPUT
SELECT COUNT(points_against) FROM table_name_97 WHERE team = "cardiff" AND tries_against < 7 | {
"input": "CREATE TABLE table_name_97 (points_against VARCHAR, team VARCHAR, tries_against VARCHAR)",
"instruction": "How many points against has team Cardiff had when there were less than 7 tries?",
"output": "SELECT COUNT(points_against) FROM table_name_97 WHERE team = \"cardiff\" AND tries_against < 7"
} |
### INSTRUCTION
Name the round 16 for did not advance and light flyweight
### INPUT
CREATE TABLE table_17417383_6 (round_of_16 VARCHAR, quarterfinals VARCHAR, event VARCHAR)
### OUTPUT
SELECT round_of_16 FROM table_17417383_6 WHERE quarterfinals = "Did not advance" AND event = "Light flyweight" | {
"input": "CREATE TABLE table_17417383_6 (round_of_16 VARCHAR, quarterfinals VARCHAR, event VARCHAR)",
"instruction": "Name the round 16 for did not advance and light flyweight",
"output": "SELECT round_of_16 FROM table_17417383_6 WHERE quarterfinals = \"Did not advance\" AND event = \"Light flyweight\""
} |
### INSTRUCTION
Which episode in year 2003 that have Gary Murphy and Neil Thompson?
### INPUT
CREATE TABLE table_name_10 (episode VARCHAR, nominee_s_ VARCHAR, year VARCHAR)
### OUTPUT
SELECT episode FROM table_name_10 WHERE nominee_s_ = "gary murphy and neil thompson" AND year = 2003 | {
"input": "CREATE TABLE table_name_10 (episode VARCHAR, nominee_s_ VARCHAR, year VARCHAR)",
"instruction": "Which episode in year 2003 that have Gary Murphy and Neil Thompson?",
"output": "SELECT episode FROM table_name_10 WHERE nominee_s_ = \"gary murphy and neil thompson\" AND year = 2003"
} |
### INSTRUCTION
What selection was the springfield olympics (nejhl)?
### INPUT
CREATE TABLE table_2850912_12 (pick__number INTEGER, college_junior_club_team VARCHAR)
### OUTPUT
SELECT MAX(pick__number) FROM table_2850912_12 WHERE college_junior_club_team = "Springfield Olympics (NEJHL)" | {
"input": "CREATE TABLE table_2850912_12 (pick__number INTEGER, college_junior_club_team VARCHAR)",
"instruction": "What selection was the springfield olympics (nejhl)?",
"output": "SELECT MAX(pick__number) FROM table_2850912_12 WHERE college_junior_club_team = \"Springfield Olympics (NEJHL)\""
} |
### INSTRUCTION
What amount is the junior high school where the gender is male and the specification is minimum diameter of sakigawa?
### INPUT
CREATE TABLE table_13555999_1 (junior_high_school__12_15_yrs_ VARCHAR, gender VARCHAR, specification VARCHAR)
### OUTPUT
SELECT junior_high_school__12_15_yrs_ FROM table_13555999_1 WHERE gender = "Male" AND specification = "Minimum diameter of sakigawa" | {
"input": "CREATE TABLE table_13555999_1 (junior_high_school__12_15_yrs_ VARCHAR, gender VARCHAR, specification VARCHAR)",
"instruction": "What amount is the junior high school where the gender is male and the specification is minimum diameter of sakigawa?",
"output": "SELECT junior_high_school__12_15_yrs_ FROM table_13555999_1 WHERE gender = \"Male\" AND specification = \"Minimum diameter of sakigawa\""
} |
### INSTRUCTION
What is the socket location for sSPEC number sl3f7(kc0)sl3fj(kc0)?
### INPUT
CREATE TABLE table_16400024_1 (socket VARCHAR, sspec_number VARCHAR)
### OUTPUT
SELECT socket FROM table_16400024_1 WHERE sspec_number = "SL3F7(kC0)SL3FJ(kC0)" | {
"input": "CREATE TABLE table_16400024_1 (socket VARCHAR, sspec_number VARCHAR)",
"instruction": "What is the socket location for sSPEC number sl3f7(kc0)sl3fj(kc0)?",
"output": "SELECT socket FROM table_16400024_1 WHERE sspec_number = \"SL3F7(kC0)SL3FJ(kC0)\""
} |
### INSTRUCTION
What is the Location and Attendance with a Record of 21–22?
### INPUT
CREATE TABLE table_name_16 (location_attendance VARCHAR, record VARCHAR)
### OUTPUT
SELECT location_attendance FROM table_name_16 WHERE record = "21–22" | {
"input": "CREATE TABLE table_name_16 (location_attendance VARCHAR, record VARCHAR)",
"instruction": "What is the Location and Attendance with a Record of 21–22?",
"output": "SELECT location_attendance FROM table_name_16 WHERE record = \"21–22\""
} |
### INSTRUCTION
What channel has an operator of ivptc?
### INPUT
CREATE TABLE table_name_1 (programming VARCHAR, operator VARCHAR)
### OUTPUT
SELECT programming FROM table_name_1 WHERE operator = "ivptc" | {
"input": "CREATE TABLE table_name_1 (programming VARCHAR, operator VARCHAR)",
"instruction": "What channel has an operator of ivptc?",
"output": "SELECT programming FROM table_name_1 WHERE operator = \"ivptc\""
} |
### INSTRUCTION
What is the home team for victoria park?
### INPUT
CREATE TABLE table_name_93 (home_team VARCHAR, venue VARCHAR)
### OUTPUT
SELECT home_team FROM table_name_93 WHERE venue = "victoria park" | {
"input": "CREATE TABLE table_name_93 (home_team VARCHAR, venue VARCHAR)",
"instruction": "What is the home team for victoria park?",
"output": "SELECT home_team FROM table_name_93 WHERE venue = \"victoria park\""
} |
### INSTRUCTION
what is the rank when the album is sean kingston?
### INPUT
CREATE TABLE table_name_85 (rank VARCHAR, album VARCHAR)
### OUTPUT
SELECT rank FROM table_name_85 WHERE album = "sean kingston" | {
"input": "CREATE TABLE table_name_85 (rank VARCHAR, album VARCHAR)",
"instruction": "what is the rank when the album is sean kingston?",
"output": "SELECT rank FROM table_name_85 WHERE album = \"sean kingston\""
} |
### INSTRUCTION
On what surface was the match played with a score of 2–6, 6–3, 6–4?
### INPUT
CREATE TABLE table_name_32 (surface VARCHAR, score VARCHAR)
### OUTPUT
SELECT surface FROM table_name_32 WHERE score = "2–6, 6–3, 6–4" | {
"input": "CREATE TABLE table_name_32 (surface VARCHAR, score VARCHAR)",
"instruction": "On what surface was the match played with a score of 2–6, 6–3, 6–4?",
"output": "SELECT surface FROM table_name_32 WHERE score = \"2–6, 6–3, 6–4\""
} |
### INSTRUCTION
If the amount of viewers is 5.14 million and the rating/share is 2.0/6, what is the ranking?
### INPUT
CREATE TABLE table_19805130_3 (rating VARCHAR, viewers__millions_ VARCHAR)
### OUTPUT
SELECT rating FROM table_19805130_3 WHERE rating / SHARE(18 - 49) = 2.0 / 6 AND viewers__millions_ = "5.14" | {
"input": "CREATE TABLE table_19805130_3 (rating VARCHAR, viewers__millions_ VARCHAR)",
"instruction": "If the amount of viewers is 5.14 million and the rating/share is 2.0/6, what is the ranking?",
"output": "SELECT rating FROM table_19805130_3 WHERE rating / SHARE(18 - 49) = 2.0 / 6 AND viewers__millions_ = \"5.14\""
} |
### INSTRUCTION
What was the 1st leg when team 2 was nov milenium?
### INPUT
CREATE TABLE table_name_7 (team_2 VARCHAR)
### OUTPUT
SELECT 1 AS st_leg FROM table_name_7 WHERE team_2 = "nov milenium" | {
"input": "CREATE TABLE table_name_7 (team_2 VARCHAR)",
"instruction": "What was the 1st leg when team 2 was nov milenium?",
"output": "SELECT 1 AS st_leg FROM table_name_7 WHERE team_2 = \"nov milenium\""
} |
### INSTRUCTION
If the episode was directed by Michael Offer, how many US Viewers watched it?
### INPUT
CREATE TABLE table_25084227_1 (us_viewers__in_millions_ VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT us_viewers__in_millions_ FROM table_25084227_1 WHERE directed_by = "Michael Offer" | {
"input": "CREATE TABLE table_25084227_1 (us_viewers__in_millions_ VARCHAR, directed_by VARCHAR)",
"instruction": "If the episode was directed by Michael Offer, how many US Viewers watched it?",
"output": "SELECT us_viewers__in_millions_ FROM table_25084227_1 WHERE directed_by = \"Michael Offer\""
} |
### INSTRUCTION
What's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, and less than 2 losses?
### INPUT
CREATE TABLE table_name_29 (draws INTEGER, losses VARCHAR, club VARCHAR, against VARCHAR, wins VARCHAR)
### OUTPUT
SELECT MIN(draws) FROM table_name_29 WHERE against < 1299 AND wins > 7 AND club = "warrnambool" AND losses < 2 | {
"input": "CREATE TABLE table_name_29 (draws INTEGER, losses VARCHAR, club VARCHAR, against VARCHAR, wins VARCHAR)",
"instruction": "What's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, and less than 2 losses?",
"output": "SELECT MIN(draws) FROM table_name_29 WHERE against < 1299 AND wins > 7 AND club = \"warrnambool\" AND losses < 2"
} |
### INSTRUCTION
Which network's genre is music?
### INPUT
CREATE TABLE table_name_8 (network VARCHAR, genre VARCHAR)
### OUTPUT
SELECT network FROM table_name_8 WHERE genre = "music" | {
"input": "CREATE TABLE table_name_8 (network VARCHAR, genre VARCHAR)",
"instruction": "Which network's genre is music?",
"output": "SELECT network FROM table_name_8 WHERE genre = \"music\""
} |
### INSTRUCTION
Name the transfer fee for transfer status for fra
### INPUT
CREATE TABLE table_name_24 (transfer_fee VARCHAR, status VARCHAR, country VARCHAR)
### OUTPUT
SELECT transfer_fee FROM table_name_24 WHERE status = "transfer" AND country = "fra" | {
"input": "CREATE TABLE table_name_24 (transfer_fee VARCHAR, status VARCHAR, country VARCHAR)",
"instruction": "Name the transfer fee for transfer status for fra",
"output": "SELECT transfer_fee FROM table_name_24 WHERE status = \"transfer\" AND country = \"fra\""
} |
### INSTRUCTION
Which time contains the jockery of isaac murphy as well as the winner of kingman?
### INPUT
CREATE TABLE table_name_39 (time VARCHAR, jockey VARCHAR, winner VARCHAR)
### OUTPUT
SELECT time FROM table_name_39 WHERE jockey = "isaac murphy" AND winner = "kingman" | {
"input": "CREATE TABLE table_name_39 (time VARCHAR, jockey VARCHAR, winner VARCHAR)",
"instruction": "Which time contains the jockery of isaac murphy as well as the winner of kingman?",
"output": "SELECT time FROM table_name_39 WHERE jockey = \"isaac murphy\" AND winner = \"kingman\""
} |
### INSTRUCTION
What is the civil parish of the cappanaboul townland?
### INPUT
CREATE TABLE table_30120547_1 (civil_parish VARCHAR, townland VARCHAR)
### OUTPUT
SELECT civil_parish FROM table_30120547_1 WHERE townland = "Cappanaboul" | {
"input": "CREATE TABLE table_30120547_1 (civil_parish VARCHAR, townland VARCHAR)",
"instruction": "What is the civil parish of the cappanaboul townland?",
"output": "SELECT civil_parish FROM table_30120547_1 WHERE townland = \"Cappanaboul\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.