text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is Date, when Against is "22"? ### INPUT CREATE TABLE table_name_87 (date VARCHAR, against VARCHAR) ### OUTPUT SELECT date FROM table_name_87 WHERE against = 22
{ "input": "CREATE TABLE table_name_87 (date VARCHAR, against VARCHAR)", "instruction": "What is Date, when Against is \"22\"?", "output": "SELECT date FROM table_name_87 WHERE against = 22" }
### INSTRUCTION Who is the competitor from France with 10 starts? ### INPUT CREATE TABLE table_19487922_1 (name VARCHAR, country VARCHAR, race_entries__starts_ VARCHAR) ### OUTPUT SELECT name FROM table_19487922_1 WHERE country = "France" AND race_entries__starts_ = "10"
{ "input": "CREATE TABLE table_19487922_1 (name VARCHAR, country VARCHAR, race_entries__starts_ VARCHAR)", "instruction": "Who is the competitor from France with 10 starts?", "output": "SELECT name FROM table_19487922_1 WHERE country = \"France\" AND race_entries__starts_ = \"10\"" }
### INSTRUCTION Which game is located in Boston Garden and has a record of 49-17? ### INPUT CREATE TABLE table_name_81 (game VARCHAR, location VARCHAR, record VARCHAR) ### OUTPUT SELECT game FROM table_name_81 WHERE location = "boston garden" AND record = "49-17"
{ "input": "CREATE TABLE table_name_81 (game VARCHAR, location VARCHAR, record VARCHAR)", "instruction": "Which game is located in Boston Garden and has a record of 49-17?", "output": "SELECT game FROM table_name_81 WHERE location = \"boston garden\" AND record = \"49-17\"" }
### INSTRUCTION Playing against the Seattle Seahawks in a week after week 1 before 69,149 people what was the result of the game? ### INPUT CREATE TABLE table_name_63 (result VARCHAR, opponent VARCHAR, week VARCHAR, attendance VARCHAR) ### OUTPUT SELECT result FROM table_name_63 WHERE week > 1 AND attendance = "69,149" AND opponent = "seattle seahawks"
{ "input": "CREATE TABLE table_name_63 (result VARCHAR, opponent VARCHAR, week VARCHAR, attendance VARCHAR)", "instruction": "Playing against the Seattle Seahawks in a week after week 1 before 69,149 people what was the result of the game?", "output": "SELECT result FROM table_name_63 WHERE week > 1 AND attendance = \"69,149\" AND opponent = \"seattle seahawks\"" }
### INSTRUCTION What municipality has 719 people and is larger than 108.46 km2? ### INPUT CREATE TABLE table_name_30 (regional_county_municipality VARCHAR, area__km_2__ VARCHAR, population VARCHAR) ### OUTPUT SELECT regional_county_municipality FROM table_name_30 WHERE area__km_2__ > 108.46 AND population = 719
{ "input": "CREATE TABLE table_name_30 (regional_county_municipality VARCHAR, area__km_2__ VARCHAR, population VARCHAR)", "instruction": "What municipality has 719 people and is larger than 108.46 km2?", "output": "SELECT regional_county_municipality FROM table_name_30 WHERE area__km_2__ > 108.46 AND population = 719" }
### INSTRUCTION what is the best finish when money list rank is n/a, earnings ($) is more than 0 and cuts made is more than 1? ### INPUT CREATE TABLE table_name_41 (best_finish VARCHAR, cuts_made VARCHAR, money_list_rank VARCHAR, earnings___$__ VARCHAR) ### OUTPUT SELECT best_finish FROM table_name_41 WHERE money_list_rank = "n/a" AND earnings___$__ > 0 AND cuts_made > 1
{ "input": "CREATE TABLE table_name_41 (best_finish VARCHAR, cuts_made VARCHAR, money_list_rank VARCHAR, earnings___$__ VARCHAR)", "instruction": "what is the best finish when money list rank is n/a, earnings ($) is more than 0 and cuts made is more than 1?", "output": "SELECT best_finish FROM table_name_41 WHERE money_list_rank = \"n/a\" AND earnings___$__ > 0 AND cuts_made > 1" }
### INSTRUCTION Which Round is the lowest one that has a School/Club Team of virginia? ### INPUT CREATE TABLE table_name_20 (round INTEGER, school_club_team VARCHAR) ### OUTPUT SELECT MIN(round) FROM table_name_20 WHERE school_club_team = "virginia"
{ "input": "CREATE TABLE table_name_20 (round INTEGER, school_club_team VARCHAR)", "instruction": "Which Round is the lowest one that has a School/Club Team of virginia?", "output": "SELECT MIN(round) FROM table_name_20 WHERE school_club_team = \"virginia\"" }
### INSTRUCTION What is the campus fee of "San Francisco State University" in year 1996? ### INPUT CREATE TABLE csu_fees (year VARCHAR); CREATE TABLE campuses (id VARCHAR) ### OUTPUT SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = "San Francisco State University" AND T2.year = 1996
{ "input": "CREATE TABLE csu_fees (year VARCHAR); CREATE TABLE campuses (id VARCHAR)", "instruction": "What is the campus fee of \"San Francisco State University\" in year 1996?", "output": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND T2.year = 1996" }
### INSTRUCTION What is the sum of numbers that had a type of Driving Van Trailer? ### INPUT CREATE TABLE table_name_65 (number INTEGER, type VARCHAR) ### OUTPUT SELECT SUM(number) FROM table_name_65 WHERE type = "driving van trailer"
{ "input": "CREATE TABLE table_name_65 (number INTEGER, type VARCHAR)", "instruction": "What is the sum of numbers that had a type of Driving Van Trailer?", "output": "SELECT SUM(number) FROM table_name_65 WHERE type = \"driving van trailer\"" }
### INSTRUCTION Who played against in venue a on 17 february 1900? ### INPUT CREATE TABLE table_name_43 (opponent VARCHAR, venue VARCHAR, date VARCHAR) ### OUTPUT SELECT opponent FROM table_name_43 WHERE venue = "a" AND date = "17 february 1900"
{ "input": "CREATE TABLE table_name_43 (opponent VARCHAR, venue VARCHAR, date VARCHAR)", "instruction": "Who played against in venue a on 17 february 1900?", "output": "SELECT opponent FROM table_name_43 WHERE venue = \"a\" AND date = \"17 february 1900\"" }
### INSTRUCTION What is the segment C of the episode where segment B is Film Digitization? ### INPUT CREATE TABLE table_15187735_19 (segment_c VARCHAR, segment_b VARCHAR) ### OUTPUT SELECT segment_c FROM table_15187735_19 WHERE segment_b = "Film Digitization"
{ "input": "CREATE TABLE table_15187735_19 (segment_c VARCHAR, segment_b VARCHAR)", "instruction": "What is the segment C of the episode where segment B is Film Digitization?", "output": "SELECT segment_c FROM table_15187735_19 WHERE segment_b = \"Film Digitization\"" }
### INSTRUCTION What is the Termination of Mission date for Marsha E. Barnes, the Ambassador Extraordinary and Plenipotentiary? ### INPUT CREATE TABLE table_name_34 (termination_of_mission VARCHAR, title VARCHAR, representative VARCHAR) ### OUTPUT SELECT termination_of_mission FROM table_name_34 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "marsha e. barnes"
{ "input": "CREATE TABLE table_name_34 (termination_of_mission VARCHAR, title VARCHAR, representative VARCHAR)", "instruction": "What is the Termination of Mission date for Marsha E. Barnes, the Ambassador Extraordinary and Plenipotentiary?", "output": "SELECT termination_of_mission FROM table_name_34 WHERE title = \"ambassador extraordinary and plenipotentiary\" AND representative = \"marsha e. barnes\"" }
### INSTRUCTION When Richmond had a total count of 2,293, what was the total count of Brooklyn? ### INPUT CREATE TABLE table_name_53 (brooklyn VARCHAR, richmond_ VARCHAR, staten_is VARCHAR) ### OUTPUT SELECT brooklyn FROM table_name_53 WHERE richmond_[staten_is] = "2,293"
{ "input": "CREATE TABLE table_name_53 (brooklyn VARCHAR, richmond_ VARCHAR, staten_is VARCHAR)", "instruction": "When Richmond had a total count of 2,293, what was the total count of Brooklyn?", "output": "SELECT brooklyn FROM table_name_53 WHERE richmond_[staten_is] = \"2,293\"" }
### INSTRUCTION What is the home team of the UEFA cup in the 2000-2001 season with a second round? ### INPUT CREATE TABLE table_name_93 (home VARCHAR, round VARCHAR, competition VARCHAR, season VARCHAR) ### OUTPUT SELECT home FROM table_name_93 WHERE competition = "uefa cup" AND season = "2000-2001" AND round = "second round"
{ "input": "CREATE TABLE table_name_93 (home VARCHAR, round VARCHAR, competition VARCHAR, season VARCHAR)", "instruction": "What is the home team of the UEFA cup in the 2000-2001 season with a second round?", "output": "SELECT home FROM table_name_93 WHERE competition = \"uefa cup\" AND season = \"2000-2001\" AND round = \"second round\"" }
### INSTRUCTION What is the Original air date for the episode directed by lev l. spiro, with a Production code of 07-00-109? ### INPUT CREATE TABLE table_name_35 (original_air_date VARCHAR, directed_by VARCHAR, production_code VARCHAR) ### OUTPUT SELECT original_air_date FROM table_name_35 WHERE directed_by = "lev l. spiro" AND production_code = "07-00-109"
{ "input": "CREATE TABLE table_name_35 (original_air_date VARCHAR, directed_by VARCHAR, production_code VARCHAR)", "instruction": "What is the Original air date for the episode directed by lev l. spiro, with a Production code of 07-00-109?", "output": "SELECT original_air_date FROM table_name_35 WHERE directed_by = \"lev l. spiro\" AND production_code = \"07-00-109\"" }
### INSTRUCTION If the radio stations is radio nou si radio radio nou música; what were the total number of television channels? ### INPUT CREATE TABLE table_23143607_1 (television_channels VARCHAR, radio_stations VARCHAR) ### OUTPUT SELECT COUNT(television_channels) FROM table_23143607_1 WHERE radio_stations = "Radio Nou Si Radio Radio Nou Música"
{ "input": "CREATE TABLE table_23143607_1 (television_channels VARCHAR, radio_stations VARCHAR)", "instruction": "If the radio stations is radio nou si radio radio nou música; what were the total number of television channels?", "output": "SELECT COUNT(television_channels) FROM table_23143607_1 WHERE radio_stations = \"Radio Nou Si Radio Radio Nou Música\"" }
### INSTRUCTION What constructor has under 62 laps, a Time/Retired of gearbox, a Grid larger than 1, and pedro diniz driving? ### INPUT CREATE TABLE table_name_19 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR, time_retired VARCHAR) ### OUTPUT SELECT constructor FROM table_name_19 WHERE laps < 62 AND time_retired = "gearbox" AND grid > 1 AND driver = "pedro diniz"
{ "input": "CREATE TABLE table_name_19 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR, time_retired VARCHAR)", "instruction": "What constructor has under 62 laps, a Time/Retired of gearbox, a Grid larger than 1, and pedro diniz driving?", "output": "SELECT constructor FROM table_name_19 WHERE laps < 62 AND time_retired = \"gearbox\" AND grid > 1 AND driver = \"pedro diniz\"" }
### INSTRUCTION What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision. ### INPUT CREATE TABLE tryout (cName VARCHAR, decision VARCHAR); CREATE TABLE college (state VARCHAR, enr VARCHAR, cName VARCHAR) ### OUTPUT SELECT DISTINCT T1.state, T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'
{ "input": "CREATE TABLE tryout (cName VARCHAR, decision VARCHAR); CREATE TABLE college (state VARCHAR, enr VARCHAR, cName VARCHAR)", "instruction": "What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision.", "output": "SELECT DISTINCT T1.state, T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'" }
### INSTRUCTION What is the Report on November 15, 2000? ### INPUT CREATE TABLE table_name_18 (report VARCHAR, date VARCHAR) ### OUTPUT SELECT report FROM table_name_18 WHERE date = "november 15, 2000"
{ "input": "CREATE TABLE table_name_18 (report VARCHAR, date VARCHAR)", "instruction": "What is the Report on November 15, 2000?", "output": "SELECT report FROM table_name_18 WHERE date = \"november 15, 2000\"" }
### INSTRUCTION What is Builder, when Country is "United Kingdom", and when Location is "Chatham, Kent"? ### INPUT CREATE TABLE table_name_35 (builder VARCHAR, country VARCHAR, location VARCHAR) ### OUTPUT SELECT builder FROM table_name_35 WHERE country = "united kingdom" AND location = "chatham, kent"
{ "input": "CREATE TABLE table_name_35 (builder VARCHAR, country VARCHAR, location VARCHAR)", "instruction": "What is Builder, when Country is \"United Kingdom\", and when Location is \"Chatham, Kent\"?", "output": "SELECT builder FROM table_name_35 WHERE country = \"united kingdom\" AND location = \"chatham, kent\"" }
### INSTRUCTION What is the area (km²) of Nairnshire county, which has a population less than 11,050? ### INPUT CREATE TABLE table_name_34 (area__km²_ INTEGER, county VARCHAR, population VARCHAR) ### OUTPUT SELECT SUM(area__km²_) FROM table_name_34 WHERE county = "nairnshire" AND population < 11 OFFSET 050
{ "input": "CREATE TABLE table_name_34 (area__km²_ INTEGER, county VARCHAR, population VARCHAR)", "instruction": "What is the area (km²) of Nairnshire county, which has a population less than 11,050?", "output": "SELECT SUM(area__km²_) FROM table_name_34 WHERE county = \"nairnshire\" AND population < 11 OFFSET 050" }
### INSTRUCTION What is the most recent season for the Prema Powerteam with a Masters of Formula Three series? ### INPUT CREATE TABLE table_name_34 (season INTEGER, team VARCHAR, series VARCHAR) ### OUTPUT SELECT MAX(season) FROM table_name_34 WHERE team = "prema powerteam" AND series = "masters of formula three"
{ "input": "CREATE TABLE table_name_34 (season INTEGER, team VARCHAR, series VARCHAR)", "instruction": "What is the most recent season for the Prema Powerteam with a Masters of Formula Three series?", "output": "SELECT MAX(season) FROM table_name_34 WHERE team = \"prema powerteam\" AND series = \"masters of formula three\"" }
### INSTRUCTION What is the highest Total Passengers when the annual change is 18.3%, and the rank is less than 11? ### INPUT CREATE TABLE table_name_49 (total_passengers INTEGER, annual_change VARCHAR, rank VARCHAR) ### OUTPUT SELECT MAX(total_passengers) FROM table_name_49 WHERE annual_change = "18.3%" AND rank < 11
{ "input": "CREATE TABLE table_name_49 (total_passengers INTEGER, annual_change VARCHAR, rank VARCHAR)", "instruction": "What is the highest Total Passengers when the annual change is 18.3%, and the rank is less than 11?", "output": "SELECT MAX(total_passengers) FROM table_name_49 WHERE annual_change = \"18.3%\" AND rank < 11" }
### INSTRUCTION What year did the man from Norway who won the Holmenkollen in 1958 win the FIS Nordic World Ski Championships? ### INPUT CREATE TABLE table_174491_1 (fis_nordic_world_ski_championships VARCHAR, country VARCHAR, holmenkollen VARCHAR) ### OUTPUT SELECT fis_nordic_world_ski_championships FROM table_174491_1 WHERE country = "Norway" AND holmenkollen = "1958"
{ "input": "CREATE TABLE table_174491_1 (fis_nordic_world_ski_championships VARCHAR, country VARCHAR, holmenkollen VARCHAR)", "instruction": "What year did the man from Norway who won the Holmenkollen in 1958 win the FIS Nordic World Ski Championships?", "output": "SELECT fis_nordic_world_ski_championships FROM table_174491_1 WHERE country = \"Norway\" AND holmenkollen = \"1958\"" }
### INSTRUCTION What are all the winning records when the result is Scotland won on points table and the Runner-Up result is [[|]] 4 points? ### INPUT CREATE TABLE table_28601467_1 (winner VARCHAR, result VARCHAR, runner_up VARCHAR) ### OUTPUT SELECT winner FROM table_28601467_1 WHERE result = "Scotland won on points table" AND runner_up = "[[|]] 4 points"
{ "input": "CREATE TABLE table_28601467_1 (winner VARCHAR, result VARCHAR, runner_up VARCHAR)", "instruction": "What are all the winning records when the result is Scotland won on points table and the Runner-Up result is [[|]] 4 points?", "output": "SELECT winner FROM table_28601467_1 WHERE result = \"Scotland won on points table\" AND runner_up = \"[[|]] 4 points\"" }
### INSTRUCTION What is the composition at Valles lava dome? ### INPUT CREATE TABLE table_1081235_1 (composition VARCHAR, name_of_lava_dome VARCHAR) ### OUTPUT SELECT composition FROM table_1081235_1 WHERE name_of_lava_dome = "Valles lava dome"
{ "input": "CREATE TABLE table_1081235_1 (composition VARCHAR, name_of_lava_dome VARCHAR)", "instruction": "What is the composition at Valles lava dome?", "output": "SELECT composition FROM table_1081235_1 WHERE name_of_lava_dome = \"Valles lava dome\"" }
### INSTRUCTION What's the 69kg of Round 16? ### INPUT CREATE TABLE table_name_16 (round_of_16 VARCHAR, event VARCHAR) ### OUTPUT SELECT round_of_16 FROM table_name_16 WHERE event = "69kg"
{ "input": "CREATE TABLE table_name_16 (round_of_16 VARCHAR, event VARCHAR)", "instruction": "What's the 69kg of Round 16?", "output": "SELECT round_of_16 FROM table_name_16 WHERE event = \"69kg\"" }
### INSTRUCTION Which place has 23 floors and a street address in Detroit of 144 west congress street? ### INPUT CREATE TABLE table_name_17 (name VARCHAR, floors VARCHAR, street_address_in_detroit VARCHAR) ### OUTPUT SELECT name FROM table_name_17 WHERE floors = 23 AND street_address_in_detroit = "144 west congress street"
{ "input": "CREATE TABLE table_name_17 (name VARCHAR, floors VARCHAR, street_address_in_detroit VARCHAR)", "instruction": "Which place has 23 floors and a street address in Detroit of 144 west congress street?", "output": "SELECT name FROM table_name_17 WHERE floors = 23 AND street_address_in_detroit = \"144 west congress street\"" }
### INSTRUCTION How many poles did the player have during the Formula BMW Pacific race? ### INPUT CREATE TABLE table_17246160_1 (poles INTEGER, series VARCHAR) ### OUTPUT SELECT MAX(poles) FROM table_17246160_1 WHERE series = "Formula BMW Pacific"
{ "input": "CREATE TABLE table_17246160_1 (poles INTEGER, series VARCHAR)", "instruction": "How many poles did the player have during the Formula BMW Pacific race?", "output": "SELECT MAX(poles) FROM table_17246160_1 WHERE series = \"Formula BMW Pacific\"" }
### INSTRUCTION What is the extortion and theft rates where the United Nations Observer Mission Uganda-Rwanda is active? ### INPUT CREATE TABLE table_15652027_1 (extortion_theft_3 VARCHAR, united_nations_mission VARCHAR) ### OUTPUT SELECT extortion_theft_3 FROM table_15652027_1 WHERE united_nations_mission = "United Nations Observer Mission Uganda-Rwanda"
{ "input": "CREATE TABLE table_15652027_1 (extortion_theft_3 VARCHAR, united_nations_mission VARCHAR)", "instruction": "What is the extortion and theft rates where the United Nations Observer Mission Uganda-Rwanda is active?", "output": "SELECT extortion_theft_3 FROM table_15652027_1 WHERE united_nations_mission = \"United Nations Observer Mission Uganda-Rwanda\"" }
### INSTRUCTION Game time of 2nd quarter (0:00), and a Date of november 8, 1971 has how many average yards? ### INPUT CREATE TABLE table_name_2 (yards INTEGER, game_time VARCHAR, date VARCHAR) ### OUTPUT SELECT AVG(yards) FROM table_name_2 WHERE game_time = "2nd quarter (0:00)" AND date = "november 8, 1971"
{ "input": "CREATE TABLE table_name_2 (yards INTEGER, game_time VARCHAR, date VARCHAR)", "instruction": "Game time of 2nd quarter (0:00), and a Date of november 8, 1971 has how many average yards?", "output": "SELECT AVG(yards) FROM table_name_2 WHERE game_time = \"2nd quarter (0:00)\" AND date = \"november 8, 1971\"" }
### INSTRUCTION Which player has 0 goals, 1 tries, 4 points, and plays in the Prop position? ### INPUT CREATE TABLE table_name_19 (player VARCHAR, position VARCHAR, points VARCHAR, goals VARCHAR, tries VARCHAR) ### OUTPUT SELECT player FROM table_name_19 WHERE goals = 0 AND tries = 1 AND points = 4 AND position = "prop"
{ "input": "CREATE TABLE table_name_19 (player VARCHAR, position VARCHAR, points VARCHAR, goals VARCHAR, tries VARCHAR)", "instruction": "Which player has 0 goals, 1 tries, 4 points, and plays in the Prop position?", "output": "SELECT player FROM table_name_19 WHERE goals = 0 AND tries = 1 AND points = 4 AND position = \"prop\"" }
### INSTRUCTION Name the to par for 20 feb 2005 ### INPUT CREATE TABLE table_21469545_2 (to_par VARCHAR, date VARCHAR) ### OUTPUT SELECT to_par FROM table_21469545_2 WHERE date = "20 Feb 2005"
{ "input": "CREATE TABLE table_21469545_2 (to_par VARCHAR, date VARCHAR)", "instruction": "Name the to par for 20 feb 2005", "output": "SELECT to_par FROM table_21469545_2 WHERE date = \"20 Feb 2005\"" }
### INSTRUCTION What is the name and capacity of the stadium with the most concerts after 2013 ? ### INPUT CREATE TABLE concert (stadium_id VARCHAR, year INTEGER); CREATE TABLE stadium (name VARCHAR, capacity VARCHAR, stadium_id VARCHAR) ### OUTPUT SELECT t2.name, t2.capacity FROM concert AS t1 JOIN stadium AS t2 ON t1.stadium_id = t2.stadium_id WHERE t1.year > 2013 GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE concert (stadium_id VARCHAR, year INTEGER); CREATE TABLE stadium (name VARCHAR, capacity VARCHAR, stadium_id VARCHAR)", "instruction": "What is the name and capacity of the stadium with the most concerts after 2013 ?", "output": "SELECT t2.name, t2.capacity FROM concert AS t1 JOIN stadium AS t2 ON t1.stadium_id = t2.stadium_id WHERE t1.year > 2013 GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What game was developed by Nintendo for the Gamecube platform? ### INPUT CREATE TABLE table_name_92 (game VARCHAR, developer_s_ VARCHAR, platform_s_ VARCHAR) ### OUTPUT SELECT game FROM table_name_92 WHERE developer_s_ = "nintendo" AND platform_s_ = "gamecube"
{ "input": "CREATE TABLE table_name_92 (game VARCHAR, developer_s_ VARCHAR, platform_s_ VARCHAR)", "instruction": "What game was developed by Nintendo for the Gamecube platform?", "output": "SELECT game FROM table_name_92 WHERE developer_s_ = \"nintendo\" AND platform_s_ = \"gamecube\"" }
### INSTRUCTION Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000. ### INPUT CREATE TABLE Products (Product_Type_Code VARCHAR, Product_Price INTEGER) ### OUTPUT SELECT Product_Type_Code FROM Products WHERE Product_Price > 4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price < 3000
{ "input": "CREATE TABLE Products (Product_Type_Code VARCHAR, Product_Price INTEGER)", "instruction": "Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000.", "output": "SELECT Product_Type_Code FROM Products WHERE Product_Price > 4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price < 3000" }
### INSTRUCTION in what year were 2 points scored? ### INPUT CREATE TABLE table_name_19 (year INTEGER, points VARCHAR) ### OUTPUT SELECT MAX(year) FROM table_name_19 WHERE points = "2"
{ "input": "CREATE TABLE table_name_19 (year INTEGER, points VARCHAR)", "instruction": "in what year were 2 points scored?", "output": "SELECT MAX(year) FROM table_name_19 WHERE points = \"2\"" }
### INSTRUCTION Find the total amount of products ordered before 2018-03-17 07:13:53. ### INPUT CREATE TABLE customer_orders (order_id VARCHAR, order_date INTEGER); CREATE TABLE order_items (order_quantity INTEGER, order_id VARCHAR) ### OUTPUT SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < "2018-03-17 07:13:53"
{ "input": "CREATE TABLE customer_orders (order_id VARCHAR, order_date INTEGER); CREATE TABLE order_items (order_quantity INTEGER, order_id VARCHAR)", "instruction": "Find the total amount of products ordered before 2018-03-17 07:13:53.", "output": "SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < \"2018-03-17 07:13:53\"" }
### INSTRUCTION how many high assists with record being 15-11 ### INPUT CREATE TABLE table_13762472_4 (high_assists VARCHAR, record VARCHAR) ### OUTPUT SELECT COUNT(high_assists) FROM table_13762472_4 WHERE record = "15-11"
{ "input": "CREATE TABLE table_13762472_4 (high_assists VARCHAR, record VARCHAR)", "instruction": " how many high assists with record being 15-11", "output": "SELECT COUNT(high_assists) FROM table_13762472_4 WHERE record = \"15-11\"" }
### INSTRUCTION How many times is last/current driver(s) 3 november 2013 is adderly fong ( 2013 )? ### INPUT CREATE TABLE table_27279050_3 (country VARCHAR, last_current_driver_s__3_november_2013 VARCHAR) ### OUTPUT SELECT COUNT(country) FROM table_27279050_3 WHERE last_current_driver_s__3_november_2013 = "Adderly Fong ( 2013 )"
{ "input": "CREATE TABLE table_27279050_3 (country VARCHAR, last_current_driver_s__3_november_2013 VARCHAR)", "instruction": "How many times is last/current driver(s) 3 november 2013 is adderly fong ( 2013 )?", "output": "SELECT COUNT(country) FROM table_27279050_3 WHERE last_current_driver_s__3_november_2013 = \"Adderly Fong ( 2013 )\"" }
### INSTRUCTION Which languages are spoken by only one country in republic governments? ### INPUT CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR); CREATE TABLE country (Code VARCHAR, GovernmentForm VARCHAR) ### OUTPUT SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = "Republic" GROUP BY T2.Language HAVING COUNT(*) = 1
{ "input": "CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR); CREATE TABLE country (Code VARCHAR, GovernmentForm VARCHAR)", "instruction": "Which languages are spoken by only one country in republic governments?", "output": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1" }
### INSTRUCTION Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id. ### INPUT CREATE TABLE Students (student_id VARCHAR, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR) ### OUTPUT SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, COUNT(*), T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Students (student_id VARCHAR, first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)", "instruction": "Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id.", "output": "SELECT T1.student_id, T1.first_name, T1.middle_name, T1.last_name, COUNT(*), T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Name the german voice actor for rafael torres ### INPUT CREATE TABLE table_14960574_6 (german_voice_actor VARCHAR, spanish_voice_actor VARCHAR) ### OUTPUT SELECT german_voice_actor FROM table_14960574_6 WHERE spanish_voice_actor = "Rafael Torres"
{ "input": "CREATE TABLE table_14960574_6 (german_voice_actor VARCHAR, spanish_voice_actor VARCHAR)", "instruction": "Name the german voice actor for rafael torres", "output": "SELECT german_voice_actor FROM table_14960574_6 WHERE spanish_voice_actor = \"Rafael Torres\"" }
### INSTRUCTION List all player names who have an overall rating higher than the average. ### INPUT CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (overall_rating INTEGER); CREATE TABLE Player_Attributes (player_api_id VARCHAR, overall_rating INTEGER) ### OUTPUT SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating > (SELECT AVG(overall_rating) FROM Player_Attributes)
{ "input": "CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (overall_rating INTEGER); CREATE TABLE Player_Attributes (player_api_id VARCHAR, overall_rating INTEGER)", "instruction": "List all player names who have an overall rating higher than the average.", "output": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating > (SELECT AVG(overall_rating) FROM Player_Attributes)" }
### INSTRUCTION Which Song has an Issue date(s) of 29 may - 26 june? ### INPUT CREATE TABLE table_name_17 (song VARCHAR, issue_date_s_ VARCHAR) ### OUTPUT SELECT song FROM table_name_17 WHERE issue_date_s_ = "29 may - 26 june"
{ "input": "CREATE TABLE table_name_17 (song VARCHAR, issue_date_s_ VARCHAR)", "instruction": "Which Song has an Issue date(s) of 29 may - 26 june?", "output": "SELECT song FROM table_name_17 WHERE issue_date_s_ = \"29 may - 26 june\"" }
### INSTRUCTION WHAT IS THE ELEVATION OF THE UNAKA MOUNTAINS, IN ROAN HIGH BLUFF PEAK, AND ISOLATION LARGER THAN 1.54? ### INPUT CREATE TABLE table_name_77 (elevation__ft_ INTEGER, isolation VARCHAR, range VARCHAR, peak_name VARCHAR) ### OUTPUT SELECT AVG(elevation__ft_) FROM table_name_77 WHERE range = "unaka mountains" AND peak_name = "roan high bluff" AND isolation > 1.54
{ "input": "CREATE TABLE table_name_77 (elevation__ft_ INTEGER, isolation VARCHAR, range VARCHAR, peak_name VARCHAR)", "instruction": "WHAT IS THE ELEVATION OF THE UNAKA MOUNTAINS, IN ROAN HIGH BLUFF PEAK, AND ISOLATION LARGER THAN 1.54?", "output": "SELECT AVG(elevation__ft_) FROM table_name_77 WHERE range = \"unaka mountains\" AND peak_name = \"roan high bluff\" AND isolation > 1.54" }
### INSTRUCTION What language is telemarket for you? ### INPUT CREATE TABLE table_name_3 (language VARCHAR, television_service VARCHAR) ### OUTPUT SELECT language FROM table_name_3 WHERE television_service = "telemarket for you"
{ "input": "CREATE TABLE table_name_3 (language VARCHAR, television_service VARCHAR)", "instruction": "What language is telemarket for you?", "output": "SELECT language FROM table_name_3 WHERE television_service = \"telemarket for you\"" }
### INSTRUCTION What is the average round of the s position player from the college of Mississippi and has an overall less than 214? ### INPUT CREATE TABLE table_name_79 (round INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR) ### OUTPUT SELECT AVG(round) FROM table_name_79 WHERE position = "s" AND college = "mississippi" AND overall < 214
{ "input": "CREATE TABLE table_name_79 (round INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR)", "instruction": "What is the average round of the s position player from the college of Mississippi and has an overall less than 214?", "output": "SELECT AVG(round) FROM table_name_79 WHERE position = \"s\" AND college = \"mississippi\" AND overall < 214" }
### INSTRUCTION Which sport did the United States win? ### INPUT CREATE TABLE table_name_29 (sport VARCHAR, nation_represented VARCHAR) ### OUTPUT SELECT sport FROM table_name_29 WHERE nation_represented = "united states"
{ "input": "CREATE TABLE table_name_29 (sport VARCHAR, nation_represented VARCHAR)", "instruction": "Which sport did the United States win?", "output": "SELECT sport FROM table_name_29 WHERE nation_represented = \"united states\"" }
### INSTRUCTION Competition of u.s championships, and a Event of all around has what average year? ### INPUT CREATE TABLE table_name_61 (year INTEGER, competition VARCHAR, event VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_61 WHERE competition = "u.s championships" AND event = "all around"
{ "input": "CREATE TABLE table_name_61 (year INTEGER, competition VARCHAR, event VARCHAR)", "instruction": "Competition of u.s championships, and a Event of all around has what average year?", "output": "SELECT AVG(year) FROM table_name_61 WHERE competition = \"u.s championships\" AND event = \"all around\"" }
### INSTRUCTION What is the gross capacity of the unit that started commercial operation on August 28, 1987? ### INPUT CREATE TABLE table_name_17 (gross_capacity VARCHAR, commercial_operation VARCHAR) ### OUTPUT SELECT gross_capacity FROM table_name_17 WHERE commercial_operation = "august 28, 1987"
{ "input": "CREATE TABLE table_name_17 (gross_capacity VARCHAR, commercial_operation VARCHAR)", "instruction": "What is the gross capacity of the unit that started commercial operation on August 28, 1987?", "output": "SELECT gross_capacity FROM table_name_17 WHERE commercial_operation = \"august 28, 1987\"" }
### INSTRUCTION What is the average assets in billions of the company Bank of America, which has less than 49.01 billions in sales? ### INPUT CREATE TABLE table_name_70 (assets__billion_ INTEGER, company VARCHAR, sales__billion_$_ VARCHAR) ### OUTPUT SELECT AVG(assets__billion_) AS $_ FROM table_name_70 WHERE company = "bank of america" AND sales__billion_$_ < 49.01
{ "input": "CREATE TABLE table_name_70 (assets__billion_ INTEGER, company VARCHAR, sales__billion_$_ VARCHAR)", "instruction": "What is the average assets in billions of the company Bank of America, which has less than 49.01 billions in sales?", "output": "SELECT AVG(assets__billion_) AS $_ FROM table_name_70 WHERE company = \"bank of america\" AND sales__billion_$_ < 49.01" }
### INSTRUCTION Name the date for race title lakeside ### INPUT CREATE TABLE table_name_21 (date VARCHAR, race_title VARCHAR) ### OUTPUT SELECT date FROM table_name_21 WHERE race_title = "lakeside"
{ "input": "CREATE TABLE table_name_21 (date VARCHAR, race_title VARCHAR)", "instruction": "Name the date for race title lakeside", "output": "SELECT date FROM table_name_21 WHERE race_title = \"lakeside\"" }
### INSTRUCTION What Circuit has a Winning constructor of bugatti, and a Winning driver of edward bret? ### INPUT CREATE TABLE table_name_20 (circuit VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR) ### OUTPUT SELECT circuit FROM table_name_20 WHERE winning_constructor = "bugatti" AND winning_driver = "edward bret"
{ "input": "CREATE TABLE table_name_20 (circuit VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR)", "instruction": "What Circuit has a Winning constructor of bugatti, and a Winning driver of edward bret?", "output": "SELECT circuit FROM table_name_20 WHERE winning_constructor = \"bugatti\" AND winning_driver = \"edward bret\"" }
### INSTRUCTION Who did Yugoslavia play against that led to a result of 2:3? ### INPUT CREATE TABLE table_name_90 (opponent VARCHAR, results¹ VARCHAR) ### OUTPUT SELECT opponent FROM table_name_90 WHERE results¹ = "2:3"
{ "input": "CREATE TABLE table_name_90 (opponent VARCHAR, results¹ VARCHAR)", "instruction": "Who did Yugoslavia play against that led to a result of 2:3?", "output": "SELECT opponent FROM table_name_90 WHERE results¹ = \"2:3\"" }
### INSTRUCTION IN HOW MANY ISSUES WAS HARRISON FORD THE INTERVIEW SUBJECT? ### INPUT CREATE TABLE table_1566852_3 (date VARCHAR, interview_subject VARCHAR) ### OUTPUT SELECT COUNT(date) FROM table_1566852_3 WHERE interview_subject = "Harrison Ford"
{ "input": "CREATE TABLE table_1566852_3 (date VARCHAR, interview_subject VARCHAR)", "instruction": "IN HOW MANY ISSUES WAS HARRISON FORD THE INTERVIEW SUBJECT?", "output": "SELECT COUNT(date) FROM table_1566852_3 WHERE interview_subject = \"Harrison Ford\"" }
### INSTRUCTION How many patients do each physician take care of? List their names and number of patients they take care of. ### INPUT CREATE TABLE patient (PCP VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR) ### OUTPUT SELECT T1.name, COUNT(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid
{ "input": "CREATE TABLE patient (PCP VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR)", "instruction": "How many patients do each physician take care of? List their names and number of patients they take care of.", "output": "SELECT T1.name, COUNT(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid" }
### INSTRUCTION Find the email and phone number of the customers who have never filed a complaint before. ### INPUT CREATE TABLE complaints (email_address VARCHAR, phone_number VARCHAR, customer_id VARCHAR); CREATE TABLE customers (email_address VARCHAR, phone_number VARCHAR, customer_id VARCHAR) ### OUTPUT SELECT email_address, phone_number FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM complaints)
{ "input": "CREATE TABLE complaints (email_address VARCHAR, phone_number VARCHAR, customer_id VARCHAR); CREATE TABLE customers (email_address VARCHAR, phone_number VARCHAR, customer_id VARCHAR)", "instruction": "Find the email and phone number of the customers who have never filed a complaint before.", "output": "SELECT email_address, phone_number FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM complaints)" }
### INSTRUCTION How many executions in persona have a number with known sentences of 2 (1543–1544)? ### INPUT CREATE TABLE table_name_92 (executions_in_persona VARCHAR, number_of_autos_da_fé_with_known_sentences VARCHAR) ### OUTPUT SELECT executions_in_persona FROM table_name_92 WHERE number_of_autos_da_fé_with_known_sentences = "2 (1543–1544)"
{ "input": "CREATE TABLE table_name_92 (executions_in_persona VARCHAR, number_of_autos_da_fé_with_known_sentences VARCHAR)", "instruction": "How many executions in persona have a number with known sentences of 2 (1543–1544)?", "output": "SELECT executions_in_persona FROM table_name_92 WHERE number_of_autos_da_fé_with_known_sentences = \"2 (1543–1544)\"" }
### INSTRUCTION What is the name of the team that had 1 win and a rating of +85? ### INPUT CREATE TABLE table_name_51 (team VARCHAR, win__number VARCHAR, rating VARCHAR) ### OUTPUT SELECT team FROM table_name_51 WHERE win__number = "1" AND rating = "+85"
{ "input": "CREATE TABLE table_name_51 (team VARCHAR, win__number VARCHAR, rating VARCHAR)", "instruction": "What is the name of the team that had 1 win and a rating of +85?", "output": "SELECT team FROM table_name_51 WHERE win__number = \"1\" AND rating = \"+85\"" }
### INSTRUCTION what is the capacity for the team šibenik? ### INPUT CREATE TABLE table_name_35 (capacity INTEGER, team VARCHAR) ### OUTPUT SELECT MIN(capacity) FROM table_name_35 WHERE team = "šibenik"
{ "input": "CREATE TABLE table_name_35 (capacity INTEGER, team VARCHAR)", "instruction": "what is the capacity for the team šibenik?", "output": "SELECT MIN(capacity) FROM table_name_35 WHERE team = \"šibenik\"" }
### INSTRUCTION Which champion has sentosa golf club as the tournament location? ### INPUT CREATE TABLE table_name_55 (champion VARCHAR, tournament_location VARCHAR) ### OUTPUT SELECT champion FROM table_name_55 WHERE tournament_location = "sentosa golf club"
{ "input": "CREATE TABLE table_name_55 (champion VARCHAR, tournament_location VARCHAR)", "instruction": "Which champion has sentosa golf club as the tournament location?", "output": "SELECT champion FROM table_name_55 WHERE tournament_location = \"sentosa golf club\"" }
### INSTRUCTION what team has a drive name emmanuel de graffenried and a position larger than 1 as well as the date of 9/1953? ### INPUT CREATE TABLE table_name_46 (team VARCHAR, driver VARCHAR, position VARCHAR, date VARCHAR) ### OUTPUT SELECT team FROM table_name_46 WHERE position > 1 AND date = "9/1953" AND driver = "emmanuel de graffenried"
{ "input": "CREATE TABLE table_name_46 (team VARCHAR, driver VARCHAR, position VARCHAR, date VARCHAR)", "instruction": "what team has a drive name emmanuel de graffenried and a position larger than 1 as well as the date of 9/1953?", "output": "SELECT team FROM table_name_46 WHERE position > 1 AND date = \"9/1953\" AND driver = \"emmanuel de graffenried\"" }
### INSTRUCTION What is the Chipset based on with a Digital/analog signal of analog, with an Available interface of agp, with Retail name with all-in-wonder 9800? ### INPUT CREATE TABLE table_name_18 (chipset_based_on VARCHAR, retail_name VARCHAR, digital_analog_signal VARCHAR, available_interface VARCHAR) ### OUTPUT SELECT chipset_based_on FROM table_name_18 WHERE digital_analog_signal = "analog" AND available_interface = "agp" AND retail_name = "all-in-wonder 9800"
{ "input": "CREATE TABLE table_name_18 (chipset_based_on VARCHAR, retail_name VARCHAR, digital_analog_signal VARCHAR, available_interface VARCHAR)", "instruction": "What is the Chipset based on with a Digital/analog signal of analog, with an Available interface of agp, with Retail name with all-in-wonder 9800?", "output": "SELECT chipset_based_on FROM table_name_18 WHERE digital_analog_signal = \"analog\" AND available_interface = \"agp\" AND retail_name = \"all-in-wonder 9800\"" }
### INSTRUCTION What is the Sweet Potato amount when the soybean amount is 1.65? ### INPUT CREATE TABLE table_name_92 (sweet_potato_ VARCHAR, g_ VARCHAR, soybean__green__ VARCHAR, f_ VARCHAR) ### OUTPUT SELECT sweet_potato_[g_] FROM table_name_92 WHERE soybean__green__[f_] = "1.65"
{ "input": "CREATE TABLE table_name_92 (sweet_potato_ VARCHAR, g_ VARCHAR, soybean__green__ VARCHAR, f_ VARCHAR)", "instruction": "What is the Sweet Potato amount when the soybean amount is 1.65?", "output": "SELECT sweet_potato_[g_] FROM table_name_92 WHERE soybean__green__[f_] = \"1.65\"" }
### INSTRUCTION How many touchdowns are there when there were 0 extra points and Hal Weeks had left halfback? ### INPUT CREATE TABLE table_name_71 (touchdowns VARCHAR, player VARCHAR, extra_points VARCHAR, position VARCHAR) ### OUTPUT SELECT touchdowns FROM table_name_71 WHERE extra_points = 0 AND position = "left halfback" AND player = "hal weeks"
{ "input": "CREATE TABLE table_name_71 (touchdowns VARCHAR, player VARCHAR, extra_points VARCHAR, position VARCHAR)", "instruction": "How many touchdowns are there when there were 0 extra points and Hal Weeks had left halfback?", "output": "SELECT touchdowns FROM table_name_71 WHERE extra_points = 0 AND position = \"left halfback\" AND player = \"hal weeks\"" }
### INSTRUCTION When brive is the proceed to quarter final how many were eliminated from competition? ### INPUT CREATE TABLE table_27987767_3 (eliminated_from_competition VARCHAR, proceed_to_quarter_final VARCHAR) ### OUTPUT SELECT COUNT(eliminated_from_competition) FROM table_27987767_3 WHERE proceed_to_quarter_final = "Brive"
{ "input": "CREATE TABLE table_27987767_3 (eliminated_from_competition VARCHAR, proceed_to_quarter_final VARCHAR)", "instruction": "When brive is the proceed to quarter final how many were eliminated from competition? ", "output": "SELECT COUNT(eliminated_from_competition) FROM table_27987767_3 WHERE proceed_to_quarter_final = \"Brive\"" }
### INSTRUCTION How many original air dates were there for episode 22? ### INPUT CREATE TABLE table_24798489_2 (original_airdate VARCHAR, episode_number VARCHAR) ### OUTPUT SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE episode_number = 22
{ "input": "CREATE TABLE table_24798489_2 (original_airdate VARCHAR, episode_number VARCHAR)", "instruction": "How many original air dates were there for episode 22?", "output": "SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE episode_number = 22" }
### INSTRUCTION Name the feb 2010 for january 2010 for 6.2% ### INPUT CREATE TABLE table_25256368_1 (february_2010 VARCHAR, january_2010 VARCHAR) ### OUTPUT SELECT february_2010 FROM table_25256368_1 WHERE january_2010 = "6.2%"
{ "input": "CREATE TABLE table_25256368_1 (february_2010 VARCHAR, january_2010 VARCHAR)", "instruction": "Name the feb 2010 for january 2010 for 6.2%", "output": "SELECT february_2010 FROM table_25256368_1 WHERE january_2010 = \"6.2%\"" }
### INSTRUCTION Find the pixels of the screen modes that are used by both phones with full accreditation types and phones with Provisional accreditation types. ### INPUT CREATE TABLE phone (screen_mode VARCHAR, Accreditation_type VARCHAR); CREATE TABLE screen_mode (pixels VARCHAR, Graphics_mode VARCHAR) ### OUTPUT SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Provisional' INTERSECT SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Full'
{ "input": "CREATE TABLE phone (screen_mode VARCHAR, Accreditation_type VARCHAR); CREATE TABLE screen_mode (pixels VARCHAR, Graphics_mode VARCHAR)", "instruction": "Find the pixels of the screen modes that are used by both phones with full accreditation types and phones with Provisional accreditation types.", "output": "SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Provisional' INTERSECT SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Full'" }
### INSTRUCTION What is the average Tie no when the date is Birmingham City? ### INPUT CREATE TABLE table_name_22 (tie_no INTEGER, date VARCHAR) ### OUTPUT SELECT AVG(tie_no) FROM table_name_22 WHERE date = "birmingham city"
{ "input": "CREATE TABLE table_name_22 (tie_no INTEGER, date VARCHAR)", "instruction": "What is the average Tie no when the date is Birmingham City?", "output": "SELECT AVG(tie_no) FROM table_name_22 WHERE date = \"birmingham city\"" }
### INSTRUCTION Name the original title for years before 1977 and author of lagercrantz olof lagercrantz ### INPUT CREATE TABLE table_name_53 (original_title VARCHAR, year VARCHAR, author VARCHAR) ### OUTPUT SELECT original_title FROM table_name_53 WHERE year < 1977 AND author = "lagercrantz olof lagercrantz"
{ "input": "CREATE TABLE table_name_53 (original_title VARCHAR, year VARCHAR, author VARCHAR)", "instruction": "Name the original title for years before 1977 and author of lagercrantz olof lagercrantz", "output": "SELECT original_title FROM table_name_53 WHERE year < 1977 AND author = \"lagercrantz olof lagercrantz\"" }
### INSTRUCTION What was the attendance for the game at groves stadium • winston-salem, nc with a result of L 0-14? ### INPUT CREATE TABLE table_name_86 (attendance VARCHAR, location VARCHAR, result VARCHAR) ### OUTPUT SELECT COUNT(attendance) FROM table_name_86 WHERE location = "groves stadium • winston-salem, nc" AND result = "l 0-14"
{ "input": "CREATE TABLE table_name_86 (attendance VARCHAR, location VARCHAR, result VARCHAR)", "instruction": "What was the attendance for the game at groves stadium • winston-salem, nc with a result of L 0-14?", "output": "SELECT COUNT(attendance) FROM table_name_86 WHERE location = \"groves stadium • winston-salem, nc\" AND result = \"l 0-14\"" }
### INSTRUCTION What is the date of appointment for the date of vacancy of 22 august 2010? ### INPUT CREATE TABLE table_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR) ### OUTPUT SELECT date_of_appointment FROM table_26976615_3 WHERE date_of_vacancy = "22 August 2010"
{ "input": "CREATE TABLE table_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)", "instruction": "What is the date of appointment for the date of vacancy of 22 august 2010?", "output": "SELECT date_of_appointment FROM table_26976615_3 WHERE date_of_vacancy = \"22 August 2010\"" }
### INSTRUCTION What is the medal named fatuma roba category:articles with hcards for? ### INPUT CREATE TABLE table_name_73 (medal VARCHAR, name VARCHAR) ### OUTPUT SELECT medal FROM table_name_73 WHERE name = "fatuma roba category:articles with hcards"
{ "input": "CREATE TABLE table_name_73 (medal VARCHAR, name VARCHAR)", "instruction": "What is the medal named fatuma roba category:articles with hcards for?", "output": "SELECT medal FROM table_name_73 WHERE name = \"fatuma roba category:articles with hcards\"" }
### INSTRUCTION What AP increase has an AP duration of 0.75? ### INPUT CREATE TABLE table_name_68 (ap_increase__mv_ VARCHAR, ap_duration__ms_ VARCHAR) ### OUTPUT SELECT ap_increase__mv_ FROM table_name_68 WHERE ap_duration__ms_ = "0.75"
{ "input": "CREATE TABLE table_name_68 (ap_increase__mv_ VARCHAR, ap_duration__ms_ VARCHAR)", "instruction": "What AP increase has an AP duration of 0.75?", "output": "SELECT ap_increase__mv_ FROM table_name_68 WHERE ap_duration__ms_ = \"0.75\"" }
### INSTRUCTION Who wrote episode with production code 1.01? ### INPUT CREATE TABLE table_28089666_1 (written_by VARCHAR, production_code VARCHAR) ### OUTPUT SELECT written_by FROM table_28089666_1 WHERE production_code = "1.01"
{ "input": "CREATE TABLE table_28089666_1 (written_by VARCHAR, production_code VARCHAR)", "instruction": "Who wrote episode with production code 1.01?", "output": "SELECT written_by FROM table_28089666_1 WHERE production_code = \"1.01\"" }
### INSTRUCTION Who was the winner for a Sprint Classification and Young Classification to Mark Cavendish and Garmin-Chipotle-H30 for team? ### INPUT CREATE TABLE table_name_42 (stage__winner_ VARCHAR, young_classification VARCHAR, sprint_classification VARCHAR, team_classification VARCHAR) ### OUTPUT SELECT stage__winner_ FROM table_name_42 WHERE sprint_classification = "mark cavendish" AND team_classification = "garmin-chipotle-h30" AND young_classification = "mark cavendish"
{ "input": "CREATE TABLE table_name_42 (stage__winner_ VARCHAR, young_classification VARCHAR, sprint_classification VARCHAR, team_classification VARCHAR)", "instruction": "Who was the winner for a Sprint Classification and Young Classification to Mark Cavendish and Garmin-Chipotle-H30 for team?", "output": "SELECT stage__winner_ FROM table_name_42 WHERE sprint_classification = \"mark cavendish\" AND team_classification = \"garmin-chipotle-h30\" AND young_classification = \"mark cavendish\"" }
### INSTRUCTION Name the right ascension for sagittarius and NGC number larger than 6522 for open cluster and declination of °22′ ### INPUT CREATE TABLE table_name_78 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, object_type VARCHAR, constellation VARCHAR, ngc_number VARCHAR) ### OUTPUT SELECT right_ascension___j2000__ FROM table_name_78 WHERE constellation = "sagittarius" AND ngc_number > 6522 AND object_type = "open cluster" AND declination___j2000__ = "°22′"
{ "input": "CREATE TABLE table_name_78 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, object_type VARCHAR, constellation VARCHAR, ngc_number VARCHAR)", "instruction": "Name the right ascension for sagittarius and NGC number larger than 6522 for open cluster and declination of °22′", "output": "SELECT right_ascension___j2000__ FROM table_name_78 WHERE constellation = \"sagittarius\" AND ngc_number > 6522 AND object_type = \"open cluster\" AND declination___j2000__ = \"°22′\"" }
### INSTRUCTION What is Teleplay, when Season is greater than 1.1, and when First Broadcast is "February 20, 1981"? ### INPUT CREATE TABLE table_name_37 (teleplay VARCHAR, season VARCHAR, first_broadcast VARCHAR) ### OUTPUT SELECT teleplay FROM table_name_37 WHERE season > 1.1 AND first_broadcast = "february 20, 1981"
{ "input": "CREATE TABLE table_name_37 (teleplay VARCHAR, season VARCHAR, first_broadcast VARCHAR)", "instruction": "What is Teleplay, when Season is greater than 1.1, and when First Broadcast is \"February 20, 1981\"?", "output": "SELECT teleplay FROM table_name_37 WHERE season > 1.1 AND first_broadcast = \"february 20, 1981\"" }
### INSTRUCTION Which city does staff with first name as Janessa and last name as Sawayn live? ### INPUT CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR) ### OUTPUT SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
{ "input": "CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)", "instruction": "Which city does staff with first name as Janessa and last name as Sawayn live?", "output": "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\"" }
### INSTRUCTION What is the Japanese title for the episode bigger than 10 on TBS with average ratings of 14.8%? ### INPUT CREATE TABLE table_name_70 (japanese_title VARCHAR, average_ratings VARCHAR, episodes VARCHAR, tv_station VARCHAR) ### OUTPUT SELECT japanese_title FROM table_name_70 WHERE episodes > 10 AND tv_station = "tbs" AND average_ratings = "14.8%"
{ "input": "CREATE TABLE table_name_70 (japanese_title VARCHAR, average_ratings VARCHAR, episodes VARCHAR, tv_station VARCHAR)", "instruction": "What is the Japanese title for the episode bigger than 10 on TBS with average ratings of 14.8%?", "output": "SELECT japanese_title FROM table_name_70 WHERE episodes > 10 AND tv_station = \"tbs\" AND average_ratings = \"14.8%\"" }
### INSTRUCTION Date for scotiabank place with less than 20 points, game larger than 16, and an opponent of montreal canadiens? ### INPUT CREATE TABLE table_name_40 (date VARCHAR, opponent VARCHAR, game VARCHAR, location VARCHAR, points VARCHAR) ### OUTPUT SELECT date FROM table_name_40 WHERE location = "scotiabank place" AND points < 20 AND game > 16 AND opponent = "montreal canadiens"
{ "input": "CREATE TABLE table_name_40 (date VARCHAR, opponent VARCHAR, game VARCHAR, location VARCHAR, points VARCHAR)", "instruction": "Date for scotiabank place with less than 20 points, game larger than 16, and an opponent of montreal canadiens?", "output": "SELECT date FROM table_name_40 WHERE location = \"scotiabank place\" AND points < 20 AND game > 16 AND opponent = \"montreal canadiens\"" }
### INSTRUCTION Which Round has a Player of sammy okpro? ### INPUT CREATE TABLE table_name_32 (round INTEGER, player VARCHAR) ### OUTPUT SELECT AVG(round) FROM table_name_32 WHERE player = "sammy okpro"
{ "input": "CREATE TABLE table_name_32 (round INTEGER, player VARCHAR)", "instruction": "Which Round has a Player of sammy okpro?", "output": "SELECT AVG(round) FROM table_name_32 WHERE player = \"sammy okpro\"" }
### INSTRUCTION how many types of organization were founded in san diego state university? ### INPUT CREATE TABLE table_2538117_2 (type VARCHAR, founding_university VARCHAR) ### OUTPUT SELECT COUNT(type) FROM table_2538117_2 WHERE founding_university = "San Diego State University"
{ "input": "CREATE TABLE table_2538117_2 (type VARCHAR, founding_university VARCHAR)", "instruction": "how many types of organization were founded in san diego state university? ", "output": "SELECT COUNT(type) FROM table_2538117_2 WHERE founding_university = \"San Diego State University\"" }
### INSTRUCTION Which venue does Mardan sponsor? ### INPUT CREATE TABLE table_17356873_1 (venue VARCHAR, shirt_sponsor VARCHAR) ### OUTPUT SELECT venue FROM table_17356873_1 WHERE shirt_sponsor = "Mardan"
{ "input": "CREATE TABLE table_17356873_1 (venue VARCHAR, shirt_sponsor VARCHAR)", "instruction": "Which venue does Mardan sponsor?", "output": "SELECT venue FROM table_17356873_1 WHERE shirt_sponsor = \"Mardan\"" }
### INSTRUCTION List all areas within 1000 km in the city of Lubelskie? ### INPUT CREATE TABLE table_11654169_1 (area_in_1000km²__1930_ VARCHAR, voivodeship_separate_city VARCHAR) ### OUTPUT SELECT area_in_1000km²__1930_ FROM table_11654169_1 WHERE voivodeship_separate_city = "lubelskie"
{ "input": "CREATE TABLE table_11654169_1 (area_in_1000km²__1930_ VARCHAR, voivodeship_separate_city VARCHAR)", "instruction": "List all areas within 1000 km in the city of Lubelskie?", "output": "SELECT area_in_1000km²__1930_ FROM table_11654169_1 WHERE voivodeship_separate_city = \"lubelskie\"" }
### INSTRUCTION Show the names of products that are in at least two events. ### INPUT CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR) ### OUTPUT SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR)", "instruction": "Show the names of products that are in at least two events.", "output": "SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2" }
### INSTRUCTION What day was kibawe created? ### INPUT CREATE TABLE table_261222_1 (date_of_creation VARCHAR, city___municipality VARCHAR) ### OUTPUT SELECT date_of_creation FROM table_261222_1 WHERE city___municipality = "Kibawe"
{ "input": "CREATE TABLE table_261222_1 (date_of_creation VARCHAR, city___municipality VARCHAR)", "instruction": "What day was kibawe created?", "output": "SELECT date_of_creation FROM table_261222_1 WHERE city___municipality = \"Kibawe\"" }
### INSTRUCTION What rank has a gold greater than 0, 0 as the bronze, with germany (ger) as the nation? ### INPUT CREATE TABLE table_name_20 (rank VARCHAR, nation VARCHAR, gold VARCHAR, bronze VARCHAR) ### OUTPUT SELECT rank FROM table_name_20 WHERE gold > 0 AND bronze = 0 AND nation = "germany (ger)"
{ "input": "CREATE TABLE table_name_20 (rank VARCHAR, nation VARCHAR, gold VARCHAR, bronze VARCHAR)", "instruction": "What rank has a gold greater than 0, 0 as the bronze, with germany (ger) as the nation?", "output": "SELECT rank FROM table_name_20 WHERE gold > 0 AND bronze = 0 AND nation = \"germany (ger)\"" }
### INSTRUCTION what is the average population when the regional county municipality is le domaine-du-roy, the type is m and the region is less than 2? ### INPUT CREATE TABLE table_name_19 (population INTEGER, region VARCHAR, regional_county_municipality VARCHAR, type VARCHAR) ### OUTPUT SELECT AVG(population) FROM table_name_19 WHERE regional_county_municipality = "le domaine-du-roy" AND type = "m" AND region < 2
{ "input": "CREATE TABLE table_name_19 (population INTEGER, region VARCHAR, regional_county_municipality VARCHAR, type VARCHAR)", "instruction": "what is the average population when the regional county municipality is le domaine-du-roy, the type is m and the region is less than 2?", "output": "SELECT AVG(population) FROM table_name_19 WHERE regional_county_municipality = \"le domaine-du-roy\" AND type = \"m\" AND region < 2" }
### INSTRUCTION Which Competition has a Venue of Seoul, and Result of 4-1? ### INPUT CREATE TABLE table_name_36 (competition VARCHAR, venue VARCHAR, result VARCHAR) ### OUTPUT SELECT competition FROM table_name_36 WHERE venue = "seoul" AND result = "4-1"
{ "input": "CREATE TABLE table_name_36 (competition VARCHAR, venue VARCHAR, result VARCHAR)", "instruction": "Which Competition has a Venue of Seoul, and Result of 4-1?", "output": "SELECT competition FROM table_name_36 WHERE venue = \"seoul\" AND result = \"4-1\"" }
### INSTRUCTION What year was Teen Angels 2 nominated? ### INPUT CREATE TABLE table_name_19 (year VARCHAR, nominated VARCHAR) ### OUTPUT SELECT year FROM table_name_19 WHERE nominated = "teen angels 2"
{ "input": "CREATE TABLE table_name_19 (year VARCHAR, nominated VARCHAR)", "instruction": "What year was Teen Angels 2 nominated?", "output": "SELECT year FROM table_name_19 WHERE nominated = \"teen angels 2\"" }
### INSTRUCTION On what date was there a draw at Sydney Cricket Ground? ### INPUT CREATE TABLE table_name_83 (date VARCHAR, result VARCHAR, venue VARCHAR) ### OUTPUT SELECT date FROM table_name_83 WHERE result = "draw" AND venue = "sydney cricket ground"
{ "input": "CREATE TABLE table_name_83 (date VARCHAR, result VARCHAR, venue VARCHAR)", "instruction": "On what date was there a draw at Sydney Cricket Ground?", "output": "SELECT date FROM table_name_83 WHERE result = \"draw\" AND venue = \"sydney cricket ground\"" }
### INSTRUCTION What is the last year that Andre Agassi was the final opponent? ### INPUT CREATE TABLE table_22834834_3 (year INTEGER, opponent_in_the_final VARCHAR) ### OUTPUT SELECT MAX(year) FROM table_22834834_3 WHERE opponent_in_the_final = "Andre Agassi"
{ "input": "CREATE TABLE table_22834834_3 (year INTEGER, opponent_in_the_final VARCHAR)", "instruction": "What is the last year that Andre Agassi was the final opponent?", "output": "SELECT MAX(year) FROM table_22834834_3 WHERE opponent_in_the_final = \"Andre Agassi\"" }
### INSTRUCTION In what place did the player with a score of 66-67=133 come in? ### INPUT CREATE TABLE table_name_98 (place VARCHAR, score VARCHAR) ### OUTPUT SELECT place FROM table_name_98 WHERE score = 66 - 67 = 133
{ "input": "CREATE TABLE table_name_98 (place VARCHAR, score VARCHAR)", "instruction": "In what place did the player with a score of 66-67=133 come in?", "output": "SELECT place FROM table_name_98 WHERE score = 66 - 67 = 133" }
### INSTRUCTION During the Tournament of 1st Division El Salvador, what was the Finish for the Team of Platense Municipal Zacatecoluca? ### INPUT CREATE TABLE table_name_25 (finish VARCHAR, team VARCHAR, tournament VARCHAR) ### OUTPUT SELECT finish FROM table_name_25 WHERE team = "platense municipal zacatecoluca" AND tournament = "1st division el salvador"
{ "input": "CREATE TABLE table_name_25 (finish VARCHAR, team VARCHAR, tournament VARCHAR)", "instruction": "During the Tournament of 1st Division El Salvador, what was the Finish for the Team of Platense Municipal Zacatecoluca?", "output": "SELECT finish FROM table_name_25 WHERE team = \"platense municipal zacatecoluca\" AND tournament = \"1st division el salvador\"" }
### INSTRUCTION What joined year does Dropped Athletics have? ### INPUT CREATE TABLE table_1973729_2 (joined INTEGER, current_conference VARCHAR) ### OUTPUT SELECT MAX(joined) FROM table_1973729_2 WHERE current_conference = "Dropped athletics"
{ "input": "CREATE TABLE table_1973729_2 (joined INTEGER, current_conference VARCHAR)", "instruction": "What joined year does Dropped Athletics have?", "output": "SELECT MAX(joined) FROM table_1973729_2 WHERE current_conference = \"Dropped athletics\"" }
### INSTRUCTION What year did Bangkok University and Chunnam Dragons have a score of 0-0? ### INPUT CREATE TABLE table_name_31 (season INTEGER, team_2 VARCHAR, team_1 VARCHAR, score VARCHAR) ### OUTPUT SELECT SUM(season) FROM table_name_31 WHERE team_1 = "bangkok university" AND score = "0-0" AND team_2 = "chunnam dragons"
{ "input": "CREATE TABLE table_name_31 (season INTEGER, team_2 VARCHAR, team_1 VARCHAR, score VARCHAR)", "instruction": "What year did Bangkok University and Chunnam Dragons have a score of 0-0?", "output": "SELECT SUM(season) FROM table_name_31 WHERE team_1 = \"bangkok university\" AND score = \"0-0\" AND team_2 = \"chunnam dragons\"" }
### INSTRUCTION Who was the away team when Melbourne was the home team? ### INPUT CREATE TABLE table_name_35 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team FROM table_name_35 WHERE home_team = "melbourne"
{ "input": "CREATE TABLE table_name_35 (away_team VARCHAR, home_team VARCHAR)", "instruction": "Who was the away team when Melbourne was the home team?", "output": "SELECT away_team FROM table_name_35 WHERE home_team = \"melbourne\"" }