text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
Find the name of customers who do not have a loan with a type of Mortgages.
### INPUT
CREATE TABLE loan (cust_id VARCHAR, loan_type VARCHAR); CREATE TABLE customer (cust_name VARCHAR); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)
### OUTPUT
SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages' | {
"input": "CREATE TABLE loan (cust_id VARCHAR, loan_type VARCHAR); CREATE TABLE customer (cust_name VARCHAR); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)",
"instruction": "Find the name of customers who do not have a loan with a type of Mortgages.",
"output": "SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages'"
} |
### INSTRUCTION
What is the Romanji title for around40〜注文の多いオンナたち〜 on TBS?
### INPUT
CREATE TABLE table_name_79 (romaji_title VARCHAR, tv_station VARCHAR, japanese_title VARCHAR)
### OUTPUT
SELECT romaji_title FROM table_name_79 WHERE tv_station = "tbs" AND japanese_title = "around40〜注文の多いオンナたち〜" | {
"input": "CREATE TABLE table_name_79 (romaji_title VARCHAR, tv_station VARCHAR, japanese_title VARCHAR)",
"instruction": "What is the Romanji title for around40〜注文の多いオンナたち〜 on TBS?",
"output": "SELECT romaji_title FROM table_name_79 WHERE tv_station = \"tbs\" AND japanese_title = \"around40〜注文の多いオンナたち〜\""
} |
### INSTRUCTION
What year did the university of Pittsburgh school join the hockey league?
### INPUT
CREATE TABLE table_16384648_2 (joined_tschl VARCHAR, institution VARCHAR)
### OUTPUT
SELECT joined_tschl FROM table_16384648_2 WHERE institution = "University of Pittsburgh" | {
"input": "CREATE TABLE table_16384648_2 (joined_tschl VARCHAR, institution VARCHAR)",
"instruction": "What year did the university of Pittsburgh school join the hockey league? ",
"output": "SELECT joined_tschl FROM table_16384648_2 WHERE institution = \"University of Pittsburgh\""
} |
### INSTRUCTION
Which Democratic has a District smaller than 7, and a Republican of dan mansell?
### INPUT
CREATE TABLE table_name_99 (democratic VARCHAR, district VARCHAR, republican VARCHAR)
### OUTPUT
SELECT democratic FROM table_name_99 WHERE district < 7 AND republican = "dan mansell" | {
"input": "CREATE TABLE table_name_99 (democratic VARCHAR, district VARCHAR, republican VARCHAR)",
"instruction": "Which Democratic has a District smaller than 7, and a Republican of dan mansell?",
"output": "SELECT democratic FROM table_name_99 WHERE district < 7 AND republican = \"dan mansell\""
} |
### INSTRUCTION
What is the average agricultural panel value with a Labour panel less than 1, a total value less than 21, and a National University of Ireland value greater than 0?
### INPUT
CREATE TABLE table_name_53 (agricultural_panel INTEGER, national_university_of_ireland VARCHAR, labour_panel VARCHAR, total VARCHAR)
### OUTPUT
SELECT AVG(agricultural_panel) FROM table_name_53 WHERE labour_panel < 1 AND total < 21 AND national_university_of_ireland > 0 | {
"input": "CREATE TABLE table_name_53 (agricultural_panel INTEGER, national_university_of_ireland VARCHAR, labour_panel VARCHAR, total VARCHAR)",
"instruction": "What is the average agricultural panel value with a Labour panel less than 1, a total value less than 21, and a National University of Ireland value greater than 0?",
"output": "SELECT AVG(agricultural_panel) FROM table_name_53 WHERE labour_panel < 1 AND total < 21 AND national_university_of_ireland > 0"
} |
### INSTRUCTION
What college, junior, or club team did defence player Rory Fitzpatrick play for?
### INPUT
CREATE TABLE table_name_81 (college_junior_club_team VARCHAR, position VARCHAR, player VARCHAR)
### OUTPUT
SELECT college_junior_club_team FROM table_name_81 WHERE position = "defence" AND player = "rory fitzpatrick" | {
"input": "CREATE TABLE table_name_81 (college_junior_club_team VARCHAR, position VARCHAR, player VARCHAR)",
"instruction": "What college, junior, or club team did defence player Rory Fitzpatrick play for?",
"output": "SELECT college_junior_club_team FROM table_name_81 WHERE position = \"defence\" AND player = \"rory fitzpatrick\""
} |
### INSTRUCTION
What college did the player from Fort Lauderdale, FL attend?
### INPUT
CREATE TABLE table_name_79 (college VARCHAR, hometown VARCHAR)
### OUTPUT
SELECT college FROM table_name_79 WHERE hometown = "fort lauderdale, fl" | {
"input": "CREATE TABLE table_name_79 (college VARCHAR, hometown VARCHAR)",
"instruction": "What college did the player from Fort Lauderdale, FL attend?",
"output": "SELECT college FROM table_name_79 WHERE hometown = \"fort lauderdale, fl\""
} |
### INSTRUCTION
Name the film title for wohin und zurück - welcome in vienna
### INPUT
CREATE TABLE table_16255245_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
### OUTPUT
SELECT film_title_used_in_nomination FROM table_16255245_1 WHERE original_title = "Wohin und zurück - Welcome in Vienna" | {
"input": "CREATE TABLE table_16255245_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)",
"instruction": "Name the film title for wohin und zurück - welcome in vienna",
"output": "SELECT film_title_used_in_nomination FROM table_16255245_1 WHERE original_title = \"Wohin und zurück - Welcome in Vienna\""
} |
### INSTRUCTION
What day did the Diamondbacks go 2-7?
### INPUT
CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR, score VARCHAR)
### OUTPUT
SELECT date FROM table_name_92 WHERE opponent = "diamondbacks" AND score = "2-7" | {
"input": "CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR, score VARCHAR)",
"instruction": "What day did the Diamondbacks go 2-7?",
"output": "SELECT date FROM table_name_92 WHERE opponent = \"diamondbacks\" AND score = \"2-7\""
} |
### INSTRUCTION
in the detroit team who made the high points
### INPUT
CREATE TABLE table_30049462_5 (high_points VARCHAR, team VARCHAR)
### OUTPUT
SELECT high_points FROM table_30049462_5 WHERE team = "Detroit" | {
"input": "CREATE TABLE table_30049462_5 (high_points VARCHAR, team VARCHAR)",
"instruction": "in the detroit team who made the high points",
"output": "SELECT high_points FROM table_30049462_5 WHERE team = \"Detroit\""
} |
### INSTRUCTION
What was the average total medals received by Roland Hayes School when there were 0 gold medals?
### INPUT
CREATE TABLE table_name_99 (total_medals INTEGER, gold_medals VARCHAR, ensemble VARCHAR)
### OUTPUT
SELECT AVG(total_medals) FROM table_name_99 WHERE gold_medals = 0 AND ensemble = "roland hayes school" | {
"input": "CREATE TABLE table_name_99 (total_medals INTEGER, gold_medals VARCHAR, ensemble VARCHAR)",
"instruction": "What was the average total medals received by Roland Hayes School when there were 0 gold medals?",
"output": "SELECT AVG(total_medals) FROM table_name_99 WHERE gold_medals = 0 AND ensemble = \"roland hayes school\""
} |
### INSTRUCTION
What are the purchase details of transactions with amount bigger than 10000?
### INPUT
CREATE TABLE PURCHASES (purchase_details VARCHAR, purchase_transaction_id VARCHAR); CREATE TABLE TRANSACTIONS (transaction_id VARCHAR, amount_of_transaction INTEGER)
### OUTPUT
SELECT T1.purchase_details FROM PURCHASES AS T1 JOIN TRANSACTIONS AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000 | {
"input": "CREATE TABLE PURCHASES (purchase_details VARCHAR, purchase_transaction_id VARCHAR); CREATE TABLE TRANSACTIONS (transaction_id VARCHAR, amount_of_transaction INTEGER)",
"instruction": "What are the purchase details of transactions with amount bigger than 10000?",
"output": "SELECT T1.purchase_details FROM PURCHASES AS T1 JOIN TRANSACTIONS AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000"
} |
### INSTRUCTION
Find the first and last name of all the teachers that teach EVELINA BROMLEY.
### INPUT
CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
### OUTPUT
SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "EVELINA" AND T1.lastname = "BROMLEY" | {
"input": "CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)",
"instruction": "Find the first and last name of all the teachers that teach EVELINA BROMLEY.",
"output": "SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"EVELINA\" AND T1.lastname = \"BROMLEY\""
} |
### INSTRUCTION
When John Emanuel ran under the Socialist Labor ticket who ran under the Democratic ticket?
### INPUT
CREATE TABLE table_name_99 (democratic_ticket VARCHAR, socialist_labor_ticket VARCHAR)
### OUTPUT
SELECT democratic_ticket FROM table_name_99 WHERE socialist_labor_ticket = "john emanuel" | {
"input": "CREATE TABLE table_name_99 (democratic_ticket VARCHAR, socialist_labor_ticket VARCHAR)",
"instruction": "When John Emanuel ran under the Socialist Labor ticket who ran under the Democratic ticket?",
"output": "SELECT democratic_ticket FROM table_name_99 WHERE socialist_labor_ticket = \"john emanuel\""
} |
### INSTRUCTION
How many sets of presenters are there for the version of the show named Celebrity Masterchef?
### INPUT
CREATE TABLE table_28190363_1 (presenter_s_ VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(presenter_s_) FROM table_28190363_1 WHERE name = "Celebrity MasterChef" | {
"input": "CREATE TABLE table_28190363_1 (presenter_s_ VARCHAR, name VARCHAR)",
"instruction": "How many sets of presenters are there for the version of the show named Celebrity Masterchef?",
"output": "SELECT COUNT(presenter_s_) FROM table_28190363_1 WHERE name = \"Celebrity MasterChef\""
} |
### INSTRUCTION
What was the away team score at Corio Oval?
### INPUT
CREATE TABLE table_name_42 (away_team VARCHAR, venue VARCHAR)
### OUTPUT
SELECT away_team AS score FROM table_name_42 WHERE venue = "corio oval" | {
"input": "CREATE TABLE table_name_42 (away_team VARCHAR, venue VARCHAR)",
"instruction": "What was the away team score at Corio Oval?",
"output": "SELECT away_team AS score FROM table_name_42 WHERE venue = \"corio oval\""
} |
### INSTRUCTION
Which gender has a Decile of 8, an Area of taradale, and Years of 1–13?
### INPUT
CREATE TABLE table_name_90 (gender VARCHAR, years VARCHAR, decile VARCHAR, area VARCHAR)
### OUTPUT
SELECT gender FROM table_name_90 WHERE decile = 8 AND area = "taradale" AND years = "1–13" | {
"input": "CREATE TABLE table_name_90 (gender VARCHAR, years VARCHAR, decile VARCHAR, area VARCHAR)",
"instruction": "Which gender has a Decile of 8, an Area of taradale, and Years of 1–13?",
"output": "SELECT gender FROM table_name_90 WHERE decile = 8 AND area = \"taradale\" AND years = \"1–13\""
} |
### INSTRUCTION
What are the points against for 2000, when games won is 4 (1)?
### INPUT
CREATE TABLE table_name_16 (points_against___tests__ VARCHAR, year_s_ VARCHAR, games_won___tests__ VARCHAR)
### OUTPUT
SELECT points_against___tests__ FROM table_name_16 WHERE year_s_ = 2000 AND games_won___tests__ = "4 (1)" | {
"input": "CREATE TABLE table_name_16 (points_against___tests__ VARCHAR, year_s_ VARCHAR, games_won___tests__ VARCHAR)",
"instruction": "What are the points against for 2000, when games won is 4 (1)?",
"output": "SELECT points_against___tests__ FROM table_name_16 WHERE year_s_ = 2000 AND games_won___tests__ = \"4 (1)\""
} |
### INSTRUCTION
What was the score on a clay surface in a year later than 2006 with David Ferrer as an opponent?
### INPUT
CREATE TABLE table_name_43 (score VARCHAR, opponent VARCHAR, surface VARCHAR, year VARCHAR)
### OUTPUT
SELECT score FROM table_name_43 WHERE surface = "clay" AND year > 2006 AND opponent = "david ferrer" | {
"input": "CREATE TABLE table_name_43 (score VARCHAR, opponent VARCHAR, surface VARCHAR, year VARCHAR)",
"instruction": "What was the score on a clay surface in a year later than 2006 with David Ferrer as an opponent?",
"output": "SELECT score FROM table_name_43 WHERE surface = \"clay\" AND year > 2006 AND opponent = \"david ferrer\""
} |
### INSTRUCTION
List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.
### INPUT
CREATE TABLE AssignedTo (Scientist VARCHAR, Project VARCHAR); CREATE TABLE Projects (Name VARCHAR, Hours VARCHAR, Code VARCHAR); CREATE TABLE Scientists (Name VARCHAR, SSN VARCHAR)
### OUTPUT
SELECT T1.Name, T3.Name, T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name, T1.Name | {
"input": "CREATE TABLE AssignedTo (Scientist VARCHAR, Project VARCHAR); CREATE TABLE Projects (Name VARCHAR, Hours VARCHAR, Code VARCHAR); CREATE TABLE Scientists (Name VARCHAR, SSN VARCHAR)",
"instruction": "List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.",
"output": "SELECT T1.Name, T3.Name, T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name, T1.Name"
} |
### INSTRUCTION
What is the place when the performance is 60.73m?
### INPUT
CREATE TABLE table_name_65 (place VARCHAR, performance VARCHAR)
### OUTPUT
SELECT place FROM table_name_65 WHERE performance = "60.73m" | {
"input": "CREATE TABLE table_name_65 (place VARCHAR, performance VARCHAR)",
"instruction": "What is the place when the performance is 60.73m?",
"output": "SELECT place FROM table_name_65 WHERE performance = \"60.73m\""
} |
### INSTRUCTION
What capacity opened lessed than 1937 and is located in the region of champagne-ardenne?
### INPUT
CREATE TABLE table_name_95 (capacity VARCHAR, opened VARCHAR, region VARCHAR)
### OUTPUT
SELECT capacity FROM table_name_95 WHERE opened < 1937 AND region = "champagne-ardenne" | {
"input": "CREATE TABLE table_name_95 (capacity VARCHAR, opened VARCHAR, region VARCHAR)",
"instruction": "What capacity opened lessed than 1937 and is located in the region of champagne-ardenne?",
"output": "SELECT capacity FROM table_name_95 WHERE opened < 1937 AND region = \"champagne-ardenne\""
} |
### INSTRUCTION
How many places have yamaha as the machine, and 89.85mph as the speed?
### INPUT
CREATE TABLE table_name_30 (place INTEGER, machine VARCHAR, speed VARCHAR)
### OUTPUT
SELECT SUM(place) FROM table_name_30 WHERE machine = "yamaha" AND speed = "89.85mph" | {
"input": "CREATE TABLE table_name_30 (place INTEGER, machine VARCHAR, speed VARCHAR)",
"instruction": "How many places have yamaha as the machine, and 89.85mph as the speed?",
"output": "SELECT SUM(place) FROM table_name_30 WHERE machine = \"yamaha\" AND speed = \"89.85mph\""
} |
### INSTRUCTION
How many different isolation numbers does the Jack Mountain peak have?
### INPUT
CREATE TABLE table_19716903_1 (isolation VARCHAR, mountain_peak VARCHAR)
### OUTPUT
SELECT COUNT(isolation) FROM table_19716903_1 WHERE mountain_peak = "Jack Mountain" | {
"input": "CREATE TABLE table_19716903_1 (isolation VARCHAR, mountain_peak VARCHAR)",
"instruction": "How many different isolation numbers does the Jack Mountain peak have?",
"output": "SELECT COUNT(isolation) FROM table_19716903_1 WHERE mountain_peak = \"Jack Mountain\""
} |
### INSTRUCTION
What was the status of joon-hyung park 박준형?
### INPUT
CREATE TABLE table_name_58 (status VARCHAR, name VARCHAR)
### OUTPUT
SELECT status FROM table_name_58 WHERE name = "joon-hyung park 박준형" | {
"input": "CREATE TABLE table_name_58 (status VARCHAR, name VARCHAR)",
"instruction": "What was the status of joon-hyung park 박준형?",
"output": "SELECT status FROM table_name_58 WHERE name = \"joon-hyung park 박준형\""
} |
### INSTRUCTION
How big was the crowd when the South Dragons were the away team at the Gold Coast Convention Centre?
### INPUT
CREATE TABLE table_name_94 (crowd VARCHAR, away_team VARCHAR, venue VARCHAR)
### OUTPUT
SELECT crowd FROM table_name_94 WHERE away_team = "south dragons" AND venue = "gold coast convention centre" | {
"input": "CREATE TABLE table_name_94 (crowd VARCHAR, away_team VARCHAR, venue VARCHAR)",
"instruction": "How big was the crowd when the South Dragons were the away team at the Gold Coast Convention Centre?",
"output": "SELECT crowd FROM table_name_94 WHERE away_team = \"south dragons\" AND venue = \"gold coast convention centre\""
} |
### INSTRUCTION
What is the overall number for a kicker with a pick of less than 6?
### INPUT
CREATE TABLE table_name_84 (overall VARCHAR, position VARCHAR, pick__number VARCHAR)
### OUTPUT
SELECT COUNT(overall) FROM table_name_84 WHERE position = "kicker" AND pick__number < 6 | {
"input": "CREATE TABLE table_name_84 (overall VARCHAR, position VARCHAR, pick__number VARCHAR)",
"instruction": "What is the overall number for a kicker with a pick of less than 6?",
"output": "SELECT COUNT(overall) FROM table_name_84 WHERE position = \"kicker\" AND pick__number < 6"
} |
### INSTRUCTION
What day was the game held at Firhill against AYR United?
### INPUT
CREATE TABLE table_name_60 (date VARCHAR, venue VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT date FROM table_name_60 WHERE venue = "firhill" AND opponent = "ayr united" | {
"input": "CREATE TABLE table_name_60 (date VARCHAR, venue VARCHAR, opponent VARCHAR)",
"instruction": "What day was the game held at Firhill against AYR United?",
"output": "SELECT date FROM table_name_60 WHERE venue = \"firhill\" AND opponent = \"ayr united\""
} |
### INSTRUCTION
Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802
### INPUT
CREATE TABLE table_name_63 (guns VARCHAR, year VARCHAR, class VARCHAR, rank VARCHAR)
### OUTPUT
SELECT guns FROM table_name_63 WHERE class = "third-rate ship of the line" AND rank = "vice-admiral" AND year = "1802" | {
"input": "CREATE TABLE table_name_63 (guns VARCHAR, year VARCHAR, class VARCHAR, rank VARCHAR)",
"instruction": "Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802",
"output": "SELECT guns FROM table_name_63 WHERE class = \"third-rate ship of the line\" AND rank = \"vice-admiral\" AND year = \"1802\""
} |
### INSTRUCTION
Who were the champions in years where michigan technological university was in third place?
### INPUT
CREATE TABLE table_2331549_1 (champion VARCHAR, third_place VARCHAR)
### OUTPUT
SELECT champion FROM table_2331549_1 WHERE third_place = "Michigan Technological University" | {
"input": "CREATE TABLE table_2331549_1 (champion VARCHAR, third_place VARCHAR)",
"instruction": "Who were the champions in years where michigan technological university was in third place?",
"output": "SELECT champion FROM table_2331549_1 WHERE third_place = \"Michigan Technological University\""
} |
### INSTRUCTION
Which wicket had 580 runs?
### INPUT
CREATE TABLE table_name_85 (wicket VARCHAR, runs VARCHAR)
### OUTPUT
SELECT wicket FROM table_name_85 WHERE runs = "580" | {
"input": "CREATE TABLE table_name_85 (wicket VARCHAR, runs VARCHAR)",
"instruction": "Which wicket had 580 runs?",
"output": "SELECT wicket FROM table_name_85 WHERE runs = \"580\""
} |
### INSTRUCTION
Which Date has a Stadium of giants stadium, and a Week smaller than 13, and an Opponent of seattle seahawks?
### INPUT
CREATE TABLE table_name_79 (date VARCHAR, opponent VARCHAR, stadium VARCHAR, week VARCHAR)
### OUTPUT
SELECT date FROM table_name_79 WHERE stadium = "giants stadium" AND week < 13 AND opponent = "seattle seahawks" | {
"input": "CREATE TABLE table_name_79 (date VARCHAR, opponent VARCHAR, stadium VARCHAR, week VARCHAR)",
"instruction": "Which Date has a Stadium of giants stadium, and a Week smaller than 13, and an Opponent of seattle seahawks?",
"output": "SELECT date FROM table_name_79 WHERE stadium = \"giants stadium\" AND week < 13 AND opponent = \"seattle seahawks\""
} |
### INSTRUCTION
Which Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +?
### INPUT
CREATE TABLE table_name_41 (particle VARCHAR, isospin_i VARCHAR, commonly_decays_to VARCHAR)
### OUTPUT
SELECT particle FROM table_name_41 WHERE isospin_i = "1" AND commonly_decays_to = "p + + π 0 or n 0 + π +" | {
"input": "CREATE TABLE table_name_41 (particle VARCHAR, isospin_i VARCHAR, commonly_decays_to VARCHAR)",
"instruction": "Which Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +?",
"output": "SELECT particle FROM table_name_41 WHERE isospin_i = \"1\" AND commonly_decays_to = \"p + + π 0 or n 0 + π +\""
} |
### INSTRUCTION
how many millions of North American people saw the episode whose director was Ed Sherin?
### INPUT
CREATE TABLE table_2791668_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT us_viewers__millions_ FROM table_2791668_1 WHERE directed_by = "Ed Sherin" | {
"input": "CREATE TABLE table_2791668_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)",
"instruction": "how many millions of North American people saw the episode whose director was Ed Sherin? ",
"output": "SELECT us_viewers__millions_ FROM table_2791668_1 WHERE directed_by = \"Ed Sherin\""
} |
### INSTRUCTION
Find the names of customers who are not living in the state of California.
### INPUT
CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR)
### OUTPUT
SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name 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_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR)",
"instruction": "Find the names of customers who are not living in the state of California.",
"output": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name 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
Can you tell me the Place that has the Country of australia, and the Player of ian baker-finch?
### INPUT
CREATE TABLE table_name_22 (place VARCHAR, country VARCHAR, player VARCHAR)
### OUTPUT
SELECT place FROM table_name_22 WHERE country = "australia" AND player = "ian baker-finch" | {
"input": "CREATE TABLE table_name_22 (place VARCHAR, country VARCHAR, player VARCHAR)",
"instruction": "Can you tell me the Place that has the Country of australia, and the Player of ian baker-finch?",
"output": "SELECT place FROM table_name_22 WHERE country = \"australia\" AND player = \"ian baker-finch\""
} |
### INSTRUCTION
Find the name of customers who do not have an saving account.
### INPUT
CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR)
### OUTPUT
SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving' | {
"input": "CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR)",
"instruction": "Find the name of customers who do not have an saving account.",
"output": "SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving'"
} |
### INSTRUCTION
How many rebounds have a Player of andre gaddy, and a Rank smaller than 6?
### INPUT
CREATE TABLE table_name_5 (total_rebounds VARCHAR, player VARCHAR, rank VARCHAR)
### OUTPUT
SELECT COUNT(total_rebounds) FROM table_name_5 WHERE player = "andre gaddy" AND rank < 6 | {
"input": "CREATE TABLE table_name_5 (total_rebounds VARCHAR, player VARCHAR, rank VARCHAR)",
"instruction": "How many rebounds have a Player of andre gaddy, and a Rank smaller than 6?",
"output": "SELECT COUNT(total_rebounds) FROM table_name_5 WHERE player = \"andre gaddy\" AND rank < 6"
} |
### INSTRUCTION
What was Lee Smith's highest number of goals when he made fewer than 364 appearances?
### INPUT
CREATE TABLE table_name_51 (goals INTEGER, name VARCHAR, appearances VARCHAR)
### OUTPUT
SELECT MAX(goals) FROM table_name_51 WHERE name = "lee smith" AND appearances < 364 | {
"input": "CREATE TABLE table_name_51 (goals INTEGER, name VARCHAR, appearances VARCHAR)",
"instruction": "What was Lee Smith's highest number of goals when he made fewer than 364 appearances?",
"output": "SELECT MAX(goals) FROM table_name_51 WHERE name = \"lee smith\" AND appearances < 364"
} |
### INSTRUCTION
What date was the UEFA Cup against Panathinaikos?
### INPUT
CREATE TABLE table_name_29 (date VARCHAR, competition VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT date FROM table_name_29 WHERE competition = "uefa cup" AND opponent = "panathinaikos" | {
"input": "CREATE TABLE table_name_29 (date VARCHAR, competition VARCHAR, opponent VARCHAR)",
"instruction": "What date was the UEFA Cup against Panathinaikos?",
"output": "SELECT date FROM table_name_29 WHERE competition = \"uefa cup\" AND opponent = \"panathinaikos\""
} |
### INSTRUCTION
Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003?
### INPUT
CREATE TABLE table_name_31 (out_of VARCHAR, year VARCHAR, source VARCHAR, rank VARCHAR)
### OUTPUT
SELECT out_of FROM table_name_31 WHERE source = "united nations" AND rank > 47 AND year < 2003 | {
"input": "CREATE TABLE table_name_31 (out_of VARCHAR, year VARCHAR, source VARCHAR, rank VARCHAR)",
"instruction": "Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003?",
"output": "SELECT out_of FROM table_name_31 WHERE source = \"united nations\" AND rank > 47 AND year < 2003"
} |
### INSTRUCTION
What is the 2011 when the Tournament was the grand slam tournaments?
### INPUT
CREATE TABLE table_name_63 (tournament VARCHAR)
### OUTPUT
SELECT 2011 FROM table_name_63 WHERE tournament = "grand slam tournaments" | {
"input": "CREATE TABLE table_name_63 (tournament VARCHAR)",
"instruction": "What is the 2011 when the Tournament was the grand slam tournaments?",
"output": "SELECT 2011 FROM table_name_63 WHERE tournament = \"grand slam tournaments\""
} |
### INSTRUCTION
which channel will have play by play commentator Paul Sunderland, Studio Host Bill Macdonald and Studi Analysty Jack Haley?
### INPUT
CREATE TABLE table_name_82 (channel VARCHAR, studio_analysts VARCHAR, play_by_play VARCHAR, studio_host VARCHAR)
### OUTPUT
SELECT channel FROM table_name_82 WHERE play_by_play = "paul sunderland" AND studio_host = "bill macdonald" AND studio_analysts = "jack haley" | {
"input": "CREATE TABLE table_name_82 (channel VARCHAR, studio_analysts VARCHAR, play_by_play VARCHAR, studio_host VARCHAR)",
"instruction": "which channel will have play by play commentator Paul Sunderland, Studio Host Bill Macdonald and Studi Analysty Jack Haley?",
"output": "SELECT channel FROM table_name_82 WHERE play_by_play = \"paul sunderland\" AND studio_host = \"bill macdonald\" AND studio_analysts = \"jack haley\""
} |
### INSTRUCTION
When 0,4, or 8 mb is the nupowr 117 what is the nupowr 183?
### INPUT
CREATE TABLE table_3002894_4 (nupowr_183 VARCHAR, nupowr_117 VARCHAR)
### OUTPUT
SELECT nupowr_183 FROM table_3002894_4 WHERE nupowr_117 = "0,4, or 8 MB" | {
"input": "CREATE TABLE table_3002894_4 (nupowr_183 VARCHAR, nupowr_117 VARCHAR)",
"instruction": "When 0,4, or 8 mb is the nupowr 117 what is the nupowr 183?",
"output": "SELECT nupowr_183 FROM table_3002894_4 WHERE nupowr_117 = \"0,4, or 8 MB\""
} |
### INSTRUCTION
What Date is listed for the Region of France and Catalog of 82876-70291-2?
### INPUT
CREATE TABLE table_name_48 (date VARCHAR, region VARCHAR, catalog VARCHAR)
### OUTPUT
SELECT date FROM table_name_48 WHERE region = "france" AND catalog = "82876-70291-2" | {
"input": "CREATE TABLE table_name_48 (date VARCHAR, region VARCHAR, catalog VARCHAR)",
"instruction": "What Date is listed for the Region of France and Catalog of 82876-70291-2?",
"output": "SELECT date FROM table_name_48 WHERE region = \"france\" AND catalog = \"82876-70291-2\""
} |
### INSTRUCTION
What is Postition, when Date of Birth (Age) is Example, and when Player is Mark Spencer?
### INPUT
CREATE TABLE table_name_59 (position VARCHAR, date_of_birth__age_ VARCHAR, player VARCHAR)
### OUTPUT
SELECT position FROM table_name_59 WHERE date_of_birth__age_ = "example" AND player = "mark spencer" | {
"input": "CREATE TABLE table_name_59 (position VARCHAR, date_of_birth__age_ VARCHAR, player VARCHAR)",
"instruction": "What is Postition, when Date of Birth (Age) is Example, and when Player is Mark Spencer?",
"output": "SELECT position FROM table_name_59 WHERE date_of_birth__age_ = \"example\" AND player = \"mark spencer\""
} |
### INSTRUCTION
With order number 7 and the theme is Motown, who were the original artists?
### INPUT
CREATE TABLE table_21501565_1 (original_artist VARCHAR, order__number VARCHAR, theme VARCHAR)
### OUTPUT
SELECT original_artist FROM table_21501565_1 WHERE order__number = "7" AND theme = "Motown" | {
"input": "CREATE TABLE table_21501565_1 (original_artist VARCHAR, order__number VARCHAR, theme VARCHAR)",
"instruction": "With order number 7 and the theme is Motown, who were the original artists?",
"output": "SELECT original_artist FROM table_21501565_1 WHERE order__number = \"7\" AND theme = \"Motown\""
} |
### INSTRUCTION
Show the distinct position of players from college UCLA or Duke.
### INPUT
CREATE TABLE match_season (POSITION VARCHAR, College VARCHAR)
### OUTPUT
SELECT DISTINCT POSITION FROM match_season WHERE College = "UCLA" OR College = "Duke" | {
"input": "CREATE TABLE match_season (POSITION VARCHAR, College VARCHAR)",
"instruction": "Show the distinct position of players from college UCLA or Duke.",
"output": "SELECT DISTINCT POSITION FROM match_season WHERE College = \"UCLA\" OR College = \"Duke\""
} |
### INSTRUCTION
What is the 2012 result of a tournament that is 2R in 2007, 1R in 2008 and 1R in 2009?
### INPUT
CREATE TABLE table_name_29 (Id VARCHAR)
### OUTPUT
SELECT 2012 FROM table_name_29 WHERE 2009 = "1r" AND 2008 = "1r" AND 2007 = "2r" | {
"input": "CREATE TABLE table_name_29 (Id VARCHAR)",
"instruction": "What is the 2012 result of a tournament that is 2R in 2007, 1R in 2008 and 1R in 2009?",
"output": "SELECT 2012 FROM table_name_29 WHERE 2009 = \"1r\" AND 2008 = \"1r\" AND 2007 = \"2r\""
} |
### INSTRUCTION
How many points does mia martini have?
### INPUT
CREATE TABLE table_name_1 (points VARCHAR, artist VARCHAR)
### OUTPUT
SELECT COUNT(points) FROM table_name_1 WHERE artist = "mia martini" | {
"input": "CREATE TABLE table_name_1 (points VARCHAR, artist VARCHAR)",
"instruction": "How many points does mia martini have?",
"output": "SELECT COUNT(points) FROM table_name_1 WHERE artist = \"mia martini\""
} |
### INSTRUCTION
What was the value in 2009 when 2005 was A for the Australian Open?
### INPUT
CREATE TABLE table_name_5 (tournament VARCHAR)
### OUTPUT
SELECT 2009 FROM table_name_5 WHERE 2005 = "a" AND tournament = "australian open" | {
"input": "CREATE TABLE table_name_5 (tournament VARCHAR)",
"instruction": "What was the value in 2009 when 2005 was A for the Australian Open?",
"output": "SELECT 2009 FROM table_name_5 WHERE 2005 = \"a\" AND tournament = \"australian open\""
} |
### INSTRUCTION
What is the name of the customer who has the most orders?
### INPUT
CREATE TABLE orders (customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
### OUTPUT
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE orders (customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)",
"instruction": "What is the name of the customer who has the most orders?",
"output": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What is the venue for the Status of Five Nations and 0 againts?
### INPUT
CREATE TABLE table_name_38 (venue VARCHAR, status VARCHAR, against VARCHAR)
### OUTPUT
SELECT venue FROM table_name_38 WHERE status = "five nations" AND against = 0 | {
"input": "CREATE TABLE table_name_38 (venue VARCHAR, status VARCHAR, against VARCHAR)",
"instruction": "What is the venue for the Status of Five Nations and 0 againts?",
"output": "SELECT venue FROM table_name_38 WHERE status = \"five nations\" AND against = 0"
} |
### INSTRUCTION
Position of fullback has what highest weight?
### INPUT
CREATE TABLE table_name_33 (weight INTEGER, position VARCHAR)
### OUTPUT
SELECT MAX(weight) FROM table_name_33 WHERE position = "fullback" | {
"input": "CREATE TABLE table_name_33 (weight INTEGER, position VARCHAR)",
"instruction": "Position of fullback has what highest weight?",
"output": "SELECT MAX(weight) FROM table_name_33 WHERE position = \"fullback\""
} |
### INSTRUCTION
When ратково is cyrillic name other names and village is the type and orthodox Christianity is the dominant religion of 2002 what is the settlement?
### INPUT
CREATE TABLE table_2562572_25 (settlement VARCHAR, cyrillic_name_other_names VARCHAR, dominant_religion__2002_ VARCHAR, type VARCHAR)
### OUTPUT
SELECT settlement FROM table_2562572_25 WHERE dominant_religion__2002_ = "Orthodox Christianity" AND type = "village" AND cyrillic_name_other_names = "Ратково" | {
"input": "CREATE TABLE table_2562572_25 (settlement VARCHAR, cyrillic_name_other_names VARCHAR, dominant_religion__2002_ VARCHAR, type VARCHAR)",
"instruction": "When ратково is cyrillic name other names and village is the type and orthodox Christianity is the dominant religion of 2002 what is the settlement? ",
"output": "SELECT settlement FROM table_2562572_25 WHERE dominant_religion__2002_ = \"Orthodox Christianity\" AND type = \"village\" AND cyrillic_name_other_names = \"Ратково\""
} |
### INSTRUCTION
What competition did he compete in before 2007 in gothenburg, sweden?
### INPUT
CREATE TABLE table_name_6 (competition VARCHAR, year VARCHAR, venue VARCHAR)
### OUTPUT
SELECT competition FROM table_name_6 WHERE year < 2007 AND venue = "gothenburg, sweden" | {
"input": "CREATE TABLE table_name_6 (competition VARCHAR, year VARCHAR, venue VARCHAR)",
"instruction": "What competition did he compete in before 2007 in gothenburg, sweden?",
"output": "SELECT competition FROM table_name_6 WHERE year < 2007 AND venue = \"gothenburg, sweden\""
} |
### INSTRUCTION
What is the ratio of Republicans to Democrats in South Carolina?
### INPUT
CREATE TABLE table_name_91 (republican__democratic VARCHAR, state_ranked_in_partisan_order VARCHAR)
### OUTPUT
SELECT republican__democratic FROM table_name_91 WHERE state_ranked_in_partisan_order = "south carolina" | {
"input": "CREATE TABLE table_name_91 (republican__democratic VARCHAR, state_ranked_in_partisan_order VARCHAR)",
"instruction": "What is the ratio of Republicans to Democrats in South Carolina?",
"output": "SELECT republican__democratic FROM table_name_91 WHERE state_ranked_in_partisan_order = \"south carolina\""
} |
### INSTRUCTION
What was the championship before 2012 that had Stephane Houdet Michael Jeremiasz as opponents?
### INPUT
CREATE TABLE table_name_23 (championship VARCHAR, year VARCHAR, opponents_in_final VARCHAR)
### OUTPUT
SELECT championship FROM table_name_23 WHERE year < 2012 AND opponents_in_final = "stephane houdet michael jeremiasz" | {
"input": "CREATE TABLE table_name_23 (championship VARCHAR, year VARCHAR, opponents_in_final VARCHAR)",
"instruction": "What was the championship before 2012 that had Stephane Houdet Michael Jeremiasz as opponents?",
"output": "SELECT championship FROM table_name_23 WHERE year < 2012 AND opponents_in_final = \"stephane houdet michael jeremiasz\""
} |
### INSTRUCTION
What is the project detail for the project with document "King Book"?
### INPUT
CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Documents (project_id VARCHAR, document_name VARCHAR)
### OUTPUT
SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = "King Book" | {
"input": "CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Documents (project_id VARCHAR, document_name VARCHAR)",
"instruction": "What is the project detail for the project with document \"King Book\"?",
"output": "SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = \"King Book\""
} |
### INSTRUCTION
Which Tournament has a Semi finalists of martina hingis joannette kruger?
### INPUT
CREATE TABLE table_name_62 (tournament VARCHAR, semi_finalists VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_62 WHERE semi_finalists = "martina hingis joannette kruger" | {
"input": "CREATE TABLE table_name_62 (tournament VARCHAR, semi_finalists VARCHAR)",
"instruction": "Which Tournament has a Semi finalists of martina hingis joannette kruger?",
"output": "SELECT tournament FROM table_name_62 WHERE semi_finalists = \"martina hingis joannette kruger\""
} |
### INSTRUCTION
what is the date for the week larger than 1 and the opponent detroit lions?
### INPUT
CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT date FROM table_name_23 WHERE week > 1 AND opponent = "detroit lions" | {
"input": "CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR, opponent VARCHAR)",
"instruction": "what is the date for the week larger than 1 and the opponent detroit lions?",
"output": "SELECT date FROM table_name_23 WHERE week > 1 AND opponent = \"detroit lions\""
} |
### INSTRUCTION
What is the highest placing for marie mcneil / robert mccall, with less than 168.58?
### INPUT
CREATE TABLE table_name_82 (placings INTEGER, name VARCHAR, points VARCHAR)
### OUTPUT
SELECT MAX(placings) FROM table_name_82 WHERE name = "marie mcneil / robert mccall" AND points < 168.58 | {
"input": "CREATE TABLE table_name_82 (placings INTEGER, name VARCHAR, points VARCHAR)",
"instruction": "What is the highest placing for marie mcneil / robert mccall, with less than 168.58?",
"output": "SELECT MAX(placings) FROM table_name_82 WHERE name = \"marie mcneil / robert mccall\" AND points < 168.58"
} |
### INSTRUCTION
How many powiats have mstsislaw as a capital?
### INPUT
CREATE TABLE table_1784514_1 (number_of_powiats VARCHAR, capital VARCHAR)
### OUTPUT
SELECT number_of_powiats FROM table_1784514_1 WHERE capital = "Mstsislaw" | {
"input": "CREATE TABLE table_1784514_1 (number_of_powiats VARCHAR, capital VARCHAR)",
"instruction": "How many powiats have mstsislaw as a capital?",
"output": "SELECT number_of_powiats FROM table_1784514_1 WHERE capital = \"Mstsislaw\""
} |
### INSTRUCTION
What is the Week of the game against Seattle Seahawks?
### INPUT
CREATE TABLE table_name_30 (week INTEGER, opponent VARCHAR)
### OUTPUT
SELECT AVG(week) FROM table_name_30 WHERE opponent = "seattle seahawks" | {
"input": "CREATE TABLE table_name_30 (week INTEGER, opponent VARCHAR)",
"instruction": "What is the Week of the game against Seattle Seahawks?",
"output": "SELECT AVG(week) FROM table_name_30 WHERE opponent = \"seattle seahawks\""
} |
### INSTRUCTION
Which customer is associated with the latest policy?
### INPUT
CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE policies (start_date INTEGER); CREATE TABLE policies (customer_id VARCHAR, start_date INTEGER)
### OUTPUT
SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.start_date = (SELECT MAX(start_date) FROM policies) | {
"input": "CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE policies (start_date INTEGER); CREATE TABLE policies (customer_id VARCHAR, start_date INTEGER)",
"instruction": "Which customer is associated with the latest policy?",
"output": "SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.start_date = (SELECT MAX(start_date) FROM policies)"
} |
### INSTRUCTION
Which Pick # has a College of concordia?
### INPUT
CREATE TABLE table_name_45 (pick__number INTEGER, college VARCHAR)
### OUTPUT
SELECT MAX(pick__number) FROM table_name_45 WHERE college = "concordia" | {
"input": "CREATE TABLE table_name_45 (pick__number INTEGER, college VARCHAR)",
"instruction": "Which Pick # has a College of concordia?",
"output": "SELECT MAX(pick__number) FROM table_name_45 WHERE college = \"concordia\""
} |
### INSTRUCTION
What was the lowest percentages of wins in 1989 with a GB [c] of 17?
### INPUT
CREATE TABLE table_name_59 (win_percentage INTEGER, reds_season VARCHAR, gb_ VARCHAR, c_ VARCHAR)
### OUTPUT
SELECT MIN(win_percentage) FROM table_name_59 WHERE gb_[c_] = "17" AND reds_season = 1989 | {
"input": "CREATE TABLE table_name_59 (win_percentage INTEGER, reds_season VARCHAR, gb_ VARCHAR, c_ VARCHAR)",
"instruction": "What was the lowest percentages of wins in 1989 with a GB [c] of 17?",
"output": "SELECT MIN(win_percentage) FROM table_name_59 WHERE gb_[c_] = \"17\" AND reds_season = 1989"
} |
### INSTRUCTION
Find the last names of all the authors that have written a paper with title containing the word "Monadic".
### INPUT
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR)
### OUTPUT
SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE "%Monadic%" | {
"input": "CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR)",
"instruction": "Find the last names of all the authors that have written a paper with title containing the word \"Monadic\".",
"output": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE \"%Monadic%\""
} |
### INSTRUCTION
Name the most number of believers for ܓܘܝܠܢ
### INPUT
CREATE TABLE table_24613895_1 (number_of_believers INTEGER, name_in_syriac VARCHAR)
### OUTPUT
SELECT MAX(number_of_believers) FROM table_24613895_1 WHERE name_in_syriac = "ܓܘܝܠܢ" | {
"input": "CREATE TABLE table_24613895_1 (number_of_believers INTEGER, name_in_syriac VARCHAR)",
"instruction": "Name the most number of believers for ܓܘܝܠܢ",
"output": "SELECT MAX(number_of_believers) FROM table_24613895_1 WHERE name_in_syriac = \"ܓܘܝܠܢ\""
} |
### INSTRUCTION
What is the highest number of inhabitants per MEP that has MEPs larger than 50, a member of Germany, and a population less than 82.43 million?
### INPUT
CREATE TABLE table_name_26 (inhabitants_per_mep INTEGER, population_millions VARCHAR, meps VARCHAR, member_state VARCHAR)
### OUTPUT
SELECT MAX(inhabitants_per_mep) FROM table_name_26 WHERE meps > 50 AND member_state = "germany" AND population_millions < 82.43 | {
"input": "CREATE TABLE table_name_26 (inhabitants_per_mep INTEGER, population_millions VARCHAR, meps VARCHAR, member_state VARCHAR)",
"instruction": "What is the highest number of inhabitants per MEP that has MEPs larger than 50, a member of Germany, and a population less than 82.43 million?",
"output": "SELECT MAX(inhabitants_per_mep) FROM table_name_26 WHERE meps > 50 AND member_state = \"germany\" AND population_millions < 82.43"
} |
### INSTRUCTION
What is the total number of Year with Wins of 1, and Losses smaller than 1?
### INPUT
CREATE TABLE table_name_93 (year INTEGER, wins VARCHAR, losses VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_93 WHERE wins = 1 AND losses < 1 | {
"input": "CREATE TABLE table_name_93 (year INTEGER, wins VARCHAR, losses VARCHAR)",
"instruction": "What is the total number of Year with Wins of 1, and Losses smaller than 1?",
"output": "SELECT SUM(year) FROM table_name_93 WHERE wins = 1 AND losses < 1"
} |
### INSTRUCTION
What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3?
### INPUT
CREATE TABLE table_name_52 (rank INTEGER, heat VARCHAR, nationality VARCHAR, lane VARCHAR)
### OUTPUT
SELECT SUM(rank) FROM table_name_52 WHERE nationality = "japan" AND lane < 7 AND heat < 3 | {
"input": "CREATE TABLE table_name_52 (rank INTEGER, heat VARCHAR, nationality VARCHAR, lane VARCHAR)",
"instruction": "What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3?",
"output": "SELECT SUM(rank) FROM table_name_52 WHERE nationality = \"japan\" AND lane < 7 AND heat < 3"
} |
### INSTRUCTION
What is the date for Hydra Head Records with a CD format?
### INPUT
CREATE TABLE table_name_21 (date VARCHAR, label VARCHAR, format VARCHAR)
### OUTPUT
SELECT date FROM table_name_21 WHERE label = "hydra head records" AND format = "cd" | {
"input": "CREATE TABLE table_name_21 (date VARCHAR, label VARCHAR, format VARCHAR)",
"instruction": "What is the date for Hydra Head Records with a CD format?",
"output": "SELECT date FROM table_name_21 WHERE label = \"hydra head records\" AND format = \"cd\""
} |
### INSTRUCTION
Tell me the total number of administrative panel with labour panel more than 2, nominated by taoiseach more than 6 and total of 28
### INPUT
CREATE TABLE table_name_59 (administrative_panel VARCHAR, nominated_by_the_taoiseach VARCHAR, labour_panel VARCHAR, total VARCHAR)
### OUTPUT
SELECT COUNT(administrative_panel) FROM table_name_59 WHERE labour_panel > 2 AND total = 28 AND nominated_by_the_taoiseach > 6 | {
"input": "CREATE TABLE table_name_59 (administrative_panel VARCHAR, nominated_by_the_taoiseach VARCHAR, labour_panel VARCHAR, total VARCHAR)",
"instruction": "Tell me the total number of administrative panel with labour panel more than 2, nominated by taoiseach more than 6 and total of 28",
"output": "SELECT COUNT(administrative_panel) FROM table_name_59 WHERE labour_panel > 2 AND total = 28 AND nominated_by_the_taoiseach > 6"
} |
### INSTRUCTION
Find the name of the person who has friends with age above 40 and under age 30?
### INPUT
CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)
### OUTPUT
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30) | {
"input": "CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)",
"instruction": "Find the name of the person who has friends with age above 40 and under age 30?",
"output": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)"
} |
### INSTRUCTION
How many times is the award ceremony laurence olivier award, result is won and the nominee is imelda staunton?
### INPUT
CREATE TABLE table_name_3 (year VARCHAR, nominee VARCHAR, award_ceremony VARCHAR, result VARCHAR)
### OUTPUT
SELECT COUNT(year) FROM table_name_3 WHERE award_ceremony = "laurence olivier award" AND result = "won" AND nominee = "imelda staunton" | {
"input": "CREATE TABLE table_name_3 (year VARCHAR, nominee VARCHAR, award_ceremony VARCHAR, result VARCHAR)",
"instruction": "How many times is the award ceremony laurence olivier award, result is won and the nominee is imelda staunton?",
"output": "SELECT COUNT(year) FROM table_name_3 WHERE award_ceremony = \"laurence olivier award\" AND result = \"won\" AND nominee = \"imelda staunton\""
} |
### INSTRUCTION
Name the gdp per capita for haiti
### INPUT
CREATE TABLE table_26313243_1 (gdp__ppp__per_capita___intl_$___2011 VARCHAR, country VARCHAR)
### OUTPUT
SELECT gdp__ppp__per_capita___intl_$___2011 FROM table_26313243_1 WHERE country = "Haiti" | {
"input": "CREATE TABLE table_26313243_1 (gdp__ppp__per_capita___intl_$___2011 VARCHAR, country VARCHAR)",
"instruction": "Name the gdp per capita for haiti",
"output": "SELECT gdp__ppp__per_capita___intl_$___2011 FROM table_26313243_1 WHERE country = \"Haiti\""
} |
### INSTRUCTION
What is the teaching language with the duration (years) 3.5?
### INPUT
CREATE TABLE table_12591022_2 (teaching_language VARCHAR, duration__years_ VARCHAR)
### OUTPUT
SELECT teaching_language FROM table_12591022_2 WHERE duration__years_ = "3.5" | {
"input": "CREATE TABLE table_12591022_2 (teaching_language VARCHAR, duration__years_ VARCHAR)",
"instruction": "What is the teaching language with the duration (years) 3.5?",
"output": "SELECT teaching_language FROM table_12591022_2 WHERE duration__years_ = \"3.5\""
} |
### INSTRUCTION
What is City of License, when Frequency MHz is less than 102.5?
### INPUT
CREATE TABLE table_name_8 (city_of_license VARCHAR, frequency_mhz INTEGER)
### OUTPUT
SELECT city_of_license FROM table_name_8 WHERE frequency_mhz < 102.5 | {
"input": "CREATE TABLE table_name_8 (city_of_license VARCHAR, frequency_mhz INTEGER)",
"instruction": "What is City of License, when Frequency MHz is less than 102.5?",
"output": "SELECT city_of_license FROM table_name_8 WHERE frequency_mhz < 102.5"
} |
### INSTRUCTION
Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29?
### INPUT
CREATE TABLE table_name_63 (nationality___opponent VARCHAR, competition VARCHAR, result VARCHAR)
### OUTPUT
SELECT nationality___opponent FROM table_name_63 WHERE competition = "welsh rugby union challenge trophy" AND result = "38-29" | {
"input": "CREATE TABLE table_name_63 (nationality___opponent VARCHAR, competition VARCHAR, result VARCHAR)",
"instruction": "Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29?",
"output": "SELECT nationality___opponent FROM table_name_63 WHERE competition = \"welsh rugby union challenge trophy\" AND result = \"38-29\""
} |
### INSTRUCTION
What position is the player that is from Canada and on the Boston Bruins
### INPUT
CREATE TABLE table_name_51 (position VARCHAR, nationality VARCHAR, nhl_team VARCHAR)
### OUTPUT
SELECT position FROM table_name_51 WHERE nationality = "canada" AND nhl_team = "boston bruins" | {
"input": "CREATE TABLE table_name_51 (position VARCHAR, nationality VARCHAR, nhl_team VARCHAR)",
"instruction": "What position is the player that is from Canada and on the Boston Bruins",
"output": "SELECT position FROM table_name_51 WHERE nationality = \"canada\" AND nhl_team = \"boston bruins\""
} |
### INSTRUCTION
Which countries have either English or Dutch as an official language?
### INPUT
CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)
### OUTPUT
SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND IsOfficial = "T" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Dutch" AND IsOfficial = "T" | {
"input": "CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)",
"instruction": "Which countries have either English or Dutch as an official language?",
"output": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\" AND IsOfficial = \"T\""
} |
### INSTRUCTION
Find the name of the teacher who teaches the largest number of students.
### INPUT
CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR)
### OUTPUT
SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname, T2.lastname ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR)",
"instruction": "Find the name of the teacher who teaches the largest number of students.",
"output": "SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname, T2.lastname ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
How many semi-final weeks are there for acts from Pittsburgh, Pennsylvania?
### INPUT
CREATE TABLE table_27529608_21 (semi_final__week_ VARCHAR, hometown VARCHAR)
### OUTPUT
SELECT COUNT(semi_final__week_) FROM table_27529608_21 WHERE hometown = "Pittsburgh, Pennsylvania" | {
"input": "CREATE TABLE table_27529608_21 (semi_final__week_ VARCHAR, hometown VARCHAR)",
"instruction": "How many semi-final weeks are there for acts from Pittsburgh, Pennsylvania?",
"output": "SELECT COUNT(semi_final__week_) FROM table_27529608_21 WHERE hometown = \"Pittsburgh, Pennsylvania\""
} |
### INSTRUCTION
How many wins has a podiums greater than 1 and 9 as the races with a season after 1984?
### INPUT
CREATE TABLE table_name_13 (wins VARCHAR, season VARCHAR, podiums VARCHAR, races VARCHAR)
### OUTPUT
SELECT COUNT(wins) FROM table_name_13 WHERE podiums > 1 AND races = 9 AND season > 1984 | {
"input": "CREATE TABLE table_name_13 (wins VARCHAR, season VARCHAR, podiums VARCHAR, races VARCHAR)",
"instruction": "How many wins has a podiums greater than 1 and 9 as the races with a season after 1984?",
"output": "SELECT COUNT(wins) FROM table_name_13 WHERE podiums > 1 AND races = 9 AND season > 1984"
} |
### INSTRUCTION
What is the highest population in the millions that has an influence of 1.02?
### INPUT
CREATE TABLE table_name_55 (population_millions INTEGER, influence VARCHAR)
### OUTPUT
SELECT MAX(population_millions) FROM table_name_55 WHERE influence = 1.02 | {
"input": "CREATE TABLE table_name_55 (population_millions INTEGER, influence VARCHAR)",
"instruction": "What is the highest population in the millions that has an influence of 1.02?",
"output": "SELECT MAX(population_millions) FROM table_name_55 WHERE influence = 1.02"
} |
### INSTRUCTION
what is the week when the result is w 14-13 and the attendance is higher than 53,295?
### INPUT
CREATE TABLE table_name_51 (week INTEGER, result VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT AVG(week) FROM table_name_51 WHERE result = "w 14-13" AND attendance > 53 OFFSET 295 | {
"input": "CREATE TABLE table_name_51 (week INTEGER, result VARCHAR, attendance VARCHAR)",
"instruction": "what is the week when the result is w 14-13 and the attendance is higher than 53,295?",
"output": "SELECT AVG(week) FROM table_name_51 WHERE result = \"w 14-13\" AND attendance > 53 OFFSET 295"
} |
### INSTRUCTION
List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.
### INPUT
CREATE TABLE Lessons (lesson_id VARCHAR, staff_id VARCHAR); CREATE TABLE Staff (staff_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
### OUTPUT
SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" AND nickname LIKE "%s%" | {
"input": "CREATE TABLE Lessons (lesson_id VARCHAR, staff_id VARCHAR); CREATE TABLE Staff (staff_id VARCHAR, first_name VARCHAR, last_name VARCHAR)",
"instruction": "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.",
"output": "SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\" AND nickname LIKE \"%s%\""
} |
### INSTRUCTION
What is the Catalog number in the Region of France?
### INPUT
CREATE TABLE table_name_42 (catalog VARCHAR, region VARCHAR)
### OUTPUT
SELECT catalog FROM table_name_42 WHERE region = "france" | {
"input": "CREATE TABLE table_name_42 (catalog VARCHAR, region VARCHAR)",
"instruction": "What is the Catalog number in the Region of France?",
"output": "SELECT catalog FROM table_name_42 WHERE region = \"france\""
} |
### INSTRUCTION
What Aspect has a Programming of Saigon Network Television?
### INPUT
CREATE TABLE table_name_12 (aspect VARCHAR, programming VARCHAR)
### OUTPUT
SELECT aspect FROM table_name_12 WHERE programming = "saigon network television" | {
"input": "CREATE TABLE table_name_12 (aspect VARCHAR, programming VARCHAR)",
"instruction": "What Aspect has a Programming of Saigon Network Television?",
"output": "SELECT aspect FROM table_name_12 WHERE programming = \"saigon network television\""
} |
### INSTRUCTION
what is the nightly rank where the episode number production number is 06 1-06?
### INPUT
CREATE TABLE table_17004367_3 (nightly_rank VARCHAR, episode_number_production_number VARCHAR)
### OUTPUT
SELECT COUNT(nightly_rank) FROM table_17004367_3 WHERE episode_number_production_number = "06 1-06" | {
"input": "CREATE TABLE table_17004367_3 (nightly_rank VARCHAR, episode_number_production_number VARCHAR)",
"instruction": "what is the nightly rank where the episode number production number is 06 1-06?",
"output": "SELECT COUNT(nightly_rank) FROM table_17004367_3 WHERE episode_number_production_number = \"06 1-06\""
} |
### INSTRUCTION
How many songs have a shared vocal?
### INPUT
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
### OUTPUT
SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared" | {
"input": "CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)",
"instruction": "How many songs have a shared vocal?",
"output": "SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = \"shared\""
} |
### INSTRUCTION
Name the distance for Course of vittorio veneto to marina romea
### INPUT
CREATE TABLE table_name_3 (distance VARCHAR, course VARCHAR)
### OUTPUT
SELECT distance FROM table_name_3 WHERE course = "vittorio veneto to marina romea" | {
"input": "CREATE TABLE table_name_3 (distance VARCHAR, course VARCHAR)",
"instruction": "Name the distance for Course of vittorio veneto to marina romea",
"output": "SELECT distance FROM table_name_3 WHERE course = \"vittorio veneto to marina romea\""
} |
### INSTRUCTION
which player has a conv of 14?
### INPUT
CREATE TABLE table_name_45 (player VARCHAR, conv VARCHAR)
### OUTPUT
SELECT player FROM table_name_45 WHERE conv = "14" | {
"input": "CREATE TABLE table_name_45 (player VARCHAR, conv VARCHAR)",
"instruction": "which player has a conv of 14?",
"output": "SELECT player FROM table_name_45 WHERE conv = \"14\""
} |
### INSTRUCTION
Total larger than 285, and a Finish of t30 belongs to what player?
### INPUT
CREATE TABLE table_name_83 (player VARCHAR, total VARCHAR, finish VARCHAR)
### OUTPUT
SELECT player FROM table_name_83 WHERE total > 285 AND finish = "t30" | {
"input": "CREATE TABLE table_name_83 (player VARCHAR, total VARCHAR, finish VARCHAR)",
"instruction": "Total larger than 285, and a Finish of t30 belongs to what player?",
"output": "SELECT player FROM table_name_83 WHERE total > 285 AND finish = \"t30\""
} |
### INSTRUCTION
Name the won promotion for kalmar ff
### INPUT
CREATE TABLE table_2119448_3 (won_promotion VARCHAR, lost_promotion_playoffs VARCHAR)
### OUTPUT
SELECT won_promotion FROM table_2119448_3 WHERE lost_promotion_playoffs = "Kalmar FF" | {
"input": "CREATE TABLE table_2119448_3 (won_promotion VARCHAR, lost_promotion_playoffs VARCHAR)",
"instruction": "Name the won promotion for kalmar ff",
"output": "SELECT won_promotion FROM table_2119448_3 WHERE lost_promotion_playoffs = \"Kalmar FF\""
} |
### INSTRUCTION
What county has a CERCLIS ID of scd037405362?
### INPUT
CREATE TABLE table_name_64 (county VARCHAR, cerclis_id VARCHAR)
### OUTPUT
SELECT county FROM table_name_64 WHERE cerclis_id = "scd037405362" | {
"input": "CREATE TABLE table_name_64 (county VARCHAR, cerclis_id VARCHAR)",
"instruction": "What county has a CERCLIS ID of scd037405362?",
"output": "SELECT county FROM table_name_64 WHERE cerclis_id = \"scd037405362\""
} |
### INSTRUCTION
Which country has less than 4 votes?
### INPUT
CREATE TABLE table_name_99 (state VARCHAR, council_votes INTEGER)
### OUTPUT
SELECT state FROM table_name_99 WHERE council_votes < 4 | {
"input": "CREATE TABLE table_name_99 (state VARCHAR, council_votes INTEGER)",
"instruction": "Which country has less than 4 votes?",
"output": "SELECT state FROM table_name_99 WHERE council_votes < 4"
} |
### INSTRUCTION
Can you tell me the Placings that hasthe Free smaller than 524.3, and the Total smaller than 1170.1, and the Name of per cock-clausen?
### INPUT
CREATE TABLE table_name_34 (placings VARCHAR, name VARCHAR, free VARCHAR, total VARCHAR)
### OUTPUT
SELECT placings FROM table_name_34 WHERE free < 524.3 AND total < 1170.1 AND name = "per cock-clausen" | {
"input": "CREATE TABLE table_name_34 (placings VARCHAR, name VARCHAR, free VARCHAR, total VARCHAR)",
"instruction": "Can you tell me the Placings that hasthe Free smaller than 524.3, and the Total smaller than 1170.1, and the Name of per cock-clausen?",
"output": "SELECT placings FROM table_name_34 WHERE free < 524.3 AND total < 1170.1 AND name = \"per cock-clausen\""
} |
### INSTRUCTION
Which year was the film Rang Barse introduced?
### INPUT
CREATE TABLE table_name_63 (year VARCHAR, film_name VARCHAR)
### OUTPUT
SELECT COUNT(year) FROM table_name_63 WHERE film_name = "rang barse" | {
"input": "CREATE TABLE table_name_63 (year VARCHAR, film_name VARCHAR)",
"instruction": "Which year was the film Rang Barse introduced?",
"output": "SELECT COUNT(year) FROM table_name_63 WHERE film_name = \"rang barse\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.