text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Who is the perpetrator in Uganda who killed 12 in Kampala? ### INPUT CREATE TABLE table_name_54 (perpetrator VARCHAR, killed VARCHAR, country VARCHAR, location VARCHAR) ### OUTPUT SELECT perpetrator FROM table_name_54 WHERE country = "uganda" AND location = "kampala" AND killed = "12"
{ "input": "CREATE TABLE table_name_54 (perpetrator VARCHAR, killed VARCHAR, country VARCHAR, location VARCHAR)", "instruction": "Who is the perpetrator in Uganda who killed 12 in Kampala?", "output": "SELECT perpetrator FROM table_name_54 WHERE country = \"uganda\" AND location = \"kampala\" AND killed = \"12\"" }
### INSTRUCTION What was the election date for Arthur Hodges? ### INPUT CREATE TABLE table_1329532_2 (date_of_election VARCHAR, elected_successor VARCHAR) ### OUTPUT SELECT date_of_election FROM table_1329532_2 WHERE elected_successor = "Arthur Hodges"
{ "input": "CREATE TABLE table_1329532_2 (date_of_election VARCHAR, elected_successor VARCHAR)", "instruction": "What was the election date for Arthur Hodges?", "output": "SELECT date_of_election FROM table_1329532_2 WHERE elected_successor = \"Arthur Hodges\"" }
### INSTRUCTION what is the reversal symmetry when non-dictatorship is yes, consistency & participation is no, and clone independence is yes? ### INPUT CREATE TABLE table_name_1 (reversal_symmetry VARCHAR, clone_independence VARCHAR, non_dictatorship VARCHAR, consistency_ VARCHAR, _participation VARCHAR) ### OUTPUT SELECT reversal_symmetry FROM table_name_1 WHERE non_dictatorship = "yes" AND consistency_ & _participation = "no" AND clone_independence = "yes"
{ "input": "CREATE TABLE table_name_1 (reversal_symmetry VARCHAR, clone_independence VARCHAR, non_dictatorship VARCHAR, consistency_ VARCHAR, _participation VARCHAR)", "instruction": "what is the reversal symmetry when non-dictatorship is yes, consistency & participation is no, and clone independence is yes?", "output": "SELECT reversal_symmetry FROM table_name_1 WHERE non_dictatorship = \"yes\" AND consistency_ & _participation = \"no\" AND clone_independence = \"yes\"" }
### INSTRUCTION What are the number of days in 1945 where the constituent was heywood and radcliffe? ### INPUT CREATE TABLE table_name_18 (days VARCHAR, year VARCHAR, constituency VARCHAR) ### OUTPUT SELECT days FROM table_name_18 WHERE year = "1945" AND constituency = "heywood and radcliffe"
{ "input": "CREATE TABLE table_name_18 (days VARCHAR, year VARCHAR, constituency VARCHAR)", "instruction": "What are the number of days in 1945 where the constituent was heywood and radcliffe?", "output": "SELECT days FROM table_name_18 WHERE year = \"1945\" AND constituency = \"heywood and radcliffe\"" }
### INSTRUCTION What is Opponents In The Final, when Surface is "Carpet", and when Tournament is "Milan , Italy"? ### INPUT CREATE TABLE table_name_61 (opponents_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR) ### OUTPUT SELECT opponents_in_the_final FROM table_name_61 WHERE surface = "carpet" AND tournament = "milan , italy"
{ "input": "CREATE TABLE table_name_61 (opponents_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)", "instruction": "What is Opponents In The Final, when Surface is \"Carpet\", and when Tournament is \"Milan , Italy\"?", "output": "SELECT opponents_in_the_final FROM table_name_61 WHERE surface = \"carpet\" AND tournament = \"milan , italy\"" }
### INSTRUCTION What are the record companies of orchestras in descending order of years in which they were founded? ### INPUT CREATE TABLE orchestra (Record_Company VARCHAR, Year_of_Founded VARCHAR) ### OUTPUT SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC
{ "input": "CREATE TABLE orchestra (Record_Company VARCHAR, Year_of_Founded VARCHAR)", "instruction": "What are the record companies of orchestras in descending order of years in which they were founded?", "output": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC" }
### INSTRUCTION Who were the visitors when the Atlanta Falcons were the home team? ### INPUT CREATE TABLE table_name_42 (designated_visitors VARCHAR, designated_home VARCHAR) ### OUTPUT SELECT designated_visitors FROM table_name_42 WHERE designated_home = "atlanta falcons"
{ "input": "CREATE TABLE table_name_42 (designated_visitors VARCHAR, designated_home VARCHAR)", "instruction": "Who were the visitors when the Atlanta Falcons were the home team?", "output": "SELECT designated_visitors FROM table_name_42 WHERE designated_home = \"atlanta falcons\"" }
### INSTRUCTION get the details of employees who manage a department. ### INPUT CREATE TABLE departments (department_id VARCHAR, manager_id VARCHAR); CREATE TABLE employees (department_id VARCHAR, employee_id VARCHAR) ### OUTPUT SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id
{ "input": "CREATE TABLE departments (department_id VARCHAR, manager_id VARCHAR); CREATE TABLE employees (department_id VARCHAR, employee_id VARCHAR)", "instruction": "get the details of employees who manage a department.", "output": "SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id" }
### INSTRUCTION What are the earpads of the headphone with a plastic construction, an unknown sensitivity, and was succeeded by sr325? ### INPUT CREATE TABLE table_name_43 (earpads VARCHAR, succeeded_by VARCHAR, construction VARCHAR, sensitivity__db_ VARCHAR) ### OUTPUT SELECT earpads FROM table_name_43 WHERE construction = "plastic" AND sensitivity__db_ = "unknown" AND succeeded_by = "sr325"
{ "input": "CREATE TABLE table_name_43 (earpads VARCHAR, succeeded_by VARCHAR, construction VARCHAR, sensitivity__db_ VARCHAR)", "instruction": "What are the earpads of the headphone with a plastic construction, an unknown sensitivity, and was succeeded by sr325?", "output": "SELECT earpads FROM table_name_43 WHERE construction = \"plastic\" AND sensitivity__db_ = \"unknown\" AND succeeded_by = \"sr325\"" }
### INSTRUCTION Which Name has a Reserved for of none, and a Constituency number of 7? ### INPUT CREATE TABLE table_name_96 (name VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) ### OUTPUT SELECT name FROM table_name_96 WHERE reserved_for___sc___st__none_ = "none" AND constituency_number = "7"
{ "input": "CREATE TABLE table_name_96 (name VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)", "instruction": "Which Name has a Reserved for of none, and a Constituency number of 7?", "output": "SELECT name FROM table_name_96 WHERE reserved_for___sc___st__none_ = \"none\" AND constituency_number = \"7\"" }
### INSTRUCTION Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown ### INPUT CREATE TABLE table_name_8 (points_classification_navy_blue_jersey VARCHAR, general_classification_yellow_jersey VARCHAR) ### OUTPUT SELECT points_classification_navy_blue_jersey FROM table_name_8 WHERE general_classification_yellow_jersey = "graeme brown"
{ "input": "CREATE TABLE table_name_8 (points_classification_navy_blue_jersey VARCHAR, general_classification_yellow_jersey VARCHAR)", "instruction": "Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown", "output": "SELECT points_classification_navy_blue_jersey FROM table_name_8 WHERE general_classification_yellow_jersey = \"graeme brown\"" }
### INSTRUCTION What is the average % of population Tunisia, which has an average relative annual growth smaller than 1.03? ### INPUT CREATE TABLE table_name_17 (_percentage_of_pop INTEGER, country__or_dependent_territory_ VARCHAR, average_relative_annual_growth___percentage_ VARCHAR) ### OUTPUT SELECT AVG(_percentage_of_pop) FROM table_name_17 WHERE country__or_dependent_territory_ = "tunisia" AND average_relative_annual_growth___percentage_ < 1.03
{ "input": "CREATE TABLE table_name_17 (_percentage_of_pop INTEGER, country__or_dependent_territory_ VARCHAR, average_relative_annual_growth___percentage_ VARCHAR)", "instruction": "What is the average % of population Tunisia, which has an average relative annual growth smaller than 1.03?", "output": "SELECT AVG(_percentage_of_pop) FROM table_name_17 WHERE country__or_dependent_territory_ = \"tunisia\" AND average_relative_annual_growth___percentage_ < 1.03" }
### INSTRUCTION What is the record of the game with 35 points and pittsburgh as the home team? ### INPUT CREATE TABLE table_name_77 (record VARCHAR, home VARCHAR, points VARCHAR) ### OUTPUT SELECT record FROM table_name_77 WHERE home = "pittsburgh" AND points = 35
{ "input": "CREATE TABLE table_name_77 (record VARCHAR, home VARCHAR, points VARCHAR)", "instruction": "What is the record of the game with 35 points and pittsburgh as the home team?", "output": "SELECT record FROM table_name_77 WHERE home = \"pittsburgh\" AND points = 35" }
### INSTRUCTION Performer 1 of greg proops, and a Date of 25 august 1995 is what performer 4? ### INPUT CREATE TABLE table_name_76 (performer_4 VARCHAR, performer_1 VARCHAR, date VARCHAR) ### OUTPUT SELECT performer_4 FROM table_name_76 WHERE performer_1 = "greg proops" AND date = "25 august 1995"
{ "input": "CREATE TABLE table_name_76 (performer_4 VARCHAR, performer_1 VARCHAR, date VARCHAR)", "instruction": "Performer 1 of greg proops, and a Date of 25 august 1995 is what performer 4?", "output": "SELECT performer_4 FROM table_name_76 WHERE performer_1 = \"greg proops\" AND date = \"25 august 1995\"" }
### INSTRUCTION In which city is the network with the callsign kgns-dt3 licensed? ### INPUT CREATE TABLE table_name_71 (city_of_license VARCHAR, callsign VARCHAR) ### OUTPUT SELECT city_of_license FROM table_name_71 WHERE callsign = "kgns-dt3"
{ "input": "CREATE TABLE table_name_71 (city_of_license VARCHAR, callsign VARCHAR)", "instruction": "In which city is the network with the callsign kgns-dt3 licensed?", "output": "SELECT city_of_license FROM table_name_71 WHERE callsign = \"kgns-dt3\"" }
### INSTRUCTION Which Attendance has Mandalay Bay Resort ### INPUT CREATE TABLE table_name_75 (attendance VARCHAR, venue VARCHAR) ### OUTPUT SELECT attendance FROM table_name_75 WHERE venue = "mandalay bay resort"
{ "input": "CREATE TABLE table_name_75 (attendance VARCHAR, venue VARCHAR)", "instruction": "Which Attendance has Mandalay Bay Resort", "output": "SELECT attendance FROM table_name_75 WHERE venue = \"mandalay bay resort\"" }
### INSTRUCTION List the name of staff who has been assigned multiple jobs. ### INPUT CREATE TABLE staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (staff_id VARCHAR) ### OUTPUT SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id GROUP BY T2.staff_id HAVING COUNT(*) > 1
{ "input": "CREATE TABLE staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (staff_id VARCHAR)", "instruction": "List the name of staff who has been assigned multiple jobs.", "output": "SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id GROUP BY T2.staff_id HAVING COUNT(*) > 1" }
### INSTRUCTION Tell me the model with fuel or propulsion of diesel and orion manufacturer in 2005 ### INPUT CREATE TABLE table_name_68 (model VARCHAR, year VARCHAR, fuel_or_propulsion VARCHAR, manufacturer VARCHAR) ### OUTPUT SELECT model FROM table_name_68 WHERE fuel_or_propulsion = "diesel" AND manufacturer = "orion" AND year = 2005
{ "input": "CREATE TABLE table_name_68 (model VARCHAR, year VARCHAR, fuel_or_propulsion VARCHAR, manufacturer VARCHAR)", "instruction": "Tell me the model with fuel or propulsion of diesel and orion manufacturer in 2005", "output": "SELECT model FROM table_name_68 WHERE fuel_or_propulsion = \"diesel\" AND manufacturer = \"orion\" AND year = 2005" }
### INSTRUCTION What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results? ### INPUT CREATE TABLE drivers (surname VARCHAR, driverid VARCHAR); CREATE TABLE results (driverid VARCHAR); CREATE TABLE pitstops (driverid VARCHAR) ### OUTPUT SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) = 11 INTERSECT SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5
{ "input": "CREATE TABLE drivers (surname VARCHAR, driverid VARCHAR); CREATE TABLE results (driverid VARCHAR); CREATE TABLE pitstops (driverid VARCHAR)", "instruction": "What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?", "output": "SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) = 11 INTERSECT SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5" }
### INSTRUCTION What is Mañana es para siempre of impreuna pentru totdeauna from Monday to Friday? ### INPUT CREATE TABLE table_name_34 (monday_to_friday VARCHAR, mañana_es_para_siempre VARCHAR) ### OUTPUT SELECT monday_to_friday FROM table_name_34 WHERE mañana_es_para_siempre = "impreuna pentru totdeauna"
{ "input": "CREATE TABLE table_name_34 (monday_to_friday VARCHAR, mañana_es_para_siempre VARCHAR)", "instruction": "What is Mañana es para siempre of impreuna pentru totdeauna from Monday to Friday?", "output": "SELECT monday_to_friday FROM table_name_34 WHERE mañana_es_para_siempre = \"impreuna pentru totdeauna\"" }
### INSTRUCTION What is the Date, when Partnering is "Francesca Lubiani", and when Opponent in Final is "Yuliya Beygelzimer / Jennifer Hopkins"? ### INPUT CREATE TABLE table_name_10 (date VARCHAR, partnering VARCHAR, opponent_in_final VARCHAR) ### OUTPUT SELECT date FROM table_name_10 WHERE partnering = "francesca lubiani" AND opponent_in_final = "yuliya beygelzimer / jennifer hopkins"
{ "input": "CREATE TABLE table_name_10 (date VARCHAR, partnering VARCHAR, opponent_in_final VARCHAR)", "instruction": "What is the Date, when Partnering is \"Francesca Lubiani\", and when Opponent in Final is \"Yuliya Beygelzimer / Jennifer Hopkins\"?", "output": "SELECT date FROM table_name_10 WHERE partnering = \"francesca lubiani\" AND opponent_in_final = \"yuliya beygelzimer / jennifer hopkins\"" }
### INSTRUCTION What's the to par for Hale Irwin of the United States? ### INPUT CREATE TABLE table_name_13 (to_par VARCHAR, country VARCHAR, player VARCHAR) ### OUTPUT SELECT to_par FROM table_name_13 WHERE country = "united states" AND player = "hale irwin"
{ "input": "CREATE TABLE table_name_13 (to_par VARCHAR, country VARCHAR, player VARCHAR)", "instruction": "What's the to par for Hale Irwin of the United States?", "output": "SELECT to_par FROM table_name_13 WHERE country = \"united states\" AND player = \"hale irwin\"" }
### INSTRUCTION Which Literacy (2003) has an HDI (2005) smaller than 0.718, and a GDP per capita (US$) (2004) smaller than 3877, and a State of maranhão? ### INPUT CREATE TABLE table_name_8 (literacy__2003_ VARCHAR, state VARCHAR, hdi__2005_ VARCHAR, gdp_per_capita__us$___2004_ VARCHAR) ### OUTPUT SELECT literacy__2003_ FROM table_name_8 WHERE hdi__2005_ < 0.718 AND gdp_per_capita__us$___2004_ < 3877 AND state = "maranhão"
{ "input": "CREATE TABLE table_name_8 (literacy__2003_ VARCHAR, state VARCHAR, hdi__2005_ VARCHAR, gdp_per_capita__us$___2004_ VARCHAR)", "instruction": "Which Literacy (2003) has an HDI (2005) smaller than 0.718, and a GDP per capita (US$) (2004) smaller than 3877, and a State of maranhão?", "output": "SELECT literacy__2003_ FROM table_name_8 WHERE hdi__2005_ < 0.718 AND gdp_per_capita__us$___2004_ < 3877 AND state = \"maranhão\"" }
### INSTRUCTION When Platense was the away team on 16 August 2008 how many people attended the game? ### INPUT CREATE TABLE table_name_29 (attendance VARCHAR, date VARCHAR, away VARCHAR) ### OUTPUT SELECT attendance FROM table_name_29 WHERE date = "16 august 2008" AND away = "platense"
{ "input": "CREATE TABLE table_name_29 (attendance VARCHAR, date VARCHAR, away VARCHAR)", "instruction": "When Platense was the away team on 16 August 2008 how many people attended the game?", "output": "SELECT attendance FROM table_name_29 WHERE date = \"16 august 2008\" AND away = \"platense\"" }
### INSTRUCTION What is the altitude (meters) is associated with the Name Mount Launoit, with the range as Belgica Mountains? ### INPUT CREATE TABLE table_name_93 (altitude__meters_ INTEGER, range VARCHAR, name VARCHAR) ### OUTPUT SELECT SUM(altitude__meters_) FROM table_name_93 WHERE range = "belgica mountains" AND name = "mount launoit"
{ "input": "CREATE TABLE table_name_93 (altitude__meters_ INTEGER, range VARCHAR, name VARCHAR)", "instruction": "What is the altitude (meters) is associated with the Name Mount Launoit, with the range as Belgica Mountains?", "output": "SELECT SUM(altitude__meters_) FROM table_name_93 WHERE range = \"belgica mountains\" AND name = \"mount launoit\"" }
### INSTRUCTION What is the sum of Cuts made when there were more than 72 events? ### INPUT CREATE TABLE table_name_95 (cuts_made INTEGER, events INTEGER) ### OUTPUT SELECT SUM(cuts_made) FROM table_name_95 WHERE events > 72
{ "input": "CREATE TABLE table_name_95 (cuts_made INTEGER, events INTEGER)", "instruction": "What is the sum of Cuts made when there were more than 72 events?", "output": "SELECT SUM(cuts_made) FROM table_name_95 WHERE events > 72" }
### INSTRUCTION How many members does the club "Tennis Club" has? ### INPUT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR) ### OUTPUT SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Tennis Club"
{ "input": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)", "instruction": "How many members does the club \"Tennis Club\" has?", "output": "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Tennis Club\"" }
### INSTRUCTION Which Presentation of Credentials is listed for the Appointed by Benjamin Harrison? ### INPUT CREATE TABLE table_name_55 (presentation_of_credentials VARCHAR, appointed_by VARCHAR) ### OUTPUT SELECT presentation_of_credentials FROM table_name_55 WHERE appointed_by = "benjamin harrison"
{ "input": "CREATE TABLE table_name_55 (presentation_of_credentials VARCHAR, appointed_by VARCHAR)", "instruction": "Which Presentation of Credentials is listed for the Appointed by Benjamin Harrison?", "output": "SELECT presentation_of_credentials FROM table_name_55 WHERE appointed_by = \"benjamin harrison\"" }
### INSTRUCTION Which Took Office has a Party of democratic, a Home Town of victoria, and a District smaller than 18? ### INPUT CREATE TABLE table_name_81 (took_office VARCHAR, district VARCHAR, party VARCHAR, home_town VARCHAR) ### OUTPUT SELECT COUNT(took_office) FROM table_name_81 WHERE party = "democratic" AND home_town = "victoria" AND district < 18
{ "input": "CREATE TABLE table_name_81 (took_office VARCHAR, district VARCHAR, party VARCHAR, home_town VARCHAR)", "instruction": "Which Took Office has a Party of democratic, a Home Town of victoria, and a District smaller than 18?", "output": "SELECT COUNT(took_office) FROM table_name_81 WHERE party = \"democratic\" AND home_town = \"victoria\" AND district < 18" }
### INSTRUCTION Name the least rank with bronze of 2, gold more than 0 and nation of ynys môn/anglesey with total more than 8 ### INPUT CREATE TABLE table_name_27 (rank INTEGER, total VARCHAR, nation VARCHAR, bronze VARCHAR, gold VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_27 WHERE bronze = 2 AND gold > 0 AND nation = "ynys môn/anglesey" AND total > 8
{ "input": "CREATE TABLE table_name_27 (rank INTEGER, total VARCHAR, nation VARCHAR, bronze VARCHAR, gold VARCHAR)", "instruction": "Name the least rank with bronze of 2, gold more than 0 and nation of ynys môn/anglesey with total more than 8", "output": "SELECT MIN(rank) FROM table_name_27 WHERE bronze = 2 AND gold > 0 AND nation = \"ynys môn/anglesey\" AND total > 8" }
### INSTRUCTION What party did Don Fuqua belong to? ### INPUT CREATE TABLE table_1341865_11 (party VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT party FROM table_1341865_11 WHERE incumbent = "Don Fuqua"
{ "input": "CREATE TABLE table_1341865_11 (party VARCHAR, incumbent VARCHAR)", "instruction": "What party did Don Fuqua belong to?", "output": "SELECT party FROM table_1341865_11 WHERE incumbent = \"Don Fuqua\"" }
### INSTRUCTION Find the number of trains for each station, as well as the station network name and services. ### INPUT CREATE TABLE route (station_id VARCHAR); CREATE TABLE station (network_name VARCHAR, services VARCHAR, id VARCHAR) ### OUTPUT SELECT COUNT(*), t1.network_name, t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id
{ "input": "CREATE TABLE route (station_id VARCHAR); CREATE TABLE station (network_name VARCHAR, services VARCHAR, id VARCHAR)", "instruction": "Find the number of trains for each station, as well as the station network name and services.", "output": "SELECT COUNT(*), t1.network_name, t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id" }
### INSTRUCTION Who is listed under womens singles when year location is 1998 doha? ### INPUT CREATE TABLE table_28138035_27 (womens_singles VARCHAR, year_location VARCHAR) ### OUTPUT SELECT womens_singles FROM table_28138035_27 WHERE year_location = "1998 Doha"
{ "input": "CREATE TABLE table_28138035_27 (womens_singles VARCHAR, year_location VARCHAR)", "instruction": "Who is listed under womens singles when year location is 1998 doha?", "output": "SELECT womens_singles FROM table_28138035_27 WHERE year_location = \"1998 Doha\"" }
### INSTRUCTION What is the lowest game number on February 20? ### INPUT CREATE TABLE table_name_69 (game INTEGER, date VARCHAR) ### OUTPUT SELECT MIN(game) FROM table_name_69 WHERE date = "february 20"
{ "input": "CREATE TABLE table_name_69 (game INTEGER, date VARCHAR)", "instruction": "What is the lowest game number on February 20?", "output": "SELECT MIN(game) FROM table_name_69 WHERE date = \"february 20\"" }
### INSTRUCTION How big was the crowd when Geelong was the home team? ### INPUT CREATE TABLE table_name_96 (crowd VARCHAR, home_team VARCHAR) ### OUTPUT SELECT COUNT(crowd) FROM table_name_96 WHERE home_team = "geelong"
{ "input": "CREATE TABLE table_name_96 (crowd VARCHAR, home_team VARCHAR)", "instruction": "How big was the crowd when Geelong was the home team?", "output": "SELECT COUNT(crowd) FROM table_name_96 WHERE home_team = \"geelong\"" }
### INSTRUCTION Which value for Form factor has Sandforce with Capacity 80/120/180/240/360/480 introduced in July 2013? ### INPUT CREATE TABLE table_name_84 (form_factor VARCHAR, introduced VARCHAR, controller VARCHAR, capacities__gb_ VARCHAR) ### OUTPUT SELECT form_factor FROM table_name_84 WHERE controller = "sandforce" AND capacities__gb_ = "80/120/180/240/360/480" AND introduced = "july 2013"
{ "input": "CREATE TABLE table_name_84 (form_factor VARCHAR, introduced VARCHAR, controller VARCHAR, capacities__gb_ VARCHAR)", "instruction": "Which value for Form factor has Sandforce with Capacity 80/120/180/240/360/480 introduced in July 2013?", "output": "SELECT form_factor FROM table_name_84 WHERE controller = \"sandforce\" AND capacities__gb_ = \"80/120/180/240/360/480\" AND introduced = \"july 2013\"" }
### INSTRUCTION What is Opponents, when Partner is Mervana Jugić-Salkić? ### INPUT CREATE TABLE table_name_8 (opponents VARCHAR, partner VARCHAR) ### OUTPUT SELECT opponents FROM table_name_8 WHERE partner = "mervana jugić-salkić"
{ "input": "CREATE TABLE table_name_8 (opponents VARCHAR, partner VARCHAR)", "instruction": "What is Opponents, when Partner is Mervana Jugić-Salkić?", "output": "SELECT opponents FROM table_name_8 WHERE partner = \"mervana jugić-salkić\"" }
### INSTRUCTION List the name of tracks belongs to genre Rock or media type is MPEG audio file. ### INPUT CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR) ### OUTPUT SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" OR T3.name = "MPEG audio file"
{ "input": "CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR)", "instruction": "List the name of tracks belongs to genre Rock or media type is MPEG audio file.", "output": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" OR T3.name = \"MPEG audio file\"" }
### INSTRUCTION Which Club has a League Cup goals of 0, and a League goals of 11, and a Scorer of joe laidlaw? ### INPUT CREATE TABLE table_name_74 (club VARCHAR, scorer VARCHAR, league_cup_goals VARCHAR, league_goals VARCHAR) ### OUTPUT SELECT club FROM table_name_74 WHERE league_cup_goals = 0 AND league_goals = "11" AND scorer = "joe laidlaw"
{ "input": "CREATE TABLE table_name_74 (club VARCHAR, scorer VARCHAR, league_cup_goals VARCHAR, league_goals VARCHAR)", "instruction": "Which Club has a League Cup goals of 0, and a League goals of 11, and a Scorer of joe laidlaw?", "output": "SELECT club FROM table_name_74 WHERE league_cup_goals = 0 AND league_goals = \"11\" AND scorer = \"joe laidlaw\"" }
### INSTRUCTION What is the month and year less than 106005 were sunk by aircraft and 61857 were sunk by warship or raider? ### INPUT CREATE TABLE table_name_73 (month VARCHAR, _year VARCHAR, sunk_by_aircraft VARCHAR, sunk_by_warship_or_raider VARCHAR) ### OUTPUT SELECT month, _year FROM table_name_73 WHERE sunk_by_aircraft < 106005 AND sunk_by_warship_or_raider = 61857
{ "input": "CREATE TABLE table_name_73 (month VARCHAR, _year VARCHAR, sunk_by_aircraft VARCHAR, sunk_by_warship_or_raider VARCHAR)", "instruction": "What is the month and year less than 106005 were sunk by aircraft and 61857 were sunk by warship or raider?", "output": "SELECT month, _year FROM table_name_73 WHERE sunk_by_aircraft < 106005 AND sunk_by_warship_or_raider = 61857" }
### INSTRUCTION Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads? ### INPUT CREATE TABLE table_name_38 (venue VARCHAR, club VARCHAR, league VARCHAR, sport VARCHAR, championships__years_ VARCHAR) ### OUTPUT SELECT venue FROM table_name_38 WHERE sport = "baseball" AND championships__years_ = "0" AND league = "milb, florida state league" AND club = "jupiter hammerheads"
{ "input": "CREATE TABLE table_name_38 (venue VARCHAR, club VARCHAR, league VARCHAR, sport VARCHAR, championships__years_ VARCHAR)", "instruction": "Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads?", "output": "SELECT venue FROM table_name_38 WHERE sport = \"baseball\" AND championships__years_ = \"0\" AND league = \"milb, florida state league\" AND club = \"jupiter hammerheads\"" }
### INSTRUCTION Which cities are in European countries where English is not the official language? ### INPUT CREATE TABLE city (Name VARCHAR, CountryCode VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, IsOfficial VARCHAR, Language VARCHAR); CREATE TABLE country (Code VARCHAR, Continent VARCHAR, Name VARCHAR) ### OUTPUT SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')
{ "input": "CREATE TABLE city (Name VARCHAR, CountryCode VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, IsOfficial VARCHAR, Language VARCHAR); CREATE TABLE country (Code VARCHAR, Continent VARCHAR, Name VARCHAR)", "instruction": "Which cities are in European countries where English is not the official language?", "output": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')" }
### INSTRUCTION Name the incumbent for district texas 12 ### INPUT CREATE TABLE table_1341690_43 (incumbent VARCHAR, district VARCHAR) ### OUTPUT SELECT incumbent FROM table_1341690_43 WHERE district = "Texas 12"
{ "input": "CREATE TABLE table_1341690_43 (incumbent VARCHAR, district VARCHAR)", "instruction": "Name the incumbent for district texas 12", "output": "SELECT incumbent FROM table_1341690_43 WHERE district = \"Texas 12\"" }
### INSTRUCTION What shows for 2007 at the Olympic Games as tournament. ### INPUT CREATE TABLE table_name_55 (tournament VARCHAR) ### OUTPUT SELECT 2007 FROM table_name_55 WHERE tournament = "olympic games"
{ "input": "CREATE TABLE table_name_55 (tournament VARCHAR)", "instruction": "What shows for 2007 at the Olympic Games as tournament.", "output": "SELECT 2007 FROM table_name_55 WHERE tournament = \"olympic games\"" }
### INSTRUCTION Find the names of the swimmers who have both "win" and "loss" results in the record. ### INPUT CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR) ### OUTPUT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss'
{ "input": "CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR)", "instruction": "Find the names of the swimmers who have both \"win\" and \"loss\" results in the record.", "output": "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss'" }
### INSTRUCTION Which round had Michael Schumacher in the pole position, David Coulthard with the fastest lap, and McLaren - Mercedes as the winning constructor? ### INPUT CREATE TABLE table_1132600_3 (round VARCHAR, winning_constructor VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR) ### OUTPUT SELECT COUNT(round) FROM table_1132600_3 WHERE pole_position = "Michael Schumacher" AND fastest_lap = "David Coulthard" AND winning_constructor = "McLaren - Mercedes"
{ "input": "CREATE TABLE table_1132600_3 (round VARCHAR, winning_constructor VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)", "instruction": "Which round had Michael Schumacher in the pole position, David Coulthard with the fastest lap, and McLaren - Mercedes as the winning constructor?", "output": "SELECT COUNT(round) FROM table_1132600_3 WHERE pole_position = \"Michael Schumacher\" AND fastest_lap = \"David Coulthard\" AND winning_constructor = \"McLaren - Mercedes\"" }
### INSTRUCTION How big (in km2) is the district with a code BW? ### INPUT CREATE TABLE table_2801442_1 (area__km²_ INTEGER, code VARCHAR) ### OUTPUT SELECT MIN(area__km²_) FROM table_2801442_1 WHERE code = "BW"
{ "input": "CREATE TABLE table_2801442_1 (area__km²_ INTEGER, code VARCHAR)", "instruction": "How big (in km2) is the district with a code BW?", "output": "SELECT MIN(area__km²_) FROM table_2801442_1 WHERE code = \"BW\"" }
### INSTRUCTION How many winning teams are there on LMP2 if Gabriele Gardel Patrice Goueslard Fernando Rees was the GT1 Winning Team on the Algarve circuit? ### INPUT CREATE TABLE table_24865763_2 (lmp2_winning_team VARCHAR, gt1_winning_team VARCHAR, circuit VARCHAR) ### OUTPUT SELECT COUNT(lmp2_winning_team) FROM table_24865763_2 WHERE gt1_winning_team = "Gabriele Gardel Patrice Goueslard Fernando Rees" AND circuit = "Algarve"
{ "input": "CREATE TABLE table_24865763_2 (lmp2_winning_team VARCHAR, gt1_winning_team VARCHAR, circuit VARCHAR)", "instruction": "How many winning teams are there on LMP2 if Gabriele Gardel Patrice Goueslard Fernando Rees was the GT1 Winning Team on the Algarve circuit?", "output": "SELECT COUNT(lmp2_winning_team) FROM table_24865763_2 WHERE gt1_winning_team = \"Gabriele Gardel Patrice Goueslard Fernando Rees\" AND circuit = \"Algarve\"" }
### INSTRUCTION what's the points with driver  rusty wallace ### INPUT CREATE TABLE table_10160447_1 (points VARCHAR, driver VARCHAR) ### OUTPUT SELECT points FROM table_10160447_1 WHERE driver = "Rusty Wallace"
{ "input": "CREATE TABLE table_10160447_1 (points VARCHAR, driver VARCHAR)", "instruction": "what's the points with driver  rusty wallace", "output": "SELECT points FROM table_10160447_1 WHERE driver = \"Rusty Wallace\"" }
### INSTRUCTION Which week was the December 21, 2003 game? ### INPUT CREATE TABLE table_name_59 (week VARCHAR, date VARCHAR) ### OUTPUT SELECT week FROM table_name_59 WHERE date = "december 21, 2003"
{ "input": "CREATE TABLE table_name_59 (week VARCHAR, date VARCHAR)", "instruction": "Which week was the December 21, 2003 game?", "output": "SELECT week FROM table_name_59 WHERE date = \"december 21, 2003\"" }
### INSTRUCTION How much has dave stockton earned? ### INPUT CREATE TABLE table_name_41 (earnings__ INTEGER, player VARCHAR) ### OUTPUT SELECT MAX(earnings__) AS $__ FROM table_name_41 WHERE player = "dave stockton"
{ "input": "CREATE TABLE table_name_41 (earnings__ INTEGER, player VARCHAR)", "instruction": "How much has dave stockton earned?", "output": "SELECT MAX(earnings__) AS $__ FROM table_name_41 WHERE player = \"dave stockton\"" }
### INSTRUCTION What year had Best Actor in a Musical as a category? ### INPUT CREATE TABLE table_name_15 (year INTEGER, category VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_15 WHERE category = "best actor in a musical"
{ "input": "CREATE TABLE table_name_15 (year INTEGER, category VARCHAR)", "instruction": "What year had Best Actor in a Musical as a category?", "output": "SELECT SUM(year) FROM table_name_15 WHERE category = \"best actor in a musical\"" }
### INSTRUCTION What position is number 35 whose height is 6-6? ### INPUT CREATE TABLE table_11734041_2 (position VARCHAR, height_in_ft VARCHAR, no_s_ VARCHAR) ### OUTPUT SELECT position FROM table_11734041_2 WHERE height_in_ft = "6-6" AND no_s_ = "35"
{ "input": "CREATE TABLE table_11734041_2 (position VARCHAR, height_in_ft VARCHAR, no_s_ VARCHAR)", "instruction": "What position is number 35 whose height is 6-6?", "output": "SELECT position FROM table_11734041_2 WHERE height_in_ft = \"6-6\" AND no_s_ = \"35\"" }
### INSTRUCTION Which Issue Date(s) has an Artist of men at work? ### INPUT CREATE TABLE table_name_32 (issue_date_s_ VARCHAR, artist VARCHAR) ### OUTPUT SELECT issue_date_s_ FROM table_name_32 WHERE artist = "men at work"
{ "input": "CREATE TABLE table_name_32 (issue_date_s_ VARCHAR, artist VARCHAR)", "instruction": "Which Issue Date(s) has an Artist of men at work?", "output": "SELECT issue_date_s_ FROM table_name_32 WHERE artist = \"men at work\"" }
### INSTRUCTION Who was the winner of Stage 9 when then general classification was Danilo Di Luca? ### INPUT CREATE TABLE table_name_60 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR) ### OUTPUT SELECT winner FROM table_name_60 WHERE general_classification = "danilo di luca" AND stage = "9"
{ "input": "CREATE TABLE table_name_60 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR)", "instruction": "Who was the winner of Stage 9 when then general classification was Danilo Di Luca?", "output": "SELECT winner FROM table_name_60 WHERE general_classification = \"danilo di luca\" AND stage = \"9\"" }
### INSTRUCTION What is the most points for a vehicle with a lola thl1, chassis later than 1986? ### INPUT CREATE TABLE table_name_54 (points INTEGER, chassis VARCHAR, year VARCHAR) ### OUTPUT SELECT MAX(points) FROM table_name_54 WHERE chassis = "lola thl1" AND year > 1986
{ "input": "CREATE TABLE table_name_54 (points INTEGER, chassis VARCHAR, year VARCHAR)", "instruction": "What is the most points for a vehicle with a lola thl1, chassis later than 1986?", "output": "SELECT MAX(points) FROM table_name_54 WHERE chassis = \"lola thl1\" AND year > 1986" }
### INSTRUCTION What is the highest Division when the playoffs were the quarter finals, with a Regular Season of 5th? ### INPUT CREATE TABLE table_name_25 (division INTEGER, playoffs VARCHAR, regular_season VARCHAR) ### OUTPUT SELECT MAX(division) FROM table_name_25 WHERE playoffs = "quarter finals" AND regular_season = "5th"
{ "input": "CREATE TABLE table_name_25 (division INTEGER, playoffs VARCHAR, regular_season VARCHAR)", "instruction": "What is the highest Division when the playoffs were the quarter finals, with a Regular Season of 5th?", "output": "SELECT MAX(division) FROM table_name_25 WHERE playoffs = \"quarter finals\" AND regular_season = \"5th\"" }
### INSTRUCTION How many years have a conventional plan of 7%? ### INPUT CREATE TABLE table_name_24 (year INTEGER, conventional_plans VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_24 WHERE conventional_plans = "7%"
{ "input": "CREATE TABLE table_name_24 (year INTEGER, conventional_plans VARCHAR)", "instruction": "How many years have a conventional plan of 7%?", "output": "SELECT SUM(year) FROM table_name_24 WHERE conventional_plans = \"7%\"" }
### INSTRUCTION What is the attendance of the game with the NY Islanders as home team? ### INPUT CREATE TABLE table_name_59 (attendance VARCHAR, home VARCHAR) ### OUTPUT SELECT COUNT(attendance) FROM table_name_59 WHERE home = "ny islanders"
{ "input": "CREATE TABLE table_name_59 (attendance VARCHAR, home VARCHAR)", "instruction": "What is the attendance of the game with the NY Islanders as home team?", "output": "SELECT COUNT(attendance) FROM table_name_59 WHERE home = \"ny islanders\"" }
### INSTRUCTION What is the Japanese Title of the Episode on NTV Station with a Romaji Title of Kuitan 2? ### INPUT CREATE TABLE table_name_42 (japanese_title VARCHAR, tv_station VARCHAR, romaji_title VARCHAR) ### OUTPUT SELECT japanese_title FROM table_name_42 WHERE tv_station = "ntv" AND romaji_title = "kuitan 2"
{ "input": "CREATE TABLE table_name_42 (japanese_title VARCHAR, tv_station VARCHAR, romaji_title VARCHAR)", "instruction": "What is the Japanese Title of the Episode on NTV Station with a Romaji Title of Kuitan 2?", "output": "SELECT japanese_title FROM table_name_42 WHERE tv_station = \"ntv\" AND romaji_title = \"kuitan 2\"" }
### INSTRUCTION What is the difference associated with more than 2 points, fewer than 3 losses, and fewer than 1 draw? ### INPUT CREATE TABLE table_name_97 (points_difference VARCHAR, drawn VARCHAR, points VARCHAR, lost VARCHAR) ### OUTPUT SELECT points_difference FROM table_name_97 WHERE points > 2 AND lost < 3 AND drawn < 1
{ "input": "CREATE TABLE table_name_97 (points_difference VARCHAR, drawn VARCHAR, points VARCHAR, lost VARCHAR)", "instruction": "What is the difference associated with more than 2 points, fewer than 3 losses, and fewer than 1 draw?", "output": "SELECT points_difference FROM table_name_97 WHERE points > 2 AND lost < 3 AND drawn < 1" }
### INSTRUCTION I want to know the highest heat rank for overall rank of t63 and time less than 25.47 ### INPUT CREATE TABLE table_name_88 (heat_rank INTEGER, overall_rank VARCHAR, time VARCHAR) ### OUTPUT SELECT MAX(heat_rank) FROM table_name_88 WHERE overall_rank = "t63" AND time < 25.47
{ "input": "CREATE TABLE table_name_88 (heat_rank INTEGER, overall_rank VARCHAR, time VARCHAR)", "instruction": "I want to know the highest heat rank for overall rank of t63 and time less than 25.47", "output": "SELECT MAX(heat_rank) FROM table_name_88 WHERE overall_rank = \"t63\" AND time < 25.47" }
### INSTRUCTION Name the most revenue for operating income more than 27 for hamburg and debt as % of value less than 0 ### INPUT CREATE TABLE table_name_92 (revenue__ INTEGER, debt_as__percentage_of_value VARCHAR, operating_income__$m_ VARCHAR, team VARCHAR) ### OUTPUT SELECT MAX(revenue__) AS $m_ FROM table_name_92 WHERE operating_income__$m_ > 27 AND team = "hamburg" AND debt_as__percentage_of_value < 0
{ "input": "CREATE TABLE table_name_92 (revenue__ INTEGER, debt_as__percentage_of_value VARCHAR, operating_income__$m_ VARCHAR, team VARCHAR)", "instruction": "Name the most revenue for operating income more than 27 for hamburg and debt as % of value less than 0", "output": "SELECT MAX(revenue__) AS $m_ FROM table_name_92 WHERE operating_income__$m_ > 27 AND team = \"hamburg\" AND debt_as__percentage_of_value < 0" }
### INSTRUCTION What episode number has an audience share of 10%? ### INPUT CREATE TABLE table_name_80 (episode_number VARCHAR, audience_share__average_ VARCHAR) ### OUTPUT SELECT COUNT(episode_number) FROM table_name_80 WHERE audience_share__average_ = "10%"
{ "input": "CREATE TABLE table_name_80 (episode_number VARCHAR, audience_share__average_ VARCHAR)", "instruction": "What episode number has an audience share of 10%?", "output": "SELECT COUNT(episode_number) FROM table_name_80 WHERE audience_share__average_ = \"10%\"" }
### INSTRUCTION On what date did the manager for PSIS Semarang take over for the manager that was sacked? ### INPUT CREATE TABLE table_name_54 (date_of_replacement VARCHAR, reason_of_departure VARCHAR, team VARCHAR) ### OUTPUT SELECT date_of_replacement FROM table_name_54 WHERE reason_of_departure = "sacked" AND team = "psis semarang"
{ "input": "CREATE TABLE table_name_54 (date_of_replacement VARCHAR, reason_of_departure VARCHAR, team VARCHAR)", "instruction": "On what date did the manager for PSIS Semarang take over for the manager that was sacked?", "output": "SELECT date_of_replacement FROM table_name_54 WHERE reason_of_departure = \"sacked\" AND team = \"psis semarang\"" }
### INSTRUCTION what's the district with result being new seat democratic gain ### INPUT CREATE TABLE table_1341604_10 (district VARCHAR, result VARCHAR) ### OUTPUT SELECT district FROM table_1341604_10 WHERE result = "New seat Democratic gain"
{ "input": "CREATE TABLE table_1341604_10 (district VARCHAR, result VARCHAR)", "instruction": "what's the district with result being new seat democratic gain", "output": "SELECT district FROM table_1341604_10 WHERE result = \"New seat Democratic gain\"" }
### INSTRUCTION List the main industry with highest total market value and its number of companies. ### INPUT CREATE TABLE company (main_industry VARCHAR, market_value INTEGER) ### OUTPUT SELECT main_industry, COUNT(*) FROM company GROUP BY main_industry ORDER BY SUM(market_value) DESC LIMIT 1
{ "input": "CREATE TABLE company (main_industry VARCHAR, market_value INTEGER)", "instruction": "List the main industry with highest total market value and its number of companies.", "output": "SELECT main_industry, COUNT(*) FROM company GROUP BY main_industry ORDER BY SUM(market_value) DESC LIMIT 1" }
### INSTRUCTION what was the week for the match on a hard surface at Indian Wells tournament? ### INPUT CREATE TABLE table_name_88 (week VARCHAR, surface VARCHAR, tournament VARCHAR) ### OUTPUT SELECT week FROM table_name_88 WHERE surface = "hard" AND tournament = "indian wells"
{ "input": "CREATE TABLE table_name_88 (week VARCHAR, surface VARCHAR, tournament VARCHAR)", "instruction": "what was the week for the match on a hard surface at Indian Wells tournament?", "output": "SELECT week FROM table_name_88 WHERE surface = \"hard\" AND tournament = \"indian wells\"" }
### INSTRUCTION Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id. ### INPUT CREATE TABLE film (title VARCHAR, film_id VARCHAR, rental_rate VARCHAR); CREATE TABLE inventory (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR) ### OUTPUT SELECT title, film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING COUNT(*) < 3
{ "input": "CREATE TABLE film (title VARCHAR, film_id VARCHAR, rental_rate VARCHAR); CREATE TABLE inventory (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR)", "instruction": "Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.", "output": "SELECT title, film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING COUNT(*) < 3" }
### INSTRUCTION What is the average duration of songs that have mp3 format and resolution below 800? ### INPUT CREATE TABLE files (duration INTEGER, f_id VARCHAR, formats VARCHAR); CREATE TABLE song (f_id VARCHAR, resolution VARCHAR) ### OUTPUT SELECT AVG(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" AND T2.resolution < 800
{ "input": "CREATE TABLE files (duration INTEGER, f_id VARCHAR, formats VARCHAR); CREATE TABLE song (f_id VARCHAR, resolution VARCHAR)", "instruction": "What is the average duration of songs that have mp3 format and resolution below 800?", "output": "SELECT AVG(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = \"mp3\" AND T2.resolution < 800" }
### INSTRUCTION What is the description, code and the corresponding count of each service type? ### INPUT CREATE TABLE Services (Service_Type_Code VARCHAR); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR) ### OUTPUT SELECT T1.Service_Type_Description, T2.Service_Type_Code, COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code
{ "input": "CREATE TABLE Services (Service_Type_Code VARCHAR); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR)", "instruction": "What is the description, code and the corresponding count of each service type?", "output": "SELECT T1.Service_Type_Description, T2.Service_Type_Code, COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code" }
### INSTRUCTION With the distribution mechanism of Microsoft website and the security issues of 98-004, what is the version? ### INPUT CREATE TABLE table_2263152_1 (version VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR) ### OUTPUT SELECT version FROM table_2263152_1 WHERE security_issues = "98-004" AND distribution_mechanism = "Microsoft website"
{ "input": "CREATE TABLE table_2263152_1 (version VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR)", "instruction": "With the distribution mechanism of Microsoft website and the security issues of 98-004, what is the version?", "output": "SELECT version FROM table_2263152_1 WHERE security_issues = \"98-004\" AND distribution_mechanism = \"Microsoft website\"" }
### INSTRUCTION What is the average price of the products for each category? ### INPUT CREATE TABLE products (product_category_code VARCHAR, product_price INTEGER) ### OUTPUT SELECT AVG(product_price), product_category_code FROM products GROUP BY product_category_code
{ "input": "CREATE TABLE products (product_category_code VARCHAR, product_price INTEGER)", "instruction": "What is the average price of the products for each category?", "output": "SELECT AVG(product_price), product_category_code FROM products GROUP BY product_category_code" }
### INSTRUCTION Find the average credit score of the customers who have some loan. ### INPUT CREATE TABLE loan (credit_score INTEGER, cust_id VARCHAR); CREATE TABLE customer (credit_score INTEGER, cust_id VARCHAR) ### OUTPUT SELECT AVG(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)
{ "input": "CREATE TABLE loan (credit_score INTEGER, cust_id VARCHAR); CREATE TABLE customer (credit_score INTEGER, cust_id VARCHAR)", "instruction": "Find the average credit score of the customers who have some loan.", "output": "SELECT AVG(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)" }
### INSTRUCTION Name the try bonus of points against at 430 ### INPUT CREATE TABLE table_12792876_4 (try_bonus VARCHAR, points_against VARCHAR) ### OUTPUT SELECT try_bonus FROM table_12792876_4 WHERE points_against = "430"
{ "input": "CREATE TABLE table_12792876_4 (try_bonus VARCHAR, points_against VARCHAR)", "instruction": "Name the try bonus of points against at 430", "output": "SELECT try_bonus FROM table_12792876_4 WHERE points_against = \"430\"" }
### INSTRUCTION What are the names, details and data types of the characteristics which are never used by any product? ### INPUT CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (characteristic_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR) ### OUTPUT SELECT characteristic_name, other_characteristic_details, characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name, t1.other_characteristic_details, t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id
{ "input": "CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (characteristic_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR)", "instruction": "What are the names, details and data types of the characteristics which are never used by any product?", "output": "SELECT characteristic_name, other_characteristic_details, characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name, t1.other_characteristic_details, t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id" }
### INSTRUCTION What is the sum of numbers listed in 18-49 for the episode that aired on June 25, 2009 with an order larger than 29? ### INPUT ### OUTPUT SELECT SUM(*) FROM table_name_51 WHERE air_date = "june 25, 2009" AND order > 29
{ "input": "", "instruction": "What is the sum of numbers listed in 18-49 for the episode that aired on June 25, 2009 with an order larger than 29?", "output": "SELECT SUM(*) FROM table_name_51 WHERE air_date = \"june 25, 2009\" AND order > 29" }
### INSTRUCTION what is the game when the opponent is @ chicago stags? ### INPUT CREATE TABLE table_name_87 (game INTEGER, opponent VARCHAR) ### OUTPUT SELECT SUM(game) FROM table_name_87 WHERE opponent = "@ chicago stags"
{ "input": "CREATE TABLE table_name_87 (game INTEGER, opponent VARCHAR)", "instruction": "what is the game when the opponent is @ chicago stags?", "output": "SELECT SUM(game) FROM table_name_87 WHERE opponent = \"@ chicago stags\"" }
### INSTRUCTION Which member is from the state of SA and the grey electorate? ### INPUT CREATE TABLE table_name_74 (member VARCHAR, state VARCHAR, electorate VARCHAR) ### OUTPUT SELECT member FROM table_name_74 WHERE state = "sa" AND electorate = "grey"
{ "input": "CREATE TABLE table_name_74 (member VARCHAR, state VARCHAR, electorate VARCHAR)", "instruction": "Which member is from the state of SA and the grey electorate?", "output": "SELECT member FROM table_name_74 WHERE state = \"sa\" AND electorate = \"grey\"" }
### INSTRUCTION who is the driver for the car constructed by ferrari with a time/retired of +1:06.683? ### INPUT CREATE TABLE table_name_43 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR) ### OUTPUT SELECT driver FROM table_name_43 WHERE constructor = "ferrari" AND time_retired = "+1:06.683"
{ "input": "CREATE TABLE table_name_43 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR)", "instruction": "who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?", "output": "SELECT driver FROM table_name_43 WHERE constructor = \"ferrari\" AND time_retired = \"+1:06.683\"" }
### INSTRUCTION what is the division north when division south was kožuf and division southwest was ilinden velmej ### INPUT CREATE TABLE table_17881033_1 (division_north VARCHAR, division_south VARCHAR, division_southwest VARCHAR) ### OUTPUT SELECT division_north FROM table_17881033_1 WHERE division_south = "Kožuf" AND division_southwest = "Ilinden Velmej"
{ "input": "CREATE TABLE table_17881033_1 (division_north VARCHAR, division_south VARCHAR, division_southwest VARCHAR)", "instruction": "what is the division north when division south was kožuf and division southwest was ilinden velmej", "output": "SELECT division_north FROM table_17881033_1 WHERE division_south = \"Kožuf\" AND division_southwest = \"Ilinden Velmej\"" }
### INSTRUCTION What is the highest Year, when Rank is less than 28, and when Accolade is "The 100 greatest metal albums of the decade"? ### INPUT CREATE TABLE table_name_59 (year INTEGER, rank VARCHAR, accolade VARCHAR) ### OUTPUT SELECT MAX(year) FROM table_name_59 WHERE rank < 28 AND accolade = "the 100 greatest metal albums of the decade"
{ "input": "CREATE TABLE table_name_59 (year INTEGER, rank VARCHAR, accolade VARCHAR)", "instruction": "What is the highest Year, when Rank is less than 28, and when Accolade is \"The 100 greatest metal albums of the decade\"?", "output": "SELECT MAX(year) FROM table_name_59 WHERE rank < 28 AND accolade = \"the 100 greatest metal albums of the decade\"" }
### INSTRUCTION What is the general classification with riccardo riccò as the young rider classification? ### INPUT CREATE TABLE table_name_37 (general_classification VARCHAR, young_rider_classification VARCHAR) ### OUTPUT SELECT general_classification FROM table_name_37 WHERE young_rider_classification = "riccardo riccò"
{ "input": "CREATE TABLE table_name_37 (general_classification VARCHAR, young_rider_classification VARCHAR)", "instruction": "What is the general classification with riccardo riccò as the young rider classification?", "output": "SELECT general_classification FROM table_name_37 WHERE young_rider_classification = \"riccardo riccò\"" }
### INSTRUCTION Which episode has segment D on custom motorcycle tanks? ### INPUT CREATE TABLE table_15187735_20 (episode INTEGER, segment_d VARCHAR) ### OUTPUT SELECT MIN(episode) FROM table_15187735_20 WHERE segment_d = "Custom Motorcycle Tanks"
{ "input": "CREATE TABLE table_15187735_20 (episode INTEGER, segment_d VARCHAR)", "instruction": "Which episode has segment D on custom motorcycle tanks?", "output": "SELECT MIN(episode) FROM table_15187735_20 WHERE segment_d = \"Custom Motorcycle Tanks\"" }
### INSTRUCTION What is the Location of the Frequency with a Callsign of DXBL? ### INPUT CREATE TABLE table_name_89 (location VARCHAR, callsign VARCHAR) ### OUTPUT SELECT location FROM table_name_89 WHERE callsign = "dxbl"
{ "input": "CREATE TABLE table_name_89 (location VARCHAR, callsign VARCHAR)", "instruction": "What is the Location of the Frequency with a Callsign of DXBL?", "output": "SELECT location FROM table_name_89 WHERE callsign = \"dxbl\"" }
### INSTRUCTION How many values for silver occur when gold is less than 1, the rank is 13, and bronze is greater than 2? ### INPUT CREATE TABLE table_name_70 (silver VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR) ### OUTPUT SELECT COUNT(silver) FROM table_name_70 WHERE gold < 1 AND rank = 13 AND bronze > 2
{ "input": "CREATE TABLE table_name_70 (silver VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR)", "instruction": "How many values for silver occur when gold is less than 1, the rank is 13, and bronze is greater than 2?", "output": "SELECT COUNT(silver) FROM table_name_70 WHERE gold < 1 AND rank = 13 AND bronze > 2" }
### INSTRUCTION In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack? ### INPUT CREATE TABLE table_22514845_4 (year INTEGER, reporters VARCHAR, s_analyst VARCHAR) ### OUTPUT SELECT MIN(year) FROM table_22514845_4 WHERE reporters = "Howard Cosell and Jack Whitaker" AND s_analyst = "Bill Hartack"
{ "input": "CREATE TABLE table_22514845_4 (year INTEGER, reporters VARCHAR, s_analyst VARCHAR)", "instruction": "In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack?", "output": "SELECT MIN(year) FROM table_22514845_4 WHERE reporters = \"Howard Cosell and Jack Whitaker\" AND s_analyst = \"Bill Hartack\"" }
### INSTRUCTION What is the average market value with a revenue greater than 6.2, a Company of national bank of greece, and a Rank smaller than 1? ### INPUT CREATE TABLE table_name_87 (market_value__us INTEGER, rank VARCHAR, revenues__us$_billion_ VARCHAR, company VARCHAR) ### OUTPUT SELECT AVG(market_value__us) AS $_billion_ FROM table_name_87 WHERE revenues__us$_billion_ > 6.2 AND company = "national bank of greece" AND rank < 1
{ "input": "CREATE TABLE table_name_87 (market_value__us INTEGER, rank VARCHAR, revenues__us$_billion_ VARCHAR, company VARCHAR)", "instruction": "What is the average market value with a revenue greater than 6.2, a Company of national bank of greece, and a Rank smaller than 1?", "output": "SELECT AVG(market_value__us) AS $_billion_ FROM table_name_87 WHERE revenues__us$_billion_ > 6.2 AND company = \"national bank of greece\" AND rank < 1" }
### INSTRUCTION Which position has a School/club team of jacksonville? ### INPUT CREATE TABLE table_name_81 (pos VARCHAR, school_club_team VARCHAR) ### OUTPUT SELECT pos FROM table_name_81 WHERE school_club_team = "jacksonville"
{ "input": "CREATE TABLE table_name_81 (pos VARCHAR, school_club_team VARCHAR)", "instruction": "Which position has a School/club team of jacksonville?", "output": "SELECT pos FROM table_name_81 WHERE school_club_team = \"jacksonville\"" }
### INSTRUCTION What is the height of the player who attended Hartford? ### INPUT CREATE TABLE table_11734041_2 (height_in_ft VARCHAR, school_club_team_country VARCHAR) ### OUTPUT SELECT height_in_ft FROM table_11734041_2 WHERE school_club_team_country = "Hartford"
{ "input": "CREATE TABLE table_11734041_2 (height_in_ft VARCHAR, school_club_team_country VARCHAR)", "instruction": "What is the height of the player who attended Hartford?", "output": "SELECT height_in_ft FROM table_11734041_2 WHERE school_club_team_country = \"Hartford\"" }
### INSTRUCTION What are the remarks for the entry ranked greater than 2 with a skyteam (2012) alliance? ### INPUT CREATE TABLE table_name_23 (remarks VARCHAR, rank VARCHAR, alliance VARCHAR) ### OUTPUT SELECT remarks FROM table_name_23 WHERE rank > 2 AND alliance = "skyteam (2012)"
{ "input": "CREATE TABLE table_name_23 (remarks VARCHAR, rank VARCHAR, alliance VARCHAR)", "instruction": "What are the remarks for the entry ranked greater than 2 with a skyteam (2012) alliance?", "output": "SELECT remarks FROM table_name_23 WHERE rank > 2 AND alliance = \"skyteam (2012)\"" }
### INSTRUCTION Which Themed Area has a Name of troublesome trucks runaway coaster? ### INPUT CREATE TABLE table_name_12 (themed_area VARCHAR, name VARCHAR) ### OUTPUT SELECT themed_area FROM table_name_12 WHERE name = "troublesome trucks runaway coaster"
{ "input": "CREATE TABLE table_name_12 (themed_area VARCHAR, name VARCHAR)", "instruction": "Which Themed Area has a Name of troublesome trucks runaway coaster?", "output": "SELECT themed_area FROM table_name_12 WHERE name = \"troublesome trucks runaway coaster\"" }
### INSTRUCTION Who was home at Princes Park? ### INPUT CREATE TABLE table_name_55 (home_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT home_team AS score FROM table_name_55 WHERE venue = "princes park"
{ "input": "CREATE TABLE table_name_55 (home_team VARCHAR, venue VARCHAR)", "instruction": "Who was home at Princes Park?", "output": "SELECT home_team AS score FROM table_name_55 WHERE venue = \"princes park\"" }
### INSTRUCTION How many seasons have a sacks of 39? ### INPUT CREATE TABLE table_27487336_1 (season VARCHAR, sacks VARCHAR) ### OUTPUT SELECT COUNT(season) FROM table_27487336_1 WHERE sacks = "39"
{ "input": "CREATE TABLE table_27487336_1 (season VARCHAR, sacks VARCHAR)", "instruction": "How many seasons have a sacks of 39?", "output": "SELECT COUNT(season) FROM table_27487336_1 WHERE sacks = \"39\"" }
### INSTRUCTION What position does the player from the Miami University (CCHA) club team play? ### INPUT CREATE TABLE table_name_20 (position VARCHAR, club_team VARCHAR) ### OUTPUT SELECT position FROM table_name_20 WHERE club_team = "miami university (ccha)"
{ "input": "CREATE TABLE table_name_20 (position VARCHAR, club_team VARCHAR)", "instruction": "What position does the player from the Miami University (CCHA) club team play?", "output": "SELECT position FROM table_name_20 WHERE club_team = \"miami university (ccha)\"" }
### INSTRUCTION Which method was used when Rafael Cavalcante was the opponent? ### INPUT CREATE TABLE table_name_2 (method VARCHAR, opponent VARCHAR) ### OUTPUT SELECT method FROM table_name_2 WHERE opponent = "rafael cavalcante"
{ "input": "CREATE TABLE table_name_2 (method VARCHAR, opponent VARCHAR)", "instruction": "Which method was used when Rafael Cavalcante was the opponent?", "output": "SELECT method FROM table_name_2 WHERE opponent = \"rafael cavalcante\"" }
### INSTRUCTION What is the location of the match on February 29, 2012? ### INPUT CREATE TABLE table_name_47 (location VARCHAR, date VARCHAR) ### OUTPUT SELECT location FROM table_name_47 WHERE date = "february 29, 2012"
{ "input": "CREATE TABLE table_name_47 (location VARCHAR, date VARCHAR)", "instruction": "What is the location of the match on February 29, 2012?", "output": "SELECT location FROM table_name_47 WHERE date = \"february 29, 2012\"" }
### INSTRUCTION What is the outcome on March 20, 1994? ### INPUT CREATE TABLE table_name_89 (outcome VARCHAR, date VARCHAR) ### OUTPUT SELECT outcome FROM table_name_89 WHERE date = "march 20, 1994"
{ "input": "CREATE TABLE table_name_89 (outcome VARCHAR, date VARCHAR)", "instruction": "What is the outcome on March 20, 1994?", "output": "SELECT outcome FROM table_name_89 WHERE date = \"march 20, 1994\"" }
### INSTRUCTION What is the highest Per Capita Withdrawal (m 3 /p/yr), when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%), and when Total Freshwater Withdrawal (km 3 /yr) is less than 42.7? ### INPUT CREATE TABLE table_name_22 (per_capita_withdrawal__m_3__p_yr_ INTEGER, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR) ### OUTPUT SELECT MAX(per_capita_withdrawal__m_3__p_yr_) FROM table_name_22 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "1363(92%)" AND total_freshwater_withdrawal__km_3__yr_ < 42.7
{ "input": "CREATE TABLE table_name_22 (per_capita_withdrawal__m_3__p_yr_ INTEGER, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR)", "instruction": "What is the highest Per Capita Withdrawal (m 3 /p/yr), when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%), and when Total Freshwater Withdrawal (km 3 /yr) is less than 42.7?", "output": "SELECT MAX(per_capita_withdrawal__m_3__p_yr_) FROM table_name_22 WHERE agricultural_use__m_3__p_yr__in__percentage_ = \"1363(92%)\" AND total_freshwater_withdrawal__km_3__yr_ < 42.7" }
### INSTRUCTION Show the budget type code and description and the corresponding document id. ### INPUT CREATE TABLE Ref_budget_codes (budget_type_code VARCHAR, budget_type_description VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR) ### OUTPUT SELECT T2.budget_type_code, T2.budget_type_description, T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code
{ "input": "CREATE TABLE Ref_budget_codes (budget_type_code VARCHAR, budget_type_description VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR)", "instruction": "Show the budget type code and description and the corresponding document id.", "output": "SELECT T2.budget_type_code, T2.budget_type_description, T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code" }