text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is the total number of games played of the club with less than 40 goals scored, 9 losses, 39 goals conceded, and more than 2 draws? ### INPUT CREATE TABLE table_name_33 (games_played VARCHAR, draws VARCHAR, goals_conceded VARCHAR, goals_scored VARCHAR, loses VARCHAR) ### OUTPUT SELECT COUNT(games_played) FROM table_name_33 WHERE goals_scored < 40 AND loses = 9 AND goals_conceded = 39 AND draws > 2
{ "input": "CREATE TABLE table_name_33 (games_played VARCHAR, draws VARCHAR, goals_conceded VARCHAR, goals_scored VARCHAR, loses VARCHAR)", "instruction": "What is the total number of games played of the club with less than 40 goals scored, 9 losses, 39 goals conceded, and more than 2 draws?", "output": "SELECT COUNT(games_played) FROM table_name_33 WHERE goals_scored < 40 AND loses = 9 AND goals_conceded = 39 AND draws > 2" }
### INSTRUCTION How many losses are there in the CD Sabadell club with a goal difference less than -2, and more than 38 played? ### INPUT CREATE TABLE table_name_26 (losses INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR) ### OUTPUT SELECT SUM(losses) FROM table_name_26 WHERE goal_difference < -2 AND club = "cd sabadell" AND played > 38
{ "input": "CREATE TABLE table_name_26 (losses INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)", "instruction": "How many losses are there in the CD Sabadell club with a goal difference less than -2, and more than 38 played?", "output": "SELECT SUM(losses) FROM table_name_26 WHERE goal_difference < -2 AND club = \"cd sabadell\" AND played > 38" }
### INSTRUCTION What's the highest First Elected with a Result of Re-elected and DIstrict of California 5? ### INPUT CREATE TABLE table_name_21 (first_elected INTEGER, result VARCHAR, district VARCHAR) ### OUTPUT SELECT MAX(first_elected) FROM table_name_21 WHERE result = "re-elected" AND district = "california 5"
{ "input": "CREATE TABLE table_name_21 (first_elected INTEGER, result VARCHAR, district VARCHAR)", "instruction": "What's the highest First Elected with a Result of Re-elected and DIstrict of California 5?", "output": "SELECT MAX(first_elected) FROM table_name_21 WHERE result = \"re-elected\" AND district = \"california 5\"" }
### INSTRUCTION what is the district where the vacator is vacant? ### INPUT CREATE TABLE table_2192067_4 (district VARCHAR, vacator VARCHAR) ### OUTPUT SELECT district FROM table_2192067_4 WHERE vacator = "Vacant"
{ "input": "CREATE TABLE table_2192067_4 (district VARCHAR, vacator VARCHAR)", "instruction": "what is the district where the vacator is vacant?", "output": "SELECT district FROM table_2192067_4 WHERE vacator = \"Vacant\"" }
### INSTRUCTION What group of juventus had an attendance larger than 47,786? ### INPUT CREATE TABLE table_name_2 (group_position VARCHAR, opponents VARCHAR, attendance VARCHAR) ### OUTPUT SELECT group_position FROM table_name_2 WHERE opponents = "juventus" AND attendance > 47 OFFSET 786
{ "input": "CREATE TABLE table_name_2 (group_position VARCHAR, opponents VARCHAR, attendance VARCHAR)", "instruction": "What group of juventus had an attendance larger than 47,786?", "output": "SELECT group_position FROM table_name_2 WHERE opponents = \"juventus\" AND attendance > 47 OFFSET 786" }
### INSTRUCTION Name the most attendance for giants points of 10 ### INPUT CREATE TABLE table_16661199_2 (attendance INTEGER, giants_points VARCHAR) ### OUTPUT SELECT MAX(attendance) FROM table_16661199_2 WHERE giants_points = 10
{ "input": "CREATE TABLE table_16661199_2 (attendance INTEGER, giants_points VARCHAR)", "instruction": "Name the most attendance for giants points of 10", "output": "SELECT MAX(attendance) FROM table_16661199_2 WHERE giants_points = 10" }
### INSTRUCTION What was the informational CVBS Lines of the encoding with max character of 32 and has B (global) standard? ### INPUT CREATE TABLE table_1926240_1 (informational_cvbs_lines VARCHAR, max_characters__per_page_row_ VARCHAR, standard VARCHAR) ### OUTPUT SELECT informational_cvbs_lines FROM table_1926240_1 WHERE max_characters__per_page_row_ = 32 AND standard = "B (global)"
{ "input": "CREATE TABLE table_1926240_1 (informational_cvbs_lines VARCHAR, max_characters__per_page_row_ VARCHAR, standard VARCHAR)", "instruction": "What was the informational CVBS Lines of the encoding with max character of 32 and has B (global) standard?", "output": "SELECT informational_cvbs_lines FROM table_1926240_1 WHERE max_characters__per_page_row_ = 32 AND standard = \"B (global)\"" }
### INSTRUCTION Show the facility codes of apartments with more than 4 bedrooms. ### INPUT CREATE TABLE Apartment_Facilities (facility_code VARCHAR, apt_id VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR, bedroom_count INTEGER) ### OUTPUT SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4
{ "input": "CREATE TABLE Apartment_Facilities (facility_code VARCHAR, apt_id VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR, bedroom_count INTEGER)", "instruction": "Show the facility codes of apartments with more than 4 bedrooms.", "output": "SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4" }
### INSTRUCTION Winchester Community school, which plays IHSAA class AA football, is located where? ### INPUT CREATE TABLE table_name_99 (location VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) ### OUTPUT SELECT location FROM table_name_99 WHERE ihsaa_football_class = "aa" AND school = "winchester community"
{ "input": "CREATE TABLE table_name_99 (location VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR)", "instruction": "Winchester Community school, which plays IHSAA class AA football, is located where?", "output": "SELECT location FROM table_name_99 WHERE ihsaa_football_class = \"aa\" AND school = \"winchester community\"" }
### INSTRUCTION Which Payment has a Type of 2d, and a Release date of january 2003? ### INPUT CREATE TABLE table_name_31 (payment VARCHAR, type VARCHAR, release_date VARCHAR) ### OUTPUT SELECT payment FROM table_name_31 WHERE type = "2d" AND release_date = "january 2003"
{ "input": "CREATE TABLE table_name_31 (payment VARCHAR, type VARCHAR, release_date VARCHAR)", "instruction": "Which Payment has a Type of 2d, and a Release date of january 2003?", "output": "SELECT payment FROM table_name_31 WHERE type = \"2d\" AND release_date = \"january 2003\"" }
### INSTRUCTION What is Record, when Location is "Des Moines, Iowa , United States", and when Method is "Submission (arm-triangle choke)"? ### INPUT CREATE TABLE table_name_31 (record VARCHAR, location VARCHAR, method VARCHAR) ### OUTPUT SELECT record FROM table_name_31 WHERE location = "des moines, iowa , united states" AND method = "submission (arm-triangle choke)"
{ "input": "CREATE TABLE table_name_31 (record VARCHAR, location VARCHAR, method VARCHAR)", "instruction": "What is Record, when Location is \"Des Moines, Iowa , United States\", and when Method is \"Submission (arm-triangle choke)\"?", "output": "SELECT record FROM table_name_31 WHERE location = \"des moines, iowa , united states\" AND method = \"submission (arm-triangle choke)\"" }
### INSTRUCTION Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE. ### INPUT CREATE TABLE COURSE (DNO VARCHAR, CName VARCHAR); CREATE TABLE DEPARTMENT (Dname VARCHAR, Room VARCHAR, DNO VARCHAR) ### OUTPUT SELECT T2.Dname, T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = "INTRODUCTION TO COMPUTER SCIENCE"
{ "input": "CREATE TABLE COURSE (DNO VARCHAR, CName VARCHAR); CREATE TABLE DEPARTMENT (Dname VARCHAR, Room VARCHAR, DNO VARCHAR)", "instruction": "Find the department name and room of the course INTRODUCTION TO COMPUTER SCIENCE.", "output": "SELECT T2.Dname, T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = \"INTRODUCTION TO COMPUTER SCIENCE\"" }
### INSTRUCTION What is the Black (Hispanic/Non-Hispanic) value having a white (Hispanic/Non-Hispanic) under 80.6, Asian (Hispanic/Non-Hispanic) of 0.1, Amerindian (Hispanic/Non-Hispanic) under 0.6000000000000001, and municipality of Vega Baja? ### INPUT CREATE TABLE table_name_63 (black__both_hispanic_and_non_hispanic_ VARCHAR, municipality__2010_ VARCHAR, amerindian__both_hispanic_and_non_hispanic_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR, n_asia__both_hispanic_and_non_hispanic_ VARCHAR) ### OUTPUT SELECT black__both_hispanic_and_non_hispanic_ FROM table_name_63 WHERE white__both_hispanic_and_non_hispanic_ < 80.6 AND n_asia__both_hispanic_and_non_hispanic_ = 0.1 AND amerindian__both_hispanic_and_non_hispanic_ < 0.6000000000000001 AND municipality__2010_ = "vega baja"
{ "input": "CREATE TABLE table_name_63 (black__both_hispanic_and_non_hispanic_ VARCHAR, municipality__2010_ VARCHAR, amerindian__both_hispanic_and_non_hispanic_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR, n_asia__both_hispanic_and_non_hispanic_ VARCHAR)", "instruction": "What is the Black (Hispanic/Non-Hispanic) value having a white (Hispanic/Non-Hispanic) under 80.6, Asian (Hispanic/Non-Hispanic) of 0.1, Amerindian (Hispanic/Non-Hispanic) under 0.6000000000000001, and municipality of Vega Baja?", "output": "SELECT black__both_hispanic_and_non_hispanic_ FROM table_name_63 WHERE white__both_hispanic_and_non_hispanic_ < 80.6 AND n_asia__both_hispanic_and_non_hispanic_ = 0.1 AND amerindian__both_hispanic_and_non_hispanic_ < 0.6000000000000001 AND municipality__2010_ = \"vega baja\"" }
### INSTRUCTION What is the highest rank of Venezuela, which has more than 9 bronze medals? ### INPUT CREATE TABLE table_name_54 (rank INTEGER, nation VARCHAR, bronze VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_54 WHERE nation = "venezuela" AND bronze > 9
{ "input": "CREATE TABLE table_name_54 (rank INTEGER, nation VARCHAR, bronze VARCHAR)", "instruction": "What is the highest rank of Venezuela, which has more than 9 bronze medals?", "output": "SELECT MIN(rank) FROM table_name_54 WHERE nation = \"venezuela\" AND bronze > 9" }
### INSTRUCTION From what series is Peck Up Your Troubles? ### INPUT CREATE TABLE table_name_66 (series VARCHAR, title VARCHAR) ### OUTPUT SELECT series FROM table_name_66 WHERE title = "peck up your troubles"
{ "input": "CREATE TABLE table_name_66 (series VARCHAR, title VARCHAR)", "instruction": "From what series is Peck Up Your Troubles?", "output": "SELECT series FROM table_name_66 WHERE title = \"peck up your troubles\"" }
### INSTRUCTION Who led sprints classification when Chris Horner led general classification? ### INPUT CREATE TABLE table_26257223_13 (sprints_classification VARCHAR, general_classification VARCHAR) ### OUTPUT SELECT sprints_classification FROM table_26257223_13 WHERE general_classification = "Chris Horner"
{ "input": "CREATE TABLE table_26257223_13 (sprints_classification VARCHAR, general_classification VARCHAR)", "instruction": "Who led sprints classification when Chris Horner led general classification?", "output": "SELECT sprints_classification FROM table_26257223_13 WHERE general_classification = \"Chris Horner\"" }
### INSTRUCTION What's the latest original air date with more than 10 episodes and a DVD Region 2 release date of 23 april 2012? ### INPUT CREATE TABLE table_name_17 (original_air_date INTEGER, dvd_region_2_release_date VARCHAR, number_of_episodes VARCHAR) ### OUTPUT SELECT MAX(original_air_date) FROM table_name_17 WHERE dvd_region_2_release_date = "23 april 2012" AND number_of_episodes > 10
{ "input": "CREATE TABLE table_name_17 (original_air_date INTEGER, dvd_region_2_release_date VARCHAR, number_of_episodes VARCHAR)", "instruction": "What's the latest original air date with more than 10 episodes and a DVD Region 2 release date of 23 april 2012?", "output": "SELECT MAX(original_air_date) FROM table_name_17 WHERE dvd_region_2_release_date = \"23 april 2012\" AND number_of_episodes > 10" }
### INSTRUCTION What is the set 5 if the Date is jun 7, and a Set 4 is 21-25? ### INPUT CREATE TABLE table_name_65 (set_5 VARCHAR, date VARCHAR, set_4 VARCHAR) ### OUTPUT SELECT set_5 FROM table_name_65 WHERE date = "jun 7" AND set_4 = "21-25"
{ "input": "CREATE TABLE table_name_65 (set_5 VARCHAR, date VARCHAR, set_4 VARCHAR)", "instruction": "What is the set 5 if the Date is jun 7, and a Set 4 is 21-25?", "output": "SELECT set_5 FROM table_name_65 WHERE date = \"jun 7\" AND set_4 = \"21-25\"" }
### INSTRUCTION Name the least hits for year less than 1920 and player of ed delahanty ### INPUT CREATE TABLE table_name_28 (hits INTEGER, year VARCHAR, player VARCHAR) ### OUTPUT SELECT MIN(hits) FROM table_name_28 WHERE year < 1920 AND player = "ed delahanty"
{ "input": "CREATE TABLE table_name_28 (hits INTEGER, year VARCHAR, player VARCHAR)", "instruction": "Name the least hits for year less than 1920 and player of ed delahanty", "output": "SELECT MIN(hits) FROM table_name_28 WHERE year < 1920 AND player = \"ed delahanty\"" }
### INSTRUCTION Find the team names of the universities whose enrollments are smaller than the average enrollment size. ### INPUT CREATE TABLE university (school_id VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, school_id VARCHAR); CREATE TABLE university (enrollment INTEGER) ### OUTPUT SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT AVG(enrollment) FROM university)
{ "input": "CREATE TABLE university (school_id VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, school_id VARCHAR); CREATE TABLE university (enrollment INTEGER)", "instruction": "Find the team names of the universities whose enrollments are smaller than the average enrollment size.", "output": "SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT AVG(enrollment) FROM university)" }
### INSTRUCTION Who had a score of 70-69-70=209? ### INPUT CREATE TABLE table_name_50 (player VARCHAR, score VARCHAR) ### OUTPUT SELECT player FROM table_name_50 WHERE score = 70 - 69 - 70 = 209
{ "input": "CREATE TABLE table_name_50 (player VARCHAR, score VARCHAR)", "instruction": "Who had a score of 70-69-70=209?", "output": "SELECT player FROM table_name_50 WHERE score = 70 - 69 - 70 = 209" }
### INSTRUCTION How many Australians were in the UN commission on Korea? ### INPUT CREATE TABLE table_10121127_1 (number_of_australians_involved VARCHAR, un_operation_title VARCHAR) ### OUTPUT SELECT COUNT(number_of_australians_involved) FROM table_10121127_1 WHERE un_operation_title = "UN Commission on Korea"
{ "input": "CREATE TABLE table_10121127_1 (number_of_australians_involved VARCHAR, un_operation_title VARCHAR)", "instruction": "How many Australians were in the UN commission on Korea?", "output": "SELECT COUNT(number_of_australians_involved) FROM table_10121127_1 WHERE un_operation_title = \"UN Commission on Korea\"" }
### INSTRUCTION Which Alliance Constituency has Seamus Close, position 2 and an election smaller than 1997? ### INPUT CREATE TABLE table_name_41 (constituency VARCHAR, candidate VARCHAR, position VARCHAR, party VARCHAR, election VARCHAR) ### OUTPUT SELECT constituency FROM table_name_41 WHERE party = "alliance" AND election < 1997 AND position = 2 AND candidate = "seamus close"
{ "input": "CREATE TABLE table_name_41 (constituency VARCHAR, candidate VARCHAR, position VARCHAR, party VARCHAR, election VARCHAR)", "instruction": "Which Alliance Constituency has Seamus Close, position 2 and an election smaller than 1997?", "output": "SELECT constituency FROM table_name_41 WHERE party = \"alliance\" AND election < 1997 AND position = 2 AND candidate = \"seamus close\"" }
### INSTRUCTION What is the maximum point for climbers whose country is United Kingdom? ### INPUT CREATE TABLE climber (Points INTEGER, Country VARCHAR) ### OUTPUT SELECT MAX(Points) FROM climber WHERE Country = "United Kingdom"
{ "input": "CREATE TABLE climber (Points INTEGER, Country VARCHAR)", "instruction": "What is the maximum point for climbers whose country is United Kingdom?", "output": "SELECT MAX(Points) FROM climber WHERE Country = \"United Kingdom\"" }
### INSTRUCTION How many date of successor seated is new jersey 2nd in the district? ### INPUT CREATE TABLE table_225205_4 (date_successor_seated VARCHAR, district VARCHAR) ### OUTPUT SELECT COUNT(date_successor_seated) FROM table_225205_4 WHERE district = "New Jersey 2nd"
{ "input": "CREATE TABLE table_225205_4 (date_successor_seated VARCHAR, district VARCHAR)", "instruction": "How many date of successor seated is new jersey 2nd in the district?", "output": "SELECT COUNT(date_successor_seated) FROM table_225205_4 WHERE district = \"New Jersey 2nd\"" }
### INSTRUCTION How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439? ### INPUT CREATE TABLE table_name_78 (percentage_of_marine_area__foreez_ VARCHAR, ecozone VARCHAR, area__km²__exclusive_economic_zone VARCHAR) ### OUTPUT SELECT COUNT(percentage_of_marine_area__foreez_) FROM table_name_78 WHERE ecozone = "atlantic marine" AND area__km²__exclusive_economic_zone < 996 OFFSET 439
{ "input": "CREATE TABLE table_name_78 (percentage_of_marine_area__foreez_ VARCHAR, ecozone VARCHAR, area__km²__exclusive_economic_zone VARCHAR)", "instruction": "How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439?", "output": "SELECT COUNT(percentage_of_marine_area__foreez_) FROM table_name_78 WHERE ecozone = \"atlantic marine\" AND area__km²__exclusive_economic_zone < 996 OFFSET 439" }
### INSTRUCTION What is the overall sum of round 3? ### INPUT CREATE TABLE table_name_55 (overall INTEGER, round VARCHAR) ### OUTPUT SELECT SUM(overall) FROM table_name_55 WHERE round = 3
{ "input": "CREATE TABLE table_name_55 (overall INTEGER, round VARCHAR)", "instruction": "What is the overall sum of round 3?", "output": "SELECT SUM(overall) FROM table_name_55 WHERE round = 3" }
### INSTRUCTION One 6 November 2007 what was the manner of departure for the coach release in football league one? ### INPUT CREATE TABLE table_28181347_6 (manner_of_departure VARCHAR, date_of_appointment VARCHAR) ### OUTPUT SELECT manner_of_departure FROM table_28181347_6 WHERE date_of_appointment = "6 November 2007"
{ "input": "CREATE TABLE table_28181347_6 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)", "instruction": "One 6 November 2007 what was the manner of departure for the coach release in football league one?", "output": "SELECT manner_of_departure FROM table_28181347_6 WHERE date_of_appointment = \"6 November 2007\"" }
### INSTRUCTION Which Position has a Nationality of canada, and a Player of pat janostin? ### INPUT CREATE TABLE table_name_81 (position VARCHAR, nationality VARCHAR, player VARCHAR) ### OUTPUT SELECT position FROM table_name_81 WHERE nationality = "canada" AND player = "pat janostin"
{ "input": "CREATE TABLE table_name_81 (position VARCHAR, nationality VARCHAR, player VARCHAR)", "instruction": "Which Position has a Nationality of canada, and a Player of pat janostin?", "output": "SELECT position FROM table_name_81 WHERE nationality = \"canada\" AND player = \"pat janostin\"" }
### INSTRUCTION Who currently affiliates in San Francisco - Oakland - San Jose? ### INPUT CREATE TABLE table_1553485_1 (current_affiliation VARCHAR, city_of_license__market VARCHAR) ### OUTPUT SELECT current_affiliation FROM table_1553485_1 WHERE city_of_license__market = "San Francisco - Oakland - San Jose"
{ "input": "CREATE TABLE table_1553485_1 (current_affiliation VARCHAR, city_of_license__market VARCHAR)", "instruction": "Who currently affiliates in San Francisco - Oakland - San Jose?", "output": "SELECT current_affiliation FROM table_1553485_1 WHERE city_of_license__market = \"San Francisco - Oakland - San Jose\"" }
### INSTRUCTION What was the place when the score was 70-69-74=213? ### INPUT CREATE TABLE table_name_12 (place VARCHAR, score VARCHAR) ### OUTPUT SELECT place FROM table_name_12 WHERE score = 70 - 69 - 74 = 213
{ "input": "CREATE TABLE table_name_12 (place VARCHAR, score VARCHAR)", "instruction": "What was the place when the score was 70-69-74=213?", "output": "SELECT place FROM table_name_12 WHERE score = 70 - 69 - 74 = 213" }
### INSTRUCTION Name the Result F – A that has a League position of 1st on 4 january 1994? ### INPUT CREATE TABLE table_name_87 (result_f___a VARCHAR, league_position VARCHAR, date VARCHAR) ### OUTPUT SELECT result_f___a FROM table_name_87 WHERE league_position = "1st" AND date = "4 january 1994"
{ "input": "CREATE TABLE table_name_87 (result_f___a VARCHAR, league_position VARCHAR, date VARCHAR)", "instruction": "Name the Result F – A that has a League position of 1st on 4 january 1994?", "output": "SELECT result_f___a FROM table_name_87 WHERE league_position = \"1st\" AND date = \"4 january 1994\"" }
### INSTRUCTION What height was the player that played for the Rockets between 1992-93? ### INPUT CREATE TABLE table_11734041_1 (height_in_ft VARCHAR, years_for_rockets VARCHAR) ### OUTPUT SELECT height_in_ft FROM table_11734041_1 WHERE years_for_rockets = "1992-93"
{ "input": "CREATE TABLE table_11734041_1 (height_in_ft VARCHAR, years_for_rockets VARCHAR)", "instruction": "What height was the player that played for the Rockets between 1992-93?", "output": "SELECT height_in_ft FROM table_11734041_1 WHERE years_for_rockets = \"1992-93\"" }
### INSTRUCTION What are all the school years where class AAAA is in Gregory-Portland? ### INPUT CREATE TABLE table_14603212_5 (school_year VARCHAR, class_aAAA VARCHAR, Gregory VARCHAR, Portland VARCHAR) ### OUTPUT SELECT school_year FROM table_14603212_5 WHERE class_aAAA = Gregory - Portland
{ "input": "CREATE TABLE table_14603212_5 (school_year VARCHAR, class_aAAA VARCHAR, Gregory VARCHAR, Portland VARCHAR)", "instruction": "What are all the school years where class AAAA is in Gregory-Portland? ", "output": "SELECT school_year FROM table_14603212_5 WHERE class_aAAA = Gregory - Portland" }
### INSTRUCTION How many figures are given for the New Democratic for the polling range May 11–31, 2010? ### INPUT CREATE TABLE table_24778847_2 (new_democratic VARCHAR, date_of_polling VARCHAR) ### OUTPUT SELECT COUNT(new_democratic) FROM table_24778847_2 WHERE date_of_polling = "May 11–31, 2010"
{ "input": "CREATE TABLE table_24778847_2 (new_democratic VARCHAR, date_of_polling VARCHAR)", "instruction": "How many figures are given for the New Democratic for the polling range May 11–31, 2010?", "output": "SELECT COUNT(new_democratic) FROM table_24778847_2 WHERE date_of_polling = \"May 11–31, 2010\"" }
### INSTRUCTION What was the result for Thirst in 2010 at the Green Globe Film Awards? ### INPUT CREATE TABLE table_name_91 (result VARCHAR, group VARCHAR, film_series VARCHAR, year VARCHAR) ### OUTPUT SELECT result FROM table_name_91 WHERE film_series = "thirst" AND year = 2010 AND group = "green globe film awards"
{ "input": "CREATE TABLE table_name_91 (result VARCHAR, group VARCHAR, film_series VARCHAR, year VARCHAR)", "instruction": "What was the result for Thirst in 2010 at the Green Globe Film Awards?", "output": "SELECT result FROM table_name_91 WHERE film_series = \"thirst\" AND year = 2010 AND group = \"green globe film awards\"" }
### INSTRUCTION What is the laops of marcis auto racing? ### INPUT CREATE TABLE table_12001616_4 (laps VARCHAR, entrant VARCHAR) ### OUTPUT SELECT laps FROM table_12001616_4 WHERE entrant = "Marcis Auto Racing"
{ "input": "CREATE TABLE table_12001616_4 (laps VARCHAR, entrant VARCHAR)", "instruction": "What is the laops of marcis auto racing?", "output": "SELECT laps FROM table_12001616_4 WHERE entrant = \"Marcis Auto Racing\"" }
### INSTRUCTION What is the total number of Year of Intro(s), when Country of Origin is Soviet Union, when Type is Reusable, when Primary Cartridge is 40mm, and when Name/ Designation is RPG-29? ### INPUT CREATE TABLE table_name_87 (year_of_intro VARCHAR, name__designation VARCHAR, primary_cartridge VARCHAR, country_of_origin VARCHAR, type VARCHAR) ### OUTPUT SELECT COUNT(year_of_intro) FROM table_name_87 WHERE country_of_origin = "soviet union" AND type = "reusable" AND primary_cartridge = "40mm" AND name__designation = "rpg-29"
{ "input": "CREATE TABLE table_name_87 (year_of_intro VARCHAR, name__designation VARCHAR, primary_cartridge VARCHAR, country_of_origin VARCHAR, type VARCHAR)", "instruction": "What is the total number of Year of Intro(s), when Country of Origin is Soviet Union, when Type is Reusable, when Primary Cartridge is 40mm, and when Name/ Designation is RPG-29?", "output": "SELECT COUNT(year_of_intro) FROM table_name_87 WHERE country_of_origin = \"soviet union\" AND type = \"reusable\" AND primary_cartridge = \"40mm\" AND name__designation = \"rpg-29\"" }
### INSTRUCTION Name the womens doubles when mens doubles is theodoros velkos giorgos patis ### INPUT CREATE TABLE table_14903881_1 (womens_doubles VARCHAR, mens_doubles VARCHAR) ### OUTPUT SELECT womens_doubles FROM table_14903881_1 WHERE mens_doubles = "Theodoros Velkos Giorgos Patis"
{ "input": "CREATE TABLE table_14903881_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)", "instruction": "Name the womens doubles when mens doubles is theodoros velkos giorgos patis", "output": "SELECT womens_doubles FROM table_14903881_1 WHERE mens_doubles = \"Theodoros Velkos Giorgos Patis\"" }
### INSTRUCTION What was the result F-A for round 5? ### INPUT CREATE TABLE table_name_22 (result_f___a VARCHAR, round VARCHAR) ### OUTPUT SELECT result_f___a FROM table_name_22 WHERE round = "round 5"
{ "input": "CREATE TABLE table_name_22 (result_f___a VARCHAR, round VARCHAR)", "instruction": "What was the result F-A for round 5?", "output": "SELECT result_f___a FROM table_name_22 WHERE round = \"round 5\"" }
### INSTRUCTION What's the report of the race won by Michael Andretti, with Nigel Mansell driving the fastest lap? ### INPUT CREATE TABLE table_19908651_3 (report VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR) ### OUTPUT SELECT report FROM table_19908651_3 WHERE winning_driver = "Michael Andretti" AND fastest_lap = "Nigel Mansell"
{ "input": "CREATE TABLE table_19908651_3 (report VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR)", "instruction": "What's the report of the race won by Michael Andretti, with Nigel Mansell driving the fastest lap?", "output": "SELECT report FROM table_19908651_3 WHERE winning_driver = \"Michael Andretti\" AND fastest_lap = \"Nigel Mansell\"" }
### INSTRUCTION Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison ### INPUT CREATE TABLE table_name_74 (laps INTEGER, rider VARCHAR, grid VARCHAR, bike VARCHAR) ### OUTPUT SELECT AVG(laps) FROM table_name_74 WHERE grid > 12 AND bike = "ducati 999rs" AND rider = "dean ellison"
{ "input": "CREATE TABLE table_name_74 (laps INTEGER, rider VARCHAR, grid VARCHAR, bike VARCHAR)", "instruction": "Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison", "output": "SELECT AVG(laps) FROM table_name_74 WHERE grid > 12 AND bike = \"ducati 999rs\" AND rider = \"dean ellison\"" }
### INSTRUCTION what is the original air date for julie warner? ### INPUT CREATE TABLE table_26561498_1 (original_air_date VARCHAR, patient_portrayer VARCHAR) ### OUTPUT SELECT original_air_date FROM table_26561498_1 WHERE patient_portrayer = "Julie Warner"
{ "input": "CREATE TABLE table_26561498_1 (original_air_date VARCHAR, patient_portrayer VARCHAR)", "instruction": "what is the original air date for julie warner?", "output": "SELECT original_air_date FROM table_26561498_1 WHERE patient_portrayer = \"Julie Warner\"" }
### INSTRUCTION Who was the opponent at the game that had a loss of Harden (9-6)? ### INPUT CREATE TABLE table_name_27 (opponent VARCHAR, loss VARCHAR) ### OUTPUT SELECT opponent FROM table_name_27 WHERE loss = "harden (9-6)"
{ "input": "CREATE TABLE table_name_27 (opponent VARCHAR, loss VARCHAR)", "instruction": "Who was the opponent at the game that had a loss of Harden (9-6)?", "output": "SELECT opponent FROM table_name_27 WHERE loss = \"harden (9-6)\"" }
### INSTRUCTION Find the title of course that is provided by both Statistics and Psychology departments. ### INPUT CREATE TABLE course (title VARCHAR, dept_name VARCHAR) ### OUTPUT SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology'
{ "input": "CREATE TABLE course (title VARCHAR, dept_name VARCHAR)", "instruction": "Find the title of course that is provided by both Statistics and Psychology departments.", "output": "SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology'" }
### INSTRUCTION Show names and phones of customers who do not have address information. ### INPUT CREATE TABLE customer_address_history (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR) ### OUTPUT SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_address_history)
{ "input": "CREATE TABLE customer_address_history (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR)", "instruction": "Show names and phones of customers who do not have address information.", "output": "SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_address_history)" }
### INSTRUCTION Who was the clerk when the highway commissioner was Albert Lewis? ### INPUT CREATE TABLE table_name_14 (clerk VARCHAR, highway_commissioners VARCHAR) ### OUTPUT SELECT clerk FROM table_name_14 WHERE highway_commissioners = "albert lewis"
{ "input": "CREATE TABLE table_name_14 (clerk VARCHAR, highway_commissioners VARCHAR)", "instruction": "Who was the clerk when the highway commissioner was Albert Lewis?", "output": "SELECT clerk FROM table_name_14 WHERE highway_commissioners = \"albert lewis\"" }
### INSTRUCTION What is the Game number on March 30? ### INPUT CREATE TABLE table_name_33 (game VARCHAR, date VARCHAR) ### OUTPUT SELECT game FROM table_name_33 WHERE date = "march 30"
{ "input": "CREATE TABLE table_name_33 (game VARCHAR, date VARCHAR)", "instruction": "What is the Game number on March 30?", "output": "SELECT game FROM table_name_33 WHERE date = \"march 30\"" }
### INSTRUCTION Which Rec has an Average smaller than 32, and a Touchdown smaller than 3, and an Opponent of oregon state? ### INPUT CREATE TABLE table_name_95 (rec INTEGER, opponent VARCHAR, average VARCHAR, s_touchdown VARCHAR) ### OUTPUT SELECT SUM(rec) FROM table_name_95 WHERE average < 32 AND s_touchdown < 3 AND opponent = "oregon state"
{ "input": "CREATE TABLE table_name_95 (rec INTEGER, opponent VARCHAR, average VARCHAR, s_touchdown VARCHAR)", "instruction": "Which Rec has an Average smaller than 32, and a Touchdown smaller than 3, and an Opponent of oregon state?", "output": "SELECT SUM(rec) FROM table_name_95 WHERE average < 32 AND s_touchdown < 3 AND opponent = \"oregon state\"" }
### INSTRUCTION Who is the opponent with a score of 6–5 13? ### INPUT CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR) ### OUTPUT SELECT opponent FROM table_name_82 WHERE score = "6–5 13"
{ "input": "CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR)", "instruction": "Who is the opponent with a score of 6–5 13?", "output": "SELECT opponent FROM table_name_82 WHERE score = \"6–5 13\"" }
### INSTRUCTION What year joined had an enrollment less than 438 and an AA as the IHSAA Class? ### INPUT CREATE TABLE table_name_63 (year_joined VARCHAR, enrollment VARCHAR, ihsaa_class VARCHAR) ### OUTPUT SELECT year_joined FROM table_name_63 WHERE enrollment < 438 AND ihsaa_class = "aa"
{ "input": "CREATE TABLE table_name_63 (year_joined VARCHAR, enrollment VARCHAR, ihsaa_class VARCHAR)", "instruction": "What year joined had an enrollment less than 438 and an AA as the IHSAA Class?", "output": "SELECT year_joined FROM table_name_63 WHERE enrollment < 438 AND ihsaa_class = \"aa\"" }
### INSTRUCTION Which Capacity has a Class of cm22, and a Vehicle of 1999 subaru impreza wrx sti? ### INPUT CREATE TABLE table_name_61 (capacity INTEGER, class VARCHAR, vehicle VARCHAR) ### OUTPUT SELECT MIN(capacity) FROM table_name_61 WHERE class = "cm22" AND vehicle = "1999 subaru impreza wrx sti"
{ "input": "CREATE TABLE table_name_61 (capacity INTEGER, class VARCHAR, vehicle VARCHAR)", "instruction": "Which Capacity has a Class of cm22, and a Vehicle of 1999 subaru impreza wrx sti?", "output": "SELECT MIN(capacity) FROM table_name_61 WHERE class = \"cm22\" AND vehicle = \"1999 subaru impreza wrx sti\"" }
### INSTRUCTION With what type of chambering is the F bolt n (lbf) and the P max (bar) 3900? ### INPUT CREATE TABLE table_26967904_1 (chambering VARCHAR, f_bolt VARCHAR, p_max___bar__ VARCHAR) ### OUTPUT SELECT chambering FROM table_26967904_1 WHERE f_bolt = "N (lbf)" AND p_max___bar__ = 3900
{ "input": "CREATE TABLE table_26967904_1 (chambering VARCHAR, f_bolt VARCHAR, p_max___bar__ VARCHAR)", "instruction": "With what type of chambering is the F bolt n (lbf) and the P max (bar) 3900?", "output": "SELECT chambering FROM table_26967904_1 WHERE f_bolt = \"N (lbf)\" AND p_max___bar__ = 3900" }
### INSTRUCTION What is the league goals when the league cup goals is less than 0 and 16 (1) league apps? ### INPUT CREATE TABLE table_name_95 (league_goals INTEGER, league_apps VARCHAR, league_cup_goals VARCHAR) ### OUTPUT SELECT AVG(league_goals) FROM table_name_95 WHERE league_apps = "16 (1)" AND league_cup_goals < 0
{ "input": "CREATE TABLE table_name_95 (league_goals INTEGER, league_apps VARCHAR, league_cup_goals VARCHAR)", "instruction": "What is the league goals when the league cup goals is less than 0 and 16 (1) league apps?", "output": "SELECT AVG(league_goals) FROM table_name_95 WHERE league_apps = \"16 (1)\" AND league_cup_goals < 0" }
### INSTRUCTION What is the segment A on episode 237? ### INPUT CREATE TABLE table_15187735_19 (segment_a VARCHAR, episode VARCHAR) ### OUTPUT SELECT segment_a FROM table_15187735_19 WHERE episode = 237
{ "input": "CREATE TABLE table_15187735_19 (segment_a VARCHAR, episode VARCHAR)", "instruction": "What is the segment A on episode 237?", "output": "SELECT segment_a FROM table_15187735_19 WHERE episode = 237" }
### INSTRUCTION What is W/m², when η (%) is greater than 16.5, and when Technology is MJ? ### INPUT CREATE TABLE table_name_60 (w_m² VARCHAR, η___percentage_ VARCHAR, technology VARCHAR) ### OUTPUT SELECT w_m² FROM table_name_60 WHERE η___percentage_ > 16.5 AND technology = "mj"
{ "input": "CREATE TABLE table_name_60 (w_m² VARCHAR, η___percentage_ VARCHAR, technology VARCHAR)", "instruction": "What is W/m², when η (%) is greater than 16.5, and when Technology is MJ?", "output": "SELECT w_m² FROM table_name_60 WHERE η___percentage_ > 16.5 AND technology = \"mj\"" }
### INSTRUCTION Name the most game for december 1 ### INPUT CREATE TABLE table_27722734_7 (game INTEGER, date VARCHAR) ### OUTPUT SELECT MAX(game) FROM table_27722734_7 WHERE date = "December 1"
{ "input": "CREATE TABLE table_27722734_7 (game INTEGER, date VARCHAR)", "instruction": "Name the most game for december 1", "output": "SELECT MAX(game) FROM table_27722734_7 WHERE date = \"December 1\"" }
### INSTRUCTION What is the score of Howard Clark from England with a To Par of +1? ### INPUT CREATE TABLE table_name_55 (score VARCHAR, player VARCHAR, to_par VARCHAR, country VARCHAR) ### OUTPUT SELECT score FROM table_name_55 WHERE to_par = "+1" AND country = "england" AND player = "howard clark"
{ "input": "CREATE TABLE table_name_55 (score VARCHAR, player VARCHAR, to_par VARCHAR, country VARCHAR)", "instruction": "What is the score of Howard Clark from England with a To Par of +1?", "output": "SELECT score FROM table_name_55 WHERE to_par = \"+1\" AND country = \"england\" AND player = \"howard clark\"" }
### INSTRUCTION When was the location 15km NW of Pol-E Khomri, the circumstaances IED and the casualties of 1 WIA? ### INPUT CREATE TABLE table_name_66 (date VARCHAR, location VARCHAR, casualties VARCHAR, circumstances VARCHAR) ### OUTPUT SELECT date FROM table_name_66 WHERE casualties = "1 wia" AND circumstances = "ied" AND location = "15km nw of pol-e khomri"
{ "input": "CREATE TABLE table_name_66 (date VARCHAR, location VARCHAR, casualties VARCHAR, circumstances VARCHAR)", "instruction": "When was the location 15km NW of Pol-E Khomri, the circumstaances IED and the casualties of 1 WIA?", "output": "SELECT date FROM table_name_66 WHERE casualties = \"1 wia\" AND circumstances = \"ied\" AND location = \"15km nw of pol-e khomri\"" }
### INSTRUCTION List the names of entrepreneurs and their companies in descending order of money requested? ### INPUT CREATE TABLE entrepreneur (Company VARCHAR, People_ID VARCHAR, Money_Requested VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### OUTPUT SELECT T2.Name, T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested
{ "input": "CREATE TABLE entrepreneur (Company VARCHAR, People_ID VARCHAR, Money_Requested VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)", "instruction": "List the names of entrepreneurs and their companies in descending order of money requested?", "output": "SELECT T2.Name, T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested" }
### INSTRUCTION Who won the points classification when the teams classification winner was Lampre-Farnese? ### INPUT CREATE TABLE table_28092844_16 (points_classification_klasyfikacja_punktowa VARCHAR, teams_classification VARCHAR) ### OUTPUT SELECT points_classification_klasyfikacja_punktowa FROM table_28092844_16 WHERE teams_classification = "Lampre-Farnese"
{ "input": "CREATE TABLE table_28092844_16 (points_classification_klasyfikacja_punktowa VARCHAR, teams_classification VARCHAR)", "instruction": "Who won the points classification when the teams classification winner was Lampre-Farnese?", "output": "SELECT points_classification_klasyfikacja_punktowa FROM table_28092844_16 WHERE teams_classification = \"Lampre-Farnese\"" }
### INSTRUCTION What is the Surface when Todd Woodbridge was the runner-up, and a Date of 24 february 1997? ### INPUT CREATE TABLE table_name_77 (surface VARCHAR, outcome VARCHAR, date VARCHAR) ### OUTPUT SELECT surface FROM table_name_77 WHERE outcome = "runner-up" AND date = "24 february 1997"
{ "input": "CREATE TABLE table_name_77 (surface VARCHAR, outcome VARCHAR, date VARCHAR)", "instruction": "What is the Surface when Todd Woodbridge was the runner-up, and a Date of 24 february 1997?", "output": "SELECT surface FROM table_name_77 WHERE outcome = \"runner-up\" AND date = \"24 february 1997\"" }
### INSTRUCTION Which Wins has a Team of scuderia toro rosso, Poles of 0, and Races of 16? ### INPUT CREATE TABLE table_name_99 (wins VARCHAR, races VARCHAR, team VARCHAR, poles VARCHAR) ### OUTPUT SELECT wins FROM table_name_99 WHERE team = "scuderia toro rosso" AND poles = "0" AND races = "16"
{ "input": "CREATE TABLE table_name_99 (wins VARCHAR, races VARCHAR, team VARCHAR, poles VARCHAR)", "instruction": "Which Wins has a Team of scuderia toro rosso, Poles of 0, and Races of 16?", "output": "SELECT wins FROM table_name_99 WHERE team = \"scuderia toro rosso\" AND poles = \"0\" AND races = \"16\"" }
### INSTRUCTION What is the most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1? ### INPUT CREATE TABLE table_name_49 (bronze INTEGER, gold VARCHAR, total VARCHAR, rank VARCHAR) ### OUTPUT SELECT MAX(bronze) FROM table_name_49 WHERE total > 1 AND rank > 1 AND gold > 1
{ "input": "CREATE TABLE table_name_49 (bronze INTEGER, gold VARCHAR, total VARCHAR, rank VARCHAR)", "instruction": "What is the most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1?", "output": "SELECT MAX(bronze) FROM table_name_49 WHERE total > 1 AND rank > 1 AND gold > 1" }
### INSTRUCTION What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm? ### INPUT CREATE TABLE table_18821196_1 (status VARCHAR, weekly_schedule VARCHAR) ### OUTPUT SELECT status FROM table_18821196_1 WHERE weekly_schedule = "Monday to Thursday @ 11:00 pm"
{ "input": "CREATE TABLE table_18821196_1 (status VARCHAR, weekly_schedule VARCHAR)", "instruction": "What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm?", "output": "SELECT status FROM table_18821196_1 WHERE weekly_schedule = \"Monday to Thursday @ 11:00 pm\"" }
### INSTRUCTION What is the percentage of literate people where india is andaman and Nicobar Islands? ### INPUT CREATE TABLE table_14598_9 (literate_persons___percentage_ VARCHAR, india_state_ut VARCHAR) ### OUTPUT SELECT literate_persons___percentage_ FROM table_14598_9 WHERE india_state_ut = "Andaman and Nicobar Islands"
{ "input": "CREATE TABLE table_14598_9 (literate_persons___percentage_ VARCHAR, india_state_ut VARCHAR)", "instruction": "What is the percentage of literate people where india is andaman and Nicobar Islands?", "output": "SELECT literate_persons___percentage_ FROM table_14598_9 WHERE india_state_ut = \"Andaman and Nicobar Islands\"" }
### INSTRUCTION Who were the candidates in the district where Charlie Norwood is the incumbent? ### INPUT CREATE TABLE table_1341472_12 (candidates VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT candidates FROM table_1341472_12 WHERE incumbent = "Charlie Norwood"
{ "input": "CREATE TABLE table_1341472_12 (candidates VARCHAR, incumbent VARCHAR)", "instruction": "Who were the candidates in the district where Charlie Norwood is the incumbent?", "output": "SELECT candidates FROM table_1341472_12 WHERE incumbent = \"Charlie Norwood\"" }
### INSTRUCTION In what year of school is the forward Iman McFarland? ### INPUT CREATE TABLE table_name_90 (year VARCHAR, position VARCHAR, name VARCHAR) ### OUTPUT SELECT year FROM table_name_90 WHERE position = "forward" AND name = "iman mcfarland"
{ "input": "CREATE TABLE table_name_90 (year VARCHAR, position VARCHAR, name VARCHAR)", "instruction": "In what year of school is the forward Iman McFarland?", "output": "SELECT year FROM table_name_90 WHERE position = \"forward\" AND name = \"iman mcfarland\"" }
### INSTRUCTION how many times is the money list rank 221 and cuts more than 2? ### INPUT CREATE TABLE table_name_97 (tournaments_played VARCHAR, money_list_rank VARCHAR, cuts_made VARCHAR) ### OUTPUT SELECT COUNT(tournaments_played) FROM table_name_97 WHERE money_list_rank = "221" AND cuts_made > 2
{ "input": "CREATE TABLE table_name_97 (tournaments_played VARCHAR, money_list_rank VARCHAR, cuts_made VARCHAR)", "instruction": "how many times is the money list rank 221 and cuts more than 2?", "output": "SELECT COUNT(tournaments_played) FROM table_name_97 WHERE money_list_rank = \"221\" AND cuts_made > 2" }
### INSTRUCTION What were the average partial failures when the rocket was Ariane 5? ### INPUT CREATE TABLE table_name_87 (partial_failures INTEGER, rocket VARCHAR) ### OUTPUT SELECT AVG(partial_failures) FROM table_name_87 WHERE rocket = "ariane 5"
{ "input": "CREATE TABLE table_name_87 (partial_failures INTEGER, rocket VARCHAR)", "instruction": "What were the average partial failures when the rocket was Ariane 5?", "output": "SELECT AVG(partial_failures) FROM table_name_87 WHERE rocket = \"ariane 5\"" }
### INSTRUCTION What is the id, name and nationality of the architect who built most mills? ### INPUT CREATE TABLE architect (id VARCHAR, name VARCHAR, nationality VARCHAR); CREATE TABLE mill (architect_id VARCHAR) ### OUTPUT SELECT T1.id, T1.name, T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE architect (id VARCHAR, name VARCHAR, nationality VARCHAR); CREATE TABLE mill (architect_id VARCHAR)", "instruction": "What is the id, name and nationality of the architect who built most mills?", "output": "SELECT T1.id, T1.name, T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What was the voting order when bunny carr was the commentator? ### INPUT CREATE TABLE table_name_50 (voting_order INTEGER, commentator VARCHAR) ### OUTPUT SELECT SUM(voting_order) FROM table_name_50 WHERE commentator = "bunny carr"
{ "input": "CREATE TABLE table_name_50 (voting_order INTEGER, commentator VARCHAR)", "instruction": "What was the voting order when bunny carr was the commentator?", "output": "SELECT SUM(voting_order) FROM table_name_50 WHERE commentator = \"bunny carr\"" }
### INSTRUCTION Who are the sideline reporter(s) on NBC with al michaels on the play-by-play after 2013? ### INPUT CREATE TABLE table_name_22 (sideline_reporter_s_ VARCHAR, year VARCHAR, network VARCHAR, play_by_play VARCHAR) ### OUTPUT SELECT sideline_reporter_s_ FROM table_name_22 WHERE network = "nbc" AND play_by_play = "al michaels" AND year > 2013
{ "input": "CREATE TABLE table_name_22 (sideline_reporter_s_ VARCHAR, year VARCHAR, network VARCHAR, play_by_play VARCHAR)", "instruction": "Who are the sideline reporter(s) on NBC with al michaels on the play-by-play after 2013?", "output": "SELECT sideline_reporter_s_ FROM table_name_22 WHERE network = \"nbc\" AND play_by_play = \"al michaels\" AND year > 2013" }
### INSTRUCTION What is the number of played games a club with more than 71 points and less than 8 losses has? ### INPUT CREATE TABLE table_name_50 (played INTEGER, points VARCHAR, losses VARCHAR) ### OUTPUT SELECT SUM(played) FROM table_name_50 WHERE points > 71 AND losses < 8
{ "input": "CREATE TABLE table_name_50 (played INTEGER, points VARCHAR, losses VARCHAR)", "instruction": "What is the number of played games a club with more than 71 points and less than 8 losses has?", "output": "SELECT SUM(played) FROM table_name_50 WHERE points > 71 AND losses < 8" }
### INSTRUCTION What is the under 1 year-old Censo 2007(hab) population with a population censo 2007(hab) of 112.054*? ### INPUT CREATE TABLE table_name_91 (population_under_1_year_old_censo_2007_hab_ VARCHAR, population_censo_2007_hab_ VARCHAR) ### OUTPUT SELECT population_under_1_year_old_censo_2007_hab_ FROM table_name_91 WHERE population_censo_2007_hab_ = "112.054*"
{ "input": "CREATE TABLE table_name_91 (population_under_1_year_old_censo_2007_hab_ VARCHAR, population_censo_2007_hab_ VARCHAR)", "instruction": "What is the under 1 year-old Censo 2007(hab) population with a population censo 2007(hab) of 112.054*?", "output": "SELECT population_under_1_year_old_censo_2007_hab_ FROM table_name_91 WHERE population_censo_2007_hab_ = \"112.054*\"" }
### INSTRUCTION What is the name of the customer that made the order with the largest quantity? ### INPUT CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (order_quantity INTEGER); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR) ### OUTPUT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = (SELECT MAX(order_quantity) FROM order_items)
{ "input": "CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (order_quantity INTEGER); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)", "instruction": "What is the name of the customer that made the order with the largest quantity?", "output": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t3.order_quantity = (SELECT MAX(order_quantity) FROM order_items)" }
### INSTRUCTION What is the total number of Total Passengers when the annual change is 28.8% and the rank is less than 8? ### INPUT CREATE TABLE table_name_28 (total_passengers VARCHAR, annual_change VARCHAR, rank VARCHAR) ### OUTPUT SELECT COUNT(total_passengers) FROM table_name_28 WHERE annual_change = "28.8%" AND rank < 8
{ "input": "CREATE TABLE table_name_28 (total_passengers VARCHAR, annual_change VARCHAR, rank VARCHAR)", "instruction": "What is the total number of Total Passengers when the annual change is 28.8% and the rank is less than 8?", "output": "SELECT COUNT(total_passengers) FROM table_name_28 WHERE annual_change = \"28.8%\" AND rank < 8" }
### INSTRUCTION What is the Location, when the Winner is the Baltimore Colts, when the Year is before 1972, and when the Result is 14-6? ### INPUT CREATE TABLE table_name_90 (location VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR) ### OUTPUT SELECT location FROM table_name_90 WHERE winner = "baltimore colts" AND year < 1972 AND result = "14-6"
{ "input": "CREATE TABLE table_name_90 (location VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR)", "instruction": "What is the Location, when the Winner is the Baltimore Colts, when the Year is before 1972, and when the Result is 14-6?", "output": "SELECT location FROM table_name_90 WHERE winner = \"baltimore colts\" AND year < 1972 AND result = \"14-6\"" }
### INSTRUCTION Is the Washington Corrections Center for Women (WCCW) a major facility? ### INPUT CREATE TABLE table_25346763_1 (Major VARCHAR, facility VARCHAR) ### OUTPUT SELECT Major AS facility FROM table_25346763_1 WHERE facility = "Washington Corrections Center for Women (WCCW)"
{ "input": "CREATE TABLE table_25346763_1 (Major VARCHAR, facility VARCHAR)", "instruction": "Is the Washington Corrections Center for Women (WCCW) a major facility?", "output": "SELECT Major AS facility FROM table_25346763_1 WHERE facility = \"Washington Corrections Center for Women (WCCW)\"" }
### INSTRUCTION Date for less than 122 countries and a 47% rank? ### INPUT CREATE TABLE table_name_60 (date VARCHAR, countries_surveyed VARCHAR, _percentage_rank VARCHAR) ### OUTPUT SELECT date FROM table_name_60 WHERE countries_surveyed < 122 AND _percentage_rank = "47"
{ "input": "CREATE TABLE table_name_60 (date VARCHAR, countries_surveyed VARCHAR, _percentage_rank VARCHAR)", "instruction": "Date for less than 122 countries and a 47% rank?", "output": "SELECT date FROM table_name_60 WHERE countries_surveyed < 122 AND _percentage_rank = \"47\"" }
### INSTRUCTION What are the famous title of the artists associated with volumes with more than 2 weeks on top? ### INPUT CREATE TABLE artist (Famous_Title VARCHAR, Artist_ID VARCHAR); CREATE TABLE volume (Artist_ID VARCHAR, Weeks_on_Top INTEGER) ### OUTPUT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2
{ "input": "CREATE TABLE artist (Famous_Title VARCHAR, Artist_ID VARCHAR); CREATE TABLE volume (Artist_ID VARCHAR, Weeks_on_Top INTEGER)", "instruction": "What are the famous title of the artists associated with volumes with more than 2 weeks on top?", "output": "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2" }
### INSTRUCTION What is the Electorate when the term of office was 1955–1972, for Peter Howson? ### INPUT CREATE TABLE table_name_16 (electorate VARCHAR, term_of_office VARCHAR, member VARCHAR) ### OUTPUT SELECT electorate FROM table_name_16 WHERE term_of_office = "1955–1972" AND member = "peter howson"
{ "input": "CREATE TABLE table_name_16 (electorate VARCHAR, term_of_office VARCHAR, member VARCHAR)", "instruction": "What is the Electorate when the term of office was 1955–1972, for Peter Howson?", "output": "SELECT electorate FROM table_name_16 WHERE term_of_office = \"1955–1972\" AND member = \"peter howson\"" }
### INSTRUCTION What was the latest year of release for the greatest hits title? ### INPUT CREATE TABLE table_name_71 (year_of_release INTEGER, title VARCHAR) ### OUTPUT SELECT MAX(year_of_release) FROM table_name_71 WHERE title = "greatest hits"
{ "input": "CREATE TABLE table_name_71 (year_of_release INTEGER, title VARCHAR)", "instruction": "What was the latest year of release for the greatest hits title?", "output": "SELECT MAX(year_of_release) FROM table_name_71 WHERE title = \"greatest hits\"" }
### INSTRUCTION What is Player, when Opponent is source: . last updated: 28 june 2007.? ### INPUT CREATE TABLE table_name_17 (player VARCHAR, opponent VARCHAR) ### OUTPUT SELECT player FROM table_name_17 WHERE opponent = "source: . last updated: 28 june 2007."
{ "input": "CREATE TABLE table_name_17 (player VARCHAR, opponent VARCHAR)", "instruction": "What is Player, when Opponent is source: . last updated: 28 june 2007.?", "output": "SELECT player FROM table_name_17 WHERE opponent = \"source: . last updated: 28 june 2007.\"" }
### INSTRUCTION Who was the partner when the championship was us open on a hard surface? ### INPUT CREATE TABLE table_name_30 (partner VARCHAR, surface VARCHAR, championship VARCHAR) ### OUTPUT SELECT partner FROM table_name_30 WHERE surface = "hard" AND championship = "us open"
{ "input": "CREATE TABLE table_name_30 (partner VARCHAR, surface VARCHAR, championship VARCHAR)", "instruction": "Who was the partner when the championship was us open on a hard surface?", "output": "SELECT partner FROM table_name_30 WHERE surface = \"hard\" AND championship = \"us open\"" }
### INSTRUCTION Which player(s) played at Howard college? ### INPUT CREATE TABLE table_30108930_6 (player VARCHAR, college VARCHAR) ### OUTPUT SELECT player FROM table_30108930_6 WHERE college = "Howard"
{ "input": "CREATE TABLE table_30108930_6 (player VARCHAR, college VARCHAR)", "instruction": "Which player(s) played at Howard college?", "output": "SELECT player FROM table_30108930_6 WHERE college = \"Howard\"" }
### INSTRUCTION What was the result after the week # top 11? ### INPUT CREATE TABLE table_name_84 (result VARCHAR, week__number VARCHAR) ### OUTPUT SELECT result FROM table_name_84 WHERE week__number = "top 11"
{ "input": "CREATE TABLE table_name_84 (result VARCHAR, week__number VARCHAR)", "instruction": "What was the result after the week # top 11?", "output": "SELECT result FROM table_name_84 WHERE week__number = \"top 11\"" }
### INSTRUCTION which opponents in the u.s. championships played after 1945 and had a score of 3–6, 6–4, 2–6, 6–3, 20–18? ### INPUT CREATE TABLE table_name_5 (opponents_in_the_final VARCHAR, score VARCHAR, championship VARCHAR, year VARCHAR) ### OUTPUT SELECT opponents_in_the_final FROM table_name_5 WHERE championship = "u.s. championships" AND year > 1945 AND score = "3–6, 6–4, 2–6, 6–3, 20–18"
{ "input": "CREATE TABLE table_name_5 (opponents_in_the_final VARCHAR, score VARCHAR, championship VARCHAR, year VARCHAR)", "instruction": "which opponents in the u.s. championships played after 1945 and had a score of 3–6, 6–4, 2–6, 6–3, 20–18?", "output": "SELECT opponents_in_the_final FROM table_name_5 WHERE championship = \"u.s. championships\" AND year > 1945 AND score = \"3–6, 6–4, 2–6, 6–3, 20–18\"" }
### INSTRUCTION Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023? ### INPUT CREATE TABLE table_name_72 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR, points VARCHAR) ### OUTPUT SELECT driver FROM table_name_72 WHERE grid < 17 AND points > 0 AND laps = 87 AND time_retired = "1:48:11.023"
{ "input": "CREATE TABLE table_name_72 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR, points VARCHAR)", "instruction": "Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023?", "output": "SELECT driver FROM table_name_72 WHERE grid < 17 AND points > 0 AND laps = 87 AND time_retired = \"1:48:11.023\"" }
### INSTRUCTION What is the Mens Nickname for the member location of Jacksonville, florida? ### INPUT CREATE TABLE table_10577579_2 (mens_nickname VARCHAR, location VARCHAR) ### OUTPUT SELECT mens_nickname FROM table_10577579_2 WHERE location = "Jacksonville, Florida"
{ "input": "CREATE TABLE table_10577579_2 (mens_nickname VARCHAR, location VARCHAR)", "instruction": "What is the Mens Nickname for the member location of Jacksonville, florida?", "output": "SELECT mens_nickname FROM table_10577579_2 WHERE location = \"Jacksonville, Florida\"" }
### INSTRUCTION What position is the player who was on the Grizzlies from 1995-1996? ### INPUT CREATE TABLE table_16494599_1 (position VARCHAR, years_for_grizzlies VARCHAR) ### OUTPUT SELECT position FROM table_16494599_1 WHERE years_for_grizzlies = "1995-1996"
{ "input": "CREATE TABLE table_16494599_1 (position VARCHAR, years_for_grizzlies VARCHAR)", "instruction": "What position is the player who was on the Grizzlies from 1995-1996?", "output": "SELECT position FROM table_16494599_1 WHERE years_for_grizzlies = \"1995-1996\"" }
### INSTRUCTION Can you tell me the sum of Wins that has the Club of abuls smiltene, and the Goals smaller than 18? ### INPUT CREATE TABLE table_name_47 (wins INTEGER, club VARCHAR, goals_for VARCHAR) ### OUTPUT SELECT SUM(wins) FROM table_name_47 WHERE club = "abuls smiltene" AND goals_for < 18
{ "input": "CREATE TABLE table_name_47 (wins INTEGER, club VARCHAR, goals_for VARCHAR)", "instruction": "Can you tell me the sum of Wins that has the Club of abuls smiltene, and the Goals smaller than 18?", "output": "SELECT SUM(wins) FROM table_name_47 WHERE club = \"abuls smiltene\" AND goals_for < 18" }
### INSTRUCTION How many 2011 1H values have a 2006 of 27.4 and 2007 over 27.7? ### INPUT ### OUTPUT SELECT COUNT(*) FROM table_name_9 WHERE 2006 = 27.4 AND 2007 > 27.7
{ "input": "", "instruction": "How many 2011 1H values have a 2006 of 27.4 and 2007 over 27.7?", "output": "SELECT COUNT(*) FROM table_name_9 WHERE 2006 = 27.4 AND 2007 > 27.7" }
### INSTRUCTION Which project made the most number of outcomes? List the project details and the project id. ### INPUT CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) ### OUTPUT SELECT T1.project_details, T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)", "instruction": "Which project made the most number of outcomes? List the project details and the project id.", "output": "SELECT T1.project_details, T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the Version of the CD release on June 12, 2008 in Cyprus? ### INPUT CREATE TABLE table_name_82 (version VARCHAR, region VARCHAR, format VARCHAR, date VARCHAR) ### OUTPUT SELECT version FROM table_name_82 WHERE format = "cd" AND date = "june 12, 2008" AND region = "cyprus"
{ "input": "CREATE TABLE table_name_82 (version VARCHAR, region VARCHAR, format VARCHAR, date VARCHAR)", "instruction": "What is the Version of the CD release on June 12, 2008 in Cyprus?", "output": "SELECT version FROM table_name_82 WHERE format = \"cd\" AND date = \"june 12, 2008\" AND region = \"cyprus\"" }
### INSTRUCTION who directed the episode that have 0.25 million u.s viewers ### INPUT CREATE TABLE table_29803475_3 (directed_by VARCHAR, us_viewers__million_ VARCHAR) ### OUTPUT SELECT directed_by FROM table_29803475_3 WHERE us_viewers__million_ = "0.25"
{ "input": "CREATE TABLE table_29803475_3 (directed_by VARCHAR, us_viewers__million_ VARCHAR)", "instruction": "who directed the episode that have 0.25 million u.s viewers", "output": "SELECT directed_by FROM table_29803475_3 WHERE us_viewers__million_ = \"0.25\"" }
### INSTRUCTION How many years was the pageant miss globe international and delegate was karen loren medrano agustin? ### INPUT CREATE TABLE table_1825751_14 (year VARCHAR, pageant VARCHAR, delegate VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_1825751_14 WHERE pageant = "Miss Globe International" AND delegate = "Karen Loren Medrano Agustin"
{ "input": "CREATE TABLE table_1825751_14 (year VARCHAR, pageant VARCHAR, delegate VARCHAR)", "instruction": "How many years was the pageant miss globe international and delegate was karen loren medrano agustin?", "output": "SELECT COUNT(year) FROM table_1825751_14 WHERE pageant = \"Miss Globe International\" AND delegate = \"Karen Loren Medrano Agustin\"" }
### INSTRUCTION What was the lowest total number of horses that has a total cattle smaller than 6274.1, and a oxen smaller than 156.5, and a bulls of 40.0, and fewer than 3377 cows? ### INPUT CREATE TABLE table_name_65 (total_horses INTEGER, cows VARCHAR, bulls VARCHAR, total_cattle VARCHAR, oxen VARCHAR) ### OUTPUT SELECT MIN(total_horses) FROM table_name_65 WHERE total_cattle < 6274.1 AND oxen < 156.5 AND bulls = "40.0" AND cows < 3377
{ "input": "CREATE TABLE table_name_65 (total_horses INTEGER, cows VARCHAR, bulls VARCHAR, total_cattle VARCHAR, oxen VARCHAR)", "instruction": "What was the lowest total number of horses that has a total cattle smaller than 6274.1, and a oxen smaller than 156.5, and a bulls of 40.0, and fewer than 3377 cows?", "output": "SELECT MIN(total_horses) FROM table_name_65 WHERE total_cattle < 6274.1 AND oxen < 156.5 AND bulls = \"40.0\" AND cows < 3377" }
### INSTRUCTION What was the score of the home team of carlton? ### INPUT CREATE TABLE table_name_60 (home_team VARCHAR) ### OUTPUT SELECT home_team AS score FROM table_name_60 WHERE home_team = "carlton"
{ "input": "CREATE TABLE table_name_60 (home_team VARCHAR)", "instruction": "What was the score of the home team of carlton?", "output": "SELECT home_team AS score FROM table_name_60 WHERE home_team = \"carlton\"" }
### INSTRUCTION On what Date was Patty Sheehan Runner(s)-up? ### INPUT CREATE TABLE table_name_62 (date VARCHAR, runner_s__up VARCHAR) ### OUTPUT SELECT date FROM table_name_62 WHERE runner_s__up = "patty sheehan"
{ "input": "CREATE TABLE table_name_62 (date VARCHAR, runner_s__up VARCHAR)", "instruction": "On what Date was Patty Sheehan Runner(s)-up?", "output": "SELECT date FROM table_name_62 WHERE runner_s__up = \"patty sheehan\"" }