text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
How many Byes have an Against of 972, and more than 11 wins?
### INPUT
CREATE TABLE table_name_39 (byes INTEGER, against VARCHAR, wins VARCHAR)
### OUTPUT
SELECT SUM(byes) FROM table_name_39 WHERE against = 972 AND wins > 11 | {
"input": "CREATE TABLE table_name_39 (byes INTEGER, against VARCHAR, wins VARCHAR)",
"instruction": "How many Byes have an Against of 972, and more than 11 wins?",
"output": "SELECT SUM(byes) FROM table_name_39 WHERE against = 972 AND wins > 11"
} |
### INSTRUCTION
What is the lowest population for the area that has a density of 36.7?
### INPUT
CREATE TABLE table_name_89 (population__2011_ INTEGER, density__inhabitants_km_2__ VARCHAR)
### OUTPUT
SELECT MIN(population__2011_) FROM table_name_89 WHERE density__inhabitants_km_2__ = 36.7 | {
"input": "CREATE TABLE table_name_89 (population__2011_ INTEGER, density__inhabitants_km_2__ VARCHAR)",
"instruction": "What is the lowest population for the area that has a density of 36.7?",
"output": "SELECT MIN(population__2011_) FROM table_name_89 WHERE density__inhabitants_km_2__ = 36.7"
} |
### INSTRUCTION
What is the Byzantine Commander with a Bulgarian Victory at the Siege of Lovech?
### INPUT
CREATE TABLE table_name_44 (byzantine_commander VARCHAR, result VARCHAR, battle VARCHAR)
### OUTPUT
SELECT byzantine_commander FROM table_name_44 WHERE result = "bulgarian victory" AND battle = "siege of lovech" | {
"input": "CREATE TABLE table_name_44 (byzantine_commander VARCHAR, result VARCHAR, battle VARCHAR)",
"instruction": "What is the Byzantine Commander with a Bulgarian Victory at the Siege of Lovech?",
"output": "SELECT byzantine_commander FROM table_name_44 WHERE result = \"bulgarian victory\" AND battle = \"siege of lovech\""
} |
### INSTRUCTION
what is the right ascension (j2000) when the constellation is sextans and the declination (j2000) is °28′01″?
### INPUT
CREATE TABLE table_name_53 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, declination___j2000__ VARCHAR)
### OUTPUT
SELECT right_ascension___j2000__ FROM table_name_53 WHERE constellation = "sextans" AND declination___j2000__ = "°28′01″" | {
"input": "CREATE TABLE table_name_53 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, declination___j2000__ VARCHAR)",
"instruction": "what is the right ascension (j2000) when the constellation is sextans and the declination (j2000) is °28′01″?",
"output": "SELECT right_ascension___j2000__ FROM table_name_53 WHERE constellation = \"sextans\" AND declination___j2000__ = \"°28′01″\""
} |
### INSTRUCTION
How many datas were recorded on January 15-16 if August 21-22 is 155?
### INPUT
CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, august_21_22 VARCHAR)
### OUTPUT
SELECT COUNT(january_15_16) FROM table_25216791_3 WHERE august_21_22 = "155" | {
"input": "CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, august_21_22 VARCHAR)",
"instruction": "How many datas were recorded on January 15-16 if August 21-22 is 155?",
"output": "SELECT COUNT(january_15_16) FROM table_25216791_3 WHERE august_21_22 = \"155\""
} |
### INSTRUCTION
Show the manager name with most number of gas stations opened after 2000.
### INPUT
CREATE TABLE gas_station (manager_name VARCHAR, open_year INTEGER)
### OUTPUT
SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE gas_station (manager_name VARCHAR, open_year INTEGER)",
"instruction": "Show the manager name with most number of gas stations opened after 2000.",
"output": "SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Name the most wins total with wins indoor of 0 and wins outdoor of 1 with rank less than 7
### INPUT
CREATE TABLE table_name_68 (wins__total_ INTEGER, rank VARCHAR, wins__indoor_ VARCHAR, wins__outdoor_ VARCHAR)
### OUTPUT
SELECT MAX(wins__total_) FROM table_name_68 WHERE wins__indoor_ = 0 AND wins__outdoor_ = 1 AND rank < 7 | {
"input": "CREATE TABLE table_name_68 (wins__total_ INTEGER, rank VARCHAR, wins__indoor_ VARCHAR, wins__outdoor_ VARCHAR)",
"instruction": "Name the most wins total with wins indoor of 0 and wins outdoor of 1 with rank less than 7",
"output": "SELECT MAX(wins__total_) FROM table_name_68 WHERE wins__indoor_ = 0 AND wins__outdoor_ = 1 AND rank < 7"
} |
### INSTRUCTION
In what year was there an award for TV Adicto Golden Awards and the category Female Revelation?
### INPUT
CREATE TABLE table_name_78 (year VARCHAR, award VARCHAR, category VARCHAR)
### OUTPUT
SELECT year FROM table_name_78 WHERE award = "tv adicto golden awards" AND category = "female revelation" | {
"input": "CREATE TABLE table_name_78 (year VARCHAR, award VARCHAR, category VARCHAR)",
"instruction": "In what year was there an award for TV Adicto Golden Awards and the category Female Revelation?",
"output": "SELECT year FROM table_name_78 WHERE award = \"tv adicto golden awards\" AND category = \"female revelation\""
} |
### INSTRUCTION
When madison square garden ( new york city, new york ) is the tournament venue (city) what is the conference tournament?
### INPUT
CREATE TABLE table_24160890_3 (conference VARCHAR, tournament_venue__city_ VARCHAR)
### OUTPUT
SELECT conference AS Tournament FROM table_24160890_3 WHERE tournament_venue__city_ = "Madison Square Garden ( New York City, New York )" | {
"input": "CREATE TABLE table_24160890_3 (conference VARCHAR, tournament_venue__city_ VARCHAR)",
"instruction": "When madison square garden ( new york city, new york ) is the tournament venue (city) what is the conference tournament?",
"output": "SELECT conference AS Tournament FROM table_24160890_3 WHERE tournament_venue__city_ = \"Madison Square Garden ( New York City, New York )\""
} |
### INSTRUCTION
What was the Green-Communist percentage in the poll in which the Socialist Party earned 41.0%?
### INPUT
CREATE TABLE table_name_59 (green_communist VARCHAR, socialist VARCHAR)
### OUTPUT
SELECT green_communist FROM table_name_59 WHERE socialist = "41.0%" | {
"input": "CREATE TABLE table_name_59 (green_communist VARCHAR, socialist VARCHAR)",
"instruction": "What was the Green-Communist percentage in the poll in which the Socialist Party earned 41.0%?",
"output": "SELECT green_communist FROM table_name_59 WHERE socialist = \"41.0%\""
} |
### INSTRUCTION
What person has the alma mater of Eastern Nazarene ('74), and greater than 19 experience?
### INPUT
CREATE TABLE table_name_86 (name VARCHAR, experience VARCHAR, alma_mater VARCHAR)
### OUTPUT
SELECT name FROM table_name_86 WHERE experience > 19 AND alma_mater = "eastern nazarene ('74)" | {
"input": "CREATE TABLE table_name_86 (name VARCHAR, experience VARCHAR, alma_mater VARCHAR)",
"instruction": "What person has the alma mater of Eastern Nazarene ('74), and greater than 19 experience?",
"output": "SELECT name FROM table_name_86 WHERE experience > 19 AND alma_mater = \"eastern nazarene ('74)\""
} |
### INSTRUCTION
How many rounds have an Overall larger than 17, and a Position of quarterback?
### INPUT
CREATE TABLE table_name_66 (round VARCHAR, overall VARCHAR, position VARCHAR)
### OUTPUT
SELECT COUNT(round) FROM table_name_66 WHERE overall > 17 AND position = "quarterback" | {
"input": "CREATE TABLE table_name_66 (round VARCHAR, overall VARCHAR, position VARCHAR)",
"instruction": "How many rounds have an Overall larger than 17, and a Position of quarterback?",
"output": "SELECT COUNT(round) FROM table_name_66 WHERE overall > 17 AND position = \"quarterback\""
} |
### INSTRUCTION
What is the Time of the Belarus Player with a Rank larger than 2 and Notes of FB?
### INPUT
CREATE TABLE table_name_98 (time VARCHAR, country VARCHAR, rank VARCHAR, notes VARCHAR)
### OUTPUT
SELECT time FROM table_name_98 WHERE rank > 2 AND notes = "fb" AND country = "belarus" | {
"input": "CREATE TABLE table_name_98 (time VARCHAR, country VARCHAR, rank VARCHAR, notes VARCHAR)",
"instruction": "What is the Time of the Belarus Player with a Rank larger than 2 and Notes of FB?",
"output": "SELECT time FROM table_name_98 WHERE rank > 2 AND notes = \"fb\" AND country = \"belarus\""
} |
### INSTRUCTION
Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay?
### INPUT
CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR, tie_no VARCHAR, date VARCHAR)
### OUTPUT
SELECT home_team FROM table_name_68 WHERE tie_no = "replay" AND date = "4 february 1987" AND away_team = "luton town" | {
"input": "CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR, tie_no VARCHAR, date VARCHAR)",
"instruction": "Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay?",
"output": "SELECT home_team FROM table_name_68 WHERE tie_no = \"replay\" AND date = \"4 february 1987\" AND away_team = \"luton town\""
} |
### INSTRUCTION
Name the number of parish for vilnes kyrkje
### INPUT
CREATE TABLE table_178399_1 (parish__prestegjeld_ VARCHAR, church_name VARCHAR)
### OUTPUT
SELECT COUNT(parish__prestegjeld_) FROM table_178399_1 WHERE church_name = "Vilnes kyrkje" | {
"input": "CREATE TABLE table_178399_1 (parish__prestegjeld_ VARCHAR, church_name VARCHAR)",
"instruction": "Name the number of parish for vilnes kyrkje",
"output": "SELECT COUNT(parish__prestegjeld_) FROM table_178399_1 WHERE church_name = \"Vilnes kyrkje\""
} |
### INSTRUCTION
What was the Event in the city of copenhagen?
### INPUT
CREATE TABLE table_name_32 (event VARCHAR, city VARCHAR)
### OUTPUT
SELECT event FROM table_name_32 WHERE city = "copenhagen" | {
"input": "CREATE TABLE table_name_32 (event VARCHAR, city VARCHAR)",
"instruction": "What was the Event in the city of copenhagen?",
"output": "SELECT event FROM table_name_32 WHERE city = \"copenhagen\""
} |
### INSTRUCTION
Tell me the format for worldwide region july 22, 2008
### INPUT
CREATE TABLE table_name_67 (format VARCHAR, region VARCHAR, date VARCHAR)
### OUTPUT
SELECT format FROM table_name_67 WHERE region = "worldwide" AND date = "july 22, 2008" | {
"input": "CREATE TABLE table_name_67 (format VARCHAR, region VARCHAR, date VARCHAR)",
"instruction": "Tell me the format for worldwide region july 22, 2008",
"output": "SELECT format FROM table_name_67 WHERE region = \"worldwide\" AND date = \"july 22, 2008\""
} |
### INSTRUCTION
How many fatalities were there in the crash described as crashed at take-off due to engine failure?
### INPUT
CREATE TABLE table_229917_2 (fatalities VARCHAR, brief_description VARCHAR)
### OUTPUT
SELECT fatalities FROM table_229917_2 WHERE brief_description = "Crashed at take-off due to engine failure" | {
"input": "CREATE TABLE table_229917_2 (fatalities VARCHAR, brief_description VARCHAR)",
"instruction": "How many fatalities were there in the crash described as crashed at take-off due to engine failure?",
"output": "SELECT fatalities FROM table_229917_2 WHERE brief_description = \"Crashed at take-off due to engine failure\""
} |
### INSTRUCTION
Which Particle has a Rest mass MeV/c 2 of 1192.642(24)?
### INPUT
CREATE TABLE table_name_61 (particle VARCHAR, rest_mass_mev___c_2 VARCHAR)
### OUTPUT
SELECT particle FROM table_name_61 WHERE rest_mass_mev___c_2 = "1192.642(24)" | {
"input": "CREATE TABLE table_name_61 (particle VARCHAR, rest_mass_mev___c_2 VARCHAR)",
"instruction": "Which Particle has a Rest mass MeV/c 2 of 1192.642(24)?",
"output": "SELECT particle FROM table_name_61 WHERE rest_mass_mev___c_2 = \"1192.642(24)\""
} |
### INSTRUCTION
What is the average crowd size for games with hawthorn as the home side?
### INPUT
CREATE TABLE table_name_8 (crowd INTEGER, home_team VARCHAR)
### OUTPUT
SELECT AVG(crowd) FROM table_name_8 WHERE home_team = "hawthorn" | {
"input": "CREATE TABLE table_name_8 (crowd INTEGER, home_team VARCHAR)",
"instruction": "What is the average crowd size for games with hawthorn as the home side?",
"output": "SELECT AVG(crowd) FROM table_name_8 WHERE home_team = \"hawthorn\""
} |
### INSTRUCTION
When carmelo anthony (42) has the highest amount of points how many measurements of highest rebounds are there?
### INPUT
CREATE TABLE table_23285849_11 (high_rebounds VARCHAR, high_points VARCHAR)
### OUTPUT
SELECT COUNT(high_rebounds) FROM table_23285849_11 WHERE high_points = "Carmelo Anthony (42)" | {
"input": "CREATE TABLE table_23285849_11 (high_rebounds VARCHAR, high_points VARCHAR)",
"instruction": "When carmelo anthony (42) has the highest amount of points how many measurements of highest rebounds are there?",
"output": "SELECT COUNT(high_rebounds) FROM table_23285849_11 WHERE high_points = \"Carmelo Anthony (42)\""
} |
### INSTRUCTION
What construction completed on 08/10/2007?
### INPUT
CREATE TABLE table_name_46 (listed VARCHAR, construction_completed VARCHAR)
### OUTPUT
SELECT listed FROM table_name_46 WHERE construction_completed = "08/10/2007" | {
"input": "CREATE TABLE table_name_46 (listed VARCHAR, construction_completed VARCHAR)",
"instruction": "What construction completed on 08/10/2007?",
"output": "SELECT listed FROM table_name_46 WHERE construction_completed = \"08/10/2007\""
} |
### INSTRUCTION
What red list is in the artiodactyla order and the cervidae family with a Species Authority of odocoileus virginianus zimmermann, 1780?
### INPUT
CREATE TABLE table_name_22 (red_list VARCHAR, species_authority VARCHAR, order VARCHAR, family VARCHAR)
### OUTPUT
SELECT red_list FROM table_name_22 WHERE order = "artiodactyla" AND family = "cervidae" AND species_authority = "odocoileus virginianus zimmermann, 1780" | {
"input": "CREATE TABLE table_name_22 (red_list VARCHAR, species_authority VARCHAR, order VARCHAR, family VARCHAR)",
"instruction": "What red list is in the artiodactyla order and the cervidae family with a Species Authority of odocoileus virginianus zimmermann, 1780?",
"output": "SELECT red_list FROM table_name_22 WHERE order = \"artiodactyla\" AND family = \"cervidae\" AND species_authority = \"odocoileus virginianus zimmermann, 1780\""
} |
### INSTRUCTION
What is the epa rated combined fuel economy for the Nissan Leaf?
### INPUT
CREATE TABLE table_23840623_4 (epa_rated_combined_fuel_economy VARCHAR, vehicle VARCHAR)
### OUTPUT
SELECT epa_rated_combined_fuel_economy FROM table_23840623_4 WHERE vehicle = "Nissan Leaf" | {
"input": "CREATE TABLE table_23840623_4 (epa_rated_combined_fuel_economy VARCHAR, vehicle VARCHAR)",
"instruction": "What is the epa rated combined fuel economy for the Nissan Leaf?",
"output": "SELECT epa_rated_combined_fuel_economy FROM table_23840623_4 WHERE vehicle = \"Nissan Leaf\""
} |
### INSTRUCTION
Name the home when the visitor was dallas on february 2
### INPUT
CREATE TABLE table_name_12 (home VARCHAR, visitor VARCHAR, date VARCHAR)
### OUTPUT
SELECT home FROM table_name_12 WHERE visitor = "dallas" AND date = "february 2" | {
"input": "CREATE TABLE table_name_12 (home VARCHAR, visitor VARCHAR, date VARCHAR)",
"instruction": "Name the home when the visitor was dallas on february 2",
"output": "SELECT home FROM table_name_12 WHERE visitor = \"dallas\" AND date = \"february 2\""
} |
### INSTRUCTION
What is the smallest number of seats with INC as an election winner and BJP incumbent?
### INPUT
CREATE TABLE table_name_57 (seats__acs_ INTEGER, election_winner VARCHAR, incumbent VARCHAR)
### OUTPUT
SELECT MIN(seats__acs_) FROM table_name_57 WHERE election_winner = "inc" AND incumbent = "bjp" | {
"input": "CREATE TABLE table_name_57 (seats__acs_ INTEGER, election_winner VARCHAR, incumbent VARCHAR)",
"instruction": "What is the smallest number of seats with INC as an election winner and BJP incumbent?",
"output": "SELECT MIN(seats__acs_) FROM table_name_57 WHERE election_winner = \"inc\" AND incumbent = \"bjp\""
} |
### INSTRUCTION
What event has european championships as the tournament, with 2006 as the year?
### INPUT
CREATE TABLE table_name_61 (event VARCHAR, tournament VARCHAR, year VARCHAR)
### OUTPUT
SELECT event FROM table_name_61 WHERE tournament = "european championships" AND year = 2006 | {
"input": "CREATE TABLE table_name_61 (event VARCHAR, tournament VARCHAR, year VARCHAR)",
"instruction": "What event has european championships as the tournament, with 2006 as the year?",
"output": "SELECT event FROM table_name_61 WHERE tournament = \"european championships\" AND year = 2006"
} |
### INSTRUCTION
What are the notes for South Africa?
### INPUT
CREATE TABLE table_name_8 (notes VARCHAR, country VARCHAR)
### OUTPUT
SELECT notes FROM table_name_8 WHERE country = "south africa" | {
"input": "CREATE TABLE table_name_8 (notes VARCHAR, country VARCHAR)",
"instruction": "What are the notes for South Africa?",
"output": "SELECT notes FROM table_name_8 WHERE country = \"south africa\""
} |
### INSTRUCTION
What is the Japanese orthography for the English name National Farmers Academy?
### INPUT
CREATE TABLE table_11390711_4 (japanese_orthography VARCHAR, english_name VARCHAR)
### OUTPUT
SELECT japanese_orthography FROM table_11390711_4 WHERE english_name = "National Farmers Academy" | {
"input": "CREATE TABLE table_11390711_4 (japanese_orthography VARCHAR, english_name VARCHAR)",
"instruction": "What is the Japanese orthography for the English name National Farmers Academy?",
"output": "SELECT japanese_orthography FROM table_11390711_4 WHERE english_name = \"National Farmers Academy\""
} |
### INSTRUCTION
On what date was Stauffer Chemical Company (Lemoyne Plant), which was listed on 09/21/1984, deleted?
### INPUT
CREATE TABLE table_name_35 (deleted VARCHAR, listed VARCHAR, name VARCHAR)
### OUTPUT
SELECT deleted FROM table_name_35 WHERE listed = "09/21/1984" AND name = "stauffer chemical company (lemoyne plant)" | {
"input": "CREATE TABLE table_name_35 (deleted VARCHAR, listed VARCHAR, name VARCHAR)",
"instruction": "On what date was Stauffer Chemical Company (Lemoyne Plant), which was listed on 09/21/1984, deleted?",
"output": "SELECT deleted FROM table_name_35 WHERE listed = \"09/21/1984\" AND name = \"stauffer chemical company (lemoyne plant)\""
} |
### INSTRUCTION
How many schools did darryl dawkins play for
### INPUT
CREATE TABLE table_11545282_4 (school_club_team VARCHAR, player VARCHAR)
### OUTPUT
SELECT COUNT(school_club_team) FROM table_11545282_4 WHERE player = "Darryl Dawkins" | {
"input": "CREATE TABLE table_11545282_4 (school_club_team VARCHAR, player VARCHAR)",
"instruction": "How many schools did darryl dawkins play for",
"output": "SELECT COUNT(school_club_team) FROM table_11545282_4 WHERE player = \"Darryl Dawkins\""
} |
### INSTRUCTION
What was the local investment (in $) in the projects of the department with $912,185 BID/PRONAR investment?
### INPUT
CREATE TABLE table_17118006_2 (local_investment__us$_ VARCHAR, bid_pronar_investment__us$_ VARCHAR)
### OUTPUT
SELECT local_investment__us$_ FROM table_17118006_2 WHERE bid_pronar_investment__us$_ = "912,185" | {
"input": "CREATE TABLE table_17118006_2 (local_investment__us$_ VARCHAR, bid_pronar_investment__us$_ VARCHAR)",
"instruction": "What was the local investment (in $) in the projects of the department with $912,185 BID/PRONAR investment?",
"output": "SELECT local_investment__us$_ FROM table_17118006_2 WHERE bid_pronar_investment__us$_ = \"912,185\""
} |
### INSTRUCTION
Which year's crew is varsity 8+ when the record is 7-3?
### INPUT
CREATE TABLE table_name_63 (year VARCHAR, crew VARCHAR, record VARCHAR)
### OUTPUT
SELECT year FROM table_name_63 WHERE crew = "varsity 8+" AND record = "7-3" | {
"input": "CREATE TABLE table_name_63 (year VARCHAR, crew VARCHAR, record VARCHAR)",
"instruction": "Which year's crew is varsity 8+ when the record is 7-3?",
"output": "SELECT year FROM table_name_63 WHERE crew = \"varsity 8+\" AND record = \"7-3\""
} |
### INSTRUCTION
Which Founded has a League of women's flat track derby association, and a Club of omaha rollergirls?
### INPUT
CREATE TABLE table_name_14 (founded INTEGER, league VARCHAR, club VARCHAR)
### OUTPUT
SELECT AVG(founded) FROM table_name_14 WHERE league = "women's flat track derby association" AND club = "omaha rollergirls" | {
"input": "CREATE TABLE table_name_14 (founded INTEGER, league VARCHAR, club VARCHAR)",
"instruction": "Which Founded has a League of women's flat track derby association, and a Club of omaha rollergirls?",
"output": "SELECT AVG(founded) FROM table_name_14 WHERE league = \"women's flat track derby association\" AND club = \"omaha rollergirls\""
} |
### INSTRUCTION
What is the total number of picks for PBA team san miguel beermen who picked rommel daep?
### INPUT
CREATE TABLE table_name_26 (pick VARCHAR, pba_team VARCHAR, player VARCHAR)
### OUTPUT
SELECT COUNT(pick) FROM table_name_26 WHERE pba_team = "san miguel beermen" AND player = "rommel daep" | {
"input": "CREATE TABLE table_name_26 (pick VARCHAR, pba_team VARCHAR, player VARCHAR)",
"instruction": "What is the total number of picks for PBA team san miguel beermen who picked rommel daep?",
"output": "SELECT COUNT(pick) FROM table_name_26 WHERE pba_team = \"san miguel beermen\" AND player = \"rommel daep\""
} |
### INSTRUCTION
At which site was Northwestern an opponent?
### INPUT
CREATE TABLE table_name_67 (site VARCHAR, opponent_number VARCHAR)
### OUTPUT
SELECT site FROM table_name_67 WHERE opponent_number = "northwestern" | {
"input": "CREATE TABLE table_name_67 (site VARCHAR, opponent_number VARCHAR)",
"instruction": "At which site was Northwestern an opponent?",
"output": "SELECT site FROM table_name_67 WHERE opponent_number = \"northwestern\""
} |
### INSTRUCTION
What is the Former local authority for Ecclesfield?
### INPUT
CREATE TABLE table_name_96 (former_local_authority VARCHAR, name VARCHAR)
### OUTPUT
SELECT former_local_authority FROM table_name_96 WHERE name = "ecclesfield" | {
"input": "CREATE TABLE table_name_96 (former_local_authority VARCHAR, name VARCHAR)",
"instruction": "What is the Former local authority for Ecclesfield?",
"output": "SELECT former_local_authority FROM table_name_96 WHERE name = \"ecclesfield\""
} |
### INSTRUCTION
What is the Pick # of the Player from Southern MIssissippi?
### INPUT
CREATE TABLE table_name_98 (pick VARCHAR, school VARCHAR)
### OUTPUT
SELECT COUNT(pick) FROM table_name_98 WHERE school = "southern mississippi" | {
"input": "CREATE TABLE table_name_98 (pick VARCHAR, school VARCHAR)",
"instruction": "What is the Pick # of the Player from Southern MIssissippi?",
"output": "SELECT COUNT(pick) FROM table_name_98 WHERE school = \"southern mississippi\""
} |
### INSTRUCTION
How many licenses have version 1.2.2.0?
### INPUT
CREATE TABLE table_15038373_1 (license VARCHAR, version VARCHAR)
### OUTPUT
SELECT COUNT(license) FROM table_15038373_1 WHERE version = "1.2.2.0" | {
"input": "CREATE TABLE table_15038373_1 (license VARCHAR, version VARCHAR)",
"instruction": "How many licenses have version 1.2.2.0?",
"output": "SELECT COUNT(license) FROM table_15038373_1 WHERE version = \"1.2.2.0\""
} |
### INSTRUCTION
How much Enrollment has a School of indianapolis tindley?
### INPUT
CREATE TABLE table_name_32 (enrollment VARCHAR, school VARCHAR)
### OUTPUT
SELECT COUNT(enrollment) FROM table_name_32 WHERE school = "indianapolis tindley" | {
"input": "CREATE TABLE table_name_32 (enrollment VARCHAR, school VARCHAR)",
"instruction": "How much Enrollment has a School of indianapolis tindley?",
"output": "SELECT COUNT(enrollment) FROM table_name_32 WHERE school = \"indianapolis tindley\""
} |
### INSTRUCTION
What is the average L/100km urban (cold) for engine capacities over 1910, mpg in the US (urban) under 25.3, mpg in the UK (combined) over 27.2, and mpg in the UK (urban, cold) of 22.4?
### INPUT
CREATE TABLE table_name_27 (l_100km_urban__cold_ INTEGER, mpg_uk_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR, engine_capacity VARCHAR, mpg_us_urban VARCHAR)
### OUTPUT
SELECT AVG(l_100km_urban__cold_) FROM table_name_27 WHERE engine_capacity > 1910 AND mpg_us_urban < 25.3 AND mpg_uk_combined > 27.2 AND mpg_uk_urban__cold_ = 22.4 | {
"input": "CREATE TABLE table_name_27 (l_100km_urban__cold_ INTEGER, mpg_uk_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR, engine_capacity VARCHAR, mpg_us_urban VARCHAR)",
"instruction": "What is the average L/100km urban (cold) for engine capacities over 1910, mpg in the US (urban) under 25.3, mpg in the UK (combined) over 27.2, and mpg in the UK (urban, cold) of 22.4?",
"output": "SELECT AVG(l_100km_urban__cold_) FROM table_name_27 WHERE engine_capacity > 1910 AND mpg_us_urban < 25.3 AND mpg_uk_combined > 27.2 AND mpg_uk_urban__cold_ = 22.4"
} |
### INSTRUCTION
Who was the director that worked with Dana Dorian as the writer?
### INPUT
CREATE TABLE table_name_44 (director_s_ VARCHAR, writer_s_ VARCHAR)
### OUTPUT
SELECT director_s_ FROM table_name_44 WHERE writer_s_ = "dana dorian" | {
"input": "CREATE TABLE table_name_44 (director_s_ VARCHAR, writer_s_ VARCHAR)",
"instruction": "Who was the director that worked with Dana Dorian as the writer?",
"output": "SELECT director_s_ FROM table_name_44 WHERE writer_s_ = \"dana dorian\""
} |
### INSTRUCTION
Which Score has a Visitor of montreal canadiens, and Points of 5?
### INPUT
CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR, points VARCHAR)
### OUTPUT
SELECT score FROM table_name_93 WHERE visitor = "montreal canadiens" AND points = 5 | {
"input": "CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR, points VARCHAR)",
"instruction": "Which Score has a Visitor of montreal canadiens, and Points of 5?",
"output": "SELECT score FROM table_name_93 WHERE visitor = \"montreal canadiens\" AND points = 5"
} |
### INSTRUCTION
What is the set 2 with a 25-23 set 1 and a 17-19 set 5?
### INPUT
CREATE TABLE table_name_48 (set_2 VARCHAR, set_1 VARCHAR, set_5 VARCHAR)
### OUTPUT
SELECT set_2 FROM table_name_48 WHERE set_1 = "25-23" AND set_5 = "17-19" | {
"input": "CREATE TABLE table_name_48 (set_2 VARCHAR, set_1 VARCHAR, set_5 VARCHAR)",
"instruction": "What is the set 2 with a 25-23 set 1 and a 17-19 set 5?",
"output": "SELECT set_2 FROM table_name_48 WHERE set_1 = \"25-23\" AND set_5 = \"17-19\""
} |
### INSTRUCTION
What is the total number played with 8 points and a position more than 6?
### INPUT
CREATE TABLE table_name_90 (played VARCHAR, points VARCHAR, position VARCHAR)
### OUTPUT
SELECT COUNT(played) FROM table_name_90 WHERE points = 8 AND position > 6 | {
"input": "CREATE TABLE table_name_90 (played VARCHAR, points VARCHAR, position VARCHAR)",
"instruction": "What is the total number played with 8 points and a position more than 6?",
"output": "SELECT COUNT(played) FROM table_name_90 WHERE points = 8 AND position > 6"
} |
### INSTRUCTION
What is the lowest jersey # that has evergreen park, illinois as the birthplace, with a weight (km) greater than 86?
### INPUT
CREATE TABLE table_name_62 (jersey__number INTEGER, birthplace VARCHAR, weight__kg_ VARCHAR)
### OUTPUT
SELECT MIN(jersey__number) FROM table_name_62 WHERE birthplace = "evergreen park, illinois" AND weight__kg_ > 86 | {
"input": "CREATE TABLE table_name_62 (jersey__number INTEGER, birthplace VARCHAR, weight__kg_ VARCHAR)",
"instruction": "What is the lowest jersey # that has evergreen park, illinois as the birthplace, with a weight (km) greater than 86?",
"output": "SELECT MIN(jersey__number) FROM table_name_62 WHERE birthplace = \"evergreen park, illinois\" AND weight__kg_ > 86"
} |
### INSTRUCTION
What is the lowest 1994-1995, when Points is 145, and when Played is less than 114?
### INPUT
### OUTPUT
SELECT MIN(*) FROM table_name_2 WHERE points = 145 AND played < 114 | {
"input": "",
"instruction": "What is the lowest 1994-1995, when Points is 145, and when Played is less than 114?",
"output": "SELECT MIN(*) FROM table_name_2 WHERE points = 145 AND played < 114"
} |
### INSTRUCTION
When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious Party?
### INPUT
CREATE TABLE table_name_37 (term_end VARCHAR, party VARCHAR, minister VARCHAR)
### OUTPUT
SELECT term_end FROM table_name_37 WHERE party = "national religious party" AND minister = "shlomo-yisrael ben-meir" | {
"input": "CREATE TABLE table_name_37 (term_end VARCHAR, party VARCHAR, minister VARCHAR)",
"instruction": "When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious Party?",
"output": "SELECT term_end FROM table_name_37 WHERE party = \"national religious party\" AND minister = \"shlomo-yisrael ben-meir\""
} |
### INSTRUCTION
Where was the UFC 154 match held?
### INPUT
CREATE TABLE table_name_18 (location VARCHAR, event VARCHAR)
### OUTPUT
SELECT location FROM table_name_18 WHERE event = "ufc 154" | {
"input": "CREATE TABLE table_name_18 (location VARCHAR, event VARCHAR)",
"instruction": "Where was the UFC 154 match held?",
"output": "SELECT location FROM table_name_18 WHERE event = \"ufc 154\""
} |
### INSTRUCTION
Name the points against for cwmllynfell rfc
### INPUT
CREATE TABLE table_name_27 (points_against VARCHAR, club VARCHAR)
### OUTPUT
SELECT points_against FROM table_name_27 WHERE club = "cwmllynfell rfc" | {
"input": "CREATE TABLE table_name_27 (points_against VARCHAR, club VARCHAR)",
"instruction": "Name the points against for cwmllynfell rfc",
"output": "SELECT points_against FROM table_name_27 WHERE club = \"cwmllynfell rfc\""
} |
### INSTRUCTION
List all tracks bought by customer Daan Peeters.
### INPUT
CREATE TABLE invoices (id VARCHAR, customer_id VARCHAR); CREATE TABLE invoice_lines (track_id VARCHAR, invoice_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)
### OUTPUT
SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = "Daan" AND T4.last_name = "Peeters" | {
"input": "CREATE TABLE invoices (id VARCHAR, customer_id VARCHAR); CREATE TABLE invoice_lines (track_id VARCHAR, invoice_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)",
"instruction": "List all tracks bought by customer Daan Peeters.",
"output": "SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = \"Daan\" AND T4.last_name = \"Peeters\""
} |
### INSTRUCTION
What is the Result of the AFG Arena, St. Gallen Competition with a Score of 1–0?
### INPUT
CREATE TABLE table_name_92 (result VARCHAR, venue VARCHAR, score VARCHAR)
### OUTPUT
SELECT result FROM table_name_92 WHERE venue = "afg arena, st. gallen" AND score = "1–0" | {
"input": "CREATE TABLE table_name_92 (result VARCHAR, venue VARCHAR, score VARCHAR)",
"instruction": "What is the Result of the AFG Arena, St. Gallen Competition with a Score of 1–0?",
"output": "SELECT result FROM table_name_92 WHERE venue = \"afg arena, st. gallen\" AND score = \"1–0\""
} |
### INSTRUCTION
Who is the player who won in 1994?
### INPUT
CREATE TABLE table_name_91 (player VARCHAR, year_s__won VARCHAR)
### OUTPUT
SELECT player FROM table_name_91 WHERE year_s__won = "1994" | {
"input": "CREATE TABLE table_name_91 (player VARCHAR, year_s__won VARCHAR)",
"instruction": "Who is the player who won in 1994?",
"output": "SELECT player FROM table_name_91 WHERE year_s__won = \"1994\""
} |
### INSTRUCTION
Of the ships with diesel-electric hybrid engines, length of 443 feet, and over 190 guests, what is the lowest number of staterooms?
### INPUT
CREATE TABLE table_name_44 (staterooms INTEGER, guests VARCHAR, comments VARCHAR, length VARCHAR)
### OUTPUT
SELECT MIN(staterooms) FROM table_name_44 WHERE comments = "diesel-electric hybrid engines" AND length = "443 feet" AND guests > 190 | {
"input": "CREATE TABLE table_name_44 (staterooms INTEGER, guests VARCHAR, comments VARCHAR, length VARCHAR)",
"instruction": "Of the ships with diesel-electric hybrid engines, length of 443 feet, and over 190 guests, what is the lowest number of staterooms?",
"output": "SELECT MIN(staterooms) FROM table_name_44 WHERE comments = \"diesel-electric hybrid engines\" AND length = \"443 feet\" AND guests > 190"
} |
### INSTRUCTION
What is the result of Samantha Morton being up for best supporting actress in a year later than 1989?
### INPUT
CREATE TABLE table_name_78 (result VARCHAR, actor VARCHAR, year VARCHAR, category VARCHAR)
### OUTPUT
SELECT result FROM table_name_78 WHERE year > 1989 AND category = "best supporting actress" AND actor = "samantha morton" | {
"input": "CREATE TABLE table_name_78 (result VARCHAR, actor VARCHAR, year VARCHAR, category VARCHAR)",
"instruction": "What is the result of Samantha Morton being up for best supporting actress in a year later than 1989?",
"output": "SELECT result FROM table_name_78 WHERE year > 1989 AND category = \"best supporting actress\" AND actor = \"samantha morton\""
} |
### INSTRUCTION
What is the D 42 when the D 50 is d 31?
### INPUT
CREATE TABLE table_name_17 (d_42 VARCHAR, d_50 VARCHAR)
### OUTPUT
SELECT d_42 FROM table_name_17 WHERE d_50 = "d 31" | {
"input": "CREATE TABLE table_name_17 (d_42 VARCHAR, d_50 VARCHAR)",
"instruction": "What is the D 42 when the D 50 is d 31?",
"output": "SELECT d_42 FROM table_name_17 WHERE d_50 = \"d 31\""
} |
### INSTRUCTION
Name the comptroller for office of prohibition
### INPUT
CREATE TABLE table_22607062_1 (comptroller VARCHAR, ticket___office VARCHAR)
### OUTPUT
SELECT comptroller FROM table_22607062_1 WHERE ticket___office = "Prohibition" | {
"input": "CREATE TABLE table_22607062_1 (comptroller VARCHAR, ticket___office VARCHAR)",
"instruction": "Name the comptroller for office of prohibition",
"output": "SELECT comptroller FROM table_22607062_1 WHERE ticket___office = \"Prohibition\""
} |
### INSTRUCTION
Which Pick # is the highest one that has a Name of william middleton, and a Round larger than 5?
### INPUT
CREATE TABLE table_name_32 (pick__number INTEGER, name VARCHAR, round VARCHAR)
### OUTPUT
SELECT MAX(pick__number) FROM table_name_32 WHERE name = "william middleton" AND round > 5 | {
"input": "CREATE TABLE table_name_32 (pick__number INTEGER, name VARCHAR, round VARCHAR)",
"instruction": "Which Pick # is the highest one that has a Name of william middleton, and a Round larger than 5?",
"output": "SELECT MAX(pick__number) FROM table_name_32 WHERE name = \"william middleton\" AND round > 5"
} |
### INSTRUCTION
What was the date of the away game that they lost to Accrington?
### INPUT
CREATE TABLE table_name_6 (date VARCHAR, team VARCHAR, venue VARCHAR, win_draw_lose VARCHAR)
### OUTPUT
SELECT date FROM table_name_6 WHERE venue = "away" AND win_draw_lose = "lost" AND team = "accrington" | {
"input": "CREATE TABLE table_name_6 (date VARCHAR, team VARCHAR, venue VARCHAR, win_draw_lose VARCHAR)",
"instruction": "What was the date of the away game that they lost to Accrington?",
"output": "SELECT date FROM table_name_6 WHERE venue = \"away\" AND win_draw_lose = \"lost\" AND team = \"accrington\""
} |
### INSTRUCTION
What is the result of the european indoor championships after 1974?
### INPUT
CREATE TABLE table_name_41 (result VARCHAR, tournament VARCHAR, year VARCHAR)
### OUTPUT
SELECT result FROM table_name_41 WHERE tournament = "european indoor championships" AND year > 1974 | {
"input": "CREATE TABLE table_name_41 (result VARCHAR, tournament VARCHAR, year VARCHAR)",
"instruction": "What is the result of the european indoor championships after 1974?",
"output": "SELECT result FROM table_name_41 WHERE tournament = \"european indoor championships\" AND year > 1974"
} |
### INSTRUCTION
Tell me the song with year before 2013 and music director of yuvan shankar raja and film of billa ii
### INPUT
CREATE TABLE table_name_23 (song VARCHAR, film VARCHAR, year VARCHAR, music_director VARCHAR)
### OUTPUT
SELECT song FROM table_name_23 WHERE year < 2013 AND music_director = "yuvan shankar raja" AND film = "billa ii" | {
"input": "CREATE TABLE table_name_23 (song VARCHAR, film VARCHAR, year VARCHAR, music_director VARCHAR)",
"instruction": "Tell me the song with year before 2013 and music director of yuvan shankar raja and film of billa ii",
"output": "SELECT song FROM table_name_23 WHERE year < 2013 AND music_director = \"yuvan shankar raja\" AND film = \"billa ii\""
} |
### INSTRUCTION
how many time is the final record is 9–16–5?
### INPUT
CREATE TABLE table_245711_2 (season VARCHAR, final_record VARCHAR)
### OUTPUT
SELECT COUNT(season) FROM table_245711_2 WHERE final_record = "9–16–5" | {
"input": "CREATE TABLE table_245711_2 (season VARCHAR, final_record VARCHAR)",
"instruction": "how many time is the final record is 9–16–5?",
"output": "SELECT COUNT(season) FROM table_245711_2 WHERE final_record = \"9–16–5\""
} |
### INSTRUCTION
When hit by sam at 38,500 feet just after bomb release was the cause of loss what is the mission/target?
### INPUT
CREATE TABLE table_18933037_3 (mission_target VARCHAR, cause_of_loss VARCHAR)
### OUTPUT
SELECT mission_target FROM table_18933037_3 WHERE cause_of_loss = "Hit by SAM at 38,500 feet just after bomb release" | {
"input": "CREATE TABLE table_18933037_3 (mission_target VARCHAR, cause_of_loss VARCHAR)",
"instruction": "When hit by sam at 38,500 feet just after bomb release was the cause of loss what is the mission/target?",
"output": "SELECT mission_target FROM table_18933037_3 WHERE cause_of_loss = \"Hit by SAM at 38,500 feet just after bomb release\""
} |
### INSTRUCTION
What is Party, when District is less than 10, when Took Office is less than 1991, and when Home Town is Mount Pleasant?
### INPUT
CREATE TABLE table_name_22 (party VARCHAR, home_town VARCHAR, district VARCHAR, took_office VARCHAR)
### OUTPUT
SELECT party FROM table_name_22 WHERE district < 10 AND took_office < 1991 AND home_town = "mount pleasant" | {
"input": "CREATE TABLE table_name_22 (party VARCHAR, home_town VARCHAR, district VARCHAR, took_office VARCHAR)",
"instruction": "What is Party, when District is less than 10, when Took Office is less than 1991, and when Home Town is Mount Pleasant?",
"output": "SELECT party FROM table_name_22 WHERE district < 10 AND took_office < 1991 AND home_town = \"mount pleasant\""
} |
### INSTRUCTION
Which TV network had its series finale on May 7, 2012?
### INPUT
CREATE TABLE table_29799700_2 (tv_network_s_ VARCHAR, series_finale VARCHAR)
### OUTPUT
SELECT tv_network_s_ FROM table_29799700_2 WHERE series_finale = "May 7, 2012" | {
"input": "CREATE TABLE table_29799700_2 (tv_network_s_ VARCHAR, series_finale VARCHAR)",
"instruction": "Which TV network had its series finale on May 7, 2012?",
"output": "SELECT tv_network_s_ FROM table_29799700_2 WHERE series_finale = \"May 7, 2012\""
} |
### INSTRUCTION
Name the sum of Long for yards less than 197 and players of matt nagy
### INPUT
CREATE TABLE table_name_12 (long INTEGER, yards VARCHAR, player VARCHAR)
### OUTPUT
SELECT SUM(long) FROM table_name_12 WHERE yards < 197 AND player = "matt nagy" | {
"input": "CREATE TABLE table_name_12 (long INTEGER, yards VARCHAR, player VARCHAR)",
"instruction": "Name the sum of Long for yards less than 197 and players of matt nagy",
"output": "SELECT SUM(long) FROM table_name_12 WHERE yards < 197 AND player = \"matt nagy\""
} |
### INSTRUCTION
Who was the succesor that was formally installed on November 8, 1978?
### INPUT
CREATE TABLE table_1013168_2 (successor VARCHAR, date_of_successors_formal_installation VARCHAR)
### OUTPUT
SELECT successor FROM table_1013168_2 WHERE date_of_successors_formal_installation = "November 8, 1978" | {
"input": "CREATE TABLE table_1013168_2 (successor VARCHAR, date_of_successors_formal_installation VARCHAR)",
"instruction": "Who was the succesor that was formally installed on November 8, 1978?",
"output": "SELECT successor FROM table_1013168_2 WHERE date_of_successors_formal_installation = \"November 8, 1978\""
} |
### INSTRUCTION
find the id of tv channels that do not play any cartoon directed by Ben Jones.
### INPUT
CREATE TABLE TV_Channel (id VARCHAR, channel VARCHAR, directed_by VARCHAR); CREATE TABLE cartoon (id VARCHAR, channel VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones' | {
"input": "CREATE TABLE TV_Channel (id VARCHAR, channel VARCHAR, directed_by VARCHAR); CREATE TABLE cartoon (id VARCHAR, channel VARCHAR, directed_by VARCHAR)",
"instruction": "find the id of tv channels that do not play any cartoon directed by Ben Jones.",
"output": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'"
} |
### INSTRUCTION
Find the first name of the band mate that has performed in most songs.
### INPUT
CREATE TABLE Songs (SongId VARCHAR); CREATE TABLE Band (firstname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR)
### OUTPUT
SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Songs (SongId VARCHAR); CREATE TABLE Band (firstname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR)",
"instruction": "Find the first name of the band mate that has performed in most songs.",
"output": "SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Show the name and population of the country that has the highest roller coaster.
### INPUT
CREATE TABLE roller_coaster (Country_ID VARCHAR, Height VARCHAR); CREATE TABLE country (Name VARCHAR, population VARCHAR, Country_ID VARCHAR)
### OUTPUT
SELECT T1.Name, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1 | {
"input": "CREATE TABLE roller_coaster (Country_ID VARCHAR, Height VARCHAR); CREATE TABLE country (Name VARCHAR, population VARCHAR, Country_ID VARCHAR)",
"instruction": "Show the name and population of the country that has the highest roller coaster.",
"output": "SELECT T1.Name, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1"
} |
### INSTRUCTION
In what Country will Dennis Blömke play the Germany F13 Futures Tournament?
### INPUT
CREATE TABLE table_name_9 (country VARCHAR, singles_champions VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT country FROM table_name_9 WHERE singles_champions = "dennis blömke" AND tournament = "germany f13 futures" | {
"input": "CREATE TABLE table_name_9 (country VARCHAR, singles_champions VARCHAR, tournament VARCHAR)",
"instruction": "In what Country will Dennis Blömke play the Germany F13 Futures Tournament?",
"output": "SELECT country FROM table_name_9 WHERE singles_champions = \"dennis blömke\" AND tournament = \"germany f13 futures\""
} |
### INSTRUCTION
What is the earliest year retired delivered in 1965 with an in service in November 1971 for the PoAF Serial less than 7103?
### INPUT
CREATE TABLE table_name_50 (retired INTEGER, poaf_serial VARCHAR, delivery VARCHAR, in_service VARCHAR)
### OUTPUT
SELECT MIN(retired) FROM table_name_50 WHERE delivery = "1965" AND in_service = "november 1971" AND poaf_serial < 7103 | {
"input": "CREATE TABLE table_name_50 (retired INTEGER, poaf_serial VARCHAR, delivery VARCHAR, in_service VARCHAR)",
"instruction": "What is the earliest year retired delivered in 1965 with an in service in November 1971 for the PoAF Serial less than 7103?",
"output": "SELECT MIN(retired) FROM table_name_50 WHERE delivery = \"1965\" AND in_service = \"november 1971\" AND poaf_serial < 7103"
} |
### INSTRUCTION
What is the number of tickets sold and available for the concert at Long Beach Arena?
### INPUT
CREATE TABLE table_name_18 (tickets_sold___available VARCHAR, venue VARCHAR)
### OUTPUT
SELECT tickets_sold___available FROM table_name_18 WHERE venue = "long beach arena" | {
"input": "CREATE TABLE table_name_18 (tickets_sold___available VARCHAR, venue VARCHAR)",
"instruction": "What is the number of tickets sold and available for the concert at Long Beach Arena?",
"output": "SELECT tickets_sold___available FROM table_name_18 WHERE venue = \"long beach arena\""
} |
### INSTRUCTION
What is the chromosomal location of il-1β?
### INPUT
CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, name VARCHAR)
### OUTPUT
SELECT chromosomal_location FROM table_29871617_1 WHERE name = "IL-1β" | {
"input": "CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, name VARCHAR)",
"instruction": "What is the chromosomal location of il-1β?",
"output": "SELECT chromosomal_location FROM table_29871617_1 WHERE name = \"IL-1β\""
} |
### INSTRUCTION
Find the busiest source airport that runs most number of routes in China.
### INPUT
CREATE TABLE routes (src_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR)
### OUTPUT
SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE routes (src_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR)",
"instruction": "Find the busiest source airport that runs most number of routes in China.",
"output": "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
In what Year was the Result of the game 16-14?
### INPUT
CREATE TABLE table_name_81 (year INTEGER, result VARCHAR)
### OUTPUT
SELECT MAX(year) FROM table_name_81 WHERE result = "16-14" | {
"input": "CREATE TABLE table_name_81 (year INTEGER, result VARCHAR)",
"instruction": "In what Year was the Result of the game 16-14?",
"output": "SELECT MAX(year) FROM table_name_81 WHERE result = \"16-14\""
} |
### INSTRUCTION
In what year did Aslan receive a Lifetime Achievement Award and Snow Patrol perform?
### INPUT
CREATE TABLE table_name_56 (year VARCHAR, band VARCHAR, lifetime_achievement_award VARCHAR)
### OUTPUT
SELECT year FROM table_name_56 WHERE band = "snow patrol" AND lifetime_achievement_award = "aslan" | {
"input": "CREATE TABLE table_name_56 (year VARCHAR, band VARCHAR, lifetime_achievement_award VARCHAR)",
"instruction": "In what year did Aslan receive a Lifetime Achievement Award and Snow Patrol perform?",
"output": "SELECT year FROM table_name_56 WHERE band = \"snow patrol\" AND lifetime_achievement_award = \"aslan\""
} |
### INSTRUCTION
What is Pos., when From Club is "Chelsea", and when Date is "30 July 2008"?
### INPUT
CREATE TABLE table_name_66 (pos VARCHAR, from_club VARCHAR, date VARCHAR)
### OUTPUT
SELECT pos FROM table_name_66 WHERE from_club = "chelsea" AND date = "30 july 2008" | {
"input": "CREATE TABLE table_name_66 (pos VARCHAR, from_club VARCHAR, date VARCHAR)",
"instruction": "What is Pos., when From Club is \"Chelsea\", and when Date is \"30 July 2008\"?",
"output": "SELECT pos FROM table_name_66 WHERE from_club = \"chelsea\" AND date = \"30 july 2008\""
} |
### INSTRUCTION
What's Curtis Painter's position?
### INPUT
CREATE TABLE table_20861261_4 (position VARCHAR, player VARCHAR)
### OUTPUT
SELECT position FROM table_20861261_4 WHERE player = "Curtis Painter" | {
"input": "CREATE TABLE table_20861261_4 (position VARCHAR, player VARCHAR)",
"instruction": "What's Curtis Painter's position?",
"output": "SELECT position FROM table_20861261_4 WHERE player = \"Curtis Painter\""
} |
### INSTRUCTION
How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4?
### INPUT
CREATE TABLE table_22170495_6 (position_in_channel_4s_ratings_a VARCHAR, original_airing_on_channel_4 VARCHAR)
### OUTPUT
SELECT COUNT(position_in_channel_4s_ratings_a) FROM table_22170495_6 WHERE original_airing_on_channel_4 = "February 24, 2010" | {
"input": "CREATE TABLE table_22170495_6 (position_in_channel_4s_ratings_a VARCHAR, original_airing_on_channel_4 VARCHAR)",
"instruction": "How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4?",
"output": "SELECT COUNT(position_in_channel_4s_ratings_a) FROM table_22170495_6 WHERE original_airing_on_channel_4 = \"February 24, 2010\""
} |
### INSTRUCTION
Which borough or census area has a $59,596 median household income?
### INPUT
CREATE TABLE table_name_68 (borough_or_census_area VARCHAR, median_household_income VARCHAR)
### OUTPUT
SELECT borough_or_census_area FROM table_name_68 WHERE median_household_income = "$59,596" | {
"input": "CREATE TABLE table_name_68 (borough_or_census_area VARCHAR, median_household_income VARCHAR)",
"instruction": "Which borough or census area has a $59,596 median household income?",
"output": "SELECT borough_or_census_area FROM table_name_68 WHERE median_household_income = \"$59,596\""
} |
### INSTRUCTION
Which type of surface do Amer Delic Robert Kendrick's opponents have?
### INPUT
CREATE TABLE table_name_53 (surface VARCHAR, opponents VARCHAR)
### OUTPUT
SELECT surface FROM table_name_53 WHERE opponents = "amer delic robert kendrick" | {
"input": "CREATE TABLE table_name_53 (surface VARCHAR, opponents VARCHAR)",
"instruction": "Which type of surface do Amer Delic Robert Kendrick's opponents have?",
"output": "SELECT surface FROM table_name_53 WHERE opponents = \"amer delic robert kendrick\""
} |
### INSTRUCTION
What is Tie no, when Date is "18 Nov 1989", and when Home Team is "Doncaster Rovers"?
### INPUT
CREATE TABLE table_name_32 (tie_no VARCHAR, date VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT tie_no FROM table_name_32 WHERE date = "18 nov 1989" AND home_team = "doncaster rovers" | {
"input": "CREATE TABLE table_name_32 (tie_no VARCHAR, date VARCHAR, home_team VARCHAR)",
"instruction": "What is Tie no, when Date is \"18 Nov 1989\", and when Home Team is \"Doncaster Rovers\"?",
"output": "SELECT tie_no FROM table_name_32 WHERE date = \"18 nov 1989\" AND home_team = \"doncaster rovers\""
} |
### INSTRUCTION
Show the names of editors that are on the committee of journals with sales bigger than 3000.
### INPUT
CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Journal_ID VARCHAR, Sales INTEGER)
### OUTPUT
SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000 | {
"input": "CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Journal_ID VARCHAR, Sales INTEGER)",
"instruction": "Show the names of editors that are on the committee of journals with sales bigger than 3000.",
"output": "SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000"
} |
### INSTRUCTION
What is the most laps for Ayrton Senna?
### INPUT
CREATE TABLE table_name_6 (laps INTEGER, driver VARCHAR)
### OUTPUT
SELECT MAX(laps) FROM table_name_6 WHERE driver = "ayrton senna" | {
"input": "CREATE TABLE table_name_6 (laps INTEGER, driver VARCHAR)",
"instruction": "What is the most laps for Ayrton Senna?",
"output": "SELECT MAX(laps) FROM table_name_6 WHERE driver = \"ayrton senna\""
} |
### INSTRUCTION
Show total hours per week and number of games played for student David Shieber.
### INPUT
CREATE TABLE Student (StuID VARCHAR, Fname VARCHAR, Lname VARCHAR); CREATE TABLE Sportsinfo (StuID VARCHAR)
### OUTPUT
SELECT SUM(hoursperweek), SUM(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = "David" AND T2.Lname = "Shieber" | {
"input": "CREATE TABLE Student (StuID VARCHAR, Fname VARCHAR, Lname VARCHAR); CREATE TABLE Sportsinfo (StuID VARCHAR)",
"instruction": "Show total hours per week and number of games played for student David Shieber.",
"output": "SELECT SUM(hoursperweek), SUM(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = \"David\" AND T2.Lname = \"Shieber\""
} |
### INSTRUCTION
What NHL team was the player from Calgary Centennials (WCHL) drafted for?
### INPUT
CREATE TABLE table_1965650_11 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
### OUTPUT
SELECT nhl_team FROM table_1965650_11 WHERE college_junior_club_team = "Calgary Centennials (WCHL)" | {
"input": "CREATE TABLE table_1965650_11 (nhl_team VARCHAR, college_junior_club_team VARCHAR)",
"instruction": "What NHL team was the player from Calgary Centennials (WCHL) drafted for?",
"output": "SELECT nhl_team FROM table_1965650_11 WHERE college_junior_club_team = \"Calgary Centennials (WCHL)\""
} |
### INSTRUCTION
Which Player has position of power forward and School/Club Team of Depaul?
### INPUT
CREATE TABLE table_name_85 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
### OUTPUT
SELECT player FROM table_name_85 WHERE position = "power forward" AND school_club_team = "depaul" | {
"input": "CREATE TABLE table_name_85 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)",
"instruction": "Which Player has position of power forward and School/Club Team of Depaul?",
"output": "SELECT player FROM table_name_85 WHERE position = \"power forward\" AND school_club_team = \"depaul\""
} |
### INSTRUCTION
List the names of phones that are not on any market.
### INPUT
CREATE TABLE phone (Name VARCHAR, Phone_id VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Name VARCHAR, Phone_id VARCHAR, Phone_ID VARCHAR)
### OUTPUT
SELECT Name FROM phone WHERE NOT Phone_id IN (SELECT Phone_ID FROM phone_market) | {
"input": "CREATE TABLE phone (Name VARCHAR, Phone_id VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Name VARCHAR, Phone_id VARCHAR, Phone_ID VARCHAR)",
"instruction": "List the names of phones that are not on any market.",
"output": "SELECT Name FROM phone WHERE NOT Phone_id IN (SELECT Phone_ID FROM phone_market)"
} |
### INSTRUCTION
Name the lowest first elected for chester w. taylor
### INPUT
CREATE TABLE table_1342426_5 (first_elected INTEGER, incumbent VARCHAR)
### OUTPUT
SELECT MIN(first_elected) FROM table_1342426_5 WHERE incumbent = "Chester W. Taylor" | {
"input": "CREATE TABLE table_1342426_5 (first_elected INTEGER, incumbent VARCHAR)",
"instruction": "Name the lowest first elected for chester w. taylor",
"output": "SELECT MIN(first_elected) FROM table_1342426_5 WHERE incumbent = \"Chester W. Taylor\""
} |
### INSTRUCTION
Show names of technicians in ascending order of quality rank of the machine they are assigned.
### INPUT
CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE machine (machine_id VARCHAR, quality_rank VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)
### OUTPUT
SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank | {
"input": "CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE machine (machine_id VARCHAR, quality_rank VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)",
"instruction": "Show names of technicians in ascending order of quality rank of the machine they are assigned.",
"output": "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank"
} |
### INSTRUCTION
what's the saturday saturnus ( saturn) with wednesday mercurius (mercury) being mercuridi
### INPUT
CREATE TABLE table_1277350_1 (saturday_saturnus___saturn_ VARCHAR, wednesday_mercurius__mercury_ VARCHAR)
### OUTPUT
SELECT saturday_saturnus___saturn_ FROM table_1277350_1 WHERE wednesday_mercurius__mercury_ = "Mercuridi" | {
"input": "CREATE TABLE table_1277350_1 (saturday_saturnus___saturn_ VARCHAR, wednesday_mercurius__mercury_ VARCHAR)",
"instruction": "what's the saturday saturnus ( saturn) with wednesday mercurius (mercury) being mercuridi",
"output": "SELECT saturday_saturnus___saturn_ FROM table_1277350_1 WHERE wednesday_mercurius__mercury_ = \"Mercuridi\""
} |
### INSTRUCTION
What was the result of the December 15, 2002 game?
### INPUT
CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR)
### OUTPUT
SELECT result FROM table_name_66 WHERE date = "december 15, 2002" | {
"input": "CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR)",
"instruction": "What was the result of the December 15, 2002 game?",
"output": "SELECT result FROM table_name_66 WHERE date = \"december 15, 2002\""
} |
### INSTRUCTION
What is the lowest Cycle, when Number Of Contestants is 11, and when International Destinations is Paris Gran Canaria?
### INPUT
CREATE TABLE table_name_57 (cycle INTEGER, number_of_contestants VARCHAR, international_destinations VARCHAR)
### OUTPUT
SELECT MIN(cycle) FROM table_name_57 WHERE number_of_contestants = "11" AND international_destinations = "paris gran canaria" | {
"input": "CREATE TABLE table_name_57 (cycle INTEGER, number_of_contestants VARCHAR, international_destinations VARCHAR)",
"instruction": "What is the lowest Cycle, when Number Of Contestants is 11, and when International Destinations is Paris Gran Canaria?",
"output": "SELECT MIN(cycle) FROM table_name_57 WHERE number_of_contestants = \"11\" AND international_destinations = \"paris gran canaria\""
} |
### INSTRUCTION
Name the date for adelaide for westpac stadium
### INPUT
CREATE TABLE table_16388439_3 (date VARCHAR, home_team VARCHAR, ground VARCHAR)
### OUTPUT
SELECT date FROM table_16388439_3 WHERE home_team = "Adelaide" AND ground = "Westpac Stadium" | {
"input": "CREATE TABLE table_16388439_3 (date VARCHAR, home_team VARCHAR, ground VARCHAR)",
"instruction": "Name the date for adelaide for westpac stadium",
"output": "SELECT date FROM table_16388439_3 WHERE home_team = \"Adelaide\" AND ground = \"Westpac Stadium\""
} |
### INSTRUCTION
Which Winning score has a Margin of victory of 1 stroke, and a Date of 21 jun 1981?
### INPUT
CREATE TABLE table_name_19 (winning_score VARCHAR, margin_of_victory VARCHAR, date VARCHAR)
### OUTPUT
SELECT winning_score FROM table_name_19 WHERE margin_of_victory = "1 stroke" AND date = "21 jun 1981" | {
"input": "CREATE TABLE table_name_19 (winning_score VARCHAR, margin_of_victory VARCHAR, date VARCHAR)",
"instruction": "Which Winning score has a Margin of victory of 1 stroke, and a Date of 21 jun 1981?",
"output": "SELECT winning_score FROM table_name_19 WHERE margin_of_victory = \"1 stroke\" AND date = \"21 jun 1981\""
} |
### INSTRUCTION
what is the total apps when the league apps is 4 (2)?
### INPUT
CREATE TABLE table_name_80 (total_apps VARCHAR, league_apps VARCHAR)
### OUTPUT
SELECT total_apps FROM table_name_80 WHERE league_apps = "4 (2)" | {
"input": "CREATE TABLE table_name_80 (total_apps VARCHAR, league_apps VARCHAR)",
"instruction": "what is the total apps when the league apps is 4 (2)?",
"output": "SELECT total_apps FROM table_name_80 WHERE league_apps = \"4 (2)\""
} |
### INSTRUCTION
where is team player mike mcniven played for?
### INPUT
CREATE TABLE table_1213511_5 (college_junior_club_team VARCHAR, player VARCHAR)
### OUTPUT
SELECT college_junior_club_team FROM table_1213511_5 WHERE player = "Mike McNiven" | {
"input": "CREATE TABLE table_1213511_5 (college_junior_club_team VARCHAR, player VARCHAR)",
"instruction": "where is team player mike mcniven played for?",
"output": "SELECT college_junior_club_team FROM table_1213511_5 WHERE player = \"Mike McNiven\""
} |
### INSTRUCTION
How many in attendance when Penguins were home with a record of 14–19–6 with less than 34 points?
### INPUT
CREATE TABLE table_name_98 (attendance VARCHAR, points VARCHAR, home VARCHAR, record VARCHAR)
### OUTPUT
SELECT COUNT(attendance) FROM table_name_98 WHERE home = "penguins" AND record = "14–19–6" AND points < 34 | {
"input": "CREATE TABLE table_name_98 (attendance VARCHAR, points VARCHAR, home VARCHAR, record VARCHAR)",
"instruction": "How many in attendance when Penguins were home with a record of 14–19–6 with less than 34 points?",
"output": "SELECT COUNT(attendance) FROM table_name_98 WHERE home = \"penguins\" AND record = \"14–19–6\" AND points < 34"
} |
### INSTRUCTION
What is the score of the game with Grizzlies as the visitor team on 30 December 2007?
### INPUT
CREATE TABLE table_name_21 (score VARCHAR, visitor VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_21 WHERE visitor = "grizzlies" AND date = "30 december 2007" | {
"input": "CREATE TABLE table_name_21 (score VARCHAR, visitor VARCHAR, date VARCHAR)",
"instruction": "What is the score of the game with Grizzlies as the visitor team on 30 December 2007?",
"output": "SELECT score FROM table_name_21 WHERE visitor = \"grizzlies\" AND date = \"30 december 2007\""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.