text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
Which position was the World Indoor Championships in a year later than 2008?
### INPUT
CREATE TABLE table_name_64 (position VARCHAR, competition VARCHAR, year VARCHAR)
### OUTPUT
SELECT position FROM table_name_64 WHERE competition = "world indoor championships" AND year > 2008 | {
"input": "CREATE TABLE table_name_64 (position VARCHAR, competition VARCHAR, year VARCHAR)",
"instruction": "Which position was the World Indoor Championships in a year later than 2008?",
"output": "SELECT position FROM table_name_64 WHERE competition = \"world indoor championships\" AND year > 2008"
} |
### INSTRUCTION
Who did the play-by-play when the pregame host was Brian Williams and the sideline reporters were Steve Armitage and Brenda Irving?
### INPUT
CREATE TABLE table_17628022_2 (play_by_play VARCHAR, pregame_host VARCHAR, sideline_reporters VARCHAR)
### OUTPUT
SELECT play_by_play FROM table_17628022_2 WHERE pregame_host = "Brian Williams" AND sideline_reporters = "Steve Armitage and Brenda Irving" | {
"input": "CREATE TABLE table_17628022_2 (play_by_play VARCHAR, pregame_host VARCHAR, sideline_reporters VARCHAR)",
"instruction": "Who did the play-by-play when the pregame host was Brian Williams and the sideline reporters were Steve Armitage and Brenda Irving?",
"output": "SELECT play_by_play FROM table_17628022_2 WHERE pregame_host = \"Brian Williams\" AND sideline_reporters = \"Steve Armitage and Brenda Irving\""
} |
### INSTRUCTION
What venue features carlton as the home side?
### INPUT
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT venue FROM table_name_40 WHERE home_team = "carlton" | {
"input": "CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR)",
"instruction": "What venue features carlton as the home side?",
"output": "SELECT venue FROM table_name_40 WHERE home_team = \"carlton\""
} |
### INSTRUCTION
What is the name and id of the department with the most number of degrees ?
### INPUT
CREATE TABLE degree_programs (department_id VARCHAR); CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR)
### OUTPUT
SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JOIN departments AS t2 ON t1.department_id = t2.department_id GROUP BY t1.department_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE degree_programs (department_id VARCHAR); CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR)",
"instruction": "What is the name and id of the department with the most number of degrees ?",
"output": "SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JOIN departments AS t2 ON t1.department_id = t2.department_id GROUP BY t1.department_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What is the takeover date of the FA division mitre?
### INPUT
CREATE TABLE table_name_19 (takeover_date VARCHAR, fa_division_s_ VARCHAR)
### OUTPUT
SELECT takeover_date FROM table_name_19 WHERE fa_division_s_ = "mitre" | {
"input": "CREATE TABLE table_name_19 (takeover_date VARCHAR, fa_division_s_ VARCHAR)",
"instruction": "What is the takeover date of the FA division mitre?",
"output": "SELECT takeover_date FROM table_name_19 WHERE fa_division_s_ = \"mitre\""
} |
### INSTRUCTION
What losses consist of the team of japan?
### INPUT
CREATE TABLE table_name_13 (losses VARCHAR, team VARCHAR)
### OUTPUT
SELECT losses FROM table_name_13 WHERE team = "japan" | {
"input": "CREATE TABLE table_name_13 (losses VARCHAR, team VARCHAR)",
"instruction": "What losses consist of the team of japan?",
"output": "SELECT losses FROM table_name_13 WHERE team = \"japan\""
} |
### INSTRUCTION
Find names and times of trains that run through stations for the local authority Chiltern.
### INPUT
CREATE TABLE station (id VARCHAR, local_authority VARCHAR); CREATE TABLE route (station_id VARCHAR, train_id VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, id VARCHAR)
### OUTPUT
SELECT t3.name, t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = "Chiltern" | {
"input": "CREATE TABLE station (id VARCHAR, local_authority VARCHAR); CREATE TABLE route (station_id VARCHAR, train_id VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, id VARCHAR)",
"instruction": "Find names and times of trains that run through stations for the local authority Chiltern.",
"output": "SELECT t3.name, t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = \"Chiltern\""
} |
### INSTRUCTION
what is the latest episode in the series that had 16.17 million u.s. viewers?
### INPUT
CREATE TABLE table_25997153_1 (no_in_series INTEGER, us_viewers__million_ VARCHAR)
### OUTPUT
SELECT MAX(no_in_series) FROM table_25997153_1 WHERE us_viewers__million_ = "16.17" | {
"input": "CREATE TABLE table_25997153_1 (no_in_series INTEGER, us_viewers__million_ VARCHAR)",
"instruction": "what is the latest episode in the series that had 16.17 million u.s. viewers?",
"output": "SELECT MAX(no_in_series) FROM table_25997153_1 WHERE us_viewers__million_ = \"16.17\""
} |
### INSTRUCTION
What zone was the Semifinal game played against Israel with Anna Smashnova as the opponent?
### INPUT
CREATE TABLE table_name_42 (zone VARCHAR, opponent VARCHAR, round VARCHAR, against VARCHAR)
### OUTPUT
SELECT zone FROM table_name_42 WHERE round = "semifinal" AND against = "israel" AND opponent = "anna smashnova" | {
"input": "CREATE TABLE table_name_42 (zone VARCHAR, opponent VARCHAR, round VARCHAR, against VARCHAR)",
"instruction": "What zone was the Semifinal game played against Israel with Anna Smashnova as the opponent?",
"output": "SELECT zone FROM table_name_42 WHERE round = \"semifinal\" AND against = \"israel\" AND opponent = \"anna smashnova\""
} |
### INSTRUCTION
What engine does Garvey Team Lotus use?
### INPUT
CREATE TABLE table_name_50 (engine VARCHAR, entrant VARCHAR)
### OUTPUT
SELECT engine FROM table_name_50 WHERE entrant = "garvey team lotus" | {
"input": "CREATE TABLE table_name_50 (engine VARCHAR, entrant VARCHAR)",
"instruction": "What engine does Garvey Team Lotus use?",
"output": "SELECT engine FROM table_name_50 WHERE entrant = \"garvey team lotus\""
} |
### INSTRUCTION
Who is the opponent in the final of the tournament on May 22, 2006?
### INPUT
CREATE TABLE table_name_88 (opponent_in_final VARCHAR, date VARCHAR)
### OUTPUT
SELECT opponent_in_final FROM table_name_88 WHERE date = "may 22, 2006" | {
"input": "CREATE TABLE table_name_88 (opponent_in_final VARCHAR, date VARCHAR)",
"instruction": "Who is the opponent in the final of the tournament on May 22, 2006?",
"output": "SELECT opponent_in_final FROM table_name_88 WHERE date = \"may 22, 2006\""
} |
### INSTRUCTION
How many Inhabitants were in the democratic party for an election before 2009 for Mayor of stefano cimatti?
### INPUT
CREATE TABLE table_name_3 (inhabitants VARCHAR, election VARCHAR, party VARCHAR, mayor VARCHAR)
### OUTPUT
SELECT COUNT(inhabitants) FROM table_name_3 WHERE party = "democratic party" AND mayor = "stefano cimatti" AND election < 2009 | {
"input": "CREATE TABLE table_name_3 (inhabitants VARCHAR, election VARCHAR, party VARCHAR, mayor VARCHAR)",
"instruction": "How many Inhabitants were in the democratic party for an election before 2009 for Mayor of stefano cimatti?",
"output": "SELECT COUNT(inhabitants) FROM table_name_3 WHERE party = \"democratic party\" AND mayor = \"stefano cimatti\" AND election < 2009"
} |
### INSTRUCTION
Show the name of the building that has the most company offices.
### INPUT
CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)
### OUTPUT
SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)",
"instruction": "Show the name of the building that has the most company offices.",
"output": "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What country has the order number 711871-711880?
### INPUT
CREATE TABLE table_2351952_1 (country VARCHAR, order_number VARCHAR)
### OUTPUT
SELECT country FROM table_2351952_1 WHERE order_number = "711871-711880" | {
"input": "CREATE TABLE table_2351952_1 (country VARCHAR, order_number VARCHAR)",
"instruction": "What country has the order number 711871-711880?",
"output": "SELECT country FROM table_2351952_1 WHERE order_number = \"711871-711880\""
} |
### INSTRUCTION
When david ashburn richard westbrook is the gt3 winner and 1 is the round what is the length?
### INPUT
CREATE TABLE table_30062172_3 (length VARCHAR, round VARCHAR, gt3_winner VARCHAR)
### OUTPUT
SELECT length FROM table_30062172_3 WHERE round = 1 AND gt3_winner = "David Ashburn Richard Westbrook" | {
"input": "CREATE TABLE table_30062172_3 (length VARCHAR, round VARCHAR, gt3_winner VARCHAR)",
"instruction": "When david ashburn richard westbrook is the gt3 winner and 1 is the round what is the length?",
"output": "SELECT length FROM table_30062172_3 WHERE round = 1 AND gt3_winner = \"David Ashburn Richard Westbrook\""
} |
### INSTRUCTION
Tell me the Grantee for san ysidro
### INPUT
CREATE TABLE table_name_34 (grantee VARCHAR, concession VARCHAR)
### OUTPUT
SELECT grantee FROM table_name_34 WHERE concession = "san ysidro" | {
"input": "CREATE TABLE table_name_34 (grantee VARCHAR, concession VARCHAR)",
"instruction": "Tell me the Grantee for san ysidro",
"output": "SELECT grantee FROM table_name_34 WHERE concession = \"san ysidro\""
} |
### INSTRUCTION
How many years was the number of laps 71?
### INPUT
CREATE TABLE table_name_49 (year VARCHAR, laps VARCHAR)
### OUTPUT
SELECT COUNT(year) FROM table_name_49 WHERE laps = 71 | {
"input": "CREATE TABLE table_name_49 (year VARCHAR, laps VARCHAR)",
"instruction": "How many years was the number of laps 71?",
"output": "SELECT COUNT(year) FROM table_name_49 WHERE laps = 71"
} |
### INSTRUCTION
What is the chassis for all rounds on the entrant Benson and Hedges Jordan driven by Damon Hill?
### INPUT
CREATE TABLE table_name_69 (chassis VARCHAR, driver VARCHAR, rounds VARCHAR, entrant VARCHAR)
### OUTPUT
SELECT chassis FROM table_name_69 WHERE rounds = "all" AND entrant = "benson and hedges jordan" AND driver = "damon hill" | {
"input": "CREATE TABLE table_name_69 (chassis VARCHAR, driver VARCHAR, rounds VARCHAR, entrant VARCHAR)",
"instruction": "What is the chassis for all rounds on the entrant Benson and Hedges Jordan driven by Damon Hill?",
"output": "SELECT chassis FROM table_name_69 WHERE rounds = \"all\" AND entrant = \"benson and hedges jordan\" AND driver = \"damon hill\""
} |
### INSTRUCTION
Can you tell me the Record that has the Game of 19?
### INPUT
CREATE TABLE table_name_72 (record VARCHAR, game VARCHAR)
### OUTPUT
SELECT record FROM table_name_72 WHERE game = 19 | {
"input": "CREATE TABLE table_name_72 (record VARCHAR, game VARCHAR)",
"instruction": "Can you tell me the Record that has the Game of 19?",
"output": "SELECT record FROM table_name_72 WHERE game = 19"
} |
### INSTRUCTION
how many mean elevation with lowest point being gulf of mexico and state being texas
### INPUT
CREATE TABLE table_1416612_1 (mean_elevation VARCHAR, lowest_point VARCHAR, state VARCHAR)
### OUTPUT
SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = "Gulf of Mexico" AND state = "Texas" | {
"input": "CREATE TABLE table_1416612_1 (mean_elevation VARCHAR, lowest_point VARCHAR, state VARCHAR)",
"instruction": " how many mean elevation with lowest point being gulf of mexico and state being texas",
"output": "SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = \"Gulf of Mexico\" AND state = \"Texas\""
} |
### INSTRUCTION
Who is the runner(s)-up for a winning score of −3 (71-74-66-66=277)?
### INPUT
CREATE TABLE table_name_65 (runner_s__up VARCHAR, winning_score VARCHAR)
### OUTPUT
SELECT runner_s__up FROM table_name_65 WHERE winning_score = −3(71 - 74 - 66 - 66 = 277) | {
"input": "CREATE TABLE table_name_65 (runner_s__up VARCHAR, winning_score VARCHAR)",
"instruction": "Who is the runner(s)-up for a winning score of −3 (71-74-66-66=277)?",
"output": "SELECT runner_s__up FROM table_name_65 WHERE winning_score = −3(71 - 74 - 66 - 66 = 277)"
} |
### INSTRUCTION
What is the average area for code 98030 with population over 312?
### INPUT
CREATE TABLE table_name_80 (area__km_2__ INTEGER, code VARCHAR, population VARCHAR)
### OUTPUT
SELECT AVG(area__km_2__) FROM table_name_80 WHERE code = 98030 AND population > 312 | {
"input": "CREATE TABLE table_name_80 (area__km_2__ INTEGER, code VARCHAR, population VARCHAR)",
"instruction": "What is the average area for code 98030 with population over 312?",
"output": "SELECT AVG(area__km_2__) FROM table_name_80 WHERE code = 98030 AND population > 312"
} |
### INSTRUCTION
What was the number of US Viewers in the episode directed by Steve Shill and having a production code of E2102?
### INPUT
CREATE TABLE table_21781578_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR, production_code VARCHAR)
### OUTPUT
SELECT us_viewers__millions_ FROM table_21781578_2 WHERE directed_by = "Steve Shill" AND production_code = "E2102" | {
"input": "CREATE TABLE table_21781578_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR, production_code VARCHAR)",
"instruction": "What was the number of US Viewers in the episode directed by Steve Shill and having a production code of E2102?",
"output": "SELECT us_viewers__millions_ FROM table_21781578_2 WHERE directed_by = \"Steve Shill\" AND production_code = \"E2102\""
} |
### INSTRUCTION
Who were the candidates in district Pennsylvania 3?
### INPUT
CREATE TABLE table_1341423_38 (candidates VARCHAR, district VARCHAR)
### OUTPUT
SELECT candidates FROM table_1341423_38 WHERE district = "Pennsylvania 3" | {
"input": "CREATE TABLE table_1341423_38 (candidates VARCHAR, district VARCHAR)",
"instruction": "Who were the candidates in district Pennsylvania 3?",
"output": "SELECT candidates FROM table_1341423_38 WHERE district = \"Pennsylvania 3\""
} |
### INSTRUCTION
Name the birth date for shirt number 7
### INPUT
CREATE TABLE table_14363116_1 (birth_date VARCHAR, shirt_no VARCHAR)
### OUTPUT
SELECT birth_date FROM table_14363116_1 WHERE shirt_no = 7 | {
"input": "CREATE TABLE table_14363116_1 (birth_date VARCHAR, shirt_no VARCHAR)",
"instruction": "Name the birth date for shirt number 7",
"output": "SELECT birth_date FROM table_14363116_1 WHERE shirt_no = 7"
} |
### INSTRUCTION
What are the countries in which the agricultural use (m 3 /p/yr)(in %) is 2040(93%)?
### INPUT
CREATE TABLE table_15909409_2 (country VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)
### OUTPUT
SELECT country FROM table_15909409_2 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "2040(93%)" | {
"input": "CREATE TABLE table_15909409_2 (country VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)",
"instruction": "What are the countries in which the agricultural use (m 3 /p/yr)(in %) is 2040(93%)?",
"output": "SELECT country FROM table_15909409_2 WHERE agricultural_use__m_3__p_yr__in__percentage_ = \"2040(93%)\""
} |
### INSTRUCTION
What was the nominated work, nominated for the drama league award before 2007?
### INPUT
CREATE TABLE table_name_29 (nominated_work VARCHAR, year VARCHAR, result VARCHAR, award VARCHAR)
### OUTPUT
SELECT nominated_work FROM table_name_29 WHERE result = "nominated" AND award = "drama league award" AND year < 2007 | {
"input": "CREATE TABLE table_name_29 (nominated_work VARCHAR, year VARCHAR, result VARCHAR, award VARCHAR)",
"instruction": "What was the nominated work, nominated for the drama league award before 2007?",
"output": "SELECT nominated_work FROM table_name_29 WHERE result = \"nominated\" AND award = \"drama league award\" AND year < 2007"
} |
### INSTRUCTION
Which player had a draft before 1975 and before round 6?
### INPUT
CREATE TABLE table_name_79 (player VARCHAR, draft VARCHAR, round VARCHAR)
### OUTPUT
SELECT player FROM table_name_79 WHERE draft < 1975 AND round < 6 | {
"input": "CREATE TABLE table_name_79 (player VARCHAR, draft VARCHAR, round VARCHAR)",
"instruction": "Which player had a draft before 1975 and before round 6?",
"output": "SELECT player FROM table_name_79 WHERE draft < 1975 AND round < 6"
} |
### INSTRUCTION
Name the region with catalog of 576 097-2
### INPUT
CREATE TABLE table_name_47 (region VARCHAR, catalog VARCHAR)
### OUTPUT
SELECT region FROM table_name_47 WHERE catalog = "576 097-2" | {
"input": "CREATE TABLE table_name_47 (region VARCHAR, catalog VARCHAR)",
"instruction": "Name the region with catalog of 576 097-2",
"output": "SELECT region FROM table_name_47 WHERE catalog = \"576 097-2\""
} |
### INSTRUCTION
What is the displacement and configuration with a max speed of km/h (mph) and the car model Panamera 4s?
### INPUT
CREATE TABLE table_name_36 (displacement_ VARCHAR, _configuration VARCHAR, max_speed VARCHAR, car_model VARCHAR)
### OUTPUT
SELECT displacement_ & _configuration FROM table_name_36 WHERE max_speed = "km/h (mph)" AND car_model = "panamera 4s" | {
"input": "CREATE TABLE table_name_36 (displacement_ VARCHAR, _configuration VARCHAR, max_speed VARCHAR, car_model VARCHAR)",
"instruction": "What is the displacement and configuration with a max speed of km/h (mph) and the car model Panamera 4s?",
"output": "SELECT displacement_ & _configuration FROM table_name_36 WHERE max_speed = \"km/h (mph)\" AND car_model = \"panamera 4s\""
} |
### INSTRUCTION
Which Years in Orlando has a Nationality of united states, a Position of center, and a Player of jawann oldham?
### INPUT
CREATE TABLE table_name_10 (years_in_orlando VARCHAR, player VARCHAR, nationality VARCHAR, position VARCHAR)
### OUTPUT
SELECT years_in_orlando FROM table_name_10 WHERE nationality = "united states" AND position = "center" AND player = "jawann oldham" | {
"input": "CREATE TABLE table_name_10 (years_in_orlando VARCHAR, player VARCHAR, nationality VARCHAR, position VARCHAR)",
"instruction": "Which Years in Orlando has a Nationality of united states, a Position of center, and a Player of jawann oldham?",
"output": "SELECT years_in_orlando FROM table_name_10 WHERE nationality = \"united states\" AND position = \"center\" AND player = \"jawann oldham\""
} |
### INSTRUCTION
what is the release date when the sspec number is sr15h(c0)?
### INPUT
CREATE TABLE table_name_98 (release_date VARCHAR, sspec_number VARCHAR)
### OUTPUT
SELECT release_date FROM table_name_98 WHERE sspec_number = "sr15h(c0)" | {
"input": "CREATE TABLE table_name_98 (release_date VARCHAR, sspec_number VARCHAR)",
"instruction": "what is the release date when the sspec number is sr15h(c0)?",
"output": "SELECT release_date FROM table_name_98 WHERE sspec_number = \"sr15h(c0)\""
} |
### INSTRUCTION
Name the 2012 for us open
### INPUT
CREATE TABLE table_name_55 (tournament VARCHAR)
### OUTPUT
SELECT 2012 FROM table_name_55 WHERE tournament = "us open" | {
"input": "CREATE TABLE table_name_55 (tournament VARCHAR)",
"instruction": "Name the 2012 for us open",
"output": "SELECT 2012 FROM table_name_55 WHERE tournament = \"us open\""
} |
### INSTRUCTION
Which Round has a College of appalachian state, and an Overall smaller than 156?
### INPUT
CREATE TABLE table_name_64 (round VARCHAR, college VARCHAR, overall VARCHAR)
### OUTPUT
SELECT COUNT(round) FROM table_name_64 WHERE college = "appalachian state" AND overall < 156 | {
"input": "CREATE TABLE table_name_64 (round VARCHAR, college VARCHAR, overall VARCHAR)",
"instruction": "Which Round has a College of appalachian state, and an Overall smaller than 156?",
"output": "SELECT COUNT(round) FROM table_name_64 WHERE college = \"appalachian state\" AND overall < 156"
} |
### INSTRUCTION
What is zip code of customer with first name as Carole and last name as Bernhard?
### INPUT
CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Customers (customer_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
### OUTPUT
SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard" | {
"input": "CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Customers (customer_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)",
"instruction": "What is zip code of customer with first name as Carole and last name as Bernhard?",
"output": "SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\""
} |
### INSTRUCTION
What is the lowest Game, when High Assists is "Maurice Williams (8)"?
### INPUT
CREATE TABLE table_name_11 (game INTEGER, high_assists VARCHAR)
### OUTPUT
SELECT MIN(game) FROM table_name_11 WHERE high_assists = "maurice williams (8)" | {
"input": "CREATE TABLE table_name_11 (game INTEGER, high_assists VARCHAR)",
"instruction": "What is the lowest Game, when High Assists is \"Maurice Williams (8)\"?",
"output": "SELECT MIN(game) FROM table_name_11 WHERE high_assists = \"maurice williams (8)\""
} |
### INSTRUCTION
Name the least number in season for brad markowitz, william n. fordes & rené balcer
### INPUT
CREATE TABLE table_2618102_1 (no_in_season INTEGER, written_by VARCHAR)
### OUTPUT
SELECT MIN(no_in_season) FROM table_2618102_1 WHERE written_by = "Brad Markowitz, William N. Fordes & René Balcer" | {
"input": "CREATE TABLE table_2618102_1 (no_in_season INTEGER, written_by VARCHAR)",
"instruction": "Name the least number in season for brad markowitz, william n. fordes & rené balcer",
"output": "SELECT MIN(no_in_season) FROM table_2618102_1 WHERE written_by = \"Brad Markowitz, William N. Fordes & René Balcer\""
} |
### INSTRUCTION
What is the total number of team classifications when the young rider classification leader was Salvatore Commesso and the combativity award winner was Jacky Durand?
### INPUT
CREATE TABLE table_2267345_2 (team_classification VARCHAR, young_rider_classification VARCHAR, combativity_award VARCHAR)
### OUTPUT
SELECT COUNT(team_classification) FROM table_2267345_2 WHERE young_rider_classification = "Salvatore Commesso" AND combativity_award = "Jacky Durand" | {
"input": "CREATE TABLE table_2267345_2 (team_classification VARCHAR, young_rider_classification VARCHAR, combativity_award VARCHAR)",
"instruction": "What is the total number of team classifications when the young rider classification leader was Salvatore Commesso and the combativity award winner was Jacky Durand?",
"output": "SELECT COUNT(team_classification) FROM table_2267345_2 WHERE young_rider_classification = \"Salvatore Commesso\" AND combativity_award = \"Jacky Durand\""
} |
### INSTRUCTION
Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities?
### INPUT
CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Mar INTEGER, Jul VARCHAR)
### OUTPUT
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city | {
"input": "CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Mar INTEGER, Jul VARCHAR)",
"instruction": "Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities?",
"output": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city"
} |
### INSTRUCTION
Eduardo Martins is a customer at which company?
### INPUT
CREATE TABLE customers (company VARCHAR, first_name VARCHAR, last_name VARCHAR)
### OUTPUT
SELECT company FROM customers WHERE first_name = "Eduardo" AND last_name = "Martins" | {
"input": "CREATE TABLE customers (company VARCHAR, first_name VARCHAR, last_name VARCHAR)",
"instruction": "Eduardo Martins is a customer at which company?",
"output": "SELECT company FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\""
} |
### INSTRUCTION
What is the total brup for the team?
### INPUT
CREATE TABLE table_18064020_21 (brup VARCHAR, name VARCHAR)
### OUTPUT
SELECT brup FROM table_18064020_21 WHERE name = "total" | {
"input": "CREATE TABLE table_18064020_21 (brup VARCHAR, name VARCHAR)",
"instruction": "What is the total brup for the team?",
"output": "SELECT brup FROM table_18064020_21 WHERE name = \"total\""
} |
### INSTRUCTION
What is the name of the player from Malaysia, Kuala Lumpur in Index f8?
### INPUT
CREATE TABLE table_name_67 (name VARCHAR, country VARCHAR, index VARCHAR)
### OUTPUT
SELECT name FROM table_name_67 WHERE country = "malaysia, kuala lumpur" AND index = "f8" | {
"input": "CREATE TABLE table_name_67 (name VARCHAR, country VARCHAR, index VARCHAR)",
"instruction": "What is the name of the player from Malaysia, Kuala Lumpur in Index f8?",
"output": "SELECT name FROM table_name_67 WHERE country = \"malaysia, kuala lumpur\" AND index = \"f8\""
} |
### INSTRUCTION
What was the maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team?
### INPUT
CREATE TABLE table_24865763_2 (rnd INTEGER, gt2_winning_team VARCHAR)
### OUTPUT
SELECT MAX(rnd) FROM table_24865763_2 WHERE gt2_winning_team = "Marc Lieb Richard Lietz" | {
"input": "CREATE TABLE table_24865763_2 (rnd INTEGER, gt2_winning_team VARCHAR)",
"instruction": "What was the maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team?",
"output": "SELECT MAX(rnd) FROM table_24865763_2 WHERE gt2_winning_team = \"Marc Lieb Richard Lietz\""
} |
### INSTRUCTION
Who is the director of the original title perl oder pica?
### INPUT
CREATE TABLE table_22073745_1 (director VARCHAR, original_title VARCHAR)
### OUTPUT
SELECT director FROM table_22073745_1 WHERE original_title = "Perl oder Pica" | {
"input": "CREATE TABLE table_22073745_1 (director VARCHAR, original_title VARCHAR)",
"instruction": "Who is the director of the original title perl oder pica?",
"output": "SELECT director FROM table_22073745_1 WHERE original_title = \"Perl oder Pica\""
} |
### INSTRUCTION
Can you tell me the Entrant that has the Laps of 17?
### INPUT
CREATE TABLE table_name_77 (entrant VARCHAR, laps VARCHAR)
### OUTPUT
SELECT entrant FROM table_name_77 WHERE laps = 17 | {
"input": "CREATE TABLE table_name_77 (entrant VARCHAR, laps VARCHAR)",
"instruction": "Can you tell me the Entrant that has the Laps of 17?",
"output": "SELECT entrant FROM table_name_77 WHERE laps = 17"
} |
### INSTRUCTION
What driver has under 53 laps, a grid smaller than 14, and a time/retired of differential?
### INPUT
CREATE TABLE table_name_28 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
### OUTPUT
SELECT driver FROM table_name_28 WHERE laps < 53 AND grid < 14 AND time_retired = "differential" | {
"input": "CREATE TABLE table_name_28 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)",
"instruction": "What driver has under 53 laps, a grid smaller than 14, and a time/retired of differential?",
"output": "SELECT driver FROM table_name_28 WHERE laps < 53 AND grid < 14 AND time_retired = \"differential\""
} |
### INSTRUCTION
Which Score has a Visitor of toronto st. pats, and a Home of montreal canadiens, and a Record of 3–2–0?
### INPUT
CREATE TABLE table_name_83 (score VARCHAR, record VARCHAR, visitor VARCHAR, home VARCHAR)
### OUTPUT
SELECT score FROM table_name_83 WHERE visitor = "toronto st. pats" AND home = "montreal canadiens" AND record = "3–2–0" | {
"input": "CREATE TABLE table_name_83 (score VARCHAR, record VARCHAR, visitor VARCHAR, home VARCHAR)",
"instruction": "Which Score has a Visitor of toronto st. pats, and a Home of montreal canadiens, and a Record of 3–2–0?",
"output": "SELECT score FROM table_name_83 WHERE visitor = \"toronto st. pats\" AND home = \"montreal canadiens\" AND record = \"3–2–0\""
} |
### INSTRUCTION
what's the 54 holes where winning score is −19 (67-66-67-69=269)
### INPUT
CREATE TABLE table_11570261_1 (winning_score VARCHAR)
### OUTPUT
SELECT 54 AS _holes FROM table_11570261_1 WHERE winning_score = −19(67 - 66 - 67 - 69 = 269) | {
"input": "CREATE TABLE table_11570261_1 (winning_score VARCHAR)",
"instruction": " what's the 54 holes where winning score is −19 (67-66-67-69=269)",
"output": "SELECT 54 AS _holes FROM table_11570261_1 WHERE winning_score = −19(67 - 66 - 67 - 69 = 269)"
} |
### INSTRUCTION
Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?
### INPUT
CREATE TABLE table_name_54 (opponent VARCHAR, res VARCHAR, event VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_54 WHERE res = "loss" AND event = "gladiator challenge 87: collision course" | {
"input": "CREATE TABLE table_name_54 (opponent VARCHAR, res VARCHAR, event VARCHAR)",
"instruction": "Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?",
"output": "SELECT opponent FROM table_name_54 WHERE res = \"loss\" AND event = \"gladiator challenge 87: collision course\""
} |
### INSTRUCTION
What is the Original name of empire of passion?
### INPUT
CREATE TABLE table_name_17 (original_name VARCHAR, film_title_used_in_nomination VARCHAR)
### OUTPUT
SELECT original_name FROM table_name_17 WHERE film_title_used_in_nomination = "empire of passion" | {
"input": "CREATE TABLE table_name_17 (original_name VARCHAR, film_title_used_in_nomination VARCHAR)",
"instruction": "What is the Original name of empire of passion?",
"output": "SELECT original_name FROM table_name_17 WHERE film_title_used_in_nomination = \"empire of passion\""
} |
### INSTRUCTION
What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx?
### INPUT
CREATE TABLE table_24538587_11 (i_o_bus VARCHAR, brand_name__list_ VARCHAR, socket VARCHAR, codename__main_article_ VARCHAR)
### OUTPUT
SELECT i_o_bus FROM table_24538587_11 WHERE socket = "LGA 1155" AND codename__main_article_ = "Sandy Bridge (Desktop)" AND brand_name__list_ = "Core i3-21xx" | {
"input": "CREATE TABLE table_24538587_11 (i_o_bus VARCHAR, brand_name__list_ VARCHAR, socket VARCHAR, codename__main_article_ VARCHAR)",
"instruction": "What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx?",
"output": "SELECT i_o_bus FROM table_24538587_11 WHERE socket = \"LGA 1155\" AND codename__main_article_ = \"Sandy Bridge (Desktop)\" AND brand_name__list_ = \"Core i3-21xx\""
} |
### INSTRUCTION
What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento?
### INPUT
CREATE TABLE table_name_25 (elevated VARCHAR, cardinalatial_title VARCHAR)
### OUTPUT
SELECT elevated FROM table_name_25 WHERE cardinalatial_title = "priest of s. eusebio and archbishop of benevento" | {
"input": "CREATE TABLE table_name_25 (elevated VARCHAR, cardinalatial_title VARCHAR)",
"instruction": "What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento?",
"output": "SELECT elevated FROM table_name_25 WHERE cardinalatial_title = \"priest of s. eusebio and archbishop of benevento\""
} |
### INSTRUCTION
What was the total number for March with less than 8.77 in January, more than 1.69 in December, an average monthly addition less than 5.35, and before 2004?
### INPUT
CREATE TABLE table_name_83 (march VARCHAR, year VARCHAR, average_monthly_additions_in_millions_ VARCHAR, january VARCHAR, december VARCHAR)
### OUTPUT
SELECT COUNT(march) FROM table_name_83 WHERE january < 8.77 AND december > 1.69 AND average_monthly_additions_in_millions_ < 5.35 AND year < 2004 | {
"input": "CREATE TABLE table_name_83 (march VARCHAR, year VARCHAR, average_monthly_additions_in_millions_ VARCHAR, january VARCHAR, december VARCHAR)",
"instruction": "What was the total number for March with less than 8.77 in January, more than 1.69 in December, an average monthly addition less than 5.35, and before 2004?",
"output": "SELECT COUNT(march) FROM table_name_83 WHERE january < 8.77 AND december > 1.69 AND average_monthly_additions_in_millions_ < 5.35 AND year < 2004"
} |
### INSTRUCTION
Which High rebounds has a High points of douglas (23)?
### INPUT
CREATE TABLE table_name_23 (high_rebounds VARCHAR, high_points VARCHAR)
### OUTPUT
SELECT high_rebounds FROM table_name_23 WHERE high_points = "douglas (23)" | {
"input": "CREATE TABLE table_name_23 (high_rebounds VARCHAR, high_points VARCHAR)",
"instruction": "Which High rebounds has a High points of douglas (23)?",
"output": "SELECT high_rebounds FROM table_name_23 WHERE high_points = \"douglas (23)\""
} |
### INSTRUCTION
Name the score for the mariners opponent on may 10
### INPUT
CREATE TABLE table_name_20 (score VARCHAR, opponent VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_20 WHERE opponent = "mariners" AND date = "may 10" | {
"input": "CREATE TABLE table_name_20 (score VARCHAR, opponent VARCHAR, date VARCHAR)",
"instruction": "Name the score for the mariners opponent on may 10",
"output": "SELECT score FROM table_name_20 WHERE opponent = \"mariners\" AND date = \"may 10\""
} |
### INSTRUCTION
What is the sum of households that makes a median household income of $44,718?
### INPUT
CREATE TABLE table_name_43 (number_of_households INTEGER, median_household_income VARCHAR)
### OUTPUT
SELECT SUM(number_of_households) FROM table_name_43 WHERE median_household_income = "$44,718" | {
"input": "CREATE TABLE table_name_43 (number_of_households INTEGER, median_household_income VARCHAR)",
"instruction": "What is the sum of households that makes a median household income of $44,718?",
"output": "SELECT SUM(number_of_households) FROM table_name_43 WHERE median_household_income = \"$44,718\""
} |
### INSTRUCTION
On what Surface was the match with a Score of 3-6, 1-6 played?
### INPUT
CREATE TABLE table_name_99 (surface VARCHAR, score VARCHAR)
### OUTPUT
SELECT surface FROM table_name_99 WHERE score = "3-6, 1-6" | {
"input": "CREATE TABLE table_name_99 (surface VARCHAR, score VARCHAR)",
"instruction": "On what Surface was the match with a Score of 3-6, 1-6 played?",
"output": "SELECT surface FROM table_name_99 WHERE score = \"3-6, 1-6\""
} |
### INSTRUCTION
Find the number of dorms and total capacity for each gender.
### INPUT
CREATE TABLE dorm (gender VARCHAR, student_capacity INTEGER)
### OUTPUT
SELECT COUNT(*), SUM(student_capacity), gender FROM dorm GROUP BY gender | {
"input": "CREATE TABLE dorm (gender VARCHAR, student_capacity INTEGER)",
"instruction": "Find the number of dorms and total capacity for each gender.",
"output": "SELECT COUNT(*), SUM(student_capacity), gender FROM dorm GROUP BY gender"
} |
### INSTRUCTION
What is the age of the friend of Zach with longest year relationship?
### INPUT
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, year VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, name VARCHAR); CREATE TABLE Person (age VARCHAR, name VARCHAR)
### OUTPUT
SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach') | {
"input": "CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, year VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, name VARCHAR); CREATE TABLE Person (age VARCHAR, name VARCHAR)",
"instruction": "What is the age of the friend of Zach with longest year relationship?",
"output": "SELECT T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Zach' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach')"
} |
### INSTRUCTION
What is the date with the distance of km (mi) at the course of roccaraso to san giorgio del sannio?
### INPUT
CREATE TABLE table_name_20 (date VARCHAR, distance VARCHAR, course VARCHAR)
### OUTPUT
SELECT date FROM table_name_20 WHERE distance = "km (mi)" AND course = "roccaraso to san giorgio del sannio" | {
"input": "CREATE TABLE table_name_20 (date VARCHAR, distance VARCHAR, course VARCHAR)",
"instruction": "What is the date with the distance of km (mi) at the course of roccaraso to san giorgio del sannio?",
"output": "SELECT date FROM table_name_20 WHERE distance = \"km (mi)\" AND course = \"roccaraso to san giorgio del sannio\""
} |
### INSTRUCTION
What's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk adventure?
### INPUT
CREATE TABLE table_name_30 (year INTEGER, role VARCHAR, title VARCHAR)
### OUTPUT
SELECT AVG(year) FROM table_name_30 WHERE role = "alvin seville simon seville david 'dave' seville" AND title = "the chipmunk adventure" | {
"input": "CREATE TABLE table_name_30 (year INTEGER, role VARCHAR, title VARCHAR)",
"instruction": "What's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk adventure?",
"output": "SELECT AVG(year) FROM table_name_30 WHERE role = \"alvin seville simon seville david 'dave' seville\" AND title = \"the chipmunk adventure\""
} |
### INSTRUCTION
What school has the Kansas City Royals for a team?
### INPUT
CREATE TABLE table_name_27 (school VARCHAR, team VARCHAR)
### OUTPUT
SELECT school FROM table_name_27 WHERE team = "kansas city royals" | {
"input": "CREATE TABLE table_name_27 (school VARCHAR, team VARCHAR)",
"instruction": "What school has the Kansas City Royals for a team?",
"output": "SELECT school FROM table_name_27 WHERE team = \"kansas city royals\""
} |
### INSTRUCTION
how many parts does detroit red wings person urban nordin play
### INPUT
CREATE TABLE table_2850912_8 (position VARCHAR, nhl_team VARCHAR, player VARCHAR)
### OUTPUT
SELECT COUNT(position) FROM table_2850912_8 WHERE nhl_team = "Detroit Red Wings" AND player = "Urban Nordin" | {
"input": "CREATE TABLE table_2850912_8 (position VARCHAR, nhl_team VARCHAR, player VARCHAR)",
"instruction": "how many parts does detroit red wings person urban nordin play",
"output": "SELECT COUNT(position) FROM table_2850912_8 WHERE nhl_team = \"Detroit Red Wings\" AND player = \"Urban Nordin\""
} |
### INSTRUCTION
How many race 1's have 5 as the race 3, with points less than 59?
### INPUT
CREATE TABLE table_name_45 (race_1 INTEGER, race_3 VARCHAR, points VARCHAR)
### OUTPUT
SELECT SUM(race_1) FROM table_name_45 WHERE race_3 = "5" AND points < 59 | {
"input": "CREATE TABLE table_name_45 (race_1 INTEGER, race_3 VARCHAR, points VARCHAR)",
"instruction": "How many race 1's have 5 as the race 3, with points less than 59?",
"output": "SELECT SUM(race_1) FROM table_name_45 WHERE race_3 = \"5\" AND points < 59"
} |
### INSTRUCTION
What is the smallest crowd at victoria park?
### INPUT
CREATE TABLE table_name_22 (crowd INTEGER, venue VARCHAR)
### OUTPUT
SELECT MIN(crowd) FROM table_name_22 WHERE venue = "victoria park" | {
"input": "CREATE TABLE table_name_22 (crowd INTEGER, venue VARCHAR)",
"instruction": "What is the smallest crowd at victoria park?",
"output": "SELECT MIN(crowd) FROM table_name_22 WHERE venue = \"victoria park\""
} |
### INSTRUCTION
What yacht did Andrew Saies sail on?
### INPUT
CREATE TABLE table_25561560_3 (yacht VARCHAR, skipper VARCHAR)
### OUTPUT
SELECT yacht FROM table_25561560_3 WHERE skipper = "Andrew Saies" | {
"input": "CREATE TABLE table_25561560_3 (yacht VARCHAR, skipper VARCHAR)",
"instruction": "What yacht did Andrew Saies sail on?",
"output": "SELECT yacht FROM table_25561560_3 WHERE skipper = \"Andrew Saies\""
} |
### INSTRUCTION
In total, how much did the United States player George Archer earn with Wins lower than 24 and a rank that was higher than 5?
### INPUT
CREATE TABLE table_name_28 (earnings__ VARCHAR, rank VARCHAR, player VARCHAR, country VARCHAR, wins VARCHAR)
### OUTPUT
SELECT COUNT(earnings__) AS $__ FROM table_name_28 WHERE country = "united states" AND wins < 24 AND player = "george archer" AND rank > 5 | {
"input": "CREATE TABLE table_name_28 (earnings__ VARCHAR, rank VARCHAR, player VARCHAR, country VARCHAR, wins VARCHAR)",
"instruction": "In total, how much did the United States player George Archer earn with Wins lower than 24 and a rank that was higher than 5?",
"output": "SELECT COUNT(earnings__) AS $__ FROM table_name_28 WHERE country = \"united states\" AND wins < 24 AND player = \"george archer\" AND rank > 5"
} |
### INSTRUCTION
What are the names of body builders whose total score is higher than 300?
### INPUT
CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE body_builder (People_ID VARCHAR, Total INTEGER)
### OUTPUT
SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300 | {
"input": "CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE body_builder (People_ID VARCHAR, Total INTEGER)",
"instruction": "What are the names of body builders whose total score is higher than 300?",
"output": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300"
} |
### INSTRUCTION
What state was maria cantwell born in after 1955?
### INPUT
CREATE TABLE table_name_50 (state VARCHAR, born VARCHAR, name VARCHAR)
### OUTPUT
SELECT state FROM table_name_50 WHERE born > 1955 AND name = "maria cantwell" | {
"input": "CREATE TABLE table_name_50 (state VARCHAR, born VARCHAR, name VARCHAR)",
"instruction": "What state was maria cantwell born in after 1955?",
"output": "SELECT state FROM table_name_50 WHERE born > 1955 AND name = \"maria cantwell\""
} |
### INSTRUCTION
For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn?
### INPUT
CREATE TABLE table_name_94 (drawn VARCHAR, losing_bonus VARCHAR, played VARCHAR, points_against VARCHAR)
### OUTPUT
SELECT drawn FROM table_name_94 WHERE played = "22" AND points_against = "453" AND losing_bonus = "5" | {
"input": "CREATE TABLE table_name_94 (drawn VARCHAR, losing_bonus VARCHAR, played VARCHAR, points_against VARCHAR)",
"instruction": "For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn?",
"output": "SELECT drawn FROM table_name_94 WHERE played = \"22\" AND points_against = \"453\" AND losing_bonus = \"5\""
} |
### INSTRUCTION
What date did the VFL play Punt Road Oval?
### INPUT
CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)
### OUTPUT
SELECT date FROM table_name_90 WHERE venue = "punt road oval" | {
"input": "CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)",
"instruction": "What date did the VFL play Punt Road Oval?",
"output": "SELECT date FROM table_name_90 WHERE venue = \"punt road oval\""
} |
### INSTRUCTION
What is the name for the species Authority of sigmodon hispidus say & ord, 1825?
### INPUT
CREATE TABLE table_name_76 (name VARCHAR, species_authority VARCHAR)
### OUTPUT
SELECT name FROM table_name_76 WHERE species_authority = "sigmodon hispidus say & ord, 1825" | {
"input": "CREATE TABLE table_name_76 (name VARCHAR, species_authority VARCHAR)",
"instruction": "What is the name for the species Authority of sigmodon hispidus say & ord, 1825?",
"output": "SELECT name FROM table_name_76 WHERE species_authority = \"sigmodon hispidus say & ord, 1825\""
} |
### INSTRUCTION
What is the 2003 value with 1r in 2009 at the Australian Open?
### INPUT
CREATE TABLE table_name_16 (tournament VARCHAR)
### OUTPUT
SELECT 2003 FROM table_name_16 WHERE 2009 = "1r" AND tournament = "australian open" | {
"input": "CREATE TABLE table_name_16 (tournament VARCHAR)",
"instruction": "What is the 2003 value with 1r in 2009 at the Australian Open?",
"output": "SELECT 2003 FROM table_name_16 WHERE 2009 = \"1r\" AND tournament = \"australian open\""
} |
### INSTRUCTION
What was the transfer fee when the moving from was celta de Vigo?
### INPUT
CREATE TABLE table_name_25 (transfer_fee VARCHAR, moving_from VARCHAR)
### OUTPUT
SELECT transfer_fee FROM table_name_25 WHERE moving_from = "celta de vigo" | {
"input": "CREATE TABLE table_name_25 (transfer_fee VARCHAR, moving_from VARCHAR)",
"instruction": "What was the transfer fee when the moving from was celta de Vigo?",
"output": "SELECT transfer_fee FROM table_name_25 WHERE moving_from = \"celta de vigo\""
} |
### INSTRUCTION
What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?
### INPUT
CREATE TABLE CAR_NAMES (model VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR, model VARCHAR); CREATE TABLE CAR_MAKERS (Id VARCHAR, Maker VARCHAR)
### OUTPUT
SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING COUNT(*) > 3 | {
"input": "CREATE TABLE CAR_NAMES (model VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR, model VARCHAR); CREATE TABLE CAR_MAKERS (Id VARCHAR, Maker VARCHAR)",
"instruction": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?",
"output": "SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING COUNT(*) > 3"
} |
### INSTRUCTION
In what week was the game on August 24, 1956 played in front of 40,175 fans?
### INPUT
CREATE TABLE table_name_10 (week INTEGER, date VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT MAX(week) FROM table_name_10 WHERE date = "august 24, 1956" AND attendance > 40 OFFSET 175 | {
"input": "CREATE TABLE table_name_10 (week INTEGER, date VARCHAR, attendance VARCHAR)",
"instruction": "In what week was the game on August 24, 1956 played in front of 40,175 fans?",
"output": "SELECT MAX(week) FROM table_name_10 WHERE date = \"august 24, 1956\" AND attendance > 40 OFFSET 175"
} |
### INSTRUCTION
What is Stephen Thompson's School/Club Team?
### INPUT
CREATE TABLE table_name_80 (school_club_team VARCHAR, player VARCHAR)
### OUTPUT
SELECT school_club_team FROM table_name_80 WHERE player = "stephen thompson" | {
"input": "CREATE TABLE table_name_80 (school_club_team VARCHAR, player VARCHAR)",
"instruction": "What is Stephen Thompson's School/Club Team?",
"output": "SELECT school_club_team FROM table_name_80 WHERE player = \"stephen thompson\""
} |
### INSTRUCTION
When Tom Watson placed t6, what was the 2 par?
### INPUT
CREATE TABLE table_name_35 (to_par VARCHAR, place VARCHAR, player VARCHAR)
### OUTPUT
SELECT to_par FROM table_name_35 WHERE place = "t6" AND player = "tom watson" | {
"input": "CREATE TABLE table_name_35 (to_par VARCHAR, place VARCHAR, player VARCHAR)",
"instruction": "When Tom Watson placed t6, what was the 2 par?",
"output": "SELECT to_par FROM table_name_35 WHERE place = \"t6\" AND player = \"tom watson\""
} |
### INSTRUCTION
How many places did the rank change since 22006 for County Leitrim?
### INPUT
CREATE TABLE table_1940144_1 (change_since_2006 VARCHAR, county VARCHAR)
### OUTPUT
SELECT COUNT(change_since_2006) FROM table_1940144_1 WHERE county = "county Leitrim" | {
"input": "CREATE TABLE table_1940144_1 (change_since_2006 VARCHAR, county VARCHAR)",
"instruction": "How many places did the rank change since 22006 for County Leitrim? ",
"output": "SELECT COUNT(change_since_2006) FROM table_1940144_1 WHERE county = \"county Leitrim\""
} |
### INSTRUCTION
Which trainer had a time of 1:10.09 with a year less than 2009?
### INPUT
CREATE TABLE table_name_34 (trainer VARCHAR, year VARCHAR, time VARCHAR)
### OUTPUT
SELECT trainer FROM table_name_34 WHERE year < 2009 AND time = "1:10.09" | {
"input": "CREATE TABLE table_name_34 (trainer VARCHAR, year VARCHAR, time VARCHAR)",
"instruction": "Which trainer had a time of 1:10.09 with a year less than 2009?",
"output": "SELECT trainer FROM table_name_34 WHERE year < 2009 AND time = \"1:10.09\""
} |
### INSTRUCTION
In what county is the latitude less than 46.935364 and GEO ID is 3801700500?
### INPUT
CREATE TABLE table_name_4 (county VARCHAR, latitude VARCHAR, geo_id VARCHAR)
### OUTPUT
SELECT county FROM table_name_4 WHERE latitude < 46.935364 AND geo_id = 3801700500 | {
"input": "CREATE TABLE table_name_4 (county VARCHAR, latitude VARCHAR, geo_id VARCHAR)",
"instruction": "In what county is the latitude less than 46.935364 and GEO ID is 3801700500?",
"output": "SELECT county FROM table_name_4 WHERE latitude < 46.935364 AND geo_id = 3801700500"
} |
### INSTRUCTION
Show the employee ids for all employees with role name "Human Resource" or "Manager".
### INPUT
CREATE TABLE Employees (employee_id VARCHAR, role_code VARCHAR); CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR)
### OUTPUT
SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Human Resource" OR T2.role_name = "Manager" | {
"input": "CREATE TABLE Employees (employee_id VARCHAR, role_code VARCHAR); CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR)",
"instruction": "Show the employee ids for all employees with role name \"Human Resource\" or \"Manager\".",
"output": "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Human Resource\" OR T2.role_name = \"Manager\""
} |
### INSTRUCTION
Which Player has a Round of 7, a Pick larger than 187, a Nationality of united states, and a Draft larger than 2000?
### INPUT
CREATE TABLE table_name_16 (player VARCHAR, draft VARCHAR, nationality VARCHAR, round VARCHAR, pick VARCHAR)
### OUTPUT
SELECT player FROM table_name_16 WHERE round = "7" AND pick > 187 AND nationality = "united states" AND draft > 2000 | {
"input": "CREATE TABLE table_name_16 (player VARCHAR, draft VARCHAR, nationality VARCHAR, round VARCHAR, pick VARCHAR)",
"instruction": "Which Player has a Round of 7, a Pick larger than 187, a Nationality of united states, and a Draft larger than 2000?",
"output": "SELECT player FROM table_name_16 WHERE round = \"7\" AND pick > 187 AND nationality = \"united states\" AND draft > 2000"
} |
### INSTRUCTION
What is the average rank of a nation that had 219,721 in 2012?
### INPUT
CREATE TABLE table_name_6 (rank INTEGER)
### OUTPUT
SELECT AVG(rank) FROM table_name_6 WHERE 2012 = 219 OFFSET 721 | {
"input": "CREATE TABLE table_name_6 (rank INTEGER)",
"instruction": "What is the average rank of a nation that had 219,721 in 2012?",
"output": "SELECT AVG(rank) FROM table_name_6 WHERE 2012 = 219 OFFSET 721"
} |
### INSTRUCTION
What is Melbourne's home venue?
### INPUT
CREATE TABLE table_name_32 (venue VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT venue FROM table_name_32 WHERE home_team = "melbourne" | {
"input": "CREATE TABLE table_name_32 (venue VARCHAR, home_team VARCHAR)",
"instruction": "What is Melbourne's home venue?",
"output": "SELECT venue FROM table_name_32 WHERE home_team = \"melbourne\""
} |
### INSTRUCTION
Find the names of customers who have no policies associated.
### INPUT
CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_details VARCHAR); CREATE TABLE policies (customer_id VARCHAR)
### OUTPUT
SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id | {
"input": "CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_details VARCHAR); CREATE TABLE policies (customer_id VARCHAR)",
"instruction": "Find the names of customers who have no policies associated.",
"output": "SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id"
} |
### INSTRUCTION
How many teams were at the 2007 details tournament where there a top goalscorer was not awarded?
### INPUT
CREATE TABLE table_name_66 (number_of_teams VARCHAR, top_goalscorer_s_ VARCHAR, year VARCHAR)
### OUTPUT
SELECT number_of_teams FROM table_name_66 WHERE top_goalscorer_s_ = "not awarded" AND year = "2007 details" | {
"input": "CREATE TABLE table_name_66 (number_of_teams VARCHAR, top_goalscorer_s_ VARCHAR, year VARCHAR)",
"instruction": "How many teams were at the 2007 details tournament where there a top goalscorer was not awarded?",
"output": "SELECT number_of_teams FROM table_name_66 WHERE top_goalscorer_s_ = \"not awarded\" AND year = \"2007 details\""
} |
### INSTRUCTION
Name the number of poles for stefano livio category:articles with hcards
### INPUT
CREATE TABLE table_19001175_1 (poles VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(poles) FROM table_19001175_1 WHERE name = "Stefano Livio Category:Articles with hCards" | {
"input": "CREATE TABLE table_19001175_1 (poles VARCHAR, name VARCHAR)",
"instruction": "Name the number of poles for stefano livio category:articles with hcards",
"output": "SELECT COUNT(poles) FROM table_19001175_1 WHERE name = \"Stefano Livio Category:Articles with hCards\""
} |
### INSTRUCTION
What is the main span feet from opening year of 1936 in the United States with a rank greater than 47 and 421 main span metres?
### INPUT
CREATE TABLE table_name_43 (main_span_feet VARCHAR, main_span_metres VARCHAR, rank VARCHAR, year_opened VARCHAR, country VARCHAR)
### OUTPUT
SELECT main_span_feet FROM table_name_43 WHERE year_opened = 1936 AND country = "united states" AND rank > 47 AND main_span_metres = "421" | {
"input": "CREATE TABLE table_name_43 (main_span_feet VARCHAR, main_span_metres VARCHAR, rank VARCHAR, year_opened VARCHAR, country VARCHAR)",
"instruction": "What is the main span feet from opening year of 1936 in the United States with a rank greater than 47 and 421 main span metres?",
"output": "SELECT main_span_feet FROM table_name_43 WHERE year_opened = 1936 AND country = \"united states\" AND rank > 47 AND main_span_metres = \"421\""
} |
### INSTRUCTION
What is the average 5432 value with a 11502 larger than 1163, a 15122 less than 15122, and a 3620 less than 624?
### INPUT
CREATE TABLE table_name_12 (Id VARCHAR)
### OUTPUT
SELECT AVG(5432) FROM table_name_12 WHERE 11502 > 1163 AND 15122 < 15122 AND 3620 < 624 | {
"input": "CREATE TABLE table_name_12 (Id VARCHAR)",
"instruction": "What is the average 5432 value with a 11502 larger than 1163, a 15122 less than 15122, and a 3620 less than 624?",
"output": "SELECT AVG(5432) FROM table_name_12 WHERE 11502 > 1163 AND 15122 < 15122 AND 3620 < 624"
} |
### INSTRUCTION
Who directed the episode that had 0.57 million U.S. viewers?
### INPUT
CREATE TABLE table_26914076_4 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
### OUTPUT
SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = "0.57" | {
"input": "CREATE TABLE table_26914076_4 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)",
"instruction": "Who directed the episode that had 0.57 million U.S. viewers? ",
"output": "SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = \"0.57\""
} |
### INSTRUCTION
Find the names of all physicians and their primary affiliated departments' names.
### INPUT
CREATE TABLE department (name VARCHAR, DepartmentID VARCHAR); CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR, PrimaryAffiliation VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)
### OUTPUT
SELECT T1.name, T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1 | {
"input": "CREATE TABLE department (name VARCHAR, DepartmentID VARCHAR); CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR, PrimaryAffiliation VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)",
"instruction": "Find the names of all physicians and their primary affiliated departments' names.",
"output": "SELECT T1.name, T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1"
} |
### INSTRUCTION
What is the number of points for east germany, and a Places of 88?
### INPUT
CREATE TABLE table_name_84 (points INTEGER, nation VARCHAR, places VARCHAR)
### OUTPUT
SELECT SUM(points) FROM table_name_84 WHERE nation = "east germany" AND places = "88" | {
"input": "CREATE TABLE table_name_84 (points INTEGER, nation VARCHAR, places VARCHAR)",
"instruction": "What is the number of points for east germany, and a Places of 88?",
"output": "SELECT SUM(points) FROM table_name_84 WHERE nation = \"east germany\" AND places = \"88\""
} |
### INSTRUCTION
What is the sum of the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer?
### INPUT
CREATE TABLE table_name_37 (episode INTEGER, performer_4 VARCHAR, performer_2 VARCHAR)
### OUTPUT
SELECT SUM(episode) FROM table_name_37 WHERE performer_4 = "chip esten" AND performer_2 = "christopher smith" | {
"input": "CREATE TABLE table_name_37 (episode INTEGER, performer_4 VARCHAR, performer_2 VARCHAR)",
"instruction": "What is the sum of the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer?",
"output": "SELECT SUM(episode) FROM table_name_37 WHERE performer_4 = \"chip esten\" AND performer_2 = \"christopher smith\""
} |
### INSTRUCTION
What is the lowest round that a pick had a position of ls?
### INPUT
CREATE TABLE table_name_26 (round INTEGER, position VARCHAR)
### OUTPUT
SELECT MIN(round) FROM table_name_26 WHERE position = "ls" | {
"input": "CREATE TABLE table_name_26 (round INTEGER, position VARCHAR)",
"instruction": "What is the lowest round that a pick had a position of ls?",
"output": "SELECT MIN(round) FROM table_name_26 WHERE position = \"ls\""
} |
### INSTRUCTION
What is the date of the zolder circuit, which had a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?
### INPUT
CREATE TABLE table_name_53 (date VARCHAR, winning_team VARCHAR, circuit VARCHAR)
### OUTPUT
SELECT date FROM table_name_53 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND circuit = "zolder" | {
"input": "CREATE TABLE table_name_53 (date VARCHAR, winning_team VARCHAR, circuit VARCHAR)",
"instruction": "What is the date of the zolder circuit, which had a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?",
"output": "SELECT date FROM table_name_53 WHERE winning_team = \"a.z.k./roc-compétition a.z.k./roc-compétition\" AND circuit = \"zolder\""
} |
### INSTRUCTION
Which catalog has a date of 24 march 2006?
### INPUT
CREATE TABLE table_name_44 (catalog VARCHAR, date VARCHAR)
### OUTPUT
SELECT catalog FROM table_name_44 WHERE date = "24 march 2006" | {
"input": "CREATE TABLE table_name_44 (catalog VARCHAR, date VARCHAR)",
"instruction": "Which catalog has a date of 24 march 2006?",
"output": "SELECT catalog FROM table_name_44 WHERE date = \"24 march 2006\""
} |
### INSTRUCTION
What is the time when the race was in Kenya and Lineth Chepkurui was the athlete?
### INPUT
CREATE TABLE table_name_50 (time VARCHAR, nation VARCHAR, athlete VARCHAR)
### OUTPUT
SELECT time FROM table_name_50 WHERE nation = "kenya" AND athlete = "lineth chepkurui" | {
"input": "CREATE TABLE table_name_50 (time VARCHAR, nation VARCHAR, athlete VARCHAR)",
"instruction": "What is the time when the race was in Kenya and Lineth Chepkurui was the athlete?",
"output": "SELECT time FROM table_name_50 WHERE nation = \"kenya\" AND athlete = \"lineth chepkurui\""
} |
### INSTRUCTION
What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4?
### INPUT
CREATE TABLE table_name_95 (entrant VARCHAR, points VARCHAR, chassis VARCHAR, engine VARCHAR, year VARCHAR)
### OUTPUT
SELECT entrant FROM table_name_95 WHERE engine = "maserati straight-6" AND year < 1958 AND chassis = "maserati 250f" AND points < 4 | {
"input": "CREATE TABLE table_name_95 (entrant VARCHAR, points VARCHAR, chassis VARCHAR, engine VARCHAR, year VARCHAR)",
"instruction": "What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4?",
"output": "SELECT entrant FROM table_name_95 WHERE engine = \"maserati straight-6\" AND year < 1958 AND chassis = \"maserati 250f\" AND points < 4"
} |
### INSTRUCTION
What was the emission rating in Mid-Atlantic South for the vehicle that was rated 300 g/mi (186 g/km) in the Midwest?
### INPUT
CREATE TABLE table_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, midwest__des_moines_ VARCHAR)
### OUTPUT
SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE midwest__des_moines_ = "300 g/mi (186 g/km)" | {
"input": "CREATE TABLE table_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, midwest__des_moines_ VARCHAR)",
"instruction": "What was the emission rating in Mid-Atlantic South for the vehicle that was rated 300 g/mi (186 g/km) in the Midwest?",
"output": "SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE midwest__des_moines_ = \"300 g/mi (186 g/km)\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.