text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What is the highest draw number when there are more than 31 points, a rank greater than 6, and the English translation is listen to me?
### INPUT
CREATE TABLE table_name_83 (draw INTEGER, english_translation VARCHAR, points VARCHAR, place VARCHAR)
### OUTPUT
SELECT MAX(draw) FROM table_name_83 WHERE points > 31 AND place > 6 AND english_translation = "listen to me" | {
"input": "CREATE TABLE table_name_83 (draw INTEGER, english_translation VARCHAR, points VARCHAR, place VARCHAR)",
"instruction": "What is the highest draw number when there are more than 31 points, a rank greater than 6, and the English translation is listen to me?",
"output": "SELECT MAX(draw) FROM table_name_83 WHERE points > 31 AND place > 6 AND english_translation = \"listen to me\""
} |
### INSTRUCTION
List the file size and format for all songs that have resolution lower than 800.
### INPUT
CREATE TABLE song (f_id VARCHAR, resolution INTEGER); CREATE TABLE files (file_size VARCHAR, formats VARCHAR, f_id VARCHAR)
### OUTPUT
SELECT DISTINCT T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800 | {
"input": "CREATE TABLE song (f_id VARCHAR, resolution INTEGER); CREATE TABLE files (file_size VARCHAR, formats VARCHAR, f_id VARCHAR)",
"instruction": "List the file size and format for all songs that have resolution lower than 800.",
"output": "SELECT DISTINCT T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800"
} |
### INSTRUCTION
How many teams were listed as runner up in 2005 and there the first semi finalist was Western Carolina?
### INPUT
CREATE TABLE table_11214772_2 (runner_up VARCHAR, semi_finalist__number1 VARCHAR, year VARCHAR)
### OUTPUT
SELECT COUNT(runner_up) FROM table_11214772_2 WHERE semi_finalist__number1 = "Western Carolina" AND year = 2005 | {
"input": "CREATE TABLE table_11214772_2 (runner_up VARCHAR, semi_finalist__number1 VARCHAR, year VARCHAR)",
"instruction": "How many teams were listed as runner up in 2005 and there the first semi finalist was Western Carolina?",
"output": "SELECT COUNT(runner_up) FROM table_11214772_2 WHERE semi_finalist__number1 = \"Western Carolina\" AND year = 2005"
} |
### INSTRUCTION
Which department has more than 1 head at a time? List the id, name and the number of heads.
### INPUT
CREATE TABLE management (department_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR)
### OUTPUT
SELECT T1.department_id, T1.name, COUNT(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING COUNT(*) > 1 | {
"input": "CREATE TABLE management (department_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR)",
"instruction": "Which department has more than 1 head at a time? List the id, name and the number of heads.",
"output": "SELECT T1.department_id, T1.name, COUNT(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING COUNT(*) > 1"
} |
### INSTRUCTION
What shows as the First US Tour Cast when the Original Broadway Cast was Sarah Bolt?
### INPUT
CREATE TABLE table_name_16 (first_us_tour_cast VARCHAR, original_broadway_cast VARCHAR)
### OUTPUT
SELECT first_us_tour_cast FROM table_name_16 WHERE original_broadway_cast = "sarah bolt" | {
"input": "CREATE TABLE table_name_16 (first_us_tour_cast VARCHAR, original_broadway_cast VARCHAR)",
"instruction": "What shows as the First US Tour Cast when the Original Broadway Cast was Sarah Bolt?",
"output": "SELECT first_us_tour_cast FROM table_name_16 WHERE original_broadway_cast = \"sarah bolt\""
} |
### INSTRUCTION
who is the the player where pick # is 64
### INPUT
CREATE TABLE table_14655985_1 (player VARCHAR, pick__number VARCHAR)
### OUTPUT
SELECT player FROM table_14655985_1 WHERE pick__number = 64 | {
"input": "CREATE TABLE table_14655985_1 (player VARCHAR, pick__number VARCHAR)",
"instruction": "who is the the player where pick # is 64",
"output": "SELECT player FROM table_14655985_1 WHERE pick__number = 64"
} |
### INSTRUCTION
What is the record during the event, UFC 27?
### INPUT
CREATE TABLE table_name_14 (record VARCHAR, event VARCHAR)
### OUTPUT
SELECT record FROM table_name_14 WHERE event = "ufc 27" | {
"input": "CREATE TABLE table_name_14 (record VARCHAR, event VARCHAR)",
"instruction": "What is the record during the event, UFC 27?",
"output": "SELECT record FROM table_name_14 WHERE event = \"ufc 27\""
} |
### INSTRUCTION
What was the highest Tie no when the home team was the Bolton Wanderers, and the date was Middlesbrough?
### INPUT
CREATE TABLE table_name_45 (tie_no INTEGER, home_team VARCHAR, date VARCHAR)
### OUTPUT
SELECT MAX(tie_no) FROM table_name_45 WHERE home_team = "bolton wanderers" AND date = "middlesbrough" | {
"input": "CREATE TABLE table_name_45 (tie_no INTEGER, home_team VARCHAR, date VARCHAR)",
"instruction": "What was the highest Tie no when the home team was the Bolton Wanderers, and the date was Middlesbrough?",
"output": "SELECT MAX(tie_no) FROM table_name_45 WHERE home_team = \"bolton wanderers\" AND date = \"middlesbrough\""
} |
### INSTRUCTION
Find the name and price of the product that has been ordered the greatest number of times.
### INPUT
CREATE TABLE products (product_name VARCHAR, product_price VARCHAR, product_id VARCHAR); CREATE TABLE regular_order_products (product_id VARCHAR)
### OUTPUT
SELECT t1.product_name, t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE products (product_name VARCHAR, product_price VARCHAR, product_id VARCHAR); CREATE TABLE regular_order_products (product_id VARCHAR)",
"instruction": "Find the name and price of the product that has been ordered the greatest number of times.",
"output": "SELECT t1.product_name, t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
How many different values of clubs involved were there when the league entering at this round was allsvenskan?
### INPUT
CREATE TABLE table_29566686_1 (clubs_involved VARCHAR, leagues_entering_at_this_round VARCHAR)
### OUTPUT
SELECT COUNT(clubs_involved) FROM table_29566686_1 WHERE leagues_entering_at_this_round = "Allsvenskan" | {
"input": "CREATE TABLE table_29566686_1 (clubs_involved VARCHAR, leagues_entering_at_this_round VARCHAR)",
"instruction": "How many different values of clubs involved were there when the league entering at this round was allsvenskan?",
"output": "SELECT COUNT(clubs_involved) FROM table_29566686_1 WHERE leagues_entering_at_this_round = \"Allsvenskan\""
} |
### INSTRUCTION
How many laps did Nick Heidfeld drive on grids larger than 4?
### INPUT
CREATE TABLE table_name_77 (laps INTEGER, grid VARCHAR, driver VARCHAR)
### OUTPUT
SELECT SUM(laps) FROM table_name_77 WHERE grid > 4 AND driver = "nick heidfeld" | {
"input": "CREATE TABLE table_name_77 (laps INTEGER, grid VARCHAR, driver VARCHAR)",
"instruction": "How many laps did Nick Heidfeld drive on grids larger than 4?",
"output": "SELECT SUM(laps) FROM table_name_77 WHERE grid > 4 AND driver = \"nick heidfeld\""
} |
### INSTRUCTION
What is the highest planetary mass having an RV (cm/s) of 65 and a Period (days) less than 21?
### INPUT
CREATE TABLE table_name_5 (planetary_mass___m INTEGER, rv__cm_s_ VARCHAR, period__days_ VARCHAR)
### OUTPUT
SELECT MAX(planetary_mass___m) AS ⊕__ FROM table_name_5 WHERE rv__cm_s_ = 65 AND period__days_ < 21 | {
"input": "CREATE TABLE table_name_5 (planetary_mass___m INTEGER, rv__cm_s_ VARCHAR, period__days_ VARCHAR)",
"instruction": "What is the highest planetary mass having an RV (cm/s) of 65 and a Period (days) less than 21?",
"output": "SELECT MAX(planetary_mass___m) AS ⊕__ FROM table_name_5 WHERE rv__cm_s_ = 65 AND period__days_ < 21"
} |
### INSTRUCTION
Where did the Bruins play Iowa State?
### INPUT
CREATE TABLE table_name_58 (location VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT location FROM table_name_58 WHERE opponent = "iowa state" | {
"input": "CREATE TABLE table_name_58 (location VARCHAR, opponent VARCHAR)",
"instruction": "Where did the Bruins play Iowa State?",
"output": "SELECT location FROM table_name_58 WHERE opponent = \"iowa state\""
} |
### INSTRUCTION
What is the sum of Overall, when Pick is greater than 5, when Round is less than 11, and when Name is "Tom Barrington"?
### INPUT
CREATE TABLE table_name_69 (overall INTEGER, name VARCHAR, pick VARCHAR, round VARCHAR)
### OUTPUT
SELECT SUM(overall) FROM table_name_69 WHERE pick > 5 AND round < 11 AND name = "tom barrington" | {
"input": "CREATE TABLE table_name_69 (overall INTEGER, name VARCHAR, pick VARCHAR, round VARCHAR)",
"instruction": "What is the sum of Overall, when Pick is greater than 5, when Round is less than 11, and when Name is \"Tom Barrington\"?",
"output": "SELECT SUM(overall) FROM table_name_69 WHERE pick > 5 AND round < 11 AND name = \"tom barrington\""
} |
### INSTRUCTION
What is the document id and name with greatest number of paragraphs?
### INPUT
CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR)
### OUTPUT
SELECT T1.document_id, T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR)",
"instruction": "What is the document id and name with greatest number of paragraphs?",
"output": "SELECT T1.document_id, T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What was France's highest score when the venue was Bokskogens?
### INPUT
CREATE TABLE table_name_1 (score INTEGER, country VARCHAR, venue VARCHAR)
### OUTPUT
SELECT MAX(score) FROM table_name_1 WHERE country = "france" AND venue = "bokskogens" | {
"input": "CREATE TABLE table_name_1 (score INTEGER, country VARCHAR, venue VARCHAR)",
"instruction": "What was France's highest score when the venue was Bokskogens?",
"output": "SELECT MAX(score) FROM table_name_1 WHERE country = \"france\" AND venue = \"bokskogens\""
} |
### INSTRUCTION
What is the high point toal for martine foubert placing below 2?
### INPUT
CREATE TABLE table_name_32 (points INTEGER, artist VARCHAR, place VARCHAR)
### OUTPUT
SELECT MAX(points) FROM table_name_32 WHERE artist = "martine foubert" AND place > 2 | {
"input": "CREATE TABLE table_name_32 (points INTEGER, artist VARCHAR, place VARCHAR)",
"instruction": "What is the high point toal for martine foubert placing below 2?",
"output": "SELECT MAX(points) FROM table_name_32 WHERE artist = \"martine foubert\" AND place > 2"
} |
### INSTRUCTION
How many solar eclipse during august 21-22 and January 15-16 is 141?
### INPUT
CREATE TABLE table_25287007_2 (august_21_22 VARCHAR, january_15_16 VARCHAR)
### OUTPUT
SELECT august_21_22 FROM table_25287007_2 WHERE january_15_16 = "141" | {
"input": "CREATE TABLE table_25287007_2 (august_21_22 VARCHAR, january_15_16 VARCHAR)",
"instruction": "How many solar eclipse during august 21-22 and January 15-16 is 141?",
"output": "SELECT august_21_22 FROM table_25287007_2 WHERE january_15_16 = \"141\""
} |
### INSTRUCTION
What is the total reg gp of Ilya Krikunov, who has a round of 7 and a pick number larger than 223?
### INPUT
CREATE TABLE table_name_44 (reg_gp VARCHAR, pick__number VARCHAR, rd__number VARCHAR, player VARCHAR)
### OUTPUT
SELECT COUNT(reg_gp) FROM table_name_44 WHERE rd__number = 7 AND player = "ilya krikunov" AND pick__number > 223 | {
"input": "CREATE TABLE table_name_44 (reg_gp VARCHAR, pick__number VARCHAR, rd__number VARCHAR, player VARCHAR)",
"instruction": "What is the total reg gp of Ilya Krikunov, who has a round of 7 and a pick number larger than 223?",
"output": "SELECT COUNT(reg_gp) FROM table_name_44 WHERE rd__number = 7 AND player = \"ilya krikunov\" AND pick__number > 223"
} |
### INSTRUCTION
What is the first name, last name, and phone of the customer with card 4560596484842.
### INPUT
CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Customers_cards (customer_id VARCHAR, card_number VARCHAR)
### OUTPUT
SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = "4560596484842" | {
"input": "CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Customers_cards (customer_id VARCHAR, card_number VARCHAR)",
"instruction": "What is the first name, last name, and phone of the customer with card 4560596484842.",
"output": "SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = \"4560596484842\""
} |
### INSTRUCTION
How many different scores are there for the game with 10-3-4 record?
### INPUT
CREATE TABLE table_23308178_5 (score VARCHAR, record VARCHAR)
### OUTPUT
SELECT COUNT(score) FROM table_23308178_5 WHERE record = "10-3-4" | {
"input": "CREATE TABLE table_23308178_5 (score VARCHAR, record VARCHAR)",
"instruction": "How many different scores are there for the game with 10-3-4 record?",
"output": "SELECT COUNT(score) FROM table_23308178_5 WHERE record = \"10-3-4\""
} |
### INSTRUCTION
List the locations of schools that do not have any player.
### INPUT
CREATE TABLE school (LOCATION VARCHAR, School_ID VARCHAR); CREATE TABLE Player (LOCATION VARCHAR, School_ID VARCHAR)
### OUTPUT
SELECT LOCATION FROM school WHERE NOT School_ID IN (SELECT School_ID FROM Player) | {
"input": "CREATE TABLE school (LOCATION VARCHAR, School_ID VARCHAR); CREATE TABLE Player (LOCATION VARCHAR, School_ID VARCHAR)",
"instruction": "List the locations of schools that do not have any player.",
"output": "SELECT LOCATION FROM school WHERE NOT School_ID IN (SELECT School_ID FROM Player)"
} |
### INSTRUCTION
How many copies were sold of the game released on october 23, 2008?
### INPUT
CREATE TABLE table_21458142_1 (total_copies_sold VARCHAR, release_date VARCHAR)
### OUTPUT
SELECT total_copies_sold FROM table_21458142_1 WHERE release_date = "October 23, 2008" | {
"input": "CREATE TABLE table_21458142_1 (total_copies_sold VARCHAR, release_date VARCHAR)",
"instruction": "How many copies were sold of the game released on october 23, 2008?",
"output": "SELECT total_copies_sold FROM table_21458142_1 WHERE release_date = \"October 23, 2008\""
} |
### INSTRUCTION
What date has friendly as the type of game, france as an opponent, and paris, france as the city?
### INPUT
CREATE TABLE table_name_92 (date VARCHAR, city VARCHAR, type_of_game VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT date FROM table_name_92 WHERE type_of_game = "friendly" AND opponent = "france" AND city = "paris, france" | {
"input": "CREATE TABLE table_name_92 (date VARCHAR, city VARCHAR, type_of_game VARCHAR, opponent VARCHAR)",
"instruction": "What date has friendly as the type of game, france as an opponent, and paris, france as the city?",
"output": "SELECT date FROM table_name_92 WHERE type_of_game = \"friendly\" AND opponent = \"france\" AND city = \"paris, france\""
} |
### INSTRUCTION
What team has adam barclay as the rider?
### INPUT
CREATE TABLE table_name_79 (team VARCHAR, rider VARCHAR)
### OUTPUT
SELECT team FROM table_name_79 WHERE rider = "adam barclay" | {
"input": "CREATE TABLE table_name_79 (team VARCHAR, rider VARCHAR)",
"instruction": "What team has adam barclay as the rider?",
"output": "SELECT team FROM table_name_79 WHERE rider = \"adam barclay\""
} |
### INSTRUCTION
What is the election year when the # of candidates nominated was 262?
### INPUT
CREATE TABLE table_123462_2 (election VARCHAR, _number_of_candidates_nominated VARCHAR)
### OUTPUT
SELECT COUNT(election) FROM table_123462_2 WHERE _number_of_candidates_nominated = 262 | {
"input": "CREATE TABLE table_123462_2 (election VARCHAR, _number_of_candidates_nominated VARCHAR)",
"instruction": "What is the election year when the # of candidates nominated was 262?",
"output": "SELECT COUNT(election) FROM table_123462_2 WHERE _number_of_candidates_nominated = 262"
} |
### INSTRUCTION
What was the area in Glenella with a population of 522 in 2011?
### INPUT
CREATE TABLE table_name_24 (area__km²_ INTEGER, name VARCHAR, population__2011_ VARCHAR)
### OUTPUT
SELECT AVG(area__km²_) FROM table_name_24 WHERE name = "glenella" AND population__2011_ < 522 | {
"input": "CREATE TABLE table_name_24 (area__km²_ INTEGER, name VARCHAR, population__2011_ VARCHAR)",
"instruction": "What was the area in Glenella with a population of 522 in 2011?",
"output": "SELECT AVG(area__km²_) FROM table_name_24 WHERE name = \"glenella\" AND population__2011_ < 522"
} |
### INSTRUCTION
What was the date of the game in week 14?
### INPUT
CREATE TABLE table_13023925_2 (date VARCHAR, week VARCHAR)
### OUTPUT
SELECT date FROM table_13023925_2 WHERE week = 14 | {
"input": "CREATE TABLE table_13023925_2 (date VARCHAR, week VARCHAR)",
"instruction": "What was the date of the game in week 14?",
"output": "SELECT date FROM table_13023925_2 WHERE week = 14"
} |
### INSTRUCTION
What is the location of the Sea Pines Heritage Classic tournament?
### INPUT
CREATE TABLE table_name_68 (location VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT location FROM table_name_68 WHERE tournament = "sea pines heritage classic" | {
"input": "CREATE TABLE table_name_68 (location VARCHAR, tournament VARCHAR)",
"instruction": "What is the location of the Sea Pines Heritage Classic tournament?",
"output": "SELECT location FROM table_name_68 WHERE tournament = \"sea pines heritage classic\""
} |
### INSTRUCTION
What is the date of the k-league cup, which has less than 28 goals, at the jeonju venue?
### INPUT
CREATE TABLE table_name_93 (date VARCHAR, competition VARCHAR, venue VARCHAR, goals VARCHAR)
### OUTPUT
SELECT date FROM table_name_93 WHERE venue = "jeonju" AND goals < 28 AND competition = "k-league cup" | {
"input": "CREATE TABLE table_name_93 (date VARCHAR, competition VARCHAR, venue VARCHAR, goals VARCHAR)",
"instruction": "What is the date of the k-league cup, which has less than 28 goals, at the jeonju venue?",
"output": "SELECT date FROM table_name_93 WHERE venue = \"jeonju\" AND goals < 28 AND competition = \"k-league cup\""
} |
### INSTRUCTION
What is the lowest against value with less than 2 draws, 10 points, and less than 4 lost?
### INPUT
CREATE TABLE table_name_17 (against INTEGER, lost VARCHAR, drawn VARCHAR, points VARCHAR)
### OUTPUT
SELECT MIN(against) FROM table_name_17 WHERE drawn < 2 AND points = 10 AND lost < 4 | {
"input": "CREATE TABLE table_name_17 (against INTEGER, lost VARCHAR, drawn VARCHAR, points VARCHAR)",
"instruction": "What is the lowest against value with less than 2 draws, 10 points, and less than 4 lost?",
"output": "SELECT MIN(against) FROM table_name_17 WHERE drawn < 2 AND points = 10 AND lost < 4"
} |
### INSTRUCTION
Does the S90i model have bluetooth?
### INPUT
CREATE TABLE table_name_31 (bluetooth VARCHAR, model VARCHAR)
### OUTPUT
SELECT bluetooth FROM table_name_31 WHERE model = "s90i" | {
"input": "CREATE TABLE table_name_31 (bluetooth VARCHAR, model VARCHAR)",
"instruction": "Does the S90i model have bluetooth?",
"output": "SELECT bluetooth FROM table_name_31 WHERE model = \"s90i\""
} |
### INSTRUCTION
What was the sum of attendance for games with a time of 3:23?
### INPUT
CREATE TABLE table_name_53 (attendance INTEGER, time VARCHAR)
### OUTPUT
SELECT SUM(attendance) FROM table_name_53 WHERE time = "3:23" | {
"input": "CREATE TABLE table_name_53 (attendance INTEGER, time VARCHAR)",
"instruction": "What was the sum of attendance for games with a time of 3:23?",
"output": "SELECT SUM(attendance) FROM table_name_53 WHERE time = \"3:23\""
} |
### INSTRUCTION
What is the result after 1993 of the first four rounds?
### INPUT
CREATE TABLE table_name_2 (result VARCHAR, year VARCHAR, round VARCHAR)
### OUTPUT
SELECT result FROM table_name_2 WHERE year > 1993 AND round = "first four" | {
"input": "CREATE TABLE table_name_2 (result VARCHAR, year VARCHAR, round VARCHAR)",
"instruction": "What is the result after 1993 of the first four rounds?",
"output": "SELECT result FROM table_name_2 WHERE year > 1993 AND round = \"first four\""
} |
### INSTRUCTION
Who is the publisher of the book titled daughters of an emerald dusk?
### INPUT
CREATE TABLE table_20193855_2 (publisher VARCHAR, book_title VARCHAR)
### OUTPUT
SELECT publisher FROM table_20193855_2 WHERE book_title = "Daughters of an Emerald Dusk" | {
"input": "CREATE TABLE table_20193855_2 (publisher VARCHAR, book_title VARCHAR)",
"instruction": "Who is the publisher of the book titled daughters of an emerald dusk?",
"output": "SELECT publisher FROM table_20193855_2 WHERE book_title = \"Daughters of an Emerald Dusk\""
} |
### INSTRUCTION
What was the bleeding time during the prolonged partial thromboplastin time in which the prothrombin time is unaffected?
### INPUT
CREATE TABLE table_238124_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR)
### OUTPUT
SELECT bleeding_time FROM table_238124_1 WHERE partial_thromboplastin_time = "Prolonged" AND prothrombin_time = "Unaffected" | {
"input": "CREATE TABLE table_238124_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR)",
"instruction": "What was the bleeding time during the prolonged partial thromboplastin time in which the prothrombin time is unaffected?",
"output": "SELECT bleeding_time FROM table_238124_1 WHERE partial_thromboplastin_time = \"Prolonged\" AND prothrombin_time = \"Unaffected\""
} |
### INSTRUCTION
Which cornerback has the lowest overall and a pick number smaller than 16?
### INPUT
CREATE TABLE table_name_30 (overall INTEGER, position VARCHAR, pick__number VARCHAR)
### OUTPUT
SELECT MIN(overall) FROM table_name_30 WHERE position = "cornerback" AND pick__number < 16 | {
"input": "CREATE TABLE table_name_30 (overall INTEGER, position VARCHAR, pick__number VARCHAR)",
"instruction": "Which cornerback has the lowest overall and a pick number smaller than 16?",
"output": "SELECT MIN(overall) FROM table_name_30 WHERE position = \"cornerback\" AND pick__number < 16"
} |
### INSTRUCTION
When was the Result of 3–2, with a Score of 6–0, 6–4?
### INPUT
CREATE TABLE table_name_72 (date VARCHAR, result VARCHAR, score VARCHAR)
### OUTPUT
SELECT date FROM table_name_72 WHERE result = "3–2" AND score = "6–0, 6–4" | {
"input": "CREATE TABLE table_name_72 (date VARCHAR, result VARCHAR, score VARCHAR)",
"instruction": "When was the Result of 3–2, with a Score of 6–0, 6–4?",
"output": "SELECT date FROM table_name_72 WHERE result = \"3–2\" AND score = \"6–0, 6–4\""
} |
### INSTRUCTION
During the first phase portion of phase and having 16 clubs involved; what would you find for the winners from previous round?
### INPUT
CREATE TABLE table_1281200_1 (winners_from_previous_round VARCHAR, phase VARCHAR, clubs_involved VARCHAR)
### OUTPUT
SELECT winners_from_previous_round FROM table_1281200_1 WHERE phase = "First phase" AND clubs_involved = 16 | {
"input": "CREATE TABLE table_1281200_1 (winners_from_previous_round VARCHAR, phase VARCHAR, clubs_involved VARCHAR)",
"instruction": "During the first phase portion of phase and having 16 clubs involved; what would you find for the winners from previous round?",
"output": "SELECT winners_from_previous_round FROM table_1281200_1 WHERE phase = \"First phase\" AND clubs_involved = 16"
} |
### INSTRUCTION
Who directed the episode where u.s. viewers (million) is 12.90?
### INPUT
CREATE TABLE table_10701133_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
### OUTPUT
SELECT directed_by FROM table_10701133_1 WHERE us_viewers__million_ = "12.90" | {
"input": "CREATE TABLE table_10701133_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)",
"instruction": "Who directed the episode where u.s. viewers (million) is 12.90?",
"output": "SELECT directed_by FROM table_10701133_1 WHERE us_viewers__million_ = \"12.90\""
} |
### INSTRUCTION
What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference?
### INPUT
CREATE TABLE table_name_88 (previous_conference VARCHAR, conference_joined VARCHAR, mascot VARCHAR)
### OUTPUT
SELECT previous_conference FROM table_name_88 WHERE conference_joined = "indiana lake shore" AND mascot = "governors" | {
"input": "CREATE TABLE table_name_88 (previous_conference VARCHAR, conference_joined VARCHAR, mascot VARCHAR)",
"instruction": "What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference?",
"output": "SELECT previous_conference FROM table_name_88 WHERE conference_joined = \"indiana lake shore\" AND mascot = \"governors\""
} |
### INSTRUCTION
When seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006?
### INPUT
CREATE TABLE table_name_70 (_percentage_2006 INTEGER, seats_2001 VARCHAR, _percentage_2001 VARCHAR)
### OUTPUT
SELECT AVG(_percentage_2006) FROM table_name_70 WHERE seats_2001 > 15 AND _percentage_2001 > 100 | {
"input": "CREATE TABLE table_name_70 (_percentage_2006 INTEGER, seats_2001 VARCHAR, _percentage_2001 VARCHAR)",
"instruction": "When seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006?",
"output": "SELECT AVG(_percentage_2006) FROM table_name_70 WHERE seats_2001 > 15 AND _percentage_2001 > 100"
} |
### INSTRUCTION
How many rounds is the fight against Michael Chavez?
### INPUT
CREATE TABLE table_name_46 (round INTEGER, opponent VARCHAR)
### OUTPUT
SELECT AVG(round) FROM table_name_46 WHERE opponent = "michael chavez" | {
"input": "CREATE TABLE table_name_46 (round INTEGER, opponent VARCHAR)",
"instruction": "How many rounds is the fight against Michael Chavez?",
"output": "SELECT AVG(round) FROM table_name_46 WHERE opponent = \"michael chavez\""
} |
### INSTRUCTION
What is the highest number of tourism receipts in 2011 US $ per capita with 19.4 % of GDP in 2003 tourism receipts and less than 655 US $ per arrival in 2011 tourism receipts?
### INPUT
CREATE TABLE table_name_99 (tourism_receipts__2011___us INTEGER, tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR, tourism_receipts__2011___us$_per_arrival_ VARCHAR)
### OUTPUT
SELECT MAX(tourism_receipts__2011___us) AS $_per_capita_ FROM table_name_99 WHERE tourism_receipts__2003___as__percentage_of_gdp_ = "19.4" AND tourism_receipts__2011___us$_per_arrival_ < 655 | {
"input": "CREATE TABLE table_name_99 (tourism_receipts__2011___us INTEGER, tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR, tourism_receipts__2011___us$_per_arrival_ VARCHAR)",
"instruction": "What is the highest number of tourism receipts in 2011 US $ per capita with 19.4 % of GDP in 2003 tourism receipts and less than 655 US $ per arrival in 2011 tourism receipts?",
"output": "SELECT MAX(tourism_receipts__2011___us) AS $_per_capita_ FROM table_name_99 WHERE tourism_receipts__2003___as__percentage_of_gdp_ = \"19.4\" AND tourism_receipts__2011___us$_per_arrival_ < 655"
} |
### INSTRUCTION
What event had Xu Zhilin competing?
### INPUT
CREATE TABLE table_name_21 (event VARCHAR, name VARCHAR)
### OUTPUT
SELECT event FROM table_name_21 WHERE name = "xu zhilin" | {
"input": "CREATE TABLE table_name_21 (event VARCHAR, name VARCHAR)",
"instruction": "What event had Xu Zhilin competing?",
"output": "SELECT event FROM table_name_21 WHERE name = \"xu zhilin\""
} |
### INSTRUCTION
What couple had a vote percentage of 7.691%
### INPUT
CREATE TABLE table_19744915_15 (couple VARCHAR, vote_percentage VARCHAR)
### OUTPUT
SELECT couple FROM table_19744915_15 WHERE vote_percentage = "7.691%" | {
"input": "CREATE TABLE table_19744915_15 (couple VARCHAR, vote_percentage VARCHAR)",
"instruction": "What couple had a vote percentage of 7.691%",
"output": "SELECT couple FROM table_19744915_15 WHERE vote_percentage = \"7.691%\""
} |
### INSTRUCTION
what tornament had the scores 6–7, 6–2, 6–4?
### INPUT
CREATE TABLE table_name_22 (tournament VARCHAR, score_in_the_final VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_22 WHERE score_in_the_final = "6–7, 6–2, 6–4" | {
"input": "CREATE TABLE table_name_22 (tournament VARCHAR, score_in_the_final VARCHAR)",
"instruction": "what tornament had the scores 6–7, 6–2, 6–4?",
"output": "SELECT tournament FROM table_name_22 WHERE score_in_the_final = \"6–7, 6–2, 6–4\""
} |
### INSTRUCTION
What is the lowest 06-10 totals with a pubs 2010 of 68 and a 07-11 totals larger than 305?
### INPUT
CREATE TABLE table_name_15 (totals_06_10 INTEGER, pubs_2010 VARCHAR, totals_07_11 VARCHAR)
### OUTPUT
SELECT MIN(totals_06_10) FROM table_name_15 WHERE pubs_2010 = 68 AND totals_07_11 > 305 | {
"input": "CREATE TABLE table_name_15 (totals_06_10 INTEGER, pubs_2010 VARCHAR, totals_07_11 VARCHAR)",
"instruction": "What is the lowest 06-10 totals with a pubs 2010 of 68 and a 07-11 totals larger than 305?",
"output": "SELECT MIN(totals_06_10) FROM table_name_15 WHERE pubs_2010 = 68 AND totals_07_11 > 305"
} |
### INSTRUCTION
What is the lowest Profits (billion $), when Market Value (billion $) is less than 201.3, when Headquarters is United States, and when Company is JPMorgan Chase?
### INPUT
CREATE TABLE table_name_83 (profits__billion_ INTEGER, company VARCHAR, market_value__billion_$_ VARCHAR, headquarters VARCHAR)
### OUTPUT
SELECT MIN(profits__billion_) AS $_ FROM table_name_83 WHERE market_value__billion_$_ < 201.3 AND headquarters = "united states" AND company = "jpmorgan chase" | {
"input": "CREATE TABLE table_name_83 (profits__billion_ INTEGER, company VARCHAR, market_value__billion_$_ VARCHAR, headquarters VARCHAR)",
"instruction": "What is the lowest Profits (billion $), when Market Value (billion $) is less than 201.3, when Headquarters is United States, and when Company is JPMorgan Chase?",
"output": "SELECT MIN(profits__billion_) AS $_ FROM table_name_83 WHERE market_value__billion_$_ < 201.3 AND headquarters = \"united states\" AND company = \"jpmorgan chase\""
} |
### INSTRUCTION
what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0?
### INPUT
CREATE TABLE table_name_21 (tackles VARCHAR, yards VARCHAR, fumr VARCHAR, totaltk VARCHAR)
### OUTPUT
SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0 | {
"input": "CREATE TABLE table_name_21 (tackles VARCHAR, yards VARCHAR, fumr VARCHAR, totaltk VARCHAR)",
"instruction": "what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0?",
"output": "SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0"
} |
### INSTRUCTION
Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka?
### INPUT
CREATE TABLE table_name_83 (location VARCHAR, school VARCHAR, year_joined VARCHAR, previous_conference VARCHAR)
### OUTPUT
SELECT location FROM table_name_83 WHERE year_joined = 1966 AND previous_conference = "noble county" AND school = "wawaka" | {
"input": "CREATE TABLE table_name_83 (location VARCHAR, school VARCHAR, year_joined VARCHAR, previous_conference VARCHAR)",
"instruction": "Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka?",
"output": "SELECT location FROM table_name_83 WHERE year_joined = 1966 AND previous_conference = \"noble county\" AND school = \"wawaka\""
} |
### INSTRUCTION
What is the socket with an order part number of amm300dbo22gq and a September 10, 2009 release date?
### INPUT
CREATE TABLE table_name_34 (socket VARCHAR, release_date VARCHAR, order_part_number VARCHAR)
### OUTPUT
SELECT socket FROM table_name_34 WHERE release_date = "september 10, 2009" AND order_part_number = "amm300dbo22gq" | {
"input": "CREATE TABLE table_name_34 (socket VARCHAR, release_date VARCHAR, order_part_number VARCHAR)",
"instruction": "What is the socket with an order part number of amm300dbo22gq and a September 10, 2009 release date?",
"output": "SELECT socket FROM table_name_34 WHERE release_date = \"september 10, 2009\" AND order_part_number = \"amm300dbo22gq\""
} |
### INSTRUCTION
Which Total has a Name of alex mcleish category:articles with hcards, and a League smaller than 494?
### INPUT
CREATE TABLE table_name_25 (total INTEGER, name VARCHAR, league VARCHAR)
### OUTPUT
SELECT AVG(total) FROM table_name_25 WHERE name = "alex mcleish category:articles with hcards" AND league < 494 | {
"input": "CREATE TABLE table_name_25 (total INTEGER, name VARCHAR, league VARCHAR)",
"instruction": "Which Total has a Name of alex mcleish category:articles with hcards, and a League smaller than 494?",
"output": "SELECT AVG(total) FROM table_name_25 WHERE name = \"alex mcleish category:articles with hcards\" AND league < 494"
} |
### INSTRUCTION
What are first and last names of players participating in all star game in 1998?
### INPUT
CREATE TABLE all_star (player_id VARCHAR); CREATE TABLE player (player_id VARCHAR)
### OUTPUT
SELECT name_first, name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998 | {
"input": "CREATE TABLE all_star (player_id VARCHAR); CREATE TABLE player (player_id VARCHAR)",
"instruction": "What are first and last names of players participating in all star game in 1998?",
"output": "SELECT name_first, name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998"
} |
### INSTRUCTION
On what date did the person leave office who died on October 23, 1887 and who served 2 years?
### INPUT
CREATE TABLE table_name_58 (left_office VARCHAR, years_in_office VARCHAR, death VARCHAR)
### OUTPUT
SELECT left_office FROM table_name_58 WHERE years_in_office = "2" AND death = "october 23, 1887" | {
"input": "CREATE TABLE table_name_58 (left_office VARCHAR, years_in_office VARCHAR, death VARCHAR)",
"instruction": "On what date did the person leave office who died on October 23, 1887 and who served 2 years?",
"output": "SELECT left_office FROM table_name_58 WHERE years_in_office = \"2\" AND death = \"october 23, 1887\""
} |
### INSTRUCTION
Which Home has an Away of hispano?
### INPUT
CREATE TABLE table_name_62 (home VARCHAR, away VARCHAR)
### OUTPUT
SELECT home FROM table_name_62 WHERE away = "hispano" | {
"input": "CREATE TABLE table_name_62 (home VARCHAR, away VARCHAR)",
"instruction": "Which Home has an Away of hispano?",
"output": "SELECT home FROM table_name_62 WHERE away = \"hispano\""
} |
### INSTRUCTION
Name the mountains classification for alexander kristoff
### INPUT
CREATE TABLE table_19115414_4 (mountains_classification VARCHAR, points_classification VARCHAR)
### OUTPUT
SELECT mountains_classification FROM table_19115414_4 WHERE points_classification = "Alexander Kristoff" | {
"input": "CREATE TABLE table_19115414_4 (mountains_classification VARCHAR, points_classification VARCHAR)",
"instruction": "Name the mountains classification for alexander kristoff",
"output": "SELECT mountains_classification FROM table_19115414_4 WHERE points_classification = \"Alexander Kristoff\""
} |
### INSTRUCTION
How many wrestlers are recorded for the chamber that's method of elimination was pinned after being hit by a lead pipe?
### INPUT
CREATE TABLE table_24628683_2 (wrestler VARCHAR, method_of_elimination VARCHAR)
### OUTPUT
SELECT COUNT(wrestler) FROM table_24628683_2 WHERE method_of_elimination = "Pinned after being hit by a lead pipe" | {
"input": "CREATE TABLE table_24628683_2 (wrestler VARCHAR, method_of_elimination VARCHAR)",
"instruction": "How many wrestlers are recorded for the chamber that's method of elimination was pinned after being hit by a lead pipe? ",
"output": "SELECT COUNT(wrestler) FROM table_24628683_2 WHERE method_of_elimination = \"Pinned after being hit by a lead pipe\""
} |
### INSTRUCTION
What season had Kanto Gakuin University as the winner, with an attendance of n/a, and a title of 37th?
### INPUT
CREATE TABLE table_name_62 (season VARCHAR, title VARCHAR, winner VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT season FROM table_name_62 WHERE winner = "kanto gakuin university" AND attendance = "n/a" AND title = "37th" | {
"input": "CREATE TABLE table_name_62 (season VARCHAR, title VARCHAR, winner VARCHAR, attendance VARCHAR)",
"instruction": "What season had Kanto Gakuin University as the winner, with an attendance of n/a, and a title of 37th?",
"output": "SELECT season FROM table_name_62 WHERE winner = \"kanto gakuin university\" AND attendance = \"n/a\" AND title = \"37th\""
} |
### INSTRUCTION
Which country has a delegate who was first elected in 2006?
### INPUT
CREATE TABLE table_14009909_1 (counties_represented VARCHAR, first_elected VARCHAR)
### OUTPUT
SELECT counties_represented FROM table_14009909_1 WHERE first_elected = 2006 | {
"input": "CREATE TABLE table_14009909_1 (counties_represented VARCHAR, first_elected VARCHAR)",
"instruction": "Which country has a delegate who was first elected in 2006?",
"output": "SELECT counties_represented FROM table_14009909_1 WHERE first_elected = 2006"
} |
### INSTRUCTION
What tournament had a runner(s)-up of Scott Hoch & Kenny Perry?
### INPUT
CREATE TABLE table_name_12 (tournament VARCHAR, runner_s__up VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_12 WHERE runner_s__up = "scott hoch & kenny perry" | {
"input": "CREATE TABLE table_name_12 (tournament VARCHAR, runner_s__up VARCHAR)",
"instruction": "What tournament had a runner(s)-up of Scott Hoch & Kenny Perry?",
"output": "SELECT tournament FROM table_name_12 WHERE runner_s__up = \"scott hoch & kenny perry\""
} |
### INSTRUCTION
In what League is Left Wing Yanick Dupre?
### INPUT
CREATE TABLE table_name_94 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR)
### OUTPUT
SELECT college_junior_club_team__league_ FROM table_name_94 WHERE position = "left wing" AND player = "yanick dupre" | {
"input": "CREATE TABLE table_name_94 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR)",
"instruction": "In what League is Left Wing Yanick Dupre?",
"output": "SELECT college_junior_club_team__league_ FROM table_name_94 WHERE position = \"left wing\" AND player = \"yanick dupre\""
} |
### INSTRUCTION
Find the names and phone numbers of customers living in California state.
### INPUT
CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR)
### OUTPUT
SELECT t1.customer_name, t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California' | {
"input": "CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR)",
"instruction": "Find the names and phone numbers of customers living in California state.",
"output": "SELECT t1.customer_name, t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California'"
} |
### INSTRUCTION
Name the average round where Dave Stachelski was picked smaller than 187.
### INPUT
CREATE TABLE table_name_28 (round INTEGER, overall VARCHAR, player VARCHAR)
### OUTPUT
SELECT AVG(round) FROM table_name_28 WHERE overall < 187 AND player = "dave stachelski" | {
"input": "CREATE TABLE table_name_28 (round INTEGER, overall VARCHAR, player VARCHAR)",
"instruction": "Name the average round where Dave Stachelski was picked smaller than 187.",
"output": "SELECT AVG(round) FROM table_name_28 WHERE overall < 187 AND player = \"dave stachelski\""
} |
### INSTRUCTION
When Mark O'meara was the senior player champion in a year greater than 1998, who was the tradition?
### INPUT
CREATE TABLE table_name_14 (the_tradition VARCHAR, year VARCHAR, senior_players_championship VARCHAR)
### OUTPUT
SELECT the_tradition FROM table_name_14 WHERE year > 1998 AND senior_players_championship = "mark o'meara" | {
"input": "CREATE TABLE table_name_14 (the_tradition VARCHAR, year VARCHAR, senior_players_championship VARCHAR)",
"instruction": "When Mark O'meara was the senior player champion in a year greater than 1998, who was the tradition?",
"output": "SELECT the_tradition FROM table_name_14 WHERE year > 1998 AND senior_players_championship = \"mark o'meara\""
} |
### INSTRUCTION
What is the greatest CCBs with a Payload to GTO of –, and an Upper stage of sec?
### INPUT
CREATE TABLE table_name_13 (ccbs INTEGER, payload_to_gto VARCHAR, upper_stage VARCHAR)
### OUTPUT
SELECT MAX(ccbs) FROM table_name_13 WHERE payload_to_gto = "–" AND upper_stage = "sec" | {
"input": "CREATE TABLE table_name_13 (ccbs INTEGER, payload_to_gto VARCHAR, upper_stage VARCHAR)",
"instruction": "What is the greatest CCBs with a Payload to GTO of –, and an Upper stage of sec?",
"output": "SELECT MAX(ccbs) FROM table_name_13 WHERE payload_to_gto = \"–\" AND upper_stage = \"sec\""
} |
### INSTRUCTION
What tournament is listed as A in 1972 and 2R in 1975?
### INPUT
CREATE TABLE table_name_69 (tournament VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_69 WHERE 1972 = "a" AND 1975 = "2r" | {
"input": "CREATE TABLE table_name_69 (tournament VARCHAR)",
"instruction": "What tournament is listed as A in 1972 and 2R in 1975?",
"output": "SELECT tournament FROM table_name_69 WHERE 1972 = \"a\" AND 1975 = \"2r\""
} |
### INSTRUCTION
In what Week resulting in the bottom 3 was Endre Jansen Partner?
### INPUT
CREATE TABLE table_name_97 (week INTEGER, result VARCHAR, partner VARCHAR)
### OUTPUT
SELECT MAX(week) FROM table_name_97 WHERE result = "bottom 3" AND partner = "endre jansen" | {
"input": "CREATE TABLE table_name_97 (week INTEGER, result VARCHAR, partner VARCHAR)",
"instruction": "In what Week resulting in the bottom 3 was Endre Jansen Partner?",
"output": "SELECT MAX(week) FROM table_name_97 WHERE result = \"bottom 3\" AND partner = \"endre jansen\""
} |
### INSTRUCTION
What is the average year in which Kim was nominated for Thirst as Best Actress at the Baeksang Arts Awards?
### INPUT
CREATE TABLE table_name_92 (year INTEGER, group VARCHAR, award VARCHAR, result VARCHAR, film_series VARCHAR)
### OUTPUT
SELECT AVG(year) FROM table_name_92 WHERE result = "nominated" AND film_series = "thirst" AND award = "best actress" AND group = "baeksang arts awards" | {
"input": "CREATE TABLE table_name_92 (year INTEGER, group VARCHAR, award VARCHAR, result VARCHAR, film_series VARCHAR)",
"instruction": "What is the average year in which Kim was nominated for Thirst as Best Actress at the Baeksang Arts Awards?",
"output": "SELECT AVG(year) FROM table_name_92 WHERE result = \"nominated\" AND film_series = \"thirst\" AND award = \"best actress\" AND group = \"baeksang arts awards\""
} |
### INSTRUCTION
What are the distinct positions of the players from a country whose capital is Dublin?
### INPUT
CREATE TABLE country (Country_id VARCHAR, Capital VARCHAR); CREATE TABLE match_season (Position VARCHAR, Country VARCHAR)
### OUTPUT
SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = "Dublin" | {
"input": "CREATE TABLE country (Country_id VARCHAR, Capital VARCHAR); CREATE TABLE match_season (Position VARCHAR, Country VARCHAR)",
"instruction": "What are the distinct positions of the players from a country whose capital is Dublin?",
"output": "SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = \"Dublin\""
} |
### INSTRUCTION
Tell me the School/Club team of the player from the United States that play'de guard?
### INPUT
CREATE TABLE table_name_53 (school_club_team VARCHAR, nationality VARCHAR, position VARCHAR)
### OUTPUT
SELECT school_club_team FROM table_name_53 WHERE nationality = "united states" AND position = "guard" | {
"input": "CREATE TABLE table_name_53 (school_club_team VARCHAR, nationality VARCHAR, position VARCHAR)",
"instruction": "Tell me the School/Club team of the player from the United States that play'de guard?",
"output": "SELECT school_club_team FROM table_name_53 WHERE nationality = \"united states\" AND position = \"guard\""
} |
### INSTRUCTION
What is the average 2006 value for wheat with a 2005 value greater than 7340?
### INPUT
CREATE TABLE table_name_47 (production_year VARCHAR)
### OUTPUT
SELECT AVG(2006) FROM table_name_47 WHERE production_year = "wheat" AND 2005 > 7340 | {
"input": "CREATE TABLE table_name_47 (production_year VARCHAR)",
"instruction": "What is the average 2006 value for wheat with a 2005 value greater than 7340?",
"output": "SELECT AVG(2006) FROM table_name_47 WHERE production_year = \"wheat\" AND 2005 > 7340"
} |
### INSTRUCTION
Which team was the visitor on January 10?
### INPUT
CREATE TABLE table_name_69 (visitor VARCHAR, date VARCHAR)
### OUTPUT
SELECT visitor FROM table_name_69 WHERE date = "january 10" | {
"input": "CREATE TABLE table_name_69 (visitor VARCHAR, date VARCHAR)",
"instruction": "Which team was the visitor on January 10?",
"output": "SELECT visitor FROM table_name_69 WHERE date = \"january 10\""
} |
### INSTRUCTION
What is the lowest jews and others 1 for the localities 11?
### INPUT
CREATE TABLE table_25947046_1 (jews_and_others_1 INTEGER, localities VARCHAR)
### OUTPUT
SELECT MIN(jews_and_others_1) FROM table_25947046_1 WHERE localities = 11 | {
"input": "CREATE TABLE table_25947046_1 (jews_and_others_1 INTEGER, localities VARCHAR)",
"instruction": "What is the lowest jews and others 1 for the localities 11?",
"output": "SELECT MIN(jews_and_others_1) FROM table_25947046_1 WHERE localities = 11"
} |
### INSTRUCTION
What is the largest pick# for Greg Harris?
### INPUT
CREATE TABLE table_name_87 (pick__number INTEGER, player VARCHAR)
### OUTPUT
SELECT MAX(pick__number) FROM table_name_87 WHERE player = "greg harris" | {
"input": "CREATE TABLE table_name_87 (pick__number INTEGER, player VARCHAR)",
"instruction": "What is the largest pick# for Greg Harris?",
"output": "SELECT MAX(pick__number) FROM table_name_87 WHERE player = \"greg harris\""
} |
### INSTRUCTION
What town is Volleyball Sportiv Complex (3 500) located in?
### INPUT
CREATE TABLE table_14015965_1 (town VARCHAR, arena__capacity_ VARCHAR)
### OUTPUT
SELECT town FROM table_14015965_1 WHERE arena__capacity_ = "Volleyball Sportiv Complex (3 500)" | {
"input": "CREATE TABLE table_14015965_1 (town VARCHAR, arena__capacity_ VARCHAR)",
"instruction": "What town is Volleyball Sportiv Complex (3 500) located in?",
"output": "SELECT town FROM table_14015965_1 WHERE arena__capacity_ = \"Volleyball Sportiv Complex (3 500)\""
} |
### INSTRUCTION
How many episodes with different season numbers had the Jeans family in them?
### INPUT
CREATE TABLE table_19897294_10 (no_in_season VARCHAR, family_families VARCHAR)
### OUTPUT
SELECT COUNT(no_in_season) FROM table_19897294_10 WHERE family_families = "The Jeans Family" | {
"input": "CREATE TABLE table_19897294_10 (no_in_season VARCHAR, family_families VARCHAR)",
"instruction": "How many episodes with different season numbers had the Jeans family in them?",
"output": "SELECT COUNT(no_in_season) FROM table_19897294_10 WHERE family_families = \"The Jeans Family\""
} |
### INSTRUCTION
What is the lowest events that have 17 as the cuts made, with a top-25 less than 8?
### INPUT
CREATE TABLE table_name_14 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
### OUTPUT
SELECT MIN(events) FROM table_name_14 WHERE cuts_made = 17 AND top_25 < 8 | {
"input": "CREATE TABLE table_name_14 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)",
"instruction": "What is the lowest events that have 17 as the cuts made, with a top-25 less than 8?",
"output": "SELECT MIN(events) FROM table_name_14 WHERE cuts_made = 17 AND top_25 < 8"
} |
### INSTRUCTION
What was the total number of wins that had an against greater than 1136 but losses less than 15 with Ultima with less than 2 byes?
### INPUT
CREATE TABLE table_name_62 (wins INTEGER, byes VARCHAR, golden_rivers VARCHAR, against VARCHAR, losses VARCHAR)
### OUTPUT
SELECT SUM(wins) FROM table_name_62 WHERE against > 1136 AND losses < 15 AND golden_rivers = "ultima" AND byes < 2 | {
"input": "CREATE TABLE table_name_62 (wins INTEGER, byes VARCHAR, golden_rivers VARCHAR, against VARCHAR, losses VARCHAR)",
"instruction": "What was the total number of wins that had an against greater than 1136 but losses less than 15 with Ultima with less than 2 byes?",
"output": "SELECT SUM(wins) FROM table_name_62 WHERE against > 1136 AND losses < 15 AND golden_rivers = \"ultima\" AND byes < 2"
} |
### INSTRUCTION
How many County Kerry have 53% Irish speakers?
### INPUT
CREATE TABLE table_101196_1 (english_name VARCHAR, irish_speakers VARCHAR, county VARCHAR)
### OUTPUT
SELECT COUNT(english_name) FROM table_101196_1 WHERE irish_speakers = "53%" AND county = "county Kerry" | {
"input": "CREATE TABLE table_101196_1 (english_name VARCHAR, irish_speakers VARCHAR, county VARCHAR)",
"instruction": "How many County Kerry have 53% Irish speakers?",
"output": "SELECT COUNT(english_name) FROM table_101196_1 WHERE irish_speakers = \"53%\" AND county = \"county Kerry\""
} |
### INSTRUCTION
Which coach founded the Western Strikers team after 1963?
### INPUT
CREATE TABLE table_name_58 (coach VARCHAR, founded VARCHAR, team VARCHAR)
### OUTPUT
SELECT coach FROM table_name_58 WHERE founded > 1963 AND team = "western strikers" | {
"input": "CREATE TABLE table_name_58 (coach VARCHAR, founded VARCHAR, team VARCHAR)",
"instruction": "Which coach founded the Western Strikers team after 1963?",
"output": "SELECT coach FROM table_name_58 WHERE founded > 1963 AND team = \"western strikers\""
} |
### INSTRUCTION
What is the highest league cup with more than 0 FA cups, a premier league less than 34 and a total of 11?
### INPUT
CREATE TABLE table_name_77 (league_cup INTEGER, total VARCHAR, fa_cup VARCHAR, premier_league VARCHAR)
### OUTPUT
SELECT MAX(league_cup) FROM table_name_77 WHERE fa_cup > 0 AND premier_league < 34 AND total = 11 | {
"input": "CREATE TABLE table_name_77 (league_cup INTEGER, total VARCHAR, fa_cup VARCHAR, premier_league VARCHAR)",
"instruction": "What is the highest league cup with more than 0 FA cups, a premier league less than 34 and a total of 11?",
"output": "SELECT MAX(league_cup) FROM table_name_77 WHERE fa_cup > 0 AND premier_league < 34 AND total = 11"
} |
### INSTRUCTION
Which opponent has unknown attendance, and lost 2-0?
### INPUT
CREATE TABLE table_name_43 (opponent VARCHAR, attendance VARCHAR, result VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_43 WHERE attendance = "unknown" AND result = "lost 2-0" | {
"input": "CREATE TABLE table_name_43 (opponent VARCHAR, attendance VARCHAR, result VARCHAR)",
"instruction": "Which opponent has unknown attendance, and lost 2-0?",
"output": "SELECT opponent FROM table_name_43 WHERE attendance = \"unknown\" AND result = \"lost 2-0\""
} |
### INSTRUCTION
What are the first and last name of the faculty who has the most students?
### INPUT
CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR)
### OUTPUT
SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR)",
"instruction": "What are the first and last name of the faculty who has the most students?",
"output": "SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What is the Serial number of the Locomotive that Entered Service in November 1984 and has an Owner of Chicago Freight Car Leasing Australia?
### INPUT
CREATE TABLE table_name_90 (serial_no VARCHAR, entered_service VARCHAR, owner VARCHAR)
### OUTPUT
SELECT serial_no FROM table_name_90 WHERE entered_service = "november 1984" AND owner = "chicago freight car leasing australia" | {
"input": "CREATE TABLE table_name_90 (serial_no VARCHAR, entered_service VARCHAR, owner VARCHAR)",
"instruction": "What is the Serial number of the Locomotive that Entered Service in November 1984 and has an Owner of Chicago Freight Car Leasing Australia?",
"output": "SELECT serial_no FROM table_name_90 WHERE entered_service = \"november 1984\" AND owner = \"chicago freight car leasing australia\""
} |
### INSTRUCTION
How many championships does Pakistan have?
### INPUT
CREATE TABLE table_19487922_2 (championships VARCHAR, country VARCHAR)
### OUTPUT
SELECT COUNT(championships) FROM table_19487922_2 WHERE country = "Pakistan" | {
"input": "CREATE TABLE table_19487922_2 (championships VARCHAR, country VARCHAR)",
"instruction": "How many championships does Pakistan have?",
"output": "SELECT COUNT(championships) FROM table_19487922_2 WHERE country = \"Pakistan\""
} |
### INSTRUCTION
Name the condition with platelet count of unaffected and bleeding time of unaffected with prothrombin time of prolonged and partial thromboplastin time of prolonged
### INPUT
CREATE TABLE table_name_52 (condition VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, platelet_count VARCHAR, bleeding_time VARCHAR)
### OUTPUT
SELECT condition FROM table_name_52 WHERE platelet_count = "unaffected" AND bleeding_time = "unaffected" AND prothrombin_time = "prolonged" AND partial_thromboplastin_time = "prolonged" | {
"input": "CREATE TABLE table_name_52 (condition VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, platelet_count VARCHAR, bleeding_time VARCHAR)",
"instruction": "Name the condition with platelet count of unaffected and bleeding time of unaffected with prothrombin time of prolonged and partial thromboplastin time of prolonged",
"output": "SELECT condition FROM table_name_52 WHERE platelet_count = \"unaffected\" AND bleeding_time = \"unaffected\" AND prothrombin_time = \"prolonged\" AND partial_thromboplastin_time = \"prolonged\""
} |
### INSTRUCTION
What is the maximum fc matches at the racecourse?
### INPUT
CREATE TABLE table_1176371_1 (fc_matches INTEGER, name_of_ground VARCHAR)
### OUTPUT
SELECT MAX(fc_matches) FROM table_1176371_1 WHERE name_of_ground = "The Racecourse" | {
"input": "CREATE TABLE table_1176371_1 (fc_matches INTEGER, name_of_ground VARCHAR)",
"instruction": "What is the maximum fc matches at the racecourse?",
"output": "SELECT MAX(fc_matches) FROM table_1176371_1 WHERE name_of_ground = \"The Racecourse\""
} |
### INSTRUCTION
in electorate of 83850 what is the minimum s split vote
### INPUT
CREATE TABLE table_15082102_3 (s_spoilt_vote INTEGER, electorate VARCHAR)
### OUTPUT
SELECT MIN(s_spoilt_vote) FROM table_15082102_3 WHERE electorate = 83850 | {
"input": "CREATE TABLE table_15082102_3 (s_spoilt_vote INTEGER, electorate VARCHAR)",
"instruction": "in electorate of 83850 what is the minimum s split vote",
"output": "SELECT MIN(s_spoilt_vote) FROM table_15082102_3 WHERE electorate = 83850"
} |
### INSTRUCTION
How many overalls have a pick greater than 19, with florida as the college?
### INPUT
CREATE TABLE table_name_24 (overall INTEGER, pick VARCHAR, college VARCHAR)
### OUTPUT
SELECT SUM(overall) FROM table_name_24 WHERE pick > 19 AND college = "florida" | {
"input": "CREATE TABLE table_name_24 (overall INTEGER, pick VARCHAR, college VARCHAR)",
"instruction": "How many overalls have a pick greater than 19, with florida as the college?",
"output": "SELECT SUM(overall) FROM table_name_24 WHERE pick > 19 AND college = \"florida\""
} |
### INSTRUCTION
Which Name has a Year larger than 2001, and a Length of 52 x 20 mins?
### INPUT
CREATE TABLE table_name_9 (name VARCHAR, year VARCHAR, length VARCHAR)
### OUTPUT
SELECT name FROM table_name_9 WHERE year > 2001 AND length = "52 x 20 mins" | {
"input": "CREATE TABLE table_name_9 (name VARCHAR, year VARCHAR, length VARCHAR)",
"instruction": "Which Name has a Year larger than 2001, and a Length of 52 x 20 mins?",
"output": "SELECT name FROM table_name_9 WHERE year > 2001 AND length = \"52 x 20 mins\""
} |
### INSTRUCTION
Name the married filing jointly or qualified widow(er) with head of household being $117,451–$190,200
### INPUT
CREATE TABLE table_name_61 (married_filing_jointly_or_qualified_widow_er_ VARCHAR, head_of_household VARCHAR)
### OUTPUT
SELECT married_filing_jointly_or_qualified_widow_er_ FROM table_name_61 WHERE head_of_household = "$117,451–$190,200" | {
"input": "CREATE TABLE table_name_61 (married_filing_jointly_or_qualified_widow_er_ VARCHAR, head_of_household VARCHAR)",
"instruction": "Name the married filing jointly or qualified widow(er) with head of household being $117,451–$190,200",
"output": "SELECT married_filing_jointly_or_qualified_widow_er_ FROM table_name_61 WHERE head_of_household = \"$117,451–$190,200\""
} |
### INSTRUCTION
What is 2005, when 2006 is "1R"?
### INPUT
CREATE TABLE table_name_73 (Id VARCHAR)
### OUTPUT
SELECT 2005 FROM table_name_73 WHERE 2006 = "1r" | {
"input": "CREATE TABLE table_name_73 (Id VARCHAR)",
"instruction": "What is 2005, when 2006 is \"1R\"?",
"output": "SELECT 2005 FROM table_name_73 WHERE 2006 = \"1r\""
} |
### INSTRUCTION
What is the location of the tallahassee open, with a Score of 269 (–19)?
### INPUT
CREATE TABLE table_name_83 (location VARCHAR, score VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT location FROM table_name_83 WHERE score = "269 (–19)" AND tournament = "tallahassee open" | {
"input": "CREATE TABLE table_name_83 (location VARCHAR, score VARCHAR, tournament VARCHAR)",
"instruction": "What is the location of the tallahassee open, with a Score of 269 (–19)?",
"output": "SELECT location FROM table_name_83 WHERE score = \"269 (–19)\" AND tournament = \"tallahassee open\""
} |
### INSTRUCTION
What is the position of the team that played at the venue, Central, Gomel?
### INPUT
CREATE TABLE table_name_71 (position_in_1999 VARCHAR, venue VARCHAR)
### OUTPUT
SELECT position_in_1999 FROM table_name_71 WHERE venue = "central, gomel" | {
"input": "CREATE TABLE table_name_71 (position_in_1999 VARCHAR, venue VARCHAR)",
"instruction": "What is the position of the team that played at the venue, Central, Gomel?",
"output": "SELECT position_in_1999 FROM table_name_71 WHERE venue = \"central, gomel\""
} |
### INSTRUCTION
Name the nationality for defender 201
### INPUT
CREATE TABLE table_24565004_20 (nationality² VARCHAR, position VARCHAR, appearances¹ VARCHAR)
### OUTPUT
SELECT nationality² FROM table_24565004_20 WHERE position = "Defender" AND appearances¹ = 201 | {
"input": "CREATE TABLE table_24565004_20 (nationality² VARCHAR, position VARCHAR, appearances¹ VARCHAR)",
"instruction": "Name the nationality for defender 201",
"output": "SELECT nationality² FROM table_24565004_20 WHERE position = \"Defender\" AND appearances¹ = 201"
} |
### INSTRUCTION
WHAT IS THE TEAM FOR DECEMBER 30?
### INPUT
CREATE TABLE table_name_86 (team VARCHAR, date VARCHAR)
### OUTPUT
SELECT team FROM table_name_86 WHERE date = "december 30" | {
"input": "CREATE TABLE table_name_86 (team VARCHAR, date VARCHAR)",
"instruction": "WHAT IS THE TEAM FOR DECEMBER 30?",
"output": "SELECT team FROM table_name_86 WHERE date = \"december 30\""
} |
### INSTRUCTION
What team has Carlos Sánchez as a goalkeeper and an average below 1.12?
### INPUT
CREATE TABLE table_name_64 (team VARCHAR, average VARCHAR, goalkeeper VARCHAR)
### OUTPUT
SELECT team FROM table_name_64 WHERE average < 1.12 AND goalkeeper = "carlos sánchez" | {
"input": "CREATE TABLE table_name_64 (team VARCHAR, average VARCHAR, goalkeeper VARCHAR)",
"instruction": "What team has Carlos Sánchez as a goalkeeper and an average below 1.12?",
"output": "SELECT team FROM table_name_64 WHERE average < 1.12 AND goalkeeper = \"carlos sánchez\""
} |
### INSTRUCTION
Who was the replacement for the Brussels team with a date of vacancy of 22 December 2007?
### INPUT
CREATE TABLE table_name_46 (replaced_by VARCHAR, team VARCHAR, date_of_vacancy VARCHAR)
### OUTPUT
SELECT replaced_by FROM table_name_46 WHERE team = "brussels" AND date_of_vacancy = "22 december 2007" | {
"input": "CREATE TABLE table_name_46 (replaced_by VARCHAR, team VARCHAR, date_of_vacancy VARCHAR)",
"instruction": "Who was the replacement for the Brussels team with a date of vacancy of 22 December 2007?",
"output": "SELECT replaced_by FROM table_name_46 WHERE team = \"brussels\" AND date_of_vacancy = \"22 december 2007\""
} |
### INSTRUCTION
Which sum of # 100 has a Season of 1990, and an Against of warwickshire?
### INPUT
CREATE TABLE table_name_33 (_number_100 INTEGER, season VARCHAR, against VARCHAR)
### OUTPUT
SELECT SUM(_number_100) FROM table_name_33 WHERE season = "1990" AND against = "warwickshire" | {
"input": "CREATE TABLE table_name_33 (_number_100 INTEGER, season VARCHAR, against VARCHAR)",
"instruction": "Which sum of # 100 has a Season of 1990, and an Against of warwickshire?",
"output": "SELECT SUM(_number_100) FROM table_name_33 WHERE season = \"1990\" AND against = \"warwickshire\""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.