text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
Prior to 2004, what was the name of the competition that took place in Johannesburg, South Africa and had the 400 m hurdles event?
### INPUT
CREATE TABLE table_name_75 (competition VARCHAR, venue VARCHAR, notes VARCHAR, year VARCHAR)
### OUTPUT
SELECT competition FROM table_name_75 WHERE notes = "400 m hurdles" AND year < 2004 AND venue = "johannesburg, south africa" | {
"input": "CREATE TABLE table_name_75 (competition VARCHAR, venue VARCHAR, notes VARCHAR, year VARCHAR)",
"instruction": "Prior to 2004, what was the name of the competition that took place in Johannesburg, South Africa and had the 400 m hurdles event?",
"output": "SELECT competition FROM table_name_75 WHERE notes = \"400 m hurdles\" AND year < 2004 AND venue = \"johannesburg, south africa\""
} |
### INSTRUCTION
What is the Elector with a Nationality with roman, and an Elevator of urban iv, and an Elevated with 1261, december 17?
### INPUT
CREATE TABLE table_name_5 (elector VARCHAR, elevated VARCHAR, nationality VARCHAR, elevator VARCHAR)
### OUTPUT
SELECT elector FROM table_name_5 WHERE nationality = "roman" AND elevator = "urban iv" AND elevated = "1261, december 17" | {
"input": "CREATE TABLE table_name_5 (elector VARCHAR, elevated VARCHAR, nationality VARCHAR, elevator VARCHAR)",
"instruction": "What is the Elector with a Nationality with roman, and an Elevator of urban iv, and an Elevated with 1261, december 17?",
"output": "SELECT elector FROM table_name_5 WHERE nationality = \"roman\" AND elevator = \"urban iv\" AND elevated = \"1261, december 17\""
} |
### INSTRUCTION
What is the highest number of losses of club cf calvo sotelo, which has more than 31 goals against, 38 goals for, and less than 30 played?
### INPUT
CREATE TABLE table_name_85 (losses INTEGER, played VARCHAR, club VARCHAR, goals_against VARCHAR, goals_for VARCHAR)
### OUTPUT
SELECT MAX(losses) FROM table_name_85 WHERE goals_against > 31 AND goals_for = 38 AND club = "cf calvo sotelo" AND played < 30 | {
"input": "CREATE TABLE table_name_85 (losses INTEGER, played VARCHAR, club VARCHAR, goals_against VARCHAR, goals_for VARCHAR)",
"instruction": "What is the highest number of losses of club cf calvo sotelo, which has more than 31 goals against, 38 goals for, and less than 30 played?",
"output": "SELECT MAX(losses) FROM table_name_85 WHERE goals_against > 31 AND goals_for = 38 AND club = \"cf calvo sotelo\" AND played < 30"
} |
### INSTRUCTION
Name the average In/de-creased by which has a Governorate of al anbar governorate, and Seats 2005 smaller than 9?
### INPUT
CREATE TABLE table_name_66 (in_de_creased_by INTEGER, governorate VARCHAR, seats_2005 VARCHAR)
### OUTPUT
SELECT AVG(in_de_creased_by) FROM table_name_66 WHERE governorate = "al anbar governorate" AND seats_2005 < 9 | {
"input": "CREATE TABLE table_name_66 (in_de_creased_by INTEGER, governorate VARCHAR, seats_2005 VARCHAR)",
"instruction": "Name the average In/de-creased by which has a Governorate of al anbar governorate, and Seats 2005 smaller than 9?",
"output": "SELECT AVG(in_de_creased_by) FROM table_name_66 WHERE governorate = \"al anbar governorate\" AND seats_2005 < 9"
} |
### INSTRUCTION
What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play?
### INPUT
CREATE TABLE table_name_56 (year INTEGER, category VARCHAR)
### OUTPUT
SELECT MIN(year) FROM table_name_56 WHERE category = "best performance by a leading actor in a play" | {
"input": "CREATE TABLE table_name_56 (year INTEGER, category VARCHAR)",
"instruction": "What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play?",
"output": "SELECT MIN(year) FROM table_name_56 WHERE category = \"best performance by a leading actor in a play\""
} |
### INSTRUCTION
How many part 6 parts are there in the episode number 5?
### INPUT
CREATE TABLE table_13241993_3 (part_6 VARCHAR, episode__number VARCHAR)
### OUTPUT
SELECT COUNT(part_6) FROM table_13241993_3 WHERE episode__number = 5 | {
"input": "CREATE TABLE table_13241993_3 (part_6 VARCHAR, episode__number VARCHAR)",
"instruction": "How many part 6 parts are there in the episode number 5?",
"output": "SELECT COUNT(part_6) FROM table_13241993_3 WHERE episode__number = 5"
} |
### INSTRUCTION
What is the total of Played where the Goals For is higher than 60, the Lost is 8, and the Position is less than 1?
### INPUT
CREATE TABLE table_name_22 (played INTEGER, position VARCHAR, goals_for VARCHAR, lost VARCHAR)
### OUTPUT
SELECT SUM(played) FROM table_name_22 WHERE goals_for > 60 AND lost = 8 AND position < 1 | {
"input": "CREATE TABLE table_name_22 (played INTEGER, position VARCHAR, goals_for VARCHAR, lost VARCHAR)",
"instruction": "What is the total of Played where the Goals For is higher than 60, the Lost is 8, and the Position is less than 1?",
"output": "SELECT SUM(played) FROM table_name_22 WHERE goals_for > 60 AND lost = 8 AND position < 1"
} |
### INSTRUCTION
Find the organisation ids and details of the organisations which are involved in
### INPUT
CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR)
### OUTPUT
SELECT T2.organisation_id, T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING SUM(T1.grant_amount) > 6000 | {
"input": "CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR)",
"instruction": "Find the organisation ids and details of the organisations which are involved in",
"output": "SELECT T2.organisation_id, T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING SUM(T1.grant_amount) > 6000"
} |
### INSTRUCTION
How many gains have a long greater than 8, with avg/g of 124.9?
### INPUT
CREATE TABLE table_name_27 (gain INTEGER, long VARCHAR, avg_g VARCHAR)
### OUTPUT
SELECT SUM(gain) FROM table_name_27 WHERE long > 8 AND avg_g = 124.9 | {
"input": "CREATE TABLE table_name_27 (gain INTEGER, long VARCHAR, avg_g VARCHAR)",
"instruction": "How many gains have a long greater than 8, with avg/g of 124.9?",
"output": "SELECT SUM(gain) FROM table_name_27 WHERE long > 8 AND avg_g = 124.9"
} |
### INSTRUCTION
What is the Call sign of the Frequency 106.9 the X?
### INPUT
CREATE TABLE table_name_19 (call_sign VARCHAR, branding VARCHAR)
### OUTPUT
SELECT call_sign FROM table_name_19 WHERE branding = "106.9 the x" | {
"input": "CREATE TABLE table_name_19 (call_sign VARCHAR, branding VARCHAR)",
"instruction": "What is the Call sign of the Frequency 106.9 the X?",
"output": "SELECT call_sign FROM table_name_19 WHERE branding = \"106.9 the x\""
} |
### INSTRUCTION
What is Probate Activities, when Reserved Instruments is No, and when Regulator is Chartered Institute of Legal Executives?
### INPUT
CREATE TABLE table_name_6 (probate_activities VARCHAR, reserved_instruments VARCHAR, regulator VARCHAR)
### OUTPUT
SELECT probate_activities FROM table_name_6 WHERE reserved_instruments = "no" AND regulator = "chartered institute of legal executives" | {
"input": "CREATE TABLE table_name_6 (probate_activities VARCHAR, reserved_instruments VARCHAR, regulator VARCHAR)",
"instruction": "What is Probate Activities, when Reserved Instruments is No, and when Regulator is Chartered Institute of Legal Executives?",
"output": "SELECT probate_activities FROM table_name_6 WHERE reserved_instruments = \"no\" AND regulator = \"chartered institute of legal executives\""
} |
### INSTRUCTION
what is the constellation when the object type is spiral galaxy, the ngc number is less than 3593 and the right ascension (j2000) is 11h05m48.9s?
### INPUT
CREATE TABLE table_name_24 (constellation VARCHAR, right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR)
### OUTPUT
SELECT constellation FROM table_name_24 WHERE object_type = "spiral galaxy" AND ngc_number < 3593 AND right_ascension___j2000__ = "11h05m48.9s" | {
"input": "CREATE TABLE table_name_24 (constellation VARCHAR, right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR)",
"instruction": "what is the constellation when the object type is spiral galaxy, the ngc number is less than 3593 and the right ascension (j2000) is 11h05m48.9s?",
"output": "SELECT constellation FROM table_name_24 WHERE object_type = \"spiral galaxy\" AND ngc_number < 3593 AND right_ascension___j2000__ = \"11h05m48.9s\""
} |
### INSTRUCTION
What is the release date of the CD by EG Records in the UK?
### INPUT
CREATE TABLE table_name_32 (release_date INTEGER, music_label VARCHAR, media VARCHAR, country VARCHAR)
### OUTPUT
SELECT SUM(release_date) FROM table_name_32 WHERE media = "cd" AND country = "uk" AND music_label = "eg records" | {
"input": "CREATE TABLE table_name_32 (release_date INTEGER, music_label VARCHAR, media VARCHAR, country VARCHAR)",
"instruction": "What is the release date of the CD by EG Records in the UK?",
"output": "SELECT SUM(release_date) FROM table_name_32 WHERE media = \"cd\" AND country = \"uk\" AND music_label = \"eg records\""
} |
### INSTRUCTION
Which models are lighter than 3500 but not built by the 'Ford Motor Company'?
### INPUT
CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE MODEL_LIST (model VARCHAR, Model VARCHAR, Maker VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, weight VARCHAR); CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR)
### OUTPUT
SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName <> 'Ford Motor Company' | {
"input": "CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE MODEL_LIST (model VARCHAR, Model VARCHAR, Maker VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, weight VARCHAR); CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR)",
"instruction": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?",
"output": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName <> 'Ford Motor Company'"
} |
### INSTRUCTION
How many winners of binibining pilipinas-International when Maria Karla Bautista won binibining pilipinas-world?
### INPUT
CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, binibining_pilipinas_world VARCHAR)
### OUTPUT
SELECT COUNT(binibining_pilipinas_international) FROM table_1825751_4 WHERE binibining_pilipinas_world = "Maria Karla Bautista" | {
"input": "CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, binibining_pilipinas_world VARCHAR)",
"instruction": "How many winners of binibining pilipinas-International when Maria Karla Bautista won binibining pilipinas-world?",
"output": "SELECT COUNT(binibining_pilipinas_international) FROM table_1825751_4 WHERE binibining_pilipinas_world = \"Maria Karla Bautista\""
} |
### INSTRUCTION
What Party is Member Alicia Hughes from?
### INPUT
CREATE TABLE table_name_95 (party VARCHAR, position VARCHAR, name VARCHAR)
### OUTPUT
SELECT party FROM table_name_95 WHERE position = "member" AND name = "alicia hughes" | {
"input": "CREATE TABLE table_name_95 (party VARCHAR, position VARCHAR, name VARCHAR)",
"instruction": "What Party is Member Alicia Hughes from?",
"output": "SELECT party FROM table_name_95 WHERE position = \"member\" AND name = \"alicia hughes\""
} |
### INSTRUCTION
Which Runs is the highest one that has a Match larger than 63, and a Venue of national stadium, karachi, and a Year smaller than 1996?
### INPUT
CREATE TABLE table_name_75 (runs INTEGER, year VARCHAR, match VARCHAR, venue VARCHAR)
### OUTPUT
SELECT MAX(runs) FROM table_name_75 WHERE match > 63 AND venue = "national stadium, karachi" AND year < 1996 | {
"input": "CREATE TABLE table_name_75 (runs INTEGER, year VARCHAR, match VARCHAR, venue VARCHAR)",
"instruction": "Which Runs is the highest one that has a Match larger than 63, and a Venue of national stadium, karachi, and a Year smaller than 1996?",
"output": "SELECT MAX(runs) FROM table_name_75 WHERE match > 63 AND venue = \"national stadium, karachi\" AND year < 1996"
} |
### INSTRUCTION
Which call sign has a frequency of FM 105.3?
### INPUT
CREATE TABLE table_name_81 (call_sign VARCHAR, frequency VARCHAR)
### OUTPUT
SELECT call_sign FROM table_name_81 WHERE frequency = "fm 105.3" | {
"input": "CREATE TABLE table_name_81 (call_sign VARCHAR, frequency VARCHAR)",
"instruction": "Which call sign has a frequency of FM 105.3?",
"output": "SELECT call_sign FROM table_name_81 WHERE frequency = \"fm 105.3\""
} |
### INSTRUCTION
Which location has a method of decision and Nikos Tsoukalas for an opponent?
### INPUT
CREATE TABLE table_name_97 (location VARCHAR, method VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT location FROM table_name_97 WHERE method = "decision" AND opponent = "nikos tsoukalas" | {
"input": "CREATE TABLE table_name_97 (location VARCHAR, method VARCHAR, opponent VARCHAR)",
"instruction": "Which location has a method of decision and Nikos Tsoukalas for an opponent?",
"output": "SELECT location FROM table_name_97 WHERE method = \"decision\" AND opponent = \"nikos tsoukalas\""
} |
### INSTRUCTION
Find the last name of the latest contact individual of the organization "Labour Party".
### INPUT
CREATE TABLE organizations (organization_id VARCHAR, organization_name VARCHAR); CREATE TABLE individuals (individual_last_name VARCHAR, individual_id VARCHAR); CREATE TABLE organization_contact_individuals (organization_id VARCHAR, individual_id VARCHAR, date_contact_to VARCHAR)
### OUTPUT
SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = "Labour Party" ORDER BY t2.date_contact_to DESC LIMIT 1 | {
"input": "CREATE TABLE organizations (organization_id VARCHAR, organization_name VARCHAR); CREATE TABLE individuals (individual_last_name VARCHAR, individual_id VARCHAR); CREATE TABLE organization_contact_individuals (organization_id VARCHAR, individual_id VARCHAR, date_contact_to VARCHAR)",
"instruction": "Find the last name of the latest contact individual of the organization \"Labour Party\".",
"output": "SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.organization_name = \"Labour Party\" ORDER BY t2.date_contact_to DESC LIMIT 1"
} |
### INSTRUCTION
What are the African countries that have a population less than any country in Asia?
### INPUT
CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)
### OUTPUT
SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT MAX(population) FROM country WHERE Continent = "Asia") | {
"input": "CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)",
"instruction": "What are the African countries that have a population less than any country in Asia?",
"output": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT MAX(population) FROM country WHERE Continent = \"Asia\")"
} |
### INSTRUCTION
Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000.
### INPUT
CREATE TABLE airport (Airport_ID VARCHAR, Total_Passengers INTEGER); CREATE TABLE aircraft (Aircraft VARCHAR, Description VARCHAR, Aircraft_ID VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR)
### OUTPUT
SELECT T1.Aircraft, T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Total_Passengers > 10000000 | {
"input": "CREATE TABLE airport (Airport_ID VARCHAR, Total_Passengers INTEGER); CREATE TABLE aircraft (Aircraft VARCHAR, Description VARCHAR, Aircraft_ID VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR)",
"instruction": "Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000.",
"output": "SELECT T1.Aircraft, T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Total_Passengers > 10000000"
} |
### INSTRUCTION
What is the enrollment ratio in tertiary in the region where the enrollment ration in secondary is 71.43?
### INPUT
CREATE TABLE table_25042332_22 (tertiary__18_24_years_ VARCHAR, secondary__14_17_years_ VARCHAR)
### OUTPUT
SELECT tertiary__18_24_years_ FROM table_25042332_22 WHERE secondary__14_17_years_ = "71.43" | {
"input": "CREATE TABLE table_25042332_22 (tertiary__18_24_years_ VARCHAR, secondary__14_17_years_ VARCHAR)",
"instruction": "What is the enrollment ratio in tertiary in the region where the enrollment ration in secondary is 71.43?",
"output": "SELECT tertiary__18_24_years_ FROM table_25042332_22 WHERE secondary__14_17_years_ = \"71.43\""
} |
### INSTRUCTION
What is the Rank of the Nation with more than 1 Gold and a more than 4 Total medals?
### INPUT
CREATE TABLE table_name_65 (rank INTEGER, gold VARCHAR, total VARCHAR)
### OUTPUT
SELECT SUM(rank) FROM table_name_65 WHERE gold > 1 AND total > 4 | {
"input": "CREATE TABLE table_name_65 (rank INTEGER, gold VARCHAR, total VARCHAR)",
"instruction": "What is the Rank of the Nation with more than 1 Gold and a more than 4 Total medals?",
"output": "SELECT SUM(rank) FROM table_name_65 WHERE gold > 1 AND total > 4"
} |
### INSTRUCTION
Find the title, credit, and department name of courses that have more than one prerequisites?
### INPUT
CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (title VARCHAR, credits VARCHAR, dept_name VARCHAR, course_id VARCHAR)
### OUTPUT
SELECT T1.title, T1.credits, T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING COUNT(*) > 1 | {
"input": "CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (title VARCHAR, credits VARCHAR, dept_name VARCHAR, course_id VARCHAR)",
"instruction": "Find the title, credit, and department name of courses that have more than one prerequisites?",
"output": "SELECT T1.title, T1.credits, T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING COUNT(*) > 1"
} |
### INSTRUCTION
Which round had a winning driver of Uwe Alzen, at the Sepang International circuit?
### INPUT
CREATE TABLE table_name_80 (round VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
### OUTPUT
SELECT round FROM table_name_80 WHERE winning_driver = "uwe alzen" AND circuit = "sepang international circuit" | {
"input": "CREATE TABLE table_name_80 (round VARCHAR, winning_driver VARCHAR, circuit VARCHAR)",
"instruction": "Which round had a winning driver of Uwe Alzen, at the Sepang International circuit?",
"output": "SELECT round FROM table_name_80 WHERE winning_driver = \"uwe alzen\" AND circuit = \"sepang international circuit\""
} |
### INSTRUCTION
What is the sum of draws for El Zamalek wins under 36, total over 2, and Al Ahly wins over 37?
### INPUT
CREATE TABLE table_name_27 (draws INTEGER, al_ahly_wins VARCHAR, el_zamalek_wins VARCHAR, total VARCHAR)
### OUTPUT
SELECT SUM(draws) FROM table_name_27 WHERE el_zamalek_wins < 36 AND total > 2 AND al_ahly_wins > 37 | {
"input": "CREATE TABLE table_name_27 (draws INTEGER, al_ahly_wins VARCHAR, el_zamalek_wins VARCHAR, total VARCHAR)",
"instruction": "What is the sum of draws for El Zamalek wins under 36, total over 2, and Al Ahly wins over 37?",
"output": "SELECT SUM(draws) FROM table_name_27 WHERE el_zamalek_wins < 36 AND total > 2 AND al_ahly_wins > 37"
} |
### INSTRUCTION
What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?
### INPUT
CREATE TABLE table_name_32 (tournament VARCHAR)
### OUTPUT
SELECT 2009 FROM table_name_32 WHERE 2012 = "a" AND 2011 = "1r" AND tournament = "shanghai masters" | {
"input": "CREATE TABLE table_name_32 (tournament VARCHAR)",
"instruction": "What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?",
"output": "SELECT 2009 FROM table_name_32 WHERE 2012 = \"a\" AND 2011 = \"1r\" AND tournament = \"shanghai masters\""
} |
### INSTRUCTION
Name the points for thierry tassin category:articles with hcards
### INPUT
CREATE TABLE table_19001175_1 (points VARCHAR, name VARCHAR)
### OUTPUT
SELECT points FROM table_19001175_1 WHERE name = "Thierry Tassin Category:Articles with hCards" | {
"input": "CREATE TABLE table_19001175_1 (points VARCHAR, name VARCHAR)",
"instruction": "Name the points for thierry tassin category:articles with hcards",
"output": "SELECT points FROM table_19001175_1 WHERE name = \"Thierry Tassin Category:Articles with hCards\""
} |
### INSTRUCTION
What's the duration of the Archers with Pauline Seville acting?
### INPUT
CREATE TABLE table_name_45 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)
### OUTPUT
SELECT duration FROM table_name_45 WHERE soap_opera = "the archers" AND actor = "pauline seville" | {
"input": "CREATE TABLE table_name_45 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)",
"instruction": "What's the duration of the Archers with Pauline Seville acting?",
"output": "SELECT duration FROM table_name_45 WHERE soap_opera = \"the archers\" AND actor = \"pauline seville\""
} |
### INSTRUCTION
What is the Title of the Pye Label mono LP release?
### INPUT
CREATE TABLE table_name_18 (title VARCHAR, format VARCHAR, label VARCHAR)
### OUTPUT
SELECT title FROM table_name_18 WHERE format = "mono lp" AND label = "pye" | {
"input": "CREATE TABLE table_name_18 (title VARCHAR, format VARCHAR, label VARCHAR)",
"instruction": "What is the Title of the Pye Label mono LP release?",
"output": "SELECT title FROM table_name_18 WHERE format = \"mono lp\" AND label = \"pye\""
} |
### INSTRUCTION
Name the opponent when the field is mitchel athletic complex
### INPUT
CREATE TABLE table_name_69 (opponent VARCHAR, field VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_69 WHERE field = "mitchel athletic complex" | {
"input": "CREATE TABLE table_name_69 (opponent VARCHAR, field VARCHAR)",
"instruction": "Name the opponent when the field is mitchel athletic complex",
"output": "SELECT opponent FROM table_name_69 WHERE field = \"mitchel athletic complex\""
} |
### INSTRUCTION
Which city has a school of North Vernon and a county of 40 Jennings?
### INPUT
CREATE TABLE table_name_48 (city VARCHAR, county VARCHAR, school VARCHAR)
### OUTPUT
SELECT city FROM table_name_48 WHERE county = "40 jennings" AND school = "north vernon" | {
"input": "CREATE TABLE table_name_48 (city VARCHAR, county VARCHAR, school VARCHAR)",
"instruction": "Which city has a school of North Vernon and a county of 40 Jennings?",
"output": "SELECT city FROM table_name_48 WHERE county = \"40 jennings\" AND school = \"north vernon\""
} |
### INSTRUCTION
What is the affiliation of the University called Explorers?
### INPUT
CREATE TABLE table_19210115_1 (affiliation VARCHAR, nickname VARCHAR)
### OUTPUT
SELECT affiliation FROM table_19210115_1 WHERE nickname = "Explorers" | {
"input": "CREATE TABLE table_19210115_1 (affiliation VARCHAR, nickname VARCHAR)",
"instruction": "What is the affiliation of the University called Explorers?",
"output": "SELECT affiliation FROM table_19210115_1 WHERE nickname = \"Explorers\""
} |
### INSTRUCTION
What is the lowest ERP W of the 67829 Facility ID?
### INPUT
CREATE TABLE table_name_54 (erp_w INTEGER, facility_id VARCHAR)
### OUTPUT
SELECT MIN(erp_w) FROM table_name_54 WHERE facility_id = 67829 | {
"input": "CREATE TABLE table_name_54 (erp_w INTEGER, facility_id VARCHAR)",
"instruction": "What is the lowest ERP W of the 67829 Facility ID?",
"output": "SELECT MIN(erp_w) FROM table_name_54 WHERE facility_id = 67829"
} |
### INSTRUCTION
Which Circuit has the Winning Team of carlin motorsport, and the Winning Driver of oliver turvey, and a Date of 24 march?
### INPUT
CREATE TABLE table_name_93 (circuit VARCHAR, date VARCHAR, winning_team VARCHAR, winning_driver VARCHAR)
### OUTPUT
SELECT circuit FROM table_name_93 WHERE winning_team = "carlin motorsport" AND winning_driver = "oliver turvey" AND date = "24 march" | {
"input": "CREATE TABLE table_name_93 (circuit VARCHAR, date VARCHAR, winning_team VARCHAR, winning_driver VARCHAR)",
"instruction": "Which Circuit has the Winning Team of carlin motorsport, and the Winning Driver of oliver turvey, and a Date of 24 march?",
"output": "SELECT circuit FROM table_name_93 WHERE winning_team = \"carlin motorsport\" AND winning_driver = \"oliver turvey\" AND date = \"24 march\""
} |
### INSTRUCTION
Which Population is the highest one that has a Density (inhabitants/km 2) larger than 2805.8, and a Rank of 1st, and an Altitude (mslm) smaller than 122?
### INPUT
CREATE TABLE table_name_99 (population INTEGER, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR, rank VARCHAR)
### OUTPUT
SELECT MAX(population) FROM table_name_99 WHERE density__inhabitants_km_2__ > 2805.8 AND rank = "1st" AND altitude__mslm_ < 122 | {
"input": "CREATE TABLE table_name_99 (population INTEGER, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR, rank VARCHAR)",
"instruction": "Which Population is the highest one that has a Density (inhabitants/km 2) larger than 2805.8, and a Rank of 1st, and an Altitude (mslm) smaller than 122?",
"output": "SELECT MAX(population) FROM table_name_99 WHERE density__inhabitants_km_2__ > 2805.8 AND rank = \"1st\" AND altitude__mslm_ < 122"
} |
### INSTRUCTION
What is the starting point of the north/south operating Palafox Street route?
### INPUT
CREATE TABLE table_name_66 (starting_point VARCHAR, operates VARCHAR, name VARCHAR)
### OUTPUT
SELECT starting_point FROM table_name_66 WHERE operates = "north/south" AND name = "palafox street" | {
"input": "CREATE TABLE table_name_66 (starting_point VARCHAR, operates VARCHAR, name VARCHAR)",
"instruction": "What is the starting point of the north/south operating Palafox Street route?",
"output": "SELECT starting_point FROM table_name_66 WHERE operates = \"north/south\" AND name = \"palafox street\""
} |
### INSTRUCTION
How many dates originally aired episodes located in Philadelphia, pennsylvania?
### INPUT
CREATE TABLE table_24798489_2 (original_airdate VARCHAR, location VARCHAR)
### OUTPUT
SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE location = "Philadelphia, Pennsylvania" | {
"input": "CREATE TABLE table_24798489_2 (original_airdate VARCHAR, location VARCHAR)",
"instruction": "How many dates originally aired episodes located in Philadelphia, pennsylvania?",
"output": "SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE location = \"Philadelphia, Pennsylvania\""
} |
### INSTRUCTION
The engine family MaxxForce 5 in the years produced 2007-current, have what cylinder layout?
### INPUT
CREATE TABLE table_26352332_4 (cylinder_layout VARCHAR, years_produced VARCHAR, engine_family VARCHAR)
### OUTPUT
SELECT cylinder_layout FROM table_26352332_4 WHERE years_produced = "2007-current" AND engine_family = "MaxxForce 5" | {
"input": "CREATE TABLE table_26352332_4 (cylinder_layout VARCHAR, years_produced VARCHAR, engine_family VARCHAR)",
"instruction": "The engine family MaxxForce 5\t in the years produced 2007-current, have what cylinder layout?",
"output": "SELECT cylinder_layout FROM table_26352332_4 WHERE years_produced = \"2007-current\" AND engine_family = \"MaxxForce 5\""
} |
### INSTRUCTION
What is the amount of US open runner-up score?
### INPUT
CREATE TABLE table_22858557_1 (score_in_final VARCHAR, championship VARCHAR, outcome VARCHAR)
### OUTPUT
SELECT COUNT(score_in_final) FROM table_22858557_1 WHERE championship = "US Open" AND outcome = "Runner-up" | {
"input": "CREATE TABLE table_22858557_1 (score_in_final VARCHAR, championship VARCHAR, outcome VARCHAR)",
"instruction": "What is the amount of US open runner-up score?",
"output": "SELECT COUNT(score_in_final) FROM table_22858557_1 WHERE championship = \"US Open\" AND outcome = \"Runner-up\""
} |
### INSTRUCTION
How many countries were sampled in the index created by The Economist, published in 2007 and ranked 2nd in the LA Ranking?
### INPUT
CREATE TABLE table_19948664_1 (countries_sampled INTEGER, ranking_la__2_ VARCHAR, author___editor___source VARCHAR, year_of_publication VARCHAR)
### OUTPUT
SELECT MAX(countries_sampled) FROM table_19948664_1 WHERE author___editor___source = "The Economist" AND year_of_publication = "2007" AND ranking_la__2_ = "2nd" | {
"input": "CREATE TABLE table_19948664_1 (countries_sampled INTEGER, ranking_la__2_ VARCHAR, author___editor___source VARCHAR, year_of_publication VARCHAR)",
"instruction": "How many countries were sampled in the index created by The Economist, published in 2007 and ranked 2nd in the LA Ranking?",
"output": "SELECT MAX(countries_sampled) FROM table_19948664_1 WHERE author___editor___source = \"The Economist\" AND year_of_publication = \"2007\" AND ranking_la__2_ = \"2nd\""
} |
### INSTRUCTION
Which district had SC reserved and 169 Constituents?
### INPUT
CREATE TABLE table_name_2 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
### OUTPUT
SELECT district FROM table_name_2 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "169" | {
"input": "CREATE TABLE table_name_2 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)",
"instruction": "Which district had SC reserved and 169 Constituents?",
"output": "SELECT district FROM table_name_2 WHERE reserved_for___sc___st__none_ = \"sc\" AND constituency_number = \"169\""
} |
### INSTRUCTION
What was the Role/Episode after 2006 with Ellen Burstyn as a recipient and nominee?
### INPUT
CREATE TABLE table_name_21 (role_episode VARCHAR, year VARCHAR, recipients_and_nominees VARCHAR)
### OUTPUT
SELECT role_episode FROM table_name_21 WHERE year > 2006 AND recipients_and_nominees = "ellen burstyn" | {
"input": "CREATE TABLE table_name_21 (role_episode VARCHAR, year VARCHAR, recipients_and_nominees VARCHAR)",
"instruction": "What was the Role/Episode after 2006 with Ellen Burstyn as a recipient and nominee?",
"output": "SELECT role_episode FROM table_name_21 WHERE year > 2006 AND recipients_and_nominees = \"ellen burstyn\""
} |
### INSTRUCTION
What date was the Competition of 2014 fifa world cup qualification, with a Score of 1–0?
### INPUT
CREATE TABLE table_name_26 (date VARCHAR, competition VARCHAR, score VARCHAR)
### OUTPUT
SELECT date FROM table_name_26 WHERE competition = "2014 fifa world cup qualification" AND score = "1–0" | {
"input": "CREATE TABLE table_name_26 (date VARCHAR, competition VARCHAR, score VARCHAR)",
"instruction": "What date was the Competition of 2014 fifa world cup qualification, with a Score of 1–0?",
"output": "SELECT date FROM table_name_26 WHERE competition = \"2014 fifa world cup qualification\" AND score = \"1–0\""
} |
### INSTRUCTION
List the names of all routes in alphabetic order.
### INPUT
CREATE TABLE Delivery_Routes (route_name VARCHAR)
### OUTPUT
SELECT route_name FROM Delivery_Routes ORDER BY route_name | {
"input": "CREATE TABLE Delivery_Routes (route_name VARCHAR)",
"instruction": "List the names of all routes in alphabetic order.",
"output": "SELECT route_name FROM Delivery_Routes ORDER BY route_name"
} |
### INSTRUCTION
Name the total number of overall for defensive tackle
### INPUT
CREATE TABLE table_name_6 (overall VARCHAR, position VARCHAR)
### OUTPUT
SELECT COUNT(overall) FROM table_name_6 WHERE position = "defensive tackle" | {
"input": "CREATE TABLE table_name_6 (overall VARCHAR, position VARCHAR)",
"instruction": "Name the total number of overall for defensive tackle",
"output": "SELECT COUNT(overall) FROM table_name_6 WHERE position = \"defensive tackle\""
} |
### INSTRUCTION
What is every value for Points 2 when the value of won is 30?
### INPUT
CREATE TABLE table_17359181_1 (points_2 VARCHAR, won VARCHAR)
### OUTPUT
SELECT points_2 FROM table_17359181_1 WHERE won = 30 | {
"input": "CREATE TABLE table_17359181_1 (points_2 VARCHAR, won VARCHAR)",
"instruction": "What is every value for Points 2 when the value of won is 30?",
"output": "SELECT points_2 FROM table_17359181_1 WHERE won = 30"
} |
### INSTRUCTION
What position did he finish in 1987?
### INPUT
CREATE TABLE table_2387790_2 (position VARCHAR, year VARCHAR)
### OUTPUT
SELECT position FROM table_2387790_2 WHERE year = 1987 | {
"input": "CREATE TABLE table_2387790_2 (position VARCHAR, year VARCHAR)",
"instruction": "What position did he finish in 1987?",
"output": "SELECT position FROM table_2387790_2 WHERE year = 1987"
} |
### INSTRUCTION
What was Cici Kelley's minimum season?
### INPUT
CREATE TABLE table_2140071_8 (season INTEGER, coach VARCHAR)
### OUTPUT
SELECT MIN(season) FROM table_2140071_8 WHERE coach = "Cici Kelley" | {
"input": "CREATE TABLE table_2140071_8 (season INTEGER, coach VARCHAR)",
"instruction": "What was Cici Kelley's minimum season?",
"output": "SELECT MIN(season) FROM table_2140071_8 WHERE coach = \"Cici Kelley\""
} |
### INSTRUCTION
What time is CDT when EDT is 4:55 a.m.?
### INPUT
CREATE TABLE table_name_71 (cdt___5_utc_ VARCHAR, edt___4_utc_ VARCHAR)
### OUTPUT
SELECT cdt___5_utc_ FROM table_name_71 WHERE edt___4_utc_ = "4:55 a.m." | {
"input": "CREATE TABLE table_name_71 (cdt___5_utc_ VARCHAR, edt___4_utc_ VARCHAR)",
"instruction": "What time is CDT when EDT is 4:55 a.m.?",
"output": "SELECT cdt___5_utc_ FROM table_name_71 WHERE edt___4_utc_ = \"4:55 a.m.\""
} |
### INSTRUCTION
What is the description of the department whose name has the substring the computer?
### INPUT
CREATE TABLE Departments (department_description VARCHAR, department_name VARCHAR)
### OUTPUT
SELECT department_description FROM Departments WHERE department_name LIKE '%computer%' | {
"input": "CREATE TABLE Departments (department_description VARCHAR, department_name VARCHAR)",
"instruction": "What is the description of the department whose name has the substring the computer?",
"output": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'"
} |
### INSTRUCTION
How many professionals did not operate any treatment on dogs?
### INPUT
CREATE TABLE Professionals (professional_id VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM Professionals WHERE NOT professional_id IN (SELECT professional_id FROM Treatments) | {
"input": "CREATE TABLE Professionals (professional_id VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)",
"instruction": "How many professionals did not operate any treatment on dogs?",
"output": "SELECT COUNT(*) FROM Professionals WHERE NOT professional_id IN (SELECT professional_id FROM Treatments)"
} |
### INSTRUCTION
How many policies are listed for the customer named "Dayana Robel"?
### INPUT
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Dayana Robel" | {
"input": "CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR)",
"instruction": "How many policies are listed for the customer named \"Dayana Robel\"?",
"output": "SELECT COUNT(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Dayana Robel\""
} |
### INSTRUCTION
What was the second leg score from the group stage on matchday 5?
### INPUT
CREATE TABLE table_name_35 (second_leg VARCHAR, phase VARCHAR, round VARCHAR)
### OUTPUT
SELECT second_leg FROM table_name_35 WHERE phase = "group stage" AND round = "matchday 5" | {
"input": "CREATE TABLE table_name_35 (second_leg VARCHAR, phase VARCHAR, round VARCHAR)",
"instruction": "What was the second leg score from the group stage on matchday 5?",
"output": "SELECT second_leg FROM table_name_35 WHERE phase = \"group stage\" AND round = \"matchday 5\""
} |
### INSTRUCTION
Find the average access counts of documents with functional area "Acknowledgement".
### INPUT
CREATE TABLE document_functional_areas (document_code VARCHAR, functional_area_code VARCHAR); CREATE TABLE documents (access_count INTEGER, document_code VARCHAR); CREATE TABLE functional_areas (functional_area_code VARCHAR, functional_area_description VARCHAR)
### OUTPUT
SELECT AVG(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = "Acknowledgement" | {
"input": "CREATE TABLE document_functional_areas (document_code VARCHAR, functional_area_code VARCHAR); CREATE TABLE documents (access_count INTEGER, document_code VARCHAR); CREATE TABLE functional_areas (functional_area_code VARCHAR, functional_area_description VARCHAR)",
"instruction": "Find the average access counts of documents with functional area \"Acknowledgement\".",
"output": "SELECT AVG(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = \"Acknowledgement\""
} |
### INSTRUCTION
What pick was Greg Strome?
### INPUT
CREATE TABLE table_2850912_6 (pick__number INTEGER, player VARCHAR)
### OUTPUT
SELECT MAX(pick__number) FROM table_2850912_6 WHERE player = "Greg Strome" | {
"input": "CREATE TABLE table_2850912_6 (pick__number INTEGER, player VARCHAR)",
"instruction": "What pick was Greg Strome?",
"output": "SELECT MAX(pick__number) FROM table_2850912_6 WHERE player = \"Greg Strome\""
} |
### INSTRUCTION
What bridge in Sheridan county was built in 1915?
### INPUT
CREATE TABLE table_name_30 (name VARCHAR, county VARCHAR, built VARCHAR)
### OUTPUT
SELECT name FROM table_name_30 WHERE county = "sheridan" AND built = "1915" | {
"input": "CREATE TABLE table_name_30 (name VARCHAR, county VARCHAR, built VARCHAR)",
"instruction": "What bridge in Sheridan county was built in 1915?",
"output": "SELECT name FROM table_name_30 WHERE county = \"sheridan\" AND built = \"1915\""
} |
### INSTRUCTION
Who had the fastest lap when the winning team was Tom's Racing?
### INPUT
CREATE TABLE table_16670746_2 (fastest_lap VARCHAR, winning_team VARCHAR)
### OUTPUT
SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = "TOM'S Racing" | {
"input": "CREATE TABLE table_16670746_2 (fastest_lap VARCHAR, winning_team VARCHAR)",
"instruction": "Who had the fastest lap when the winning team was Tom's Racing?",
"output": "SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = \"TOM'S Racing\""
} |
### INSTRUCTION
Show all game names played by Linda Smith
### INPUT
CREATE TABLE Student (Stuid VARCHAR, Lname VARCHAR, Fname VARCHAR); CREATE TABLE Plays_games (gameid VARCHAR, Stuid VARCHAR); CREATE TABLE Video_games (gameid VARCHAR)
### OUTPUT
SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = "Smith" AND T3.Fname = "Linda" | {
"input": "CREATE TABLE Student (Stuid VARCHAR, Lname VARCHAR, Fname VARCHAR); CREATE TABLE Plays_games (gameid VARCHAR, Stuid VARCHAR); CREATE TABLE Video_games (gameid VARCHAR)",
"instruction": "Show all game names played by Linda Smith",
"output": "SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = \"Smith\" AND T3.Fname = \"Linda\""
} |
### INSTRUCTION
What is the lowest influence with population in the millions less than 60.64, and MEPs less than 22, and 454,059 inhabitant per MEP?
### INPUT
CREATE TABLE table_name_58 (influence INTEGER, inhabitants_per_mep VARCHAR, population_millions VARCHAR, meps VARCHAR)
### OUTPUT
SELECT MIN(influence) FROM table_name_58 WHERE population_millions < 60.64 AND meps < 22 AND inhabitants_per_mep = 454 OFFSET 059 | {
"input": "CREATE TABLE table_name_58 (influence INTEGER, inhabitants_per_mep VARCHAR, population_millions VARCHAR, meps VARCHAR)",
"instruction": "What is the lowest influence with population in the millions less than 60.64, and MEPs less than 22, and 454,059 inhabitant per MEP?",
"output": "SELECT MIN(influence) FROM table_name_58 WHERE population_millions < 60.64 AND meps < 22 AND inhabitants_per_mep = 454 OFFSET 059"
} |
### INSTRUCTION
What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?
### INPUT
CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE postseason (year VARCHAR, team_id_winner VARCHAR)
### OUTPUT
SELECT COUNT(*), T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year | {
"input": "CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE postseason (year VARCHAR, team_id_winner VARCHAR)",
"instruction": "What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?",
"output": "SELECT COUNT(*), T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year"
} |
### INSTRUCTION
What was the production number of the episode filmed in aug/sept 1968?
### INPUT
CREATE TABLE table_1971734_1 (prod__number VARCHAR, filmed VARCHAR)
### OUTPUT
SELECT prod__number FROM table_1971734_1 WHERE filmed = "Aug/Sept 1968" | {
"input": "CREATE TABLE table_1971734_1 (prod__number VARCHAR, filmed VARCHAR)",
"instruction": "What was the production number of the episode filmed in aug/sept 1968?",
"output": "SELECT prod__number FROM table_1971734_1 WHERE filmed = \"Aug/Sept 1968\""
} |
### INSTRUCTION
When joan tewkesbury is the director what is the number in seasons?
### INPUT
CREATE TABLE table_18367694_3 (no_in_season VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT no_in_season FROM table_18367694_3 WHERE directed_by = "Joan Tewkesbury" | {
"input": "CREATE TABLE table_18367694_3 (no_in_season VARCHAR, directed_by VARCHAR)",
"instruction": "When joan tewkesbury is the director what is the number in seasons?",
"output": "SELECT no_in_season FROM table_18367694_3 WHERE directed_by = \"Joan Tewkesbury\""
} |
### INSTRUCTION
Tell me the location for win with record of 8-5
### INPUT
CREATE TABLE table_name_52 (location VARCHAR, res VARCHAR, record VARCHAR)
### OUTPUT
SELECT location FROM table_name_52 WHERE res = "win" AND record = "8-5" | {
"input": "CREATE TABLE table_name_52 (location VARCHAR, res VARCHAR, record VARCHAR)",
"instruction": "Tell me the location for win with record of 8-5",
"output": "SELECT location FROM table_name_52 WHERE res = \"win\" AND record = \"8-5\""
} |
### INSTRUCTION
Who was the wenning witcher when ezequiel astacio was the losing pitcher?
### INPUT
CREATE TABLE table_13710464_1 (winning_pitcher VARCHAR, losing_pitcher VARCHAR)
### OUTPUT
SELECT winning_pitcher FROM table_13710464_1 WHERE losing_pitcher = "Ezequiel Astacio" | {
"input": "CREATE TABLE table_13710464_1 (winning_pitcher VARCHAR, losing_pitcher VARCHAR)",
"instruction": "Who was the wenning witcher when ezequiel astacio was the losing pitcher?",
"output": "SELECT winning_pitcher FROM table_13710464_1 WHERE losing_pitcher = \"Ezequiel Astacio\""
} |
### INSTRUCTION
What was the location when the winning driver was Nathanaël Berthon?
### INPUT
CREATE TABLE table_25572068_1 (location VARCHAR, winning_driver VARCHAR)
### OUTPUT
SELECT location FROM table_25572068_1 WHERE winning_driver = "Nathanaël Berthon" | {
"input": "CREATE TABLE table_25572068_1 (location VARCHAR, winning_driver VARCHAR)",
"instruction": "What was the location when the winning driver was Nathanaël Berthon?",
"output": "SELECT location FROM table_25572068_1 WHERE winning_driver = \"Nathanaël Berthon\""
} |
### INSTRUCTION
Find the name of the user who tweeted more than once, and number of tweets tweeted by them.
### INPUT
CREATE TABLE tweets (uid VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)
### OUTPUT
SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 1 | {
"input": "CREATE TABLE tweets (uid VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)",
"instruction": "Find the name of the user who tweeted more than once, and number of tweets tweeted by them.",
"output": "SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 1"
} |
### INSTRUCTION
Which sport was held in Huntsville at the Von Braun Center as part of the Southern Indoor Football League?
### INPUT
CREATE TABLE table_name_76 (sport VARCHAR, league VARCHAR, city VARCHAR, venue VARCHAR)
### OUTPUT
SELECT sport FROM table_name_76 WHERE city = "huntsville" AND venue = "von braun center" AND league = "southern indoor football league" | {
"input": "CREATE TABLE table_name_76 (sport VARCHAR, league VARCHAR, city VARCHAR, venue VARCHAR)",
"instruction": "Which sport was held in Huntsville at the Von Braun Center as part of the Southern Indoor Football League?",
"output": "SELECT sport FROM table_name_76 WHERE city = \"huntsville\" AND venue = \"von braun center\" AND league = \"southern indoor football league\""
} |
### INSTRUCTION
Which Appointed has a Presentation of Credentials on November 22, 1990
### INPUT
CREATE TABLE table_name_45 (appointed_by VARCHAR, presentation_of_credentials VARCHAR)
### OUTPUT
SELECT appointed_by FROM table_name_45 WHERE presentation_of_credentials = "november 22, 1990" | {
"input": "CREATE TABLE table_name_45 (appointed_by VARCHAR, presentation_of_credentials VARCHAR)",
"instruction": "Which Appointed has a Presentation of Credentials on November 22, 1990",
"output": "SELECT appointed_by FROM table_name_45 WHERE presentation_of_credentials = \"november 22, 1990\""
} |
### INSTRUCTION
What is the average number of points of the game after January 3 against the Cleveland Barons?
### INPUT
CREATE TABLE table_name_23 (points INTEGER, opponent VARCHAR, january VARCHAR)
### OUTPUT
SELECT AVG(points) FROM table_name_23 WHERE opponent = "cleveland barons" AND january > 3 | {
"input": "CREATE TABLE table_name_23 (points INTEGER, opponent VARCHAR, january VARCHAR)",
"instruction": "What is the average number of points of the game after January 3 against the Cleveland Barons?",
"output": "SELECT AVG(points) FROM table_name_23 WHERE opponent = \"cleveland barons\" AND january > 3"
} |
### INSTRUCTION
Name the us viewers directed by christine moore
### INPUT
CREATE TABLE table_26914076_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT us_viewers__millions_ FROM table_26914076_2 WHERE directed_by = "Christine Moore" | {
"input": "CREATE TABLE table_26914076_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)",
"instruction": "Name the us viewers directed by christine moore",
"output": "SELECT us_viewers__millions_ FROM table_26914076_2 WHERE directed_by = \"Christine Moore\""
} |
### INSTRUCTION
what is the result when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?
### INPUT
CREATE TABLE table_name_54 (result VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)
### OUTPUT
SELECT result FROM table_name_54 WHERE venue = "stade général seyni kountché, niamey" AND competition = "friendly" AND date = "9 october 2012" | {
"input": "CREATE TABLE table_name_54 (result VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)",
"instruction": "what is the result when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?",
"output": "SELECT result FROM table_name_54 WHERE venue = \"stade général seyni kountché, niamey\" AND competition = \"friendly\" AND date = \"9 october 2012\""
} |
### INSTRUCTION
When did the Issue with the Title Homecoming come out?
### INPUT
CREATE TABLE table_name_5 (date VARCHAR, title VARCHAR)
### OUTPUT
SELECT date FROM table_name_5 WHERE title = "homecoming" | {
"input": "CREATE TABLE table_name_5 (date VARCHAR, title VARCHAR)",
"instruction": "When did the Issue with the Title Homecoming come out?",
"output": "SELECT date FROM table_name_5 WHERE title = \"homecoming\""
} |
### INSTRUCTION
what is the number of areas where the townland is brittas?
### INPUT
CREATE TABLE table_30120560_1 (area__acres__ VARCHAR, townland VARCHAR)
### OUTPUT
SELECT COUNT(area__acres__) FROM table_30120560_1 WHERE townland = "Brittas" | {
"input": "CREATE TABLE table_30120560_1 (area__acres__ VARCHAR, townland VARCHAR)",
"instruction": "what is the number of areas where the townland is brittas?",
"output": "SELECT COUNT(area__acres__) FROM table_30120560_1 WHERE townland = \"Brittas\""
} |
### INSTRUCTION
Tell me the affiliation for mls team of metrostars and pick number of 26
### INPUT
CREATE TABLE table_name_28 (affiliation VARCHAR, mls_team VARCHAR, pick__number VARCHAR)
### OUTPUT
SELECT affiliation FROM table_name_28 WHERE mls_team = "metrostars" AND pick__number = 26 | {
"input": "CREATE TABLE table_name_28 (affiliation VARCHAR, mls_team VARCHAR, pick__number VARCHAR)",
"instruction": "Tell me the affiliation for mls team of metrostars and pick number of 26",
"output": "SELECT affiliation FROM table_name_28 WHERE mls_team = \"metrostars\" AND pick__number = 26"
} |
### INSTRUCTION
Name the score when it had a decision of dipietro and visitor of ny islanders with home of colorado
### INPUT
CREATE TABLE table_name_80 (score VARCHAR, home VARCHAR, decision VARCHAR, visitor VARCHAR)
### OUTPUT
SELECT score FROM table_name_80 WHERE decision = "dipietro" AND visitor = "ny islanders" AND home = "colorado" | {
"input": "CREATE TABLE table_name_80 (score VARCHAR, home VARCHAR, decision VARCHAR, visitor VARCHAR)",
"instruction": "Name the score when it had a decision of dipietro and visitor of ny islanders with home of colorado",
"output": "SELECT score FROM table_name_80 WHERE decision = \"dipietro\" AND visitor = \"ny islanders\" AND home = \"colorado\""
} |
### INSTRUCTION
Which Points is the highest one that has a Nationality of aut, and a Name of thomas morgenstern?
### INPUT
CREATE TABLE table_name_32 (points INTEGER, nationality VARCHAR, name VARCHAR)
### OUTPUT
SELECT MAX(points) FROM table_name_32 WHERE nationality = "aut" AND name = "thomas morgenstern" | {
"input": "CREATE TABLE table_name_32 (points INTEGER, nationality VARCHAR, name VARCHAR)",
"instruction": "Which Points is the highest one that has a Nationality of aut, and a Name of thomas morgenstern?",
"output": "SELECT MAX(points) FROM table_name_32 WHERE nationality = \"aut\" AND name = \"thomas morgenstern\""
} |
### INSTRUCTION
what is the total viewers where the date of first broadcast is 28 january 2010 and the episode number is 1?
### INPUT
CREATE TABLE table_12995531_3 (total_viewers INTEGER, date_of_first_broadcast VARCHAR, episode_number VARCHAR)
### OUTPUT
SELECT MIN(total_viewers) FROM table_12995531_3 WHERE date_of_first_broadcast = "28 January 2010" AND episode_number = 1 | {
"input": "CREATE TABLE table_12995531_3 (total_viewers INTEGER, date_of_first_broadcast VARCHAR, episode_number VARCHAR)",
"instruction": "what is the total viewers where the date of first broadcast is 28 january 2010 and the episode number is 1?",
"output": "SELECT MIN(total_viewers) FROM table_12995531_3 WHERE date_of_first_broadcast = \"28 January 2010\" AND episode_number = 1"
} |
### INSTRUCTION
What number of years did the red bull sauber petronas have greater than 6 points?
### INPUT
CREATE TABLE table_name_90 (year VARCHAR, entrant VARCHAR, points VARCHAR)
### OUTPUT
SELECT COUNT(year) FROM table_name_90 WHERE entrant = "red bull sauber petronas" AND points > 6 | {
"input": "CREATE TABLE table_name_90 (year VARCHAR, entrant VARCHAR, points VARCHAR)",
"instruction": "What number of years did the red bull sauber petronas have greater than 6 points?",
"output": "SELECT COUNT(year) FROM table_name_90 WHERE entrant = \"red bull sauber petronas\" AND points > 6"
} |
### INSTRUCTION
What's the pick number of the player from Springfield Olympics (Nejhl)?
### INPUT
CREATE TABLE table_1013129_3 (pick VARCHAR, college_junior_club_team VARCHAR)
### OUTPUT
SELECT pick FROM table_1013129_3 WHERE college_junior_club_team = "Springfield Olympics (NEJHL)" | {
"input": "CREATE TABLE table_1013129_3 (pick VARCHAR, college_junior_club_team VARCHAR)",
"instruction": "What's the pick number of the player from Springfield Olympics (Nejhl)?",
"output": "SELECT pick FROM table_1013129_3 WHERE college_junior_club_team = \"Springfield Olympics (NEJHL)\""
} |
### INSTRUCTION
What Gaelic Athletic Association stadium is located in Carrick-on-Shannon?
### INPUT
CREATE TABLE table_name_72 (stadium VARCHAR, location VARCHAR)
### OUTPUT
SELECT stadium FROM table_name_72 WHERE location = "carrick-on-shannon" | {
"input": "CREATE TABLE table_name_72 (stadium VARCHAR, location VARCHAR)",
"instruction": "What Gaelic Athletic Association stadium is located in Carrick-on-Shannon?",
"output": "SELECT stadium FROM table_name_72 WHERE location = \"carrick-on-shannon\""
} |
### INSTRUCTION
When 441st bs, 7th bw is the unit what is the b-52 model?
### INPUT
CREATE TABLE table_18933037_3 (b_52_model VARCHAR, unit VARCHAR)
### OUTPUT
SELECT b_52_model FROM table_18933037_3 WHERE unit = "441st BS, 7th BW" | {
"input": "CREATE TABLE table_18933037_3 (b_52_model VARCHAR, unit VARCHAR)",
"instruction": "When 441st bs, 7th bw is the unit what is the b-52 model?",
"output": "SELECT b_52_model FROM table_18933037_3 WHERE unit = \"441st BS, 7th BW\""
} |
### INSTRUCTION
Who was the driver when the time in part 3 was 1:31.386?
### INPUT
CREATE TABLE table_20159025_1 (driver VARCHAR, part_1 VARCHAR)
### OUTPUT
SELECT driver FROM table_20159025_1 WHERE part_1 = "1:31.386" | {
"input": "CREATE TABLE table_20159025_1 (driver VARCHAR, part_1 VARCHAR)",
"instruction": "Who was the driver when the time in part 3 was 1:31.386?",
"output": "SELECT driver FROM table_20159025_1 WHERE part_1 = \"1:31.386\""
} |
### INSTRUCTION
What are the songs in volumes associated with the artist aged 32 or older?
### INPUT
CREATE TABLE volume (Song VARCHAR, Artist_ID VARCHAR); CREATE TABLE artist (Artist_ID VARCHAR, age VARCHAR)
### OUTPUT
SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32 | {
"input": "CREATE TABLE volume (Song VARCHAR, Artist_ID VARCHAR); CREATE TABLE artist (Artist_ID VARCHAR, age VARCHAR)",
"instruction": "What are the songs in volumes associated with the artist aged 32 or older?",
"output": "SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32"
} |
### INSTRUCTION
When did the Prime Minister of Italy take office?
### INPUT
CREATE TABLE table_10026563_1 (entered_office_as_head_of_state_or_government VARCHAR, office VARCHAR)
### OUTPUT
SELECT entered_office_as_head_of_state_or_government FROM table_10026563_1 WHERE office = "Prime Minister of Italy" | {
"input": "CREATE TABLE table_10026563_1 (entered_office_as_head_of_state_or_government VARCHAR, office VARCHAR)",
"instruction": "When did the Prime Minister of Italy take office?",
"output": "SELECT entered_office_as_head_of_state_or_government FROM table_10026563_1 WHERE office = \"Prime Minister of Italy\""
} |
### INSTRUCTION
Name the date for the palace of auburn hills 14,554
### INPUT
CREATE TABLE table_27700375_11 (date VARCHAR, location_attendance VARCHAR)
### OUTPUT
SELECT date FROM table_27700375_11 WHERE location_attendance = "The Palace of Auburn Hills 14,554" | {
"input": "CREATE TABLE table_27700375_11 (date VARCHAR, location_attendance VARCHAR)",
"instruction": "Name the date for the palace of auburn hills 14,554",
"output": "SELECT date FROM table_27700375_11 WHERE location_attendance = \"The Palace of Auburn Hills 14,554\""
} |
### INSTRUCTION
What opponent has october less than 20, and 8 for points?
### INPUT
CREATE TABLE table_name_13 (opponent VARCHAR, october VARCHAR, points VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_13 WHERE october < 20 AND points = 8 | {
"input": "CREATE TABLE table_name_13 (opponent VARCHAR, october VARCHAR, points VARCHAR)",
"instruction": "What opponent has october less than 20, and 8 for points?",
"output": "SELECT opponent FROM table_name_13 WHERE october < 20 AND points = 8"
} |
### INSTRUCTION
What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826?
### INPUT
CREATE TABLE table_name_80 (percentage INTEGER, points_for VARCHAR, losses VARCHAR, wins VARCHAR, points_against VARCHAR)
### OUTPUT
SELECT AVG(percentage) FROM table_name_80 WHERE wins > 0 AND points_against > 481 AND losses = 8 AND points_for > 826 | {
"input": "CREATE TABLE table_name_80 (percentage INTEGER, points_for VARCHAR, losses VARCHAR, wins VARCHAR, points_against VARCHAR)",
"instruction": "What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826?",
"output": "SELECT AVG(percentage) FROM table_name_80 WHERE wins > 0 AND points_against > 481 AND losses = 8 AND points_for > 826"
} |
### INSTRUCTION
What is the new classification for the University of Arizona Western in the Collegiate Lacrosse League?
### INPUT
CREATE TABLE table_14976504_2 (new_classification VARCHAR, institution VARCHAR)
### OUTPUT
SELECT new_classification FROM table_14976504_2 WHERE institution = "University of Arizona" | {
"input": "CREATE TABLE table_14976504_2 (new_classification VARCHAR, institution VARCHAR)",
"instruction": "What is the new classification for the University of Arizona Western in the Collegiate Lacrosse League?",
"output": "SELECT new_classification FROM table_14976504_2 WHERE institution = \"University of Arizona\""
} |
### INSTRUCTION
What is the location of the team nicknamed Broncos, which was founded after 1889?
### INPUT
CREATE TABLE table_name_59 (location VARCHAR, founded VARCHAR, team_nickname VARCHAR)
### OUTPUT
SELECT location FROM table_name_59 WHERE founded > 1889 AND team_nickname = "broncos" | {
"input": "CREATE TABLE table_name_59 (location VARCHAR, founded VARCHAR, team_nickname VARCHAR)",
"instruction": "What is the location of the team nicknamed Broncos, which was founded after 1889?",
"output": "SELECT location FROM table_name_59 WHERE founded > 1889 AND team_nickname = \"broncos\""
} |
### INSTRUCTION
Find the name of instructor who is the advisor of the student who has the highest number of total credits.
### INPUT
CREATE TABLE student (id VARCHAR, tot_cred VARCHAR); CREATE TABLE advisor (i_id VARCHAR, s_id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)
### OUTPUT
SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1 | {
"input": "CREATE TABLE student (id VARCHAR, tot_cred VARCHAR); CREATE TABLE advisor (i_id VARCHAR, s_id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)",
"instruction": "Find the name of instructor who is the advisor of the student who has the highest number of total credits.",
"output": "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1"
} |
### INSTRUCTION
What are the title(s) of episodes directed by david solomon and written by marti noxon?
### INPUT
CREATE TABLE table_28195971_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT title FROM table_28195971_1 WHERE directed_by = "David Solomon" AND written_by = "Marti Noxon" | {
"input": "CREATE TABLE table_28195971_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)",
"instruction": "What are the title(s) of episodes directed by david solomon and written by marti noxon?",
"output": "SELECT title FROM table_28195971_1 WHERE directed_by = \"David Solomon\" AND written_by = \"Marti Noxon\""
} |
### INSTRUCTION
What type of 3D game did Valve Corporation release?
### INPUT
CREATE TABLE table_name_4 (genre VARCHAR, type VARCHAR, developer_s_ VARCHAR)
### OUTPUT
SELECT genre FROM table_name_4 WHERE type = "3d" AND developer_s_ = "valve corporation" | {
"input": "CREATE TABLE table_name_4 (genre VARCHAR, type VARCHAR, developer_s_ VARCHAR)",
"instruction": "What type of 3D game did Valve Corporation release?",
"output": "SELECT genre FROM table_name_4 WHERE type = \"3d\" AND developer_s_ = \"valve corporation\""
} |
### INSTRUCTION
What is the total number of games played that correlates with a first game in 1991, a percentage of 22.22%, and less than 7 losses?
### INPUT
CREATE TABLE table_name_22 (played VARCHAR, lost VARCHAR, first_game VARCHAR, percentage VARCHAR)
### OUTPUT
SELECT COUNT(played) FROM table_name_22 WHERE first_game = 1991 AND percentage = "22.22%" AND lost > 7 | {
"input": "CREATE TABLE table_name_22 (played VARCHAR, lost VARCHAR, first_game VARCHAR, percentage VARCHAR)",
"instruction": "What is the total number of games played that correlates with a first game in 1991, a percentage of 22.22%, and less than 7 losses?",
"output": "SELECT COUNT(played) FROM table_name_22 WHERE first_game = 1991 AND percentage = \"22.22%\" AND lost > 7"
} |
### INSTRUCTION
Which Scores by each individual judge has a Date performed of august 7, and a Main contestant of karanvir bohra?
### INPUT
CREATE TABLE table_name_87 (scores_by_each_individual_judge VARCHAR, date_performed VARCHAR, main_contestant VARCHAR)
### OUTPUT
SELECT scores_by_each_individual_judge FROM table_name_87 WHERE date_performed = "august 7" AND main_contestant = "karanvir bohra" | {
"input": "CREATE TABLE table_name_87 (scores_by_each_individual_judge VARCHAR, date_performed VARCHAR, main_contestant VARCHAR)",
"instruction": "Which Scores by each individual judge has a Date performed of august 7, and a Main contestant of karanvir bohra?",
"output": "SELECT scores_by_each_individual_judge FROM table_name_87 WHERE date_performed = \"august 7\" AND main_contestant = \"karanvir bohra\""
} |
### INSTRUCTION
Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.
### INPUT
CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR)
### OUTPUT
SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance | {
"input": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR)",
"instruction": "Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.",
"output": "SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance"
} |
### INSTRUCTION
What are the names and years of the movies that has the top 3 highest rating star?
### INPUT
CREATE TABLE Rating (mID VARCHAR, stars VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, mID VARCHAR)
### OUTPUT
SELECT T2.title, T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3 | {
"input": "CREATE TABLE Rating (mID VARCHAR, stars VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, mID VARCHAR)",
"instruction": "What are the names and years of the movies that has the top 3 highest rating star?",
"output": "SELECT T2.title, T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3"
} |
### INSTRUCTION
Find the ids of the students who participate in Canoeing and Kayaking.
### INPUT
CREATE TABLE activity (actid VARCHAR, activity_name VARCHAR); CREATE TABLE participates_in (stuid VARCHAR)
### OUTPUT
SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking' | {
"input": "CREATE TABLE activity (actid VARCHAR, activity_name VARCHAR); CREATE TABLE participates_in (stuid VARCHAR)",
"instruction": "Find the ids of the students who participate in Canoeing and Kayaking.",
"output": "SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'"
} |
### INSTRUCTION
With the Royal Navy as Combatants B, what was the result?
### INPUT
CREATE TABLE table_26977890_1 (result VARCHAR, combatants_b VARCHAR)
### OUTPUT
SELECT result FROM table_26977890_1 WHERE combatants_b = "Royal Navy" | {
"input": "CREATE TABLE table_26977890_1 (result VARCHAR, combatants_b VARCHAR)",
"instruction": "With the Royal Navy as Combatants B, what was the result?",
"output": "SELECT result FROM table_26977890_1 WHERE combatants_b = \"Royal Navy\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.