text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
Name the aspect ratio for smpte 259m and interlaced scanning
### INPUT
CREATE TABLE table_272313_2 (aspect_ratio VARCHAR, pixel_aspect_ratio VARCHAR, scanning VARCHAR)
### OUTPUT
SELECT aspect_ratio FROM table_272313_2 WHERE pixel_aspect_ratio = "SMPTE 259M" AND scanning = "interlaced" | {
"input": "CREATE TABLE table_272313_2 (aspect_ratio VARCHAR, pixel_aspect_ratio VARCHAR, scanning VARCHAR)",
"instruction": "Name the aspect ratio for smpte 259m and interlaced scanning",
"output": "SELECT aspect_ratio FROM table_272313_2 WHERE pixel_aspect_ratio = \"SMPTE 259M\" AND scanning = \"interlaced\""
} |
### INSTRUCTION
Who was the winner when points classification is Robbie Mcewen, and a Mountains classification is José Rujano?
### INPUT
CREATE TABLE table_name_45 (winner VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR)
### OUTPUT
SELECT winner FROM table_name_45 WHERE points_classification = "robbie mcewen" AND mountains_classification = "josé rujano" | {
"input": "CREATE TABLE table_name_45 (winner VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR)",
"instruction": "Who was the winner when points classification is Robbie Mcewen, and a Mountains classification is José Rujano?",
"output": "SELECT winner FROM table_name_45 WHERE points_classification = \"robbie mcewen\" AND mountains_classification = \"josé rujano\""
} |
### INSTRUCTION
What was the result of the election of doc hastings (r) 53.3% jay inslee (d) 46.7%
### INPUT
CREATE TABLE table_1341522_50 (status VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT status FROM table_1341522_50 WHERE opponent = "Doc Hastings (R) 53.3% Jay Inslee (D) 46.7%" | {
"input": "CREATE TABLE table_1341522_50 (status VARCHAR, opponent VARCHAR)",
"instruction": "What was the result of the election of doc hastings (r) 53.3% jay inslee (d) 46.7%",
"output": "SELECT status FROM table_1341522_50 WHERE opponent = \"Doc Hastings (R) 53.3% Jay Inslee (D) 46.7%\""
} |
### INSTRUCTION
What is the ramsan-810 transfer delay?
### INPUT
CREATE TABLE table_27615520_1 (latency__microseconds_ VARCHAR, product_name VARCHAR)
### OUTPUT
SELECT COUNT(latency__microseconds_) FROM table_27615520_1 WHERE product_name = "RamSan-810" | {
"input": "CREATE TABLE table_27615520_1 (latency__microseconds_ VARCHAR, product_name VARCHAR)",
"instruction": "What is the ramsan-810 transfer delay?",
"output": "SELECT COUNT(latency__microseconds_) FROM table_27615520_1 WHERE product_name = \"RamSan-810\""
} |
### INSTRUCTION
What is the highest up:down ratio with 4 mbit/s upstream?
### INPUT
CREATE TABLE table_name_72 (up INTEGER, upstream VARCHAR)
### OUTPUT
SELECT MAX(up) AS :down_ratio FROM table_name_72 WHERE upstream = "4 mbit/s" | {
"input": "CREATE TABLE table_name_72 (up INTEGER, upstream VARCHAR)",
"instruction": "What is the highest up:down ratio with 4 mbit/s upstream?",
"output": "SELECT MAX(up) AS :down_ratio FROM table_name_72 WHERE upstream = \"4 mbit/s\""
} |
### INSTRUCTION
Name the circuit for darracq and name of cuban race
### INPUT
CREATE TABLE table_name_63 (circuit VARCHAR, winning_constructor VARCHAR, name VARCHAR)
### OUTPUT
SELECT circuit FROM table_name_63 WHERE winning_constructor = "darracq" AND name = "cuban race" | {
"input": "CREATE TABLE table_name_63 (circuit VARCHAR, winning_constructor VARCHAR, name VARCHAR)",
"instruction": "Name the circuit for darracq and name of cuban race",
"output": "SELECT circuit FROM table_name_63 WHERE winning_constructor = \"darracq\" AND name = \"cuban race\""
} |
### INSTRUCTION
What are the evening gown scores of contestants whose average is 9.266?
### INPUT
CREATE TABLE table_16390001_2 (evening_gown VARCHAR, average VARCHAR)
### OUTPUT
SELECT evening_gown FROM table_16390001_2 WHERE average = "9.266" | {
"input": "CREATE TABLE table_16390001_2 (evening_gown VARCHAR, average VARCHAR)",
"instruction": "What are the evening gown scores of contestants whose average is 9.266?",
"output": "SELECT evening_gown FROM table_16390001_2 WHERE average = \"9.266\""
} |
### INSTRUCTION
Name the score in the final for runner-up and hard surface with opponents being michaël llodra nenad zimonjić
### INPUT
CREATE TABLE table_name_1 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR)
### OUTPUT
SELECT score_in_the_final FROM table_name_1 WHERE outcome = "runner-up" AND surface = "hard" AND opponents_in_the_final = "michaël llodra nenad zimonjić" | {
"input": "CREATE TABLE table_name_1 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR)",
"instruction": "Name the score in the final for runner-up and hard surface with opponents being michaël llodra nenad zimonjić",
"output": "SELECT score_in_the_final FROM table_name_1 WHERE outcome = \"runner-up\" AND surface = \"hard\" AND opponents_in_the_final = \"michaël llodra nenad zimonjić\""
} |
### INSTRUCTION
How many minutes were played when there were 18 points and the opponent was Chicago Bulls?
### INPUT
CREATE TABLE table_name_55 (minutes_played VARCHAR, points VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT COUNT(minutes_played) FROM table_name_55 WHERE points = 18 AND opponent = "chicago bulls" | {
"input": "CREATE TABLE table_name_55 (minutes_played VARCHAR, points VARCHAR, opponent VARCHAR)",
"instruction": "How many minutes were played when there were 18 points and the opponent was Chicago Bulls?",
"output": "SELECT COUNT(minutes_played) FROM table_name_55 WHERE points = 18 AND opponent = \"chicago bulls\""
} |
### INSTRUCTION
How many mobile phones were there as of April 2013?
### INPUT
CREATE TABLE table_name_11 (number_of_mobile_phones VARCHAR, last_updated_date VARCHAR)
### OUTPUT
SELECT number_of_mobile_phones FROM table_name_11 WHERE last_updated_date = "april 2013" | {
"input": "CREATE TABLE table_name_11 (number_of_mobile_phones VARCHAR, last_updated_date VARCHAR)",
"instruction": "How many mobile phones were there as of April 2013?",
"output": "SELECT number_of_mobile_phones FROM table_name_11 WHERE last_updated_date = \"april 2013\""
} |
### INSTRUCTION
Name the District that has a Reserved for ( SC / ST /None) of none and a Constituency number of 242?
### INPUT
CREATE TABLE table_name_19 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
### OUTPUT
SELECT district FROM table_name_19 WHERE reserved_for___sc___st__none_ = "none" AND constituency_number = "242" | {
"input": "CREATE TABLE table_name_19 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)",
"instruction": "Name the District that has a Reserved for ( SC / ST /None) of none and a Constituency number of 242?",
"output": "SELECT district FROM table_name_19 WHERE reserved_for___sc___st__none_ = \"none\" AND constituency_number = \"242\""
} |
### INSTRUCTION
Builder H. K. Porter, inc who had a type of 0-4-4 Forney locomotive, has what works number?
### INPUT
CREATE TABLE table_name_88 (works_number VARCHAR, type VARCHAR, builder VARCHAR)
### OUTPUT
SELECT works_number FROM table_name_88 WHERE type = "0-4-4 forney locomotive" AND builder = "h. k. porter, inc" | {
"input": "CREATE TABLE table_name_88 (works_number VARCHAR, type VARCHAR, builder VARCHAR)",
"instruction": "Builder H. K. Porter, inc who had a type of 0-4-4 Forney locomotive, has what works number?",
"output": "SELECT works_number FROM table_name_88 WHERE type = \"0-4-4 forney locomotive\" AND builder = \"h. k. porter, inc\""
} |
### INSTRUCTION
Name the least rank when silver is less than 1 and bronze is less than 1 with total more than 1
### INPUT
CREATE TABLE table_name_5 (rank INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR)
### OUTPUT
SELECT MIN(rank) FROM table_name_5 WHERE silver < 1 AND total > 1 AND bronze < 1 | {
"input": "CREATE TABLE table_name_5 (rank INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR)",
"instruction": "Name the least rank when silver is less than 1 and bronze is less than 1 with total more than 1",
"output": "SELECT MIN(rank) FROM table_name_5 WHERE silver < 1 AND total > 1 AND bronze < 1"
} |
### INSTRUCTION
Name the lead for institute of election results and social democratic of 31.7% 8 seats
### INPUT
CREATE TABLE table_name_95 (lead VARCHAR, institute VARCHAR, social_democratic VARCHAR)
### OUTPUT
SELECT lead FROM table_name_95 WHERE institute = "election results" AND social_democratic = "31.7% 8 seats" | {
"input": "CREATE TABLE table_name_95 (lead VARCHAR, institute VARCHAR, social_democratic VARCHAR)",
"instruction": "Name the lead for institute of election results and social democratic of 31.7% 8 seats",
"output": "SELECT lead FROM table_name_95 WHERE institute = \"election results\" AND social_democratic = \"31.7% 8 seats\""
} |
### INSTRUCTION
Who drove the maserati under 18 laps with an oil leak that had a grid of under 14?
### INPUT
CREATE TABLE table_name_34 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR, laps VARCHAR)
### OUTPUT
SELECT driver FROM table_name_34 WHERE constructor = "maserati" AND laps < 18 AND grid < 14 AND time_retired = "oil leak" | {
"input": "CREATE TABLE table_name_34 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR, laps VARCHAR)",
"instruction": "Who drove the maserati under 18 laps with an oil leak that had a grid of under 14?",
"output": "SELECT driver FROM table_name_34 WHERE constructor = \"maserati\" AND laps < 18 AND grid < 14 AND time_retired = \"oil leak\""
} |
### INSTRUCTION
What is the average goal difference of club cultural leonesa, which has more than 27 points and less than 9 losses?
### INPUT
CREATE TABLE table_name_63 (goal_difference INTEGER, club VARCHAR, points VARCHAR, losses VARCHAR)
### OUTPUT
SELECT AVG(goal_difference) FROM table_name_63 WHERE points > 27 AND losses < 9 AND club = "cultural leonesa" | {
"input": "CREATE TABLE table_name_63 (goal_difference INTEGER, club VARCHAR, points VARCHAR, losses VARCHAR)",
"instruction": "What is the average goal difference of club cultural leonesa, which has more than 27 points and less than 9 losses?",
"output": "SELECT AVG(goal_difference) FROM table_name_63 WHERE points > 27 AND losses < 9 AND club = \"cultural leonesa\""
} |
### INSTRUCTION
What is the least common media type in all tracks?
### INPUT
CREATE TABLE MEDIATYPE (Name VARCHAR, MediaTypeId VARCHAR); CREATE TABLE TRACK (MediaTypeId VARCHAR)
### OUTPUT
SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) LIMIT 1 | {
"input": "CREATE TABLE MEDIATYPE (Name VARCHAR, MediaTypeId VARCHAR); CREATE TABLE TRACK (MediaTypeId VARCHAR)",
"instruction": "What is the least common media type in all tracks?",
"output": "SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) LIMIT 1"
} |
### INSTRUCTION
When the scoring rank was 117, what was the best finish?
### INPUT
CREATE TABLE table_10021158_3 (best_finish VARCHAR, scoring_rank VARCHAR)
### OUTPUT
SELECT best_finish FROM table_10021158_3 WHERE scoring_rank = "117" | {
"input": "CREATE TABLE table_10021158_3 (best_finish VARCHAR, scoring_rank VARCHAR)",
"instruction": "When the scoring rank was 117, what was the best finish?",
"output": "SELECT best_finish FROM table_10021158_3 WHERE scoring_rank = \"117\""
} |
### INSTRUCTION
For each country and airline name, how many routes are there?
### INPUT
CREATE TABLE airlines (country VARCHAR, name VARCHAR, alid VARCHAR); CREATE TABLE routes (alid VARCHAR)
### OUTPUT
SELECT T1.country, T1.name, COUNT(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country, T1.name | {
"input": "CREATE TABLE airlines (country VARCHAR, name VARCHAR, alid VARCHAR); CREATE TABLE routes (alid VARCHAR)",
"instruction": "For each country and airline name, how many routes are there?",
"output": "SELECT T1.country, T1.name, COUNT(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T1.country, T1.name"
} |
### INSTRUCTION
What is the total rank of the airport that has 79,290 passengers?
### INPUT
CREATE TABLE table_name_63 (rank VARCHAR, passengers VARCHAR)
### OUTPUT
SELECT COUNT(rank) FROM table_name_63 WHERE passengers = 79 OFFSET 290 | {
"input": "CREATE TABLE table_name_63 (rank VARCHAR, passengers VARCHAR)",
"instruction": "What is the total rank of the airport that has 79,290 passengers?",
"output": "SELECT COUNT(rank) FROM table_name_63 WHERE passengers = 79 OFFSET 290"
} |
### INSTRUCTION
What was the attendance number for the venue of Lakeside Park?
### INPUT
CREATE TABLE table_name_37 (attendance VARCHAR, venue VARCHAR)
### OUTPUT
SELECT attendance FROM table_name_37 WHERE venue = "lakeside park" | {
"input": "CREATE TABLE table_name_37 (attendance VARCHAR, venue VARCHAR)",
"instruction": "What was the attendance number for the venue of Lakeside Park?",
"output": "SELECT attendance FROM table_name_37 WHERE venue = \"lakeside park\""
} |
### INSTRUCTION
Find the id and city of the student address with the highest average monthly rental.
### INPUT
CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)
### OUTPUT
SELECT T2.address_id, T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1 | {
"input": "CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)",
"instruction": "Find the id and city of the student address with the highest average monthly rental.",
"output": "SELECT T2.address_id, T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1"
} |
### INSTRUCTION
How many 2010s have a 2007 greater than 4.6, and 8.2 as a 2006?
### INPUT
CREATE TABLE table_name_9 (Id VARCHAR)
### OUTPUT
SELECT COUNT(2010) FROM table_name_9 WHERE 2007 > 4.6 AND 2006 = 8.2 | {
"input": "CREATE TABLE table_name_9 (Id VARCHAR)",
"instruction": "How many 2010s have a 2007 greater than 4.6, and 8.2 as a 2006?",
"output": "SELECT COUNT(2010) FROM table_name_9 WHERE 2007 > 4.6 AND 2006 = 8.2"
} |
### INSTRUCTION
What is the print resolution (FPI) for December 2002?
### INPUT
CREATE TABLE table_10528691_4 (print_resolution__dpi__resolution_is_given_in_dots_per_inch__dpi_ VARCHAR, introduction VARCHAR)
### OUTPUT
SELECT print_resolution__dpi__resolution_is_given_in_dots_per_inch__dpi_ FROM table_10528691_4 WHERE introduction = "December 2002" | {
"input": "CREATE TABLE table_10528691_4 (print_resolution__dpi__resolution_is_given_in_dots_per_inch__dpi_ VARCHAR, introduction VARCHAR)",
"instruction": "What is the print resolution (FPI) for December 2002?",
"output": "SELECT print_resolution__dpi__resolution_is_given_in_dots_per_inch__dpi_ FROM table_10528691_4 WHERE introduction = \"December 2002\""
} |
### INSTRUCTION
when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98
### INPUT
CREATE TABLE table_19704392_1 (modified_speed__6th_gear_ INTEGER, standard_speed__6th_gear_ VARCHAR)
### OUTPUT
SELECT MAX(modified_speed__6th_gear_) FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "98" | {
"input": "CREATE TABLE table_19704392_1 (modified_speed__6th_gear_ INTEGER, standard_speed__6th_gear_ VARCHAR)",
"instruction": "when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98",
"output": "SELECT MAX(modified_speed__6th_gear_) FROM table_19704392_1 WHERE standard_speed__6th_gear_ = \"98\""
} |
### INSTRUCTION
Find the states which do not have any employee in their record.
### INPUT
CREATE TABLE Employees (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR); CREATE TABLE addresses (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR)
### OUTPUT
SELECT state_province_county FROM addresses WHERE NOT address_id IN (SELECT employee_address_id FROM Employees) | {
"input": "CREATE TABLE Employees (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR); CREATE TABLE addresses (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR)",
"instruction": "Find the states which do not have any employee in their record.",
"output": "SELECT state_province_county FROM addresses WHERE NOT address_id IN (SELECT employee_address_id FROM Employees)"
} |
### INSTRUCTION
What is the Year named of the Ganga Valles?
### INPUT
CREATE TABLE table_name_39 (year_named INTEGER, name VARCHAR)
### OUTPUT
SELECT MAX(year_named) FROM table_name_39 WHERE name = "ganga valles" | {
"input": "CREATE TABLE table_name_39 (year_named INTEGER, name VARCHAR)",
"instruction": "What is the Year named of the Ganga Valles?",
"output": "SELECT MAX(year_named) FROM table_name_39 WHERE name = \"ganga valles\""
} |
### INSTRUCTION
How many games were played on May 11?
### INPUT
CREATE TABLE table_22654073_13 (game VARCHAR, date VARCHAR)
### OUTPUT
SELECT COUNT(game) FROM table_22654073_13 WHERE date = "May 11" | {
"input": "CREATE TABLE table_22654073_13 (game VARCHAR, date VARCHAR)",
"instruction": "How many games were played on May 11?",
"output": "SELECT COUNT(game) FROM table_22654073_13 WHERE date = \"May 11\""
} |
### INSTRUCTION
What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)?
### INPUT
CREATE TABLE table_name_26 (free_or_pay VARCHAR, years VARCHAR, provider VARCHAR)
### OUTPUT
SELECT free_or_pay FROM table_name_26 WHERE years = "2006–" AND provider = "bt tv (formerly bt vision)" | {
"input": "CREATE TABLE table_name_26 (free_or_pay VARCHAR, years VARCHAR, provider VARCHAR)",
"instruction": "What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)?",
"output": "SELECT free_or_pay FROM table_name_26 WHERE years = \"2006–\" AND provider = \"bt tv (formerly bt vision)\""
} |
### INSTRUCTION
When was the appointment date for VFL Wolfsburg?
### INPUT
CREATE TABLE table_name_72 (date_of_appointment VARCHAR, team VARCHAR)
### OUTPUT
SELECT date_of_appointment FROM table_name_72 WHERE team = "vfl wolfsburg" | {
"input": "CREATE TABLE table_name_72 (date_of_appointment VARCHAR, team VARCHAR)",
"instruction": "When was the appointment date for VFL Wolfsburg?",
"output": "SELECT date_of_appointment FROM table_name_72 WHERE team = \"vfl wolfsburg\""
} |
### INSTRUCTION
Which team has an overall playoff of (0-0), a home record of (0-1) and played the Green Bay Blizzard team?
### INPUT
CREATE TABLE table_name_74 (overall VARCHAR, opponent VARCHAR, plyff VARCHAR, home VARCHAR)
### OUTPUT
SELECT overall FROM table_name_74 WHERE plyff = "(0-0)" AND home = "(0-1)" AND opponent = "green bay blizzard" | {
"input": "CREATE TABLE table_name_74 (overall VARCHAR, opponent VARCHAR, plyff VARCHAR, home VARCHAR)",
"instruction": "Which team has an overall playoff of (0-0), a home record of (0-1) and played the Green Bay Blizzard team?",
"output": "SELECT overall FROM table_name_74 WHERE plyff = \"(0-0)\" AND home = \"(0-1)\" AND opponent = \"green bay blizzard\""
} |
### INSTRUCTION
How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?
### INPUT
CREATE TABLE table_name_19 (south_asians_2011 VARCHAR, province VARCHAR, south_asians_2001 VARCHAR)
### OUTPUT
SELECT COUNT(south_asians_2011) FROM table_name_19 WHERE province = "quebec" AND south_asians_2001 < 59 OFFSET 510 | {
"input": "CREATE TABLE table_name_19 (south_asians_2011 VARCHAR, province VARCHAR, south_asians_2001 VARCHAR)",
"instruction": "How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?",
"output": "SELECT COUNT(south_asians_2011) FROM table_name_19 WHERE province = \"quebec\" AND south_asians_2001 < 59 OFFSET 510"
} |
### INSTRUCTION
What status of school is informatics international college?
### INPUT
CREATE TABLE table_2589963_1 (status VARCHAR, institution VARCHAR)
### OUTPUT
SELECT status FROM table_2589963_1 WHERE institution = "Informatics International College" | {
"input": "CREATE TABLE table_2589963_1 (status VARCHAR, institution VARCHAR)",
"instruction": "What status of school is informatics international college?",
"output": "SELECT status FROM table_2589963_1 WHERE institution = \"Informatics International College\""
} |
### INSTRUCTION
what is the date of vacancy when the position in table is 10th and the team is balboa?
### INPUT
CREATE TABLE table_name_70 (date_of_vacancy VARCHAR, position_in_table VARCHAR, team VARCHAR)
### OUTPUT
SELECT date_of_vacancy FROM table_name_70 WHERE position_in_table = "10th" AND team = "balboa" | {
"input": "CREATE TABLE table_name_70 (date_of_vacancy VARCHAR, position_in_table VARCHAR, team VARCHAR)",
"instruction": "what is the date of vacancy when the position in table is 10th and the team is balboa?",
"output": "SELECT date_of_vacancy FROM table_name_70 WHERE position_in_table = \"10th\" AND team = \"balboa\""
} |
### INSTRUCTION
Which Geelong DFL has 8 losses and more than 4 wins?
### INPUT
CREATE TABLE table_name_87 (geelong_dfl VARCHAR, wins VARCHAR, losses VARCHAR)
### OUTPUT
SELECT geelong_dfl FROM table_name_87 WHERE wins > 4 AND losses = 8 | {
"input": "CREATE TABLE table_name_87 (geelong_dfl VARCHAR, wins VARCHAR, losses VARCHAR)",
"instruction": "Which Geelong DFL has 8 losses and more than 4 wins?",
"output": "SELECT geelong_dfl FROM table_name_87 WHERE wins > 4 AND losses = 8"
} |
### INSTRUCTION
who is the the candidates with district being mississippi 4
### INPUT
CREATE TABLE table_1342379_23 (candidates VARCHAR, district VARCHAR)
### OUTPUT
SELECT candidates FROM table_1342379_23 WHERE district = "Mississippi 4" | {
"input": "CREATE TABLE table_1342379_23 (candidates VARCHAR, district VARCHAR)",
"instruction": "who is the the candidates with district being mississippi 4",
"output": "SELECT candidates FROM table_1342379_23 WHERE district = \"Mississippi 4\""
} |
### INSTRUCTION
Name the year for is my magic
### INPUT
CREATE TABLE table_21790203_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)
### OUTPUT
SELECT year__ceremony_ FROM table_21790203_1 WHERE film_title_used_in_nomination = "My Magic" | {
"input": "CREATE TABLE table_21790203_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)",
"instruction": "Name the year for is my magic",
"output": "SELECT year__ceremony_ FROM table_21790203_1 WHERE film_title_used_in_nomination = \"My Magic\""
} |
### INSTRUCTION
What did the home team at Brunswick Street Oval score?
### INPUT
CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR)
### OUTPUT
SELECT home_team AS score FROM table_name_89 WHERE venue = "brunswick street oval" | {
"input": "CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR)",
"instruction": "What did the home team at Brunswick Street Oval score?",
"output": "SELECT home_team AS score FROM table_name_89 WHERE venue = \"brunswick street oval\""
} |
### INSTRUCTION
Which Date has a Margin of victory of 5 strokes, and a Winning score of −13 (67-73-64-63=267)?
### INPUT
CREATE TABLE table_name_33 (date VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR)
### OUTPUT
SELECT date FROM table_name_33 WHERE margin_of_victory = "5 strokes" AND winning_score = −13(67 - 73 - 64 - 63 = 267) | {
"input": "CREATE TABLE table_name_33 (date VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR)",
"instruction": "Which Date has a Margin of victory of 5 strokes, and a Winning score of −13 (67-73-64-63=267)?",
"output": "SELECT date FROM table_name_33 WHERE margin_of_victory = \"5 strokes\" AND winning_score = −13(67 - 73 - 64 - 63 = 267)"
} |
### INSTRUCTION
What is the least amount of appearances by new zealand when they scored 4 goals?
### INPUT
CREATE TABLE table_name_85 (appearances INTEGER, goals VARCHAR, nationality VARCHAR)
### OUTPUT
SELECT MIN(appearances) FROM table_name_85 WHERE goals = 4 AND nationality = "new zealand" | {
"input": "CREATE TABLE table_name_85 (appearances INTEGER, goals VARCHAR, nationality VARCHAR)",
"instruction": "What is the least amount of appearances by new zealand when they scored 4 goals?",
"output": "SELECT MIN(appearances) FROM table_name_85 WHERE goals = 4 AND nationality = \"new zealand\""
} |
### INSTRUCTION
Find the id and last name of the student that has the most behavior incidents?
### INPUT
CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Behavior_Incident (student_id VARCHAR)
### OUTPUT
SELECT T1.student_id, T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Behavior_Incident (student_id VARCHAR)",
"instruction": "Find the id and last name of the student that has the most behavior incidents?",
"output": "SELECT T1.student_id, T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Who is the Ice level reporter after 1992 with the color commentator John Davidson and the play-by-play Marv Albert?
### INPUT
CREATE TABLE table_name_58 (ice_level_reporters VARCHAR, year VARCHAR, color_commentator_s_ VARCHAR, play_by_play VARCHAR)
### OUTPUT
SELECT ice_level_reporters FROM table_name_58 WHERE color_commentator_s_ = "john davidson" AND play_by_play = "marv albert" AND year > 1992 | {
"input": "CREATE TABLE table_name_58 (ice_level_reporters VARCHAR, year VARCHAR, color_commentator_s_ VARCHAR, play_by_play VARCHAR)",
"instruction": "Who is the Ice level reporter after 1992 with the color commentator John Davidson and the play-by-play Marv Albert?",
"output": "SELECT ice_level_reporters FROM table_name_58 WHERE color_commentator_s_ = \"john davidson\" AND play_by_play = \"marv albert\" AND year > 1992"
} |
### INSTRUCTION
How many values of last year in QLD Cup if QLD Cup Premierships is 1996, 2001?
### INPUT
CREATE TABLE table_2383498_4 (last_year_in_qld_cup VARCHAR, qld_cup_premierships VARCHAR)
### OUTPUT
SELECT COUNT(last_year_in_qld_cup) FROM table_2383498_4 WHERE qld_cup_premierships = "1996, 2001" | {
"input": "CREATE TABLE table_2383498_4 (last_year_in_qld_cup VARCHAR, qld_cup_premierships VARCHAR)",
"instruction": "How many values of last year in QLD Cup if QLD Cup Premierships is 1996, 2001?",
"output": "SELECT COUNT(last_year_in_qld_cup) FROM table_2383498_4 WHERE qld_cup_premierships = \"1996, 2001\""
} |
### INSTRUCTION
What is the payload for Class MRBM, and a range of 1,930km?
### INPUT
CREATE TABLE table_name_12 (payload VARCHAR, class VARCHAR, range__varies_with_payload_weight_ VARCHAR)
### OUTPUT
SELECT payload FROM table_name_12 WHERE class = "mrbm" AND range__varies_with_payload_weight_ = "1,930km" | {
"input": "CREATE TABLE table_name_12 (payload VARCHAR, class VARCHAR, range__varies_with_payload_weight_ VARCHAR)",
"instruction": "What is the payload for Class MRBM, and a range of 1,930km?",
"output": "SELECT payload FROM table_name_12 WHERE class = \"mrbm\" AND range__varies_with_payload_weight_ = \"1,930km\""
} |
### INSTRUCTION
What was the away team when the result was 2–1 and home team was the bohemians?
### INPUT
CREATE TABLE table_24949975_1 (away_team VARCHAR, result VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT away_team FROM table_24949975_1 WHERE result = "2–1" AND home_team = "Bohemians" | {
"input": "CREATE TABLE table_24949975_1 (away_team VARCHAR, result VARCHAR, home_team VARCHAR)",
"instruction": "What was the away team when the result was 2–1 and home team was the bohemians?",
"output": "SELECT away_team FROM table_24949975_1 WHERE result = \"2–1\" AND home_team = \"Bohemians\""
} |
### INSTRUCTION
What date has the format of CD and catalog of alca-274?
### INPUT
CREATE TABLE table_name_72 (date VARCHAR, format VARCHAR, catalog VARCHAR)
### OUTPUT
SELECT date FROM table_name_72 WHERE format = "cd" AND catalog = "alca-274" | {
"input": "CREATE TABLE table_name_72 (date VARCHAR, format VARCHAR, catalog VARCHAR)",
"instruction": "What date has the format of CD and catalog of alca-274?",
"output": "SELECT date FROM table_name_72 WHERE format = \"cd\" AND catalog = \"alca-274\""
} |
### INSTRUCTION
Which municipality has a population of 24421?
### INPUT
CREATE TABLE table_157826_1 (municipality VARCHAR, population VARCHAR)
### OUTPUT
SELECT municipality FROM table_157826_1 WHERE population = 24421 | {
"input": "CREATE TABLE table_157826_1 (municipality VARCHAR, population VARCHAR)",
"instruction": "Which municipality has a population of 24421?",
"output": "SELECT municipality FROM table_157826_1 WHERE population = 24421"
} |
### INSTRUCTION
How many seasons have Losses larger than 1, and a Competition of fiba europe cup, and Wins smaller than 4?
### INPUT
CREATE TABLE table_name_53 (season VARCHAR, wins VARCHAR, loses VARCHAR, competition VARCHAR)
### OUTPUT
SELECT COUNT(season) FROM table_name_53 WHERE loses > 1 AND competition = "fiba europe cup" AND wins < 4 | {
"input": "CREATE TABLE table_name_53 (season VARCHAR, wins VARCHAR, loses VARCHAR, competition VARCHAR)",
"instruction": "How many seasons have Losses larger than 1, and a Competition of fiba europe cup, and Wins smaller than 4?",
"output": "SELECT COUNT(season) FROM table_name_53 WHERE loses > 1 AND competition = \"fiba europe cup\" AND wins < 4"
} |
### INSTRUCTION
Which Record has a Location/Attendance of palace of auburn hills 8,108?
### INPUT
CREATE TABLE table_name_22 (record VARCHAR, location_attendance VARCHAR)
### OUTPUT
SELECT record FROM table_name_22 WHERE location_attendance = "palace of auburn hills 8,108" | {
"input": "CREATE TABLE table_name_22 (record VARCHAR, location_attendance VARCHAR)",
"instruction": "Which Record has a Location/Attendance of palace of auburn hills 8,108?",
"output": "SELECT record FROM table_name_22 WHERE location_attendance = \"palace of auburn hills 8,108\""
} |
### INSTRUCTION
Find the names of the top 3 departments that provide the largest amount of courses?
### INPUT
CREATE TABLE course (dept_name VARCHAR)
### OUTPUT
SELECT dept_name FROM course GROUP BY dept_name ORDER BY COUNT(*) DESC LIMIT 3 | {
"input": "CREATE TABLE course (dept_name VARCHAR)",
"instruction": "Find the names of the top 3 departments that provide the largest amount of courses?",
"output": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY COUNT(*) DESC LIMIT 3"
} |
### INSTRUCTION
What are all the fault descriptions and the fault status of all the faults recoreded in the logs?
### INPUT
CREATE TABLE Fault_Log (fault_description VARCHAR, fault_log_entry_id VARCHAR); CREATE TABLE Fault_Log_Parts (fault_status VARCHAR, fault_log_entry_id VARCHAR)
### OUTPUT
SELECT T1.fault_description, T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id | {
"input": "CREATE TABLE Fault_Log (fault_description VARCHAR, fault_log_entry_id VARCHAR); CREATE TABLE Fault_Log_Parts (fault_status VARCHAR, fault_log_entry_id VARCHAR)",
"instruction": "What are all the fault descriptions and the fault status of all the faults recoreded in the logs?",
"output": "SELECT T1.fault_description, T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id"
} |
### INSTRUCTION
Which professional did not operate any treatment on dogs? List the professional's id, role and email.
### INPUT
CREATE TABLE Professionals (professional_id VARCHAR, role_code VARCHAR, email_address VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)
### OUTPUT
SELECT professional_id, role_code, email_address FROM Professionals EXCEPT SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id | {
"input": "CREATE TABLE Professionals (professional_id VARCHAR, role_code VARCHAR, email_address VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)",
"instruction": "Which professional did not operate any treatment on dogs? List the professional's id, role and email.",
"output": "SELECT professional_id, role_code, email_address FROM Professionals EXCEPT SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id"
} |
### INSTRUCTION
What is the largest issue date for an album that reached position of 3?
### INPUT
CREATE TABLE table_name_6 (issue_date INTEGER, highest_position VARCHAR)
### OUTPUT
SELECT MAX(issue_date) FROM table_name_6 WHERE highest_position = 3 | {
"input": "CREATE TABLE table_name_6 (issue_date INTEGER, highest_position VARCHAR)",
"instruction": "What is the largest issue date for an album that reached position of 3?",
"output": "SELECT MAX(issue_date) FROM table_name_6 WHERE highest_position = 3"
} |
### INSTRUCTION
WHAT IS THE DATE WITH BOSTON ROAD TEAM AND 126-105 RESULT?
### INPUT
CREATE TABLE table_name_86 (date VARCHAR, road_team VARCHAR, result VARCHAR)
### OUTPUT
SELECT date FROM table_name_86 WHERE road_team = "boston" AND result = "126-105" | {
"input": "CREATE TABLE table_name_86 (date VARCHAR, road_team VARCHAR, result VARCHAR)",
"instruction": "WHAT IS THE DATE WITH BOSTON ROAD TEAM AND 126-105 RESULT?",
"output": "SELECT date FROM table_name_86 WHERE road_team = \"boston\" AND result = \"126-105\""
} |
### INSTRUCTION
Who hosted the visiting team Baltimore Ravens?
### INPUT
CREATE TABLE table_name_24 (host_team VARCHAR, visiting_team VARCHAR)
### OUTPUT
SELECT host_team FROM table_name_24 WHERE visiting_team = "baltimore ravens" | {
"input": "CREATE TABLE table_name_24 (host_team VARCHAR, visiting_team VARCHAR)",
"instruction": "Who hosted the visiting team Baltimore Ravens?",
"output": "SELECT host_team FROM table_name_24 WHERE visiting_team = \"baltimore ravens\""
} |
### INSTRUCTION
What's the money ($) for the t3 place and the score of 74-74-71-69=288?
### INPUT
CREATE TABLE table_name_87 (money___$__ VARCHAR, place VARCHAR, score VARCHAR)
### OUTPUT
SELECT money___$__ FROM table_name_87 WHERE place = "t3" AND score = 74 - 74 - 71 - 69 = 288 | {
"input": "CREATE TABLE table_name_87 (money___$__ VARCHAR, place VARCHAR, score VARCHAR)",
"instruction": "What's the money ($) for the t3 place and the score of 74-74-71-69=288?",
"output": "SELECT money___$__ FROM table_name_87 WHERE place = \"t3\" AND score = 74 - 74 - 71 - 69 = 288"
} |
### INSTRUCTION
What week was October 29, 2000?
### INPUT
CREATE TABLE table_name_2 (week VARCHAR, date VARCHAR)
### OUTPUT
SELECT COUNT(week) FROM table_name_2 WHERE date = "october 29, 2000" | {
"input": "CREATE TABLE table_name_2 (week VARCHAR, date VARCHAR)",
"instruction": "What week was October 29, 2000?",
"output": "SELECT COUNT(week) FROM table_name_2 WHERE date = \"october 29, 2000\""
} |
### INSTRUCTION
How many points occurred with a difference of 2 for position less than 4?
### INPUT
CREATE TABLE table_name_90 (points VARCHAR, difference VARCHAR, position VARCHAR)
### OUTPUT
SELECT COUNT(points) FROM table_name_90 WHERE difference = "2" AND position < 4 | {
"input": "CREATE TABLE table_name_90 (points VARCHAR, difference VARCHAR, position VARCHAR)",
"instruction": "How many points occurred with a difference of 2 for position less than 4?",
"output": "SELECT COUNT(points) FROM table_name_90 WHERE difference = \"2\" AND position < 4"
} |
### INSTRUCTION
What is the population where the median household income is $87,832 and there are fewer than 64,886 households?
### INPUT
CREATE TABLE table_name_83 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR)
### OUTPUT
SELECT AVG(population) FROM table_name_83 WHERE median_household_income = "$87,832" AND number_of_households < 64 OFFSET 886 | {
"input": "CREATE TABLE table_name_83 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR)",
"instruction": "What is the population where the median household income is $87,832 and there are fewer than 64,886 households?",
"output": "SELECT AVG(population) FROM table_name_83 WHERE median_household_income = \"$87,832\" AND number_of_households < 64 OFFSET 886"
} |
### INSTRUCTION
What's the clock speed of the model that costs $910?
### INPUT
CREATE TABLE table_12740151_8 (clock_speed VARCHAR, price___usd__ VARCHAR)
### OUTPUT
SELECT clock_speed FROM table_12740151_8 WHERE price___usd__ = "$910" | {
"input": "CREATE TABLE table_12740151_8 (clock_speed VARCHAR, price___usd__ VARCHAR)",
"instruction": "What's the clock speed of the model that costs $910?",
"output": "SELECT clock_speed FROM table_12740151_8 WHERE price___usd__ = \"$910\""
} |
### INSTRUCTION
What is the number of earning for more than 2 wins and less than 25 events?
### INPUT
CREATE TABLE table_name_97 (earnings___ INTEGER, wins VARCHAR, events VARCHAR)
### OUTPUT
SELECT SUM(earnings___) AS $__ FROM table_name_97 WHERE wins > 2 AND events < 25 | {
"input": "CREATE TABLE table_name_97 (earnings___ INTEGER, wins VARCHAR, events VARCHAR)",
"instruction": "What is the number of earning for more than 2 wins and less than 25 events?",
"output": "SELECT SUM(earnings___) AS $__ FROM table_name_97 WHERE wins > 2 AND events < 25"
} |
### INSTRUCTION
Which Schwaben has an Oberbayern of fc ingolstadt 04 and a Mittelfranken of sv seligenporten
### INPUT
CREATE TABLE table_name_98 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)
### OUTPUT
SELECT schwaben FROM table_name_98 WHERE oberbayern = "fc ingolstadt 04" AND mittelfranken = "sv seligenporten" | {
"input": "CREATE TABLE table_name_98 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)",
"instruction": "Which Schwaben has an Oberbayern of fc ingolstadt 04 and a Mittelfranken of sv seligenporten",
"output": "SELECT schwaben FROM table_name_98 WHERE oberbayern = \"fc ingolstadt 04\" AND mittelfranken = \"sv seligenporten\""
} |
### INSTRUCTION
what is the tournament when the performance in 2012 is 3r and 2011 is qf?
### INPUT
CREATE TABLE table_name_77 (tournament VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_77 WHERE 2012 = "3r" AND 2011 = "qf" | {
"input": "CREATE TABLE table_name_77 (tournament VARCHAR)",
"instruction": "what is the tournament when the performance in 2012 is 3r and 2011 is qf?",
"output": "SELECT tournament FROM table_name_77 WHERE 2012 = \"3r\" AND 2011 = \"qf\""
} |
### INSTRUCTION
What is the lowest against score for Twickenham, London with the status of Five Nations against Ireland?
### INPUT
CREATE TABLE table_name_16 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR)
### OUTPUT
SELECT MIN(against) FROM table_name_16 WHERE venue = "twickenham, london" AND status = "five nations" AND opposing_teams = "ireland" | {
"input": "CREATE TABLE table_name_16 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR)",
"instruction": "What is the lowest against score for Twickenham, London with the status of Five Nations against Ireland?",
"output": "SELECT MIN(against) FROM table_name_16 WHERE venue = \"twickenham, london\" AND status = \"five nations\" AND opposing_teams = \"ireland\""
} |
### INSTRUCTION
What is the Vineyeard surface (2010) with a Village of Gevrey-Chambertin, and Grand Cru of Latricières-Chambertin?
### INPUT
CREATE TABLE table_name_94 (vineyard_surface__2010_ VARCHAR, village VARCHAR, grand_cru VARCHAR)
### OUTPUT
SELECT vineyard_surface__2010_ FROM table_name_94 WHERE village = "gevrey-chambertin" AND grand_cru = "latricières-chambertin" | {
"input": "CREATE TABLE table_name_94 (vineyard_surface__2010_ VARCHAR, village VARCHAR, grand_cru VARCHAR)",
"instruction": "What is the Vineyeard surface (2010) with a Village of Gevrey-Chambertin, and Grand Cru of Latricières-Chambertin?",
"output": "SELECT vineyard_surface__2010_ FROM table_name_94 WHERE village = \"gevrey-chambertin\" AND grand_cru = \"latricières-chambertin\""
} |
### INSTRUCTION
Which nationality is kitchener rangers (ohl) college/junior/club team?
### INPUT
CREATE TABLE table_21721351_18 (nationality VARCHAR, college_junior_club_team VARCHAR)
### OUTPUT
SELECT nationality FROM table_21721351_18 WHERE college_junior_club_team = "Kitchener Rangers (OHL)" | {
"input": "CREATE TABLE table_21721351_18 (nationality VARCHAR, college_junior_club_team VARCHAR)",
"instruction": "Which nationality is kitchener rangers (ohl) college/junior/club team?",
"output": "SELECT nationality FROM table_21721351_18 WHERE college_junior_club_team = \"Kitchener Rangers (OHL)\""
} |
### INSTRUCTION
What was the first elected year that featured incumbent andrew r. govan?
### INPUT
CREATE TABLE table_2668264_22 (first_elected VARCHAR, incumbent VARCHAR)
### OUTPUT
SELECT first_elected FROM table_2668264_22 WHERE incumbent = "Andrew R. Govan" | {
"input": "CREATE TABLE table_2668264_22 (first_elected VARCHAR, incumbent VARCHAR)",
"instruction": "What was the first elected year that featured incumbent andrew r. govan?",
"output": "SELECT first_elected FROM table_2668264_22 WHERE incumbent = \"Andrew R. Govan\""
} |
### INSTRUCTION
What film did ian mackinnon direct that was in the short film 2007 prix uip category?
### INPUT
CREATE TABLE table_name_55 (film VARCHAR, category VARCHAR, director_s_ VARCHAR)
### OUTPUT
SELECT film FROM table_name_55 WHERE category = "short film 2007 prix uip" AND director_s_ = "ian mackinnon" | {
"input": "CREATE TABLE table_name_55 (film VARCHAR, category VARCHAR, director_s_ VARCHAR)",
"instruction": "What film did ian mackinnon direct that was in the short film 2007 prix uip category?",
"output": "SELECT film FROM table_name_55 WHERE category = \"short film 2007 prix uip\" AND director_s_ = \"ian mackinnon\""
} |
### INSTRUCTION
What is every trigram when direction is Northwest?
### INPUT
CREATE TABLE table_23406517_2 (trigram VARCHAR, direction VARCHAR)
### OUTPUT
SELECT trigram FROM table_23406517_2 WHERE direction = "Northwest" | {
"input": "CREATE TABLE table_23406517_2 (trigram VARCHAR, direction VARCHAR)",
"instruction": "What is every trigram when direction is Northwest?",
"output": "SELECT trigram FROM table_23406517_2 WHERE direction = \"Northwest\""
} |
### INSTRUCTION
What is the Competition when the Club was costa rica u-20?
### INPUT
CREATE TABLE table_name_94 (competition VARCHAR, club VARCHAR)
### OUTPUT
SELECT competition FROM table_name_94 WHERE club = "costa rica u-20" | {
"input": "CREATE TABLE table_name_94 (competition VARCHAR, club VARCHAR)",
"instruction": "What is the Competition when the Club was costa rica u-20?",
"output": "SELECT competition FROM table_name_94 WHERE club = \"costa rica u-20\""
} |
### INSTRUCTION
What is the final position/round of the UEFA cup?
### INPUT
CREATE TABLE table_name_88 (final_position___round VARCHAR, competition VARCHAR)
### OUTPUT
SELECT final_position___round FROM table_name_88 WHERE competition = "uefa cup" | {
"input": "CREATE TABLE table_name_88 (final_position___round VARCHAR, competition VARCHAR)",
"instruction": "What is the final position/round of the UEFA cup?",
"output": "SELECT final_position___round FROM table_name_88 WHERE competition = \"uefa cup\""
} |
### INSTRUCTION
What are the sale details and dates of transactions with amount smaller than 3000?
### INPUT
CREATE TABLE SALES (sales_details VARCHAR, sales_transaction_id VARCHAR); CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, transaction_id VARCHAR, amount_of_transaction INTEGER)
### OUTPUT
SELECT T1.sales_details, T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000 | {
"input": "CREATE TABLE SALES (sales_details VARCHAR, sales_transaction_id VARCHAR); CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, transaction_id VARCHAR, amount_of_transaction INTEGER)",
"instruction": "What are the sale details and dates of transactions with amount smaller than 3000?",
"output": "SELECT T1.sales_details, T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000"
} |
### INSTRUCTION
What is the game named derartu tulu category:articles with hcards?
### INPUT
CREATE TABLE table_name_15 (games VARCHAR, name VARCHAR)
### OUTPUT
SELECT games FROM table_name_15 WHERE name = "derartu tulu category:articles with hcards" | {
"input": "CREATE TABLE table_name_15 (games VARCHAR, name VARCHAR)",
"instruction": "What is the game named derartu tulu category:articles with hcards?",
"output": "SELECT games FROM table_name_15 WHERE name = \"derartu tulu category:articles with hcards\""
} |
### INSTRUCTION
Tell me the score on 1978-12-16
### INPUT
CREATE TABLE table_name_91 (score VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_91 WHERE date = "1978-12-16" | {
"input": "CREATE TABLE table_name_91 (score VARCHAR, date VARCHAR)",
"instruction": "Tell me the score on 1978-12-16",
"output": "SELECT score FROM table_name_91 WHERE date = \"1978-12-16\""
} |
### INSTRUCTION
What is the average administrative panel of the composition nominated by Taoiseach 0 times with a total less than 4?
### INPUT
CREATE TABLE table_name_36 (administrative_panel INTEGER, nominated_by_the_taoiseach VARCHAR, total VARCHAR)
### OUTPUT
SELECT AVG(administrative_panel) FROM table_name_36 WHERE nominated_by_the_taoiseach = 0 AND total < 4 | {
"input": "CREATE TABLE table_name_36 (administrative_panel INTEGER, nominated_by_the_taoiseach VARCHAR, total VARCHAR)",
"instruction": "What is the average administrative panel of the composition nominated by Taoiseach 0 times with a total less than 4?",
"output": "SELECT AVG(administrative_panel) FROM table_name_36 WHERE nominated_by_the_taoiseach = 0 AND total < 4"
} |
### INSTRUCTION
How many times was the total more than 1, the nation was east germany and silver was more than 1?
### INPUT
CREATE TABLE table_name_25 (bronze VARCHAR, silver VARCHAR, total VARCHAR, nation VARCHAR)
### OUTPUT
SELECT COUNT(bronze) FROM table_name_25 WHERE total > 1 AND nation = "east germany" AND silver > 1 | {
"input": "CREATE TABLE table_name_25 (bronze VARCHAR, silver VARCHAR, total VARCHAR, nation VARCHAR)",
"instruction": "How many times was the total more than 1, the nation was east germany and silver was more than 1?",
"output": "SELECT COUNT(bronze) FROM table_name_25 WHERE total > 1 AND nation = \"east germany\" AND silver > 1"
} |
### INSTRUCTION
How many laps did antônio pizzonia do?
### INPUT
CREATE TABLE table_name_32 (laps VARCHAR, driver VARCHAR)
### OUTPUT
SELECT COUNT(laps) FROM table_name_32 WHERE driver = "antônio pizzonia" | {
"input": "CREATE TABLE table_name_32 (laps VARCHAR, driver VARCHAR)",
"instruction": "How many laps did antônio pizzonia do?",
"output": "SELECT COUNT(laps) FROM table_name_32 WHERE driver = \"antônio pizzonia\""
} |
### INSTRUCTION
How much Played has an Against larger than 11, and a Team of botafogo, and a Position smaller than 2?
### INPUT
CREATE TABLE table_name_57 (played VARCHAR, position VARCHAR, against VARCHAR, team VARCHAR)
### OUTPUT
SELECT COUNT(played) FROM table_name_57 WHERE against > 11 AND team = "botafogo" AND position < 2 | {
"input": "CREATE TABLE table_name_57 (played VARCHAR, position VARCHAR, against VARCHAR, team VARCHAR)",
"instruction": "How much Played has an Against larger than 11, and a Team of botafogo, and a Position smaller than 2?",
"output": "SELECT COUNT(played) FROM table_name_57 WHERE against > 11 AND team = \"botafogo\" AND position < 2"
} |
### INSTRUCTION
Tell me the named after for diameter less than 19.2 and latitude more than -37.5 with longitude less than 67.3
### INPUT
CREATE TABLE table_name_97 (named VARCHAR, longitude VARCHAR, diameter__km_ VARCHAR, latitude VARCHAR)
### OUTPUT
SELECT named AS after FROM table_name_97 WHERE diameter__km_ < 19.2 AND latitude > -37.5 AND longitude < 67.3 | {
"input": "CREATE TABLE table_name_97 (named VARCHAR, longitude VARCHAR, diameter__km_ VARCHAR, latitude VARCHAR)",
"instruction": "Tell me the named after for diameter less than 19.2 and latitude more than -37.5 with longitude less than 67.3",
"output": "SELECT named AS after FROM table_name_97 WHERE diameter__km_ < 19.2 AND latitude > -37.5 AND longitude < 67.3"
} |
### INSTRUCTION
What is the smallest number of tries when Matt Diskin is the player and there are more than 16 points?
### INPUT
CREATE TABLE table_name_84 (tries INTEGER, player VARCHAR, points VARCHAR)
### OUTPUT
SELECT MIN(tries) FROM table_name_84 WHERE player = "matt diskin" AND points > 16 | {
"input": "CREATE TABLE table_name_84 (tries INTEGER, player VARCHAR, points VARCHAR)",
"instruction": "What is the smallest number of tries when Matt Diskin is the player and there are more than 16 points?",
"output": "SELECT MIN(tries) FROM table_name_84 WHERE player = \"matt diskin\" AND points > 16"
} |
### INSTRUCTION
Name the total number of viewers for audience share in timeslot for 10.2%
### INPUT
CREATE TABLE table_19834691_4 (viewers__millions_ VARCHAR, audience_share_in_timeslot VARCHAR)
### OUTPUT
SELECT COUNT(viewers__millions_) FROM table_19834691_4 WHERE audience_share_in_timeslot = "10.2%" | {
"input": "CREATE TABLE table_19834691_4 (viewers__millions_ VARCHAR, audience_share_in_timeslot VARCHAR)",
"instruction": "Name the total number of viewers for audience share in timeslot for 10.2%",
"output": "SELECT COUNT(viewers__millions_) FROM table_19834691_4 WHERE audience_share_in_timeslot = \"10.2%\""
} |
### INSTRUCTION
The match that went 1 round, and had a method of submission (rear-naked choke) had what record?
### INPUT
CREATE TABLE table_name_43 (record VARCHAR, round VARCHAR, method VARCHAR)
### OUTPUT
SELECT record FROM table_name_43 WHERE round = 1 AND method = "submission (rear-naked choke)" | {
"input": "CREATE TABLE table_name_43 (record VARCHAR, round VARCHAR, method VARCHAR)",
"instruction": "The match that went 1 round, and had a method of submission (rear-naked choke) had what record?",
"output": "SELECT record FROM table_name_43 WHERE round = 1 AND method = \"submission (rear-naked choke)\""
} |
### INSTRUCTION
What is the total number of total viewers with a share of 18.8% and a weekly ranking under 16?
### INPUT
CREATE TABLE table_name_84 (total_viewers VARCHAR, share VARCHAR, bbc_one_weekly_ranking VARCHAR)
### OUTPUT
SELECT COUNT(total_viewers) FROM table_name_84 WHERE share = "18.8%" AND bbc_one_weekly_ranking < 16 | {
"input": "CREATE TABLE table_name_84 (total_viewers VARCHAR, share VARCHAR, bbc_one_weekly_ranking VARCHAR)",
"instruction": "What is the total number of total viewers with a share of 18.8% and a weekly ranking under 16?",
"output": "SELECT COUNT(total_viewers) FROM table_name_84 WHERE share = \"18.8%\" AND bbc_one_weekly_ranking < 16"
} |
### INSTRUCTION
How many losses altogether were had by teams that won 12 times, had 40-4 points, and more than 57 goals?
### INPUT
CREATE TABLE table_name_11 (losses INTEGER, goals_for VARCHAR, wins VARCHAR, points VARCHAR)
### OUTPUT
SELECT SUM(losses) FROM table_name_11 WHERE wins = 12 AND points = "40-4" AND goals_for > 57 | {
"input": "CREATE TABLE table_name_11 (losses INTEGER, goals_for VARCHAR, wins VARCHAR, points VARCHAR)",
"instruction": "How many losses altogether were had by teams that won 12 times, had 40-4 points, and more than 57 goals?",
"output": "SELECT SUM(losses) FROM table_name_11 WHERE wins = 12 AND points = \"40-4\" AND goals_for > 57"
} |
### INSTRUCTION
What season has an episode written by john o'bryan and directed by ethan spaulding?
### INPUT
CREATE TABLE table_15185133_1 (no_in_season VARCHAR, written_by VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT no_in_season FROM table_15185133_1 WHERE written_by = "John O'Bryan" AND directed_by = "Ethan Spaulding" | {
"input": "CREATE TABLE table_15185133_1 (no_in_season VARCHAR, written_by VARCHAR, directed_by VARCHAR)",
"instruction": "What season has an episode written by john o'bryan and directed by ethan spaulding?",
"output": "SELECT no_in_season FROM table_15185133_1 WHERE written_by = \"John O'Bryan\" AND directed_by = \"Ethan Spaulding\""
} |
### INSTRUCTION
What is the score of the final in $10,000 – tarakan , indonesia f2?
### INPUT
CREATE TABLE table_name_97 (score_in_final VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT score_in_final FROM table_name_97 WHERE tournament = "$10,000 – tarakan , indonesia f2" | {
"input": "CREATE TABLE table_name_97 (score_in_final VARCHAR, tournament VARCHAR)",
"instruction": "What is the score of the final in $10,000 – tarakan , indonesia f2?",
"output": "SELECT score_in_final FROM table_name_97 WHERE tournament = \"$10,000 – tarakan , indonesia f2\""
} |
### INSTRUCTION
Tell me the lowest interview for oklahoma and swimsuit less than 8.8
### INPUT
CREATE TABLE table_name_46 (interview INTEGER, state VARCHAR, swimsuit VARCHAR)
### OUTPUT
SELECT MIN(interview) FROM table_name_46 WHERE state = "oklahoma" AND swimsuit < 8.8 | {
"input": "CREATE TABLE table_name_46 (interview INTEGER, state VARCHAR, swimsuit VARCHAR)",
"instruction": "Tell me the lowest interview for oklahoma and swimsuit less than 8.8",
"output": "SELECT MIN(interview) FROM table_name_46 WHERE state = \"oklahoma\" AND swimsuit < 8.8"
} |
### INSTRUCTION
When was chuck morris, back, drafted?
### INPUT
CREATE TABLE table_name_51 (pick INTEGER, position VARCHAR, player VARCHAR)
### OUTPUT
SELECT MIN(pick) FROM table_name_51 WHERE position = "back" AND player = "chuck morris" | {
"input": "CREATE TABLE table_name_51 (pick INTEGER, position VARCHAR, player VARCHAR)",
"instruction": "When was chuck morris, back, drafted?",
"output": "SELECT MIN(pick) FROM table_name_51 WHERE position = \"back\" AND player = \"chuck morris\""
} |
### INSTRUCTION
Who was the away team at Brunswick Street Oval?
### INPUT
CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR)
### OUTPUT
SELECT away_team AS score FROM table_name_89 WHERE venue = "brunswick street oval" | {
"input": "CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR)",
"instruction": "Who was the away team at Brunswick Street Oval?",
"output": "SELECT away_team AS score FROM table_name_89 WHERE venue = \"brunswick street oval\""
} |
### INSTRUCTION
Which Death date has a Place of death or residence of united states, and an Age (as of 1 February 2014) of 111 years, 61 days?
### INPUT
CREATE TABLE table_name_49 (death_date VARCHAR, place_of_death_or_residence VARCHAR, age__as_of_1_february_2014_ VARCHAR)
### OUTPUT
SELECT death_date FROM table_name_49 WHERE place_of_death_or_residence = "united states" AND age__as_of_1_february_2014_ = "111 years, 61 days" | {
"input": "CREATE TABLE table_name_49 (death_date VARCHAR, place_of_death_or_residence VARCHAR, age__as_of_1_february_2014_ VARCHAR)",
"instruction": "Which Death date has a Place of death or residence of united states, and an Age (as of 1 February 2014) of 111 years, 61 days?",
"output": "SELECT death_date FROM table_name_49 WHERE place_of_death_or_residence = \"united states\" AND age__as_of_1_february_2014_ = \"111 years, 61 days\""
} |
### INSTRUCTION
When was the film released that a less than 5038 production number and was of the character Bosko?
### INPUT
CREATE TABLE table_name_21 (release_date VARCHAR, production_num VARCHAR, characters VARCHAR)
### OUTPUT
SELECT release_date FROM table_name_21 WHERE production_num < 5038 AND characters = "bosko" | {
"input": "CREATE TABLE table_name_21 (release_date VARCHAR, production_num VARCHAR, characters VARCHAR)",
"instruction": "When was the film released that a less than 5038 production number and was of the character Bosko?",
"output": "SELECT release_date FROM table_name_21 WHERE production_num < 5038 AND characters = \"bosko\""
} |
### INSTRUCTION
What is the lowest rank of Deutsche Telekom with a market value over 209,628?
### INPUT
CREATE TABLE table_name_85 (rank INTEGER, name VARCHAR, market_value___usd_million_ VARCHAR)
### OUTPUT
SELECT MIN(rank) FROM table_name_85 WHERE name = "deutsche telekom" AND market_value___usd_million_ > 209 OFFSET 628 | {
"input": "CREATE TABLE table_name_85 (rank INTEGER, name VARCHAR, market_value___usd_million_ VARCHAR)",
"instruction": "What is the lowest rank of Deutsche Telekom with a market value over 209,628?",
"output": "SELECT MIN(rank) FROM table_name_85 WHERE name = \"deutsche telekom\" AND market_value___usd_million_ > 209 OFFSET 628"
} |
### INSTRUCTION
How many votes did Jeannemarie Devolites Davis get in 1995-Special?
### INPUT
CREATE TABLE table_name_90 (votes VARCHAR, opponent VARCHAR, year VARCHAR)
### OUTPUT
SELECT votes FROM table_name_90 WHERE opponent = "jeannemarie devolites davis" AND year = "1995-special" | {
"input": "CREATE TABLE table_name_90 (votes VARCHAR, opponent VARCHAR, year VARCHAR)",
"instruction": "How many votes did Jeannemarie Devolites Davis get in 1995-Special?",
"output": "SELECT votes FROM table_name_90 WHERE opponent = \"jeannemarie devolites davis\" AND year = \"1995-special\""
} |
### INSTRUCTION
What is the score on december 10?
### INPUT
CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_98 WHERE date = "december 10" | {
"input": "CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR)",
"instruction": "What is the score on december 10?",
"output": "SELECT score FROM table_name_98 WHERE date = \"december 10\""
} |
### INSTRUCTION
What are the names of representatives in descending order of votes?
### INPUT
CREATE TABLE representative (Name VARCHAR, Representative_ID VARCHAR); CREATE TABLE election (Representative_ID VARCHAR)
### OUTPUT
SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC | {
"input": "CREATE TABLE representative (Name VARCHAR, Representative_ID VARCHAR); CREATE TABLE election (Representative_ID VARCHAR)",
"instruction": "What are the names of representatives in descending order of votes?",
"output": "SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC"
} |
### INSTRUCTION
What is the grid with 71 laps and the driver, Allan McNish.
### INPUT
CREATE TABLE table_name_55 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
### OUTPUT
SELECT grid FROM table_name_55 WHERE laps = "71" AND driver = "allan mcnish" | {
"input": "CREATE TABLE table_name_55 (grid VARCHAR, laps VARCHAR, driver VARCHAR)",
"instruction": "What is the grid with 71 laps and the driver, Allan McNish.",
"output": "SELECT grid FROM table_name_55 WHERE laps = \"71\" AND driver = \"allan mcnish\""
} |
### INSTRUCTION
Who did Bruno Soares and a partner face in the finals on a clay surface on August 1, 2010?
### INPUT
CREATE TABLE table_name_37 (opponents_in_the_final VARCHAR, date VARCHAR, partnering VARCHAR, surface VARCHAR)
### OUTPUT
SELECT opponents_in_the_final FROM table_name_37 WHERE partnering = "bruno soares" AND surface = "clay" AND date = "august 1, 2010" | {
"input": "CREATE TABLE table_name_37 (opponents_in_the_final VARCHAR, date VARCHAR, partnering VARCHAR, surface VARCHAR)",
"instruction": "Who did Bruno Soares and a partner face in the finals on a clay surface on August 1, 2010?",
"output": "SELECT opponents_in_the_final FROM table_name_37 WHERE partnering = \"bruno soares\" AND surface = \"clay\" AND date = \"august 1, 2010\""
} |
### INSTRUCTION
Find the number of employees hired in each shop; show the shop name as well.
### INPUT
CREATE TABLE shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (shop_id VARCHAR)
### OUTPUT
SELECT COUNT(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name | {
"input": "CREATE TABLE shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (shop_id VARCHAR)",
"instruction": "Find the number of employees hired in each shop; show the shop name as well.",
"output": "SELECT COUNT(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name"
} |
### INSTRUCTION
Tell me the year built for number built of 10
### INPUT
CREATE TABLE table_name_14 (year_built__converted VARCHAR, _ VARCHAR, no_built__converted VARCHAR)
### OUTPUT
SELECT year_built__converted * _ FROM table_name_14 WHERE no_built__converted * _ = "10" | {
"input": "CREATE TABLE table_name_14 (year_built__converted VARCHAR, _ VARCHAR, no_built__converted VARCHAR)",
"instruction": "Tell me the year built for number built of 10",
"output": "SELECT year_built__converted * _ FROM table_name_14 WHERE no_built__converted * _ = \"10\""
} |
### INSTRUCTION
Which rd. occurred on 22 October?
### INPUT
CREATE TABLE table_1137718_2 (rd INTEGER, date VARCHAR)
### OUTPUT
SELECT MIN(rd) FROM table_1137718_2 WHERE date = "22 October" | {
"input": "CREATE TABLE table_1137718_2 (rd INTEGER, date VARCHAR)",
"instruction": "Which rd. occurred on 22 October?",
"output": "SELECT MIN(rd) FROM table_1137718_2 WHERE date = \"22 October\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.