text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is the brand of DXRE? ### INPUT CREATE TABLE table_name_35 (branding VARCHAR, callsign VARCHAR) ### OUTPUT SELECT branding FROM table_name_35 WHERE callsign = "dxre"
{ "input": "CREATE TABLE table_name_35 (branding VARCHAR, callsign VARCHAR)", "instruction": "What is the brand of DXRE?", "output": "SELECT branding FROM table_name_35 WHERE callsign = \"dxre\"" }
### INSTRUCTION What is the name of the customer who has made the largest amount of claim in a single claim? ### INPUT CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE claim_headers (amount_claimed INTEGER); CREATE TABLE policies (policy_id VARCHAR, customer_id VARCHAR); CREATE TABLE claim_headers (policy_id VARCHAR, amount_claimed INTEGER) ### OUTPUT SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT MAX(amount_claimed) FROM claim_headers)
{ "input": "CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE claim_headers (amount_claimed INTEGER); CREATE TABLE policies (policy_id VARCHAR, customer_id VARCHAR); CREATE TABLE claim_headers (policy_id VARCHAR, amount_claimed INTEGER)", "instruction": "What is the name of the customer who has made the largest amount of claim in a single claim?", "output": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT MAX(amount_claimed) FROM claim_headers)" }
### INSTRUCTION What is the number of claimed sales in the rock genre? ### INPUT CREATE TABLE table_name_85 (claimed_sales VARCHAR, genre VARCHAR) ### OUTPUT SELECT claimed_sales FROM table_name_85 WHERE genre = "rock"
{ "input": "CREATE TABLE table_name_85 (claimed_sales VARCHAR, genre VARCHAR)", "instruction": "What is the number of claimed sales in the rock genre?", "output": "SELECT claimed_sales FROM table_name_85 WHERE genre = \"rock\"" }
### INSTRUCTION On November 14, 2007, what are the Democrat: Vivian Davis Figures percentages? ### INPUT CREATE TABLE table_16751596_12 (democrat VARCHAR, dates_administered VARCHAR) ### OUTPUT SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE dates_administered = "November 14, 2007"
{ "input": "CREATE TABLE table_16751596_12 (democrat VARCHAR, dates_administered VARCHAR)", "instruction": "On November 14, 2007, what are the Democrat: Vivian Davis Figures percentages? ", "output": "SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE dates_administered = \"November 14, 2007\"" }
### INSTRUCTION What's the Termination of Mission listed that has a Presentation of Credentials for August 29, 1859? ### INPUT CREATE TABLE table_name_34 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR) ### OUTPUT SELECT termination_of_mission FROM table_name_34 WHERE presentation_of_credentials = "august 29, 1859"
{ "input": "CREATE TABLE table_name_34 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR)", "instruction": "What's the Termination of Mission listed that has a Presentation of Credentials for August 29, 1859?", "output": "SELECT termination_of_mission FROM table_name_34 WHERE presentation_of_credentials = \"august 29, 1859\"" }
### INSTRUCTION Who is the Driver with the Team of P & L Mechanical Services? ### INPUT CREATE TABLE table_name_1 (driver VARCHAR, team VARCHAR) ### OUTPUT SELECT driver FROM table_name_1 WHERE team = "p & l mechanical services"
{ "input": "CREATE TABLE table_name_1 (driver VARCHAR, team VARCHAR)", "instruction": "Who is the Driver with the Team of P & L Mechanical Services?", "output": "SELECT driver FROM table_name_1 WHERE team = \"p & l mechanical services\"" }
### INSTRUCTION Which venue was used on 10 september 2010? ### INPUT CREATE TABLE table_name_28 (venue VARCHAR, date VARCHAR) ### OUTPUT SELECT venue FROM table_name_28 WHERE date = "10 september 2010"
{ "input": "CREATE TABLE table_name_28 (venue VARCHAR, date VARCHAR)", "instruction": "Which venue was used on 10 september 2010?", "output": "SELECT venue FROM table_name_28 WHERE date = \"10 september 2010\"" }
### INSTRUCTION Which Socialist Labor ticket has a Office of secretary of state? ### INPUT CREATE TABLE table_name_78 (socialist_labor_ticket VARCHAR, office VARCHAR) ### OUTPUT SELECT socialist_labor_ticket FROM table_name_78 WHERE office = "secretary of state"
{ "input": "CREATE TABLE table_name_78 (socialist_labor_ticket VARCHAR, office VARCHAR)", "instruction": "Which Socialist Labor ticket has a Office of secretary of state?", "output": "SELECT socialist_labor_ticket FROM table_name_78 WHERE office = \"secretary of state\"" }
### INSTRUCTION At what time is the site usf softball field • tampa, fl and w4-0 is the result? ### INPUT CREATE TABLE table_22098274_1 (time VARCHAR, site VARCHAR, result VARCHAR) ### OUTPUT SELECT time FROM table_22098274_1 WHERE site = "USF Softball Field • Tampa, FL" AND result = "W4-0"
{ "input": "CREATE TABLE table_22098274_1 (time VARCHAR, site VARCHAR, result VARCHAR)", "instruction": "At what time is the site usf softball field • tampa, fl and w4-0 is the result?", "output": "SELECT time FROM table_22098274_1 WHERE site = \"USF Softball Field • Tampa, FL\" AND result = \"W4-0\"" }
### INSTRUCTION What Elimination Move is listed against Wrestler Henry, Eliminated by Batista? ### INPUT CREATE TABLE table_name_35 (elimination VARCHAR, eliminated_by VARCHAR, wrestler VARCHAR) ### OUTPUT SELECT elimination AS Move FROM table_name_35 WHERE eliminated_by = "batista" AND wrestler = "henry"
{ "input": "CREATE TABLE table_name_35 (elimination VARCHAR, eliminated_by VARCHAR, wrestler VARCHAR)", "instruction": "What Elimination Move is listed against Wrestler Henry, Eliminated by Batista?", "output": "SELECT elimination AS Move FROM table_name_35 WHERE eliminated_by = \"batista\" AND wrestler = \"henry\"" }
### INSTRUCTION What is the lowest number of Electorates (2003) in District bhind, Reserved for none, and Constituency Number 11? ### INPUT CREATE TABLE table_name_85 (number_of_electorates__2003_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR) ### OUTPUT SELECT MIN(number_of_electorates__2003_) FROM table_name_85 WHERE district = "bhind" AND reserved_for___sc___st__none_ = "none" AND constituency_number = "11"
{ "input": "CREATE TABLE table_name_85 (number_of_electorates__2003_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR)", "instruction": "What is the lowest number of Electorates (2003) in District bhind, Reserved for none, and Constituency Number 11?", "output": "SELECT MIN(number_of_electorates__2003_) FROM table_name_85 WHERE district = \"bhind\" AND reserved_for___sc___st__none_ = \"none\" AND constituency_number = \"11\"" }
### INSTRUCTION What is the simplified Chinese with a standard order over 4, and the transcription of Bei Hui Feng? ### INPUT CREATE TABLE table_name_43 (simplified_chinese VARCHAR, standard_order VARCHAR, transcription__based_on_pinyin_ VARCHAR) ### OUTPUT SELECT simplified_chinese FROM table_name_43 WHERE standard_order > 4 AND transcription__based_on_pinyin_ = "bei hui feng"
{ "input": "CREATE TABLE table_name_43 (simplified_chinese VARCHAR, standard_order VARCHAR, transcription__based_on_pinyin_ VARCHAR)", "instruction": "What is the simplified Chinese with a standard order over 4, and the transcription of Bei Hui Feng?", "output": "SELECT simplified_chinese FROM table_name_43 WHERE standard_order > 4 AND transcription__based_on_pinyin_ = \"bei hui feng\"" }
### INSTRUCTION What club is R. H. C. Human who has a right arm medium pace bowling style a member of? ### INPUT CREATE TABLE table_name_41 (club VARCHAR, bowling_style VARCHAR, name VARCHAR) ### OUTPUT SELECT club FROM table_name_41 WHERE bowling_style = "right arm medium pace" AND name = "r. h. c. human"
{ "input": "CREATE TABLE table_name_41 (club VARCHAR, bowling_style VARCHAR, name VARCHAR)", "instruction": "What club is R. H. C. Human who has a right arm medium pace bowling style a member of?", "output": "SELECT club FROM table_name_41 WHERE bowling_style = \"right arm medium pace\" AND name = \"r. h. c. human\"" }
### INSTRUCTION what is the average specific impulse for engines that have a SFC in lb/(lbf·h) of 7.95, and a Effective exhaust velocity (m/s) larger than 4,423 ### INPUT CREATE TABLE table_name_66 (specific_impulse__s_ INTEGER, sfc_in_lb__lbf·h_ VARCHAR, effective_exhaust_velocity__m_s_ VARCHAR) ### OUTPUT SELECT AVG(specific_impulse__s_) FROM table_name_66 WHERE sfc_in_lb__lbf·h_ = 7.95 AND effective_exhaust_velocity__m_s_ > 4 OFFSET 423
{ "input": "CREATE TABLE table_name_66 (specific_impulse__s_ INTEGER, sfc_in_lb__lbf·h_ VARCHAR, effective_exhaust_velocity__m_s_ VARCHAR)", "instruction": "what is the average specific impulse for engines that have a SFC in lb/(lbf·h) of 7.95, and a Effective exhaust velocity (m/s) larger than 4,423", "output": "SELECT AVG(specific_impulse__s_) FROM table_name_66 WHERE sfc_in_lb__lbf·h_ = 7.95 AND effective_exhaust_velocity__m_s_ > 4 OFFSET 423" }
### INSTRUCTION What is the total number of First Year, when Displacement CC is greater than 4719, when Engine is V8, when Power HP (kW) is "335 (246)", and when Model is "Ghibli SS"? ### INPUT CREATE TABLE table_name_18 (first_year VARCHAR, model VARCHAR, power_hp__kw_ VARCHAR, displacement_cc VARCHAR, engine VARCHAR) ### OUTPUT SELECT COUNT(first_year) FROM table_name_18 WHERE displacement_cc > 4719 AND engine = "v8" AND power_hp__kw_ = "335 (246)" AND model = "ghibli ss"
{ "input": "CREATE TABLE table_name_18 (first_year VARCHAR, model VARCHAR, power_hp__kw_ VARCHAR, displacement_cc VARCHAR, engine VARCHAR)", "instruction": "What is the total number of First Year, when Displacement CC is greater than 4719, when Engine is V8, when Power HP (kW) is \"335 (246)\", and when Model is \"Ghibli SS\"?", "output": "SELECT COUNT(first_year) FROM table_name_18 WHERE displacement_cc > 4719 AND engine = \"v8\" AND power_hp__kw_ = \"335 (246)\" AND model = \"ghibli ss\"" }
### INSTRUCTION What is the size of the windfarm in wexford that has more than 19 turbines and a vendor of Enercon? ### INPUT CREATE TABLE table_name_87 (size__mw_ VARCHAR, county VARCHAR, turbines VARCHAR, turbine_vendor VARCHAR) ### OUTPUT SELECT size__mw_ FROM table_name_87 WHERE turbines > 19 AND turbine_vendor = "enercon" AND county = "wexford"
{ "input": "CREATE TABLE table_name_87 (size__mw_ VARCHAR, county VARCHAR, turbines VARCHAR, turbine_vendor VARCHAR)", "instruction": "What is the size of the windfarm in wexford that has more than 19 turbines and a vendor of Enercon?", "output": "SELECT size__mw_ FROM table_name_87 WHERE turbines > 19 AND turbine_vendor = \"enercon\" AND county = \"wexford\"" }
### INSTRUCTION Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name. ### INPUT CREATE TABLE Engineer_Visits (engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### OUTPUT SELECT T1.engineer_id, T1.first_name, T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY COUNT(*) LIMIT 1
{ "input": "CREATE TABLE Engineer_Visits (engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "instruction": "Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name.", "output": "SELECT T1.engineer_id, T1.first_name, T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY COUNT(*) LIMIT 1" }
### INSTRUCTION What are the dimensions of the coin with western sea barrage and locks at taedong gang on the reverse side? ### INPUT CREATE TABLE table_298883_5 (dimensions VARCHAR, reverse VARCHAR) ### OUTPUT SELECT dimensions FROM table_298883_5 WHERE reverse = "Western sea barrage and locks at Taedong Gang"
{ "input": "CREATE TABLE table_298883_5 (dimensions VARCHAR, reverse VARCHAR)", "instruction": "What are the dimensions of the coin with western sea barrage and locks at taedong gang on the reverse side?", "output": "SELECT dimensions FROM table_298883_5 WHERE reverse = \"Western sea barrage and locks at Taedong Gang\"" }
### INSTRUCTION What is name of the country that speaks the largest number of languages? ### INPUT CREATE TABLE countrylanguage (CountryCode VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR) ### OUTPUT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE countrylanguage (CountryCode VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR)", "instruction": "What is name of the country that speaks the largest number of languages?", "output": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Name the mountains classification for bradley white ### INPUT CREATE TABLE table_23944514_15 (mountains_classification VARCHAR, aggressive_rider VARCHAR) ### OUTPUT SELECT mountains_classification FROM table_23944514_15 WHERE aggressive_rider = "Bradley White"
{ "input": "CREATE TABLE table_23944514_15 (mountains_classification VARCHAR, aggressive_rider VARCHAR)", "instruction": "Name the mountains classification for bradley white", "output": "SELECT mountains_classification FROM table_23944514_15 WHERE aggressive_rider = \"Bradley White\"" }
### INSTRUCTION What was the total number for the PIW Class' The Adventures Of... and had a score bigger than 94.6? ### INPUT CREATE TABLE table_name_56 (year VARCHAR, score VARCHAR, class VARCHAR, program_title VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_name_56 WHERE class = "piw" AND program_title = "the adventures of..." AND score > 94.6
{ "input": "CREATE TABLE table_name_56 (year VARCHAR, score VARCHAR, class VARCHAR, program_title VARCHAR)", "instruction": "What was the total number for the PIW Class' The Adventures Of... and had a score bigger than 94.6?", "output": "SELECT COUNT(year) FROM table_name_56 WHERE class = \"piw\" AND program_title = \"the adventures of...\" AND score > 94.6" }
### INSTRUCTION What was the sum of the draws for the team that had 11 wins, less than 38 points, and a position smaller than 4? ### INPUT CREATE TABLE table_name_19 (draws INTEGER, points VARCHAR, position VARCHAR, wins VARCHAR) ### OUTPUT SELECT SUM(draws) FROM table_name_19 WHERE position < 4 AND wins = 11 AND points < 38
{ "input": "CREATE TABLE table_name_19 (draws INTEGER, points VARCHAR, position VARCHAR, wins VARCHAR)", "instruction": "What was the sum of the draws for the team that had 11 wins, less than 38 points, and a position smaller than 4?", "output": "SELECT SUM(draws) FROM table_name_19 WHERE position < 4 AND wins = 11 AND points < 38" }
### INSTRUCTION Which Opponent has Yards smaller than 197, and an Average smaller than 32, and a Year of 1966? ### INPUT CREATE TABLE table_name_95 (opponent VARCHAR, year VARCHAR, yards VARCHAR, average VARCHAR) ### OUTPUT SELECT opponent FROM table_name_95 WHERE yards < 197 AND average < 32 AND year = 1966
{ "input": "CREATE TABLE table_name_95 (opponent VARCHAR, year VARCHAR, yards VARCHAR, average VARCHAR)", "instruction": "Which Opponent has Yards smaller than 197, and an Average smaller than 32, and a Year of 1966?", "output": "SELECT opponent FROM table_name_95 WHERE yards < 197 AND average < 32 AND year = 1966" }
### INSTRUCTION What are the hometowns that are shared by at least two gymnasts? ### INPUT CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR) ### OUTPUT SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR)", "instruction": "What are the hometowns that are shared by at least two gymnasts?", "output": "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2" }
### INSTRUCTION Which To par has a Country of united states, and a Player of duffy waldorf? ### INPUT CREATE TABLE table_name_22 (to_par VARCHAR, country VARCHAR, player VARCHAR) ### OUTPUT SELECT to_par FROM table_name_22 WHERE country = "united states" AND player = "duffy waldorf"
{ "input": "CREATE TABLE table_name_22 (to_par VARCHAR, country VARCHAR, player VARCHAR)", "instruction": "Which To par has a Country of united states, and a Player of duffy waldorf?", "output": "SELECT to_par FROM table_name_22 WHERE country = \"united states\" AND player = \"duffy waldorf\"" }
### INSTRUCTION What is the Title of the episode after Season 10 Directed by Erik Wiese and Eddie Trigueros after Seres 35? ### INPUT CREATE TABLE table_name_83 (title VARCHAR, directed_by VARCHAR, season__number VARCHAR, series__number VARCHAR) ### OUTPUT SELECT title FROM table_name_83 WHERE season__number > 10 AND series__number > 35 AND directed_by = "erik wiese and eddie trigueros"
{ "input": "CREATE TABLE table_name_83 (title VARCHAR, directed_by VARCHAR, season__number VARCHAR, series__number VARCHAR)", "instruction": "What is the Title of the episode after Season 10 Directed by Erik Wiese and Eddie Trigueros after Seres 35?", "output": "SELECT title FROM table_name_83 WHERE season__number > 10 AND series__number > 35 AND directed_by = \"erik wiese and eddie trigueros\"" }
### INSTRUCTION Which Termination of Mission has a Presentation of Credentials on October 29, 1981 ### INPUT CREATE TABLE table_name_5 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR) ### OUTPUT SELECT termination_of_mission FROM table_name_5 WHERE presentation_of_credentials = "october 29, 1981"
{ "input": "CREATE TABLE table_name_5 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR)", "instruction": "Which Termination of Mission has a Presentation of Credentials on October 29, 1981", "output": "SELECT termination_of_mission FROM table_name_5 WHERE presentation_of_credentials = \"october 29, 1981\"" }
### INSTRUCTION what is the venue when the home team is melbourne? ### INPUT CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR) ### OUTPUT SELECT venue FROM table_name_67 WHERE home_team = "melbourne"
{ "input": "CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR)", "instruction": "what is the venue when the home team is melbourne?", "output": "SELECT venue FROM table_name_67 WHERE home_team = \"melbourne\"" }
### INSTRUCTION Who was the runner-up when the margin was 1 stroke? ### INPUT CREATE TABLE table_name_1 (runner_s__up VARCHAR, margin VARCHAR) ### OUTPUT SELECT runner_s__up FROM table_name_1 WHERE margin = "1 stroke"
{ "input": "CREATE TABLE table_name_1 (runner_s__up VARCHAR, margin VARCHAR)", "instruction": "Who was the runner-up when the margin was 1 stroke?", "output": "SELECT runner_s__up FROM table_name_1 WHERE margin = \"1 stroke\"" }
### INSTRUCTION Where is the location where Scott Junk was the opponent? ### INPUT CREATE TABLE table_name_89 (location VARCHAR, opponent VARCHAR) ### OUTPUT SELECT location FROM table_name_89 WHERE opponent = "scott junk"
{ "input": "CREATE TABLE table_name_89 (location VARCHAR, opponent VARCHAR)", "instruction": "Where is the location where Scott Junk was the opponent?", "output": "SELECT location FROM table_name_89 WHERE opponent = \"scott junk\"" }
### INSTRUCTION What is the Score of the game with a decision of Lundqvist, the November less than 28, and opponent was Boston Bruins? ### INPUT CREATE TABLE table_name_31 (score VARCHAR, opponent VARCHAR, decision VARCHAR, november VARCHAR) ### OUTPUT SELECT score FROM table_name_31 WHERE decision = "lundqvist" AND november < 28 AND opponent = "boston bruins"
{ "input": "CREATE TABLE table_name_31 (score VARCHAR, opponent VARCHAR, decision VARCHAR, november VARCHAR)", "instruction": "What is the Score of the game with a decision of Lundqvist, the November less than 28, and opponent was Boston Bruins?", "output": "SELECT score FROM table_name_31 WHERE decision = \"lundqvist\" AND november < 28 AND opponent = \"boston bruins\"" }
### INSTRUCTION Opponent of at boston patriots, and a Week larger than 3 had what average attendance? ### INPUT CREATE TABLE table_name_54 (attendance INTEGER, opponent VARCHAR, week VARCHAR) ### OUTPUT SELECT AVG(attendance) FROM table_name_54 WHERE opponent = "at boston patriots" AND week > 3
{ "input": "CREATE TABLE table_name_54 (attendance INTEGER, opponent VARCHAR, week VARCHAR)", "instruction": "Opponent of at boston patriots, and a Week larger than 3 had what average attendance?", "output": "SELECT AVG(attendance) FROM table_name_54 WHERE opponent = \"at boston patriots\" AND week > 3" }
### INSTRUCTION What is the total number of Since with a Goals larger than 6, and a Name with deco? ### INPUT CREATE TABLE table_name_57 (since VARCHAR, goals VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(since) FROM table_name_57 WHERE goals > 6 AND name = "deco"
{ "input": "CREATE TABLE table_name_57 (since VARCHAR, goals VARCHAR, name VARCHAR)", "instruction": "What is the total number of Since with a Goals larger than 6, and a Name with deco?", "output": "SELECT COUNT(since) FROM table_name_57 WHERE goals > 6 AND name = \"deco\"" }
### INSTRUCTION What are the descriptions of all the project outcomes? ### INPUT CREATE TABLE Research_outcomes (outcome_description VARCHAR, outcome_code VARCHAR); CREATE TABLE Project_outcomes (outcome_code VARCHAR) ### OUTPUT SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code
{ "input": "CREATE TABLE Research_outcomes (outcome_description VARCHAR, outcome_code VARCHAR); CREATE TABLE Project_outcomes (outcome_code VARCHAR)", "instruction": "What are the descriptions of all the project outcomes?", "output": "SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code" }
### INSTRUCTION Which Senator has a Party of republican, a Home Town of houston, and a District of 7? ### INPUT CREATE TABLE table_name_82 (senator VARCHAR, district VARCHAR, party VARCHAR, home_town VARCHAR) ### OUTPUT SELECT senator FROM table_name_82 WHERE party = "republican" AND home_town = "houston" AND district = 7
{ "input": "CREATE TABLE table_name_82 (senator VARCHAR, district VARCHAR, party VARCHAR, home_town VARCHAR)", "instruction": "Which Senator has a Party of republican, a Home Town of houston, and a District of 7?", "output": "SELECT senator FROM table_name_82 WHERE party = \"republican\" AND home_town = \"houston\" AND district = 7" }
### INSTRUCTION Which country does customer with first name as Carole and last name as Bernhard lived in? ### INPUT CREATE TABLE Addresses (country VARCHAR, address_id VARCHAR); CREATE TABLE Customers (customer_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### OUTPUT SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"
{ "input": "CREATE TABLE Addresses (country VARCHAR, address_id VARCHAR); CREATE TABLE Customers (customer_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "instruction": "Which country does customer with first name as Carole and last name as Bernhard lived in?", "output": "SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"" }
### INSTRUCTION Can you tell me the average Attendance that has the Opponent of new orleans saints, and the Week larger than 12? ### INPUT CREATE TABLE table_name_45 (attendance INTEGER, opponent VARCHAR, week VARCHAR) ### OUTPUT SELECT AVG(attendance) FROM table_name_45 WHERE opponent = "new orleans saints" AND week > 12
{ "input": "CREATE TABLE table_name_45 (attendance INTEGER, opponent VARCHAR, week VARCHAR)", "instruction": "Can you tell me the average Attendance that has the Opponent of new orleans saints, and the Week larger than 12?", "output": "SELECT AVG(attendance) FROM table_name_45 WHERE opponent = \"new orleans saints\" AND week > 12" }
### INSTRUCTION What is Local Location, when Resident Country is "Belgium", and when Mission is "Poland"? ### INPUT CREATE TABLE table_name_68 (local_location VARCHAR, resident_country VARCHAR, mission VARCHAR) ### OUTPUT SELECT local_location FROM table_name_68 WHERE resident_country = "belgium" AND mission = "poland"
{ "input": "CREATE TABLE table_name_68 (local_location VARCHAR, resident_country VARCHAR, mission VARCHAR)", "instruction": "What is Local Location, when Resident Country is \"Belgium\", and when Mission is \"Poland\"?", "output": "SELECT local_location FROM table_name_68 WHERE resident_country = \"belgium\" AND mission = \"poland\"" }
### INSTRUCTION What was the crowd when the VFL played Windy Hill? ### INPUT CREATE TABLE table_name_49 (crowd INTEGER, venue VARCHAR) ### OUTPUT SELECT SUM(crowd) FROM table_name_49 WHERE venue = "windy hill"
{ "input": "CREATE TABLE table_name_49 (crowd INTEGER, venue VARCHAR)", "instruction": "What was the crowd when the VFL played Windy Hill?", "output": "SELECT SUM(crowd) FROM table_name_49 WHERE venue = \"windy hill\"" }
### INSTRUCTION What is the maximum memory of the model that has a standard memory of 16 mb? ### INPUT CREATE TABLE table_name_10 (maximum_memory VARCHAR, standard_memory VARCHAR) ### OUTPUT SELECT maximum_memory FROM table_name_10 WHERE standard_memory = "16 mb"
{ "input": "CREATE TABLE table_name_10 (maximum_memory VARCHAR, standard_memory VARCHAR)", "instruction": "What is the maximum memory of the model that has a standard memory of 16 mb?", "output": "SELECT maximum_memory FROM table_name_10 WHERE standard_memory = \"16 mb\"" }
### INSTRUCTION who is the driver with the engine era 1.5 l6 s and the chassis is era b? ### INPUT CREATE TABLE table_name_17 (driver VARCHAR, engine VARCHAR, chassis VARCHAR) ### OUTPUT SELECT driver FROM table_name_17 WHERE engine = "era 1.5 l6 s" AND chassis = "era b"
{ "input": "CREATE TABLE table_name_17 (driver VARCHAR, engine VARCHAR, chassis VARCHAR)", "instruction": "who is the driver with the engine era 1.5 l6 s and the chassis is era b?", "output": "SELECT driver FROM table_name_17 WHERE engine = \"era 1.5 l6 s\" AND chassis = \"era b\"" }
### INSTRUCTION What is the score of the game on November 12 with the Chicago Black Hawks as the visitor team? ### INPUT CREATE TABLE table_name_24 (score VARCHAR, visitor VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_24 WHERE visitor = "chicago black hawks" AND date = "november 12"
{ "input": "CREATE TABLE table_name_24 (score VARCHAR, visitor VARCHAR, date VARCHAR)", "instruction": "What is the score of the game on November 12 with the Chicago Black Hawks as the visitor team?", "output": "SELECT score FROM table_name_24 WHERE visitor = \"chicago black hawks\" AND date = \"november 12\"" }
### INSTRUCTION How many players are there for mens singles when chen qi ma lin played mens doubles? ### INPUT CREATE TABLE table_28138035_20 (mens_singles VARCHAR, mens_doubles VARCHAR) ### OUTPUT SELECT COUNT(mens_singles) FROM table_28138035_20 WHERE mens_doubles = "Chen Qi Ma Lin"
{ "input": "CREATE TABLE table_28138035_20 (mens_singles VARCHAR, mens_doubles VARCHAR)", "instruction": "How many players are there for mens singles when chen qi ma lin played mens doubles?", "output": "SELECT COUNT(mens_singles) FROM table_28138035_20 WHERE mens_doubles = \"Chen Qi Ma Lin\"" }
### INSTRUCTION How many rounds have Fabio Carbone for fastest lap? ### INPUT CREATE TABLE table_26137666_3 (round VARCHAR, fastest_lap VARCHAR) ### OUTPUT SELECT COUNT(round) FROM table_26137666_3 WHERE fastest_lap = "Fabio Carbone"
{ "input": "CREATE TABLE table_26137666_3 (round VARCHAR, fastest_lap VARCHAR)", "instruction": "How many rounds have Fabio Carbone for fastest lap?", "output": "SELECT COUNT(round) FROM table_26137666_3 WHERE fastest_lap = \"Fabio Carbone\"" }
### INSTRUCTION What is every composition name when the music library is Heart of Asia and media type is album with the Trance genre? ### INPUT CREATE TABLE table_23829490_1 (composition_name VARCHAR, genre VARCHAR, music_library VARCHAR, media_type VARCHAR) ### OUTPUT SELECT composition_name FROM table_23829490_1 WHERE music_library = "Heart of Asia" AND media_type = "Album" AND genre = "Trance"
{ "input": "CREATE TABLE table_23829490_1 (composition_name VARCHAR, genre VARCHAR, music_library VARCHAR, media_type VARCHAR)", "instruction": "What is every composition name when the music library is Heart of Asia and media type is album with the Trance genre?", "output": "SELECT composition_name FROM table_23829490_1 WHERE music_library = \"Heart of Asia\" AND media_type = \"Album\" AND genre = \"Trance\"" }
### INSTRUCTION What is the payment method of the customer that has purchased the least quantity of items? ### INPUT CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (payment_method VARCHAR, customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR) ### OUTPUT SELECT t1.payment_method 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 GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) LIMIT 1
{ "input": "CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (payment_method VARCHAR, customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)", "instruction": "What is the payment method of the customer that has purchased the least quantity of items?", "output": "SELECT t1.payment_method 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 GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) LIMIT 1" }
### INSTRUCTION what's the success where date of completion is september 28, 2007 ### INPUT CREATE TABLE table_12078626_1 (success VARCHAR, date_of_completion VARCHAR) ### OUTPUT SELECT success FROM table_12078626_1 WHERE date_of_completion = "September 28, 2007"
{ "input": "CREATE TABLE table_12078626_1 (success VARCHAR, date_of_completion VARCHAR)", "instruction": " what's the success where date of completion is september 28, 2007", "output": "SELECT success FROM table_12078626_1 WHERE date_of_completion = \"September 28, 2007\"" }
### INSTRUCTION Find all the male members of club "Hopkins Student Enterprises". Show the first name and last name. ### INPUT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) ### OUTPUT SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises" AND t3.sex = "M"
{ "input": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)", "instruction": "Find all the male members of club \"Hopkins Student Enterprises\". Show the first name and last name.", "output": "SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\" AND t3.sex = \"M\"" }
### INSTRUCTION What was the title used for Rosie, the film nominated for the dutch language? ### INPUT CREATE TABLE table_name_79 (film_title_used_in_nomination VARCHAR, language_s_ VARCHAR, original_title VARCHAR) ### OUTPUT SELECT film_title_used_in_nomination FROM table_name_79 WHERE language_s_ = "dutch" AND original_title = "rosie"
{ "input": "CREATE TABLE table_name_79 (film_title_used_in_nomination VARCHAR, language_s_ VARCHAR, original_title VARCHAR)", "instruction": "What was the title used for Rosie, the film nominated for the dutch language?", "output": "SELECT film_title_used_in_nomination FROM table_name_79 WHERE language_s_ = \"dutch\" AND original_title = \"rosie\"" }
### INSTRUCTION What is the total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11? ### INPUT CREATE TABLE table_name_17 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR) ### OUTPUT SELECT COUNT(gold) FROM table_name_17 WHERE bronze < 3 AND rank < 11 AND silver > 0
{ "input": "CREATE TABLE table_name_17 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR)", "instruction": "What is the total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11?", "output": "SELECT COUNT(gold) FROM table_name_17 WHERE bronze < 3 AND rank < 11 AND silver > 0" }
### INSTRUCTION Which Team has Podiums of 0, and a Position of nc†? ### INPUT CREATE TABLE table_name_94 (team VARCHAR, podiums VARCHAR, position VARCHAR) ### OUTPUT SELECT team FROM table_name_94 WHERE podiums = "0" AND position = "nc†"
{ "input": "CREATE TABLE table_name_94 (team VARCHAR, podiums VARCHAR, position VARCHAR)", "instruction": "Which Team has Podiums of 0, and a Position of nc†?", "output": "SELECT team FROM table_name_94 WHERE podiums = \"0\" AND position = \"nc†\"" }
### INSTRUCTION How old was the horse when the SP was 200/1? ### INPUT CREATE TABLE table_22265261_1 (age VARCHAR, sp VARCHAR) ### OUTPUT SELECT COUNT(age) FROM table_22265261_1 WHERE sp = "200/1"
{ "input": "CREATE TABLE table_22265261_1 (age VARCHAR, sp VARCHAR)", "instruction": "How old was the horse when the SP was 200/1?", "output": "SELECT COUNT(age) FROM table_22265261_1 WHERE sp = \"200/1\"" }
### INSTRUCTION Name the total number of male rank for fiji ### INPUT CREATE TABLE table_2701625_1 (male_rank VARCHAR, country VARCHAR) ### OUTPUT SELECT COUNT(male_rank) FROM table_2701625_1 WHERE country = "Fiji"
{ "input": "CREATE TABLE table_2701625_1 (male_rank VARCHAR, country VARCHAR)", "instruction": "Name the total number of male rank for fiji", "output": "SELECT COUNT(male_rank) FROM table_2701625_1 WHERE country = \"Fiji\"" }
### INSTRUCTION What's the engine capacity when the mpg-UK urban is less than 12.2, the mpg-UK extra urban is less than 18.8 and the mpg-US turban is less than 7.2? ### INPUT CREATE TABLE table_name_53 (engine_capacity INTEGER, mpg_us_urban VARCHAR, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR) ### OUTPUT SELECT SUM(engine_capacity) FROM table_name_53 WHERE mpg_uk_urban__cold_ < 12.2 AND mpg_uk_extra_urban < 18.8 AND mpg_us_urban < 7.2
{ "input": "CREATE TABLE table_name_53 (engine_capacity INTEGER, mpg_us_urban VARCHAR, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR)", "instruction": "What's the engine capacity when the mpg-UK urban is less than 12.2, the mpg-UK extra urban is less than 18.8 and the mpg-US turban is less than 7.2?", "output": "SELECT SUM(engine_capacity) FROM table_name_53 WHERE mpg_uk_urban__cold_ < 12.2 AND mpg_uk_extra_urban < 18.8 AND mpg_us_urban < 7.2" }
### INSTRUCTION Which Servedby has a Local authority [a ] of thurrock, and a Station of ockendon? ### INPUT CREATE TABLE table_name_1 (servedby VARCHAR, station VARCHAR, local_authority_ VARCHAR, a_ VARCHAR) ### OUTPUT SELECT servedby FROM table_name_1 WHERE local_authority_[a_] = "thurrock" AND station = "ockendon"
{ "input": "CREATE TABLE table_name_1 (servedby VARCHAR, station VARCHAR, local_authority_ VARCHAR, a_ VARCHAR)", "instruction": "Which Servedby has a Local authority [a ] of thurrock, and a Station of ockendon?", "output": "SELECT servedby FROM table_name_1 WHERE local_authority_[a_] = \"thurrock\" AND station = \"ockendon\"" }
### INSTRUCTION How many no votes were there in the partial public funding of election campaigns legislation? ### INPUT CREATE TABLE table_256286_63 (no_votes VARCHAR, description VARCHAR) ### OUTPUT SELECT no_votes FROM table_256286_63 WHERE description = "Partial public funding of election campaigns"
{ "input": "CREATE TABLE table_256286_63 (no_votes VARCHAR, description VARCHAR)", "instruction": "How many no votes were there in the partial public funding of election campaigns legislation?", "output": "SELECT no_votes FROM table_256286_63 WHERE description = \"Partial public funding of election campaigns\"" }
### INSTRUCTION What is the Attendance number when the runner-up was suntory sungoliath, and a Title of 46th? ### INPUT CREATE TABLE table_name_41 (attendance VARCHAR, runner_up VARCHAR, title VARCHAR) ### OUTPUT SELECT attendance FROM table_name_41 WHERE runner_up = "suntory sungoliath" AND title = "46th"
{ "input": "CREATE TABLE table_name_41 (attendance VARCHAR, runner_up VARCHAR, title VARCHAR)", "instruction": "What is the Attendance number when the runner-up was suntory sungoliath, and a Title of 46th?", "output": "SELECT attendance FROM table_name_41 WHERE runner_up = \"suntory sungoliath\" AND title = \"46th\"" }
### INSTRUCTION Name the high rebounds for record 10-19 ### INPUT CREATE TABLE table_23274514_5 (high_rebounds VARCHAR, record VARCHAR) ### OUTPUT SELECT high_rebounds FROM table_23274514_5 WHERE record = "10-19"
{ "input": "CREATE TABLE table_23274514_5 (high_rebounds VARCHAR, record VARCHAR)", "instruction": "Name the high rebounds for record 10-19", "output": "SELECT high_rebounds FROM table_23274514_5 WHERE record = \"10-19\"" }
### INSTRUCTION Name the production code for 4.92 million viewers ### INPUT CREATE TABLE table_23117208_4 (prod_code VARCHAR, viewers__millions_ VARCHAR) ### OUTPUT SELECT prod_code FROM table_23117208_4 WHERE viewers__millions_ = "4.92"
{ "input": "CREATE TABLE table_23117208_4 (prod_code VARCHAR, viewers__millions_ VARCHAR)", "instruction": "Name the production code for 4.92 million viewers", "output": "SELECT prod_code FROM table_23117208_4 WHERE viewers__millions_ = \"4.92\"" }
### INSTRUCTION When has Result of 2–0, and a Score of 2 – 0? ### INPUT CREATE TABLE table_name_38 (date VARCHAR, result VARCHAR, score VARCHAR) ### OUTPUT SELECT date FROM table_name_38 WHERE result = "2–0" AND score = "2 – 0"
{ "input": "CREATE TABLE table_name_38 (date VARCHAR, result VARCHAR, score VARCHAR)", "instruction": "When has Result of 2–0, and a Score of 2 – 0?", "output": "SELECT date FROM table_name_38 WHERE result = \"2–0\" AND score = \"2 – 0\"" }
### INSTRUCTION What is the total failures of heliocentric orbit orbital regimes and launches less than 1? ### INPUT CREATE TABLE table_name_33 (failures INTEGER, orbital_regime VARCHAR, launches VARCHAR) ### OUTPUT SELECT SUM(failures) FROM table_name_33 WHERE orbital_regime = "heliocentric orbit" AND launches < 1
{ "input": "CREATE TABLE table_name_33 (failures INTEGER, orbital_regime VARCHAR, launches VARCHAR)", "instruction": "What is the total failures of heliocentric orbit orbital regimes and launches less than 1?", "output": "SELECT SUM(failures) FROM table_name_33 WHERE orbital_regime = \"heliocentric orbit\" AND launches < 1" }
### INSTRUCTION What is the new classification for La Mirada, California? ### INPUT CREATE TABLE table_name_69 (new_classification VARCHAR, location VARCHAR) ### OUTPUT SELECT new_classification FROM table_name_69 WHERE location = "la mirada, california"
{ "input": "CREATE TABLE table_name_69 (new_classification VARCHAR, location VARCHAR)", "instruction": "What is the new classification for La Mirada, California?", "output": "SELECT new_classification FROM table_name_69 WHERE location = \"la mirada, california\"" }
### INSTRUCTION Which department has Guy-Dominique Kennel as president since 2008? ### INPUT CREATE TABLE table_name_54 (départment__or_collectivity_ VARCHAR, since VARCHAR, président VARCHAR) ### OUTPUT SELECT départment__or_collectivity_ FROM table_name_54 WHERE since = 2008 AND président = "guy-dominique kennel"
{ "input": "CREATE TABLE table_name_54 (départment__or_collectivity_ VARCHAR, since VARCHAR, président VARCHAR)", "instruction": "Which department has Guy-Dominique Kennel as president since 2008?", "output": "SELECT départment__or_collectivity_ FROM table_name_54 WHERE since = 2008 AND président = \"guy-dominique kennel\"" }
### INSTRUCTION What is the year when the spoksperson is Ruslana? ### INPUT CREATE TABLE table_1998037_9 (year_s_ INTEGER, spokesperson VARCHAR) ### OUTPUT SELECT MIN(year_s_) FROM table_1998037_9 WHERE spokesperson = "Ruslana"
{ "input": "CREATE TABLE table_1998037_9 (year_s_ INTEGER, spokesperson VARCHAR)", "instruction": "What is the year when the spoksperson is Ruslana?", "output": "SELECT MIN(year_s_) FROM table_1998037_9 WHERE spokesperson = \"Ruslana\"" }
### INSTRUCTION What is the total number of episodes where hugh laurie was the 3rd performer? ### INPUT CREATE TABLE table_name_70 (episode VARCHAR, performer_3 VARCHAR) ### OUTPUT SELECT COUNT(episode) FROM table_name_70 WHERE performer_3 = "hugh laurie"
{ "input": "CREATE TABLE table_name_70 (episode VARCHAR, performer_3 VARCHAR)", "instruction": "What is the total number of episodes where hugh laurie was the 3rd performer?", "output": "SELECT COUNT(episode) FROM table_name_70 WHERE performer_3 = \"hugh laurie\"" }
### INSTRUCTION Which average time has eithan urbach as a name with a lane bigger than 2? ### INPUT CREATE TABLE table_name_99 (time INTEGER, name VARCHAR, lane VARCHAR) ### OUTPUT SELECT AVG(time) FROM table_name_99 WHERE name = "eithan urbach" AND lane > 2
{ "input": "CREATE TABLE table_name_99 (time INTEGER, name VARCHAR, lane VARCHAR)", "instruction": "Which average time has eithan urbach as a name with a lane bigger than 2?", "output": "SELECT AVG(time) FROM table_name_99 WHERE name = \"eithan urbach\" AND lane > 2" }
### INSTRUCTION Which # 100 has a Season of 1991, and an Against of surrey? ### INPUT CREATE TABLE table_name_87 (_number_100 INTEGER, season VARCHAR, against VARCHAR) ### OUTPUT SELECT MAX(_number_100) FROM table_name_87 WHERE season = "1991" AND against = "surrey"
{ "input": "CREATE TABLE table_name_87 (_number_100 INTEGER, season VARCHAR, against VARCHAR)", "instruction": "Which # 100 has a Season of 1991, and an Against of surrey?", "output": "SELECT MAX(_number_100) FROM table_name_87 WHERE season = \"1991\" AND against = \"surrey\"" }
### INSTRUCTION What are the names of properties that are either houses or apartments with more than 1 room? ### INPUT CREATE TABLE Properties (property_name VARCHAR, property_type_code VARCHAR, room_count VARCHAR) ### OUTPUT SELECT property_name FROM Properties WHERE property_type_code = "House" UNION SELECT property_name FROM Properties WHERE property_type_code = "Apartment" AND room_count > 1
{ "input": "CREATE TABLE Properties (property_name VARCHAR, property_type_code VARCHAR, room_count VARCHAR)", "instruction": "What are the names of properties that are either houses or apartments with more than 1 room?", "output": "SELECT property_name FROM Properties WHERE property_type_code = \"House\" UNION SELECT property_name FROM Properties WHERE property_type_code = \"Apartment\" AND room_count > 1" }
### INSTRUCTION what is the least number of no decisions for scott feldman category:articles with hcards ### INPUT CREATE TABLE table_19864214_3 (no_decisions INTEGER, pitcher VARCHAR) ### OUTPUT SELECT MIN(no_decisions) FROM table_19864214_3 WHERE pitcher = "Scott Feldman Category:Articles with hCards"
{ "input": "CREATE TABLE table_19864214_3 (no_decisions INTEGER, pitcher VARCHAR)", "instruction": "what is the least number of no decisions for scott feldman category:articles with hcards", "output": "SELECT MIN(no_decisions) FROM table_19864214_3 WHERE pitcher = \"Scott Feldman Category:Articles with hCards\"" }
### INSTRUCTION Which Track number has a Album title of 文武双全升级版, and a Title of 老爸你别装酷? ### INPUT CREATE TABLE table_name_44 (track_number VARCHAR, album_title VARCHAR, title VARCHAR) ### OUTPUT SELECT track_number FROM table_name_44 WHERE album_title = "文武双全升级版" AND title = "老爸你别装酷"
{ "input": "CREATE TABLE table_name_44 (track_number VARCHAR, album_title VARCHAR, title VARCHAR)", "instruction": "Which Track number has a Album title of 文武双全升级版, and a Title of 老爸你别装酷?", "output": "SELECT track_number FROM table_name_44 WHERE album_title = \"文武双全升级版\" AND title = \"老爸你别装酷\"" }
### INSTRUCTION Find employee with ID and name of the country presently where (s)he is working. ### INPUT CREATE TABLE countries (country_name VARCHAR, country_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR); CREATE TABLE locations (location_id VARCHAR, country_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR, department_id VARCHAR) ### OUTPUT SELECT T1.employee_id, T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id
{ "input": "CREATE TABLE countries (country_name VARCHAR, country_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR); CREATE TABLE locations (location_id VARCHAR, country_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR, department_id VARCHAR)", "instruction": "Find employee with ID and name of the country presently where (s)he is working.", "output": "SELECT T1.employee_id, T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id" }
### INSTRUCTION What is Original title, when Director is Veljko Bulajić category:articles with hcards, and when Film title used in nomination is Train Without A Timetable? ### INPUT CREATE TABLE table_name_35 (original_title VARCHAR, director VARCHAR, film_title_used_in_nomination VARCHAR) ### OUTPUT SELECT original_title FROM table_name_35 WHERE director = "veljko bulajić category:articles with hcards" AND film_title_used_in_nomination = "train without a timetable"
{ "input": "CREATE TABLE table_name_35 (original_title VARCHAR, director VARCHAR, film_title_used_in_nomination VARCHAR)", "instruction": "What is Original title, when Director is Veljko Bulajić category:articles with hcards, and when Film title used in nomination is Train Without A Timetable?", "output": "SELECT original_title FROM table_name_35 WHERE director = \"veljko bulajić category:articles with hcards\" AND film_title_used_in_nomination = \"train without a timetable\"" }
### INSTRUCTION What is the release date for the standard cd release format in north america? ### INPUT CREATE TABLE table_name_18 (release_date VARCHAR, release_format VARCHAR, country VARCHAR) ### OUTPUT SELECT release_date FROM table_name_18 WHERE release_format = "standard cd" AND country = "north america"
{ "input": "CREATE TABLE table_name_18 (release_date VARCHAR, release_format VARCHAR, country VARCHAR)", "instruction": "What is the release date for the standard cd release format in north america?", "output": "SELECT release_date FROM table_name_18 WHERE release_format = \"standard cd\" AND country = \"north america\"" }
### INSTRUCTION when does the train arriving at stamford east at 11.45 departure ### INPUT CREATE TABLE table_18333678_2 (departure VARCHAR, arrival VARCHAR, going_to VARCHAR) ### OUTPUT SELECT departure FROM table_18333678_2 WHERE arrival = "11.45" AND going_to = "Stamford East"
{ "input": "CREATE TABLE table_18333678_2 (departure VARCHAR, arrival VARCHAR, going_to VARCHAR)", "instruction": "when does the train arriving at stamford east at 11.45 departure ", "output": "SELECT departure FROM table_18333678_2 WHERE arrival = \"11.45\" AND going_to = \"Stamford East\"" }
### INSTRUCTION In the Ohio 4 district, that is the first elected date that has a result of re-elected? ### INPUT CREATE TABLE table_name_66 (first_elected INTEGER, result VARCHAR, district VARCHAR) ### OUTPUT SELECT SUM(first_elected) FROM table_name_66 WHERE result = "re-elected" AND district = "ohio 4"
{ "input": "CREATE TABLE table_name_66 (first_elected INTEGER, result VARCHAR, district VARCHAR)", "instruction": "In the Ohio 4 district, that is the first elected date that has a result of re-elected?", "output": "SELECT SUM(first_elected) FROM table_name_66 WHERE result = \"re-elected\" AND district = \"ohio 4\"" }
### INSTRUCTION Which Opponents in Final has an Outcome of winner, and a Surface of hard, and a Date of april 17, 1994? ### INPUT CREATE TABLE table_name_15 (opponents_in_final VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR) ### OUTPUT SELECT opponents_in_final FROM table_name_15 WHERE outcome = "winner" AND surface = "hard" AND date = "april 17, 1994"
{ "input": "CREATE TABLE table_name_15 (opponents_in_final VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR)", "instruction": "Which Opponents in Final has an Outcome of winner, and a Surface of hard, and a Date of april 17, 1994?", "output": "SELECT opponents_in_final FROM table_name_15 WHERE outcome = \"winner\" AND surface = \"hard\" AND date = \"april 17, 1994\"" }
### INSTRUCTION Who were the candidates where the result was retired Republican hold and the incumbent was Philemon Bliss? ### INPUT CREATE TABLE table_2646656_3 (candidates VARCHAR, result VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT candidates FROM table_2646656_3 WHERE result = "Retired Republican hold" AND incumbent = "Philemon Bliss"
{ "input": "CREATE TABLE table_2646656_3 (candidates VARCHAR, result VARCHAR, incumbent VARCHAR)", "instruction": "Who were the candidates where the result was retired Republican hold and the incumbent was Philemon Bliss?", "output": "SELECT candidates FROM table_2646656_3 WHERE result = \"Retired Republican hold\" AND incumbent = \"Philemon Bliss\"" }
### INSTRUCTION Which september 26–28, 2011 polling firm had a Link of html, less than 36 liberals, and less than 8 green? ### INPUT CREATE TABLE table_name_96 (polling_firm VARCHAR, date_of_polling VARCHAR, green VARCHAR, link VARCHAR, liberal VARCHAR) ### OUTPUT SELECT polling_firm FROM table_name_96 WHERE link = "html" AND liberal < 36 AND green < 8 AND date_of_polling = "september 26–28, 2011"
{ "input": "CREATE TABLE table_name_96 (polling_firm VARCHAR, date_of_polling VARCHAR, green VARCHAR, link VARCHAR, liberal VARCHAR)", "instruction": "Which september 26–28, 2011 polling firm had a Link of html, less than 36 liberals, and less than 8 green?", "output": "SELECT polling_firm FROM table_name_96 WHERE link = \"html\" AND liberal < 36 AND green < 8 AND date_of_polling = \"september 26–28, 2011\"" }
### INSTRUCTION What is the average number of rounds for winner Rafael Cavalcante? ### INPUT CREATE TABLE table_name_37 (round INTEGER, winner VARCHAR) ### OUTPUT SELECT AVG(round) FROM table_name_37 WHERE winner = "rafael cavalcante"
{ "input": "CREATE TABLE table_name_37 (round INTEGER, winner VARCHAR)", "instruction": "What is the average number of rounds for winner Rafael Cavalcante?", "output": "SELECT AVG(round) FROM table_name_37 WHERE winner = \"rafael cavalcante\"" }
### INSTRUCTION What is Rank Points, when Total is "17", and when Shooter is "Lalita Yauhleuskaya ( AUS )"? ### INPUT CREATE TABLE table_name_12 (rank_points VARCHAR, total VARCHAR, shooter VARCHAR) ### OUTPUT SELECT rank_points FROM table_name_12 WHERE total = "17" AND shooter = "lalita yauhleuskaya ( aus )"
{ "input": "CREATE TABLE table_name_12 (rank_points VARCHAR, total VARCHAR, shooter VARCHAR)", "instruction": "What is Rank Points, when Total is \"17\", and when Shooter is \"Lalita Yauhleuskaya ( AUS )\"?", "output": "SELECT rank_points FROM table_name_12 WHERE total = \"17\" AND shooter = \"lalita yauhleuskaya ( aus )\"" }
### INSTRUCTION Tell me the average bronze for rank of 43 and total less than 11 ### INPUT CREATE TABLE table_name_41 (bronze INTEGER, rank VARCHAR, total VARCHAR) ### OUTPUT SELECT AVG(bronze) FROM table_name_41 WHERE rank = "43" AND total < 11
{ "input": "CREATE TABLE table_name_41 (bronze INTEGER, rank VARCHAR, total VARCHAR)", "instruction": "Tell me the average bronze for rank of 43 and total less than 11", "output": "SELECT AVG(bronze) FROM table_name_41 WHERE rank = \"43\" AND total < 11" }
### INSTRUCTION What episode number of the season had BCW410 as a production code? ### INPUT CREATE TABLE table_24319661_5 (no_in_season VARCHAR, production_code VARCHAR) ### OUTPUT SELECT no_in_season FROM table_24319661_5 WHERE production_code = "BCW410"
{ "input": "CREATE TABLE table_24319661_5 (no_in_season VARCHAR, production_code VARCHAR)", "instruction": "What episode number of the season had BCW410 as a production code?", "output": "SELECT no_in_season FROM table_24319661_5 WHERE production_code = \"BCW410\"" }
### INSTRUCTION What is Winner, when Week is 8 May, when Semi Finalists is Helena Suková Mary Pierce, and when Runner-Up is Conchita Martínez Patricia Tarabini? ### INPUT CREATE TABLE table_name_70 (winner VARCHAR, runner_up VARCHAR, week_of VARCHAR, semi_finalists VARCHAR) ### OUTPUT SELECT winner FROM table_name_70 WHERE week_of = "8 may" AND semi_finalists = "helena suková mary pierce" AND runner_up = "conchita martínez patricia tarabini"
{ "input": "CREATE TABLE table_name_70 (winner VARCHAR, runner_up VARCHAR, week_of VARCHAR, semi_finalists VARCHAR)", "instruction": "What is Winner, when Week is 8 May, when Semi Finalists is Helena Suková Mary Pierce, and when Runner-Up is Conchita Martínez Patricia Tarabini?", "output": "SELECT winner FROM table_name_70 WHERE week_of = \"8 may\" AND semi_finalists = \"helena suková mary pierce\" AND runner_up = \"conchita martínez patricia tarabini\"" }
### INSTRUCTION What is the latest year that has an n/a mintage and an Issue Price of $89.95? ### INPUT CREATE TABLE table_name_39 (year INTEGER, mintage VARCHAR, issue_price VARCHAR) ### OUTPUT SELECT MAX(year) FROM table_name_39 WHERE mintage = "n/a" AND issue_price = "$89.95"
{ "input": "CREATE TABLE table_name_39 (year INTEGER, mintage VARCHAR, issue_price VARCHAR)", "instruction": "What is the latest year that has an n/a mintage and an Issue Price of $89.95?", "output": "SELECT MAX(year) FROM table_name_39 WHERE mintage = \"n/a\" AND issue_price = \"$89.95\"" }
### INSTRUCTION What is the lightest Weight (kg), when the Jersey # is greater than 22, when the Position is F, and when the Birthdate is March 19, 1980? ### INPUT CREATE TABLE table_name_62 (weight__kg_ INTEGER, birthdate VARCHAR, jersey__number VARCHAR, position VARCHAR) ### OUTPUT SELECT MIN(weight__kg_) FROM table_name_62 WHERE jersey__number > 22 AND position = "f" AND birthdate = "march 19, 1980"
{ "input": "CREATE TABLE table_name_62 (weight__kg_ INTEGER, birthdate VARCHAR, jersey__number VARCHAR, position VARCHAR)", "instruction": "What is the lightest Weight (kg), when the Jersey # is greater than 22, when the Position is F, and when the Birthdate is March 19, 1980?", "output": "SELECT MIN(weight__kg_) FROM table_name_62 WHERE jersey__number > 22 AND position = \"f\" AND birthdate = \"march 19, 1980\"" }
### INSTRUCTION What is the to par that has england as the country, with 66 as a score? ### INPUT CREATE TABLE table_name_95 (to_par VARCHAR, country VARCHAR, score VARCHAR) ### OUTPUT SELECT to_par FROM table_name_95 WHERE country = "england" AND score = 66
{ "input": "CREATE TABLE table_name_95 (to_par VARCHAR, country VARCHAR, score VARCHAR)", "instruction": "What is the to par that has england as the country, with 66 as a score?", "output": "SELECT to_par FROM table_name_95 WHERE country = \"england\" AND score = 66" }
### INSTRUCTION What was the final score at texas stadium on September 17? ### INPUT CREATE TABLE table_name_43 (final_score VARCHAR, stadium VARCHAR, date VARCHAR) ### OUTPUT SELECT final_score FROM table_name_43 WHERE stadium = "texas stadium" AND date = "september 17"
{ "input": "CREATE TABLE table_name_43 (final_score VARCHAR, stadium VARCHAR, date VARCHAR)", "instruction": "What was the final score at texas stadium on September 17?", "output": "SELECT final_score FROM table_name_43 WHERE stadium = \"texas stadium\" AND date = \"september 17\"" }
### INSTRUCTION What date did the New York Giants play as a visiting team? ### INPUT CREATE TABLE table_name_34 (date VARCHAR, visiting_team VARCHAR) ### OUTPUT SELECT date FROM table_name_34 WHERE visiting_team = "new york giants"
{ "input": "CREATE TABLE table_name_34 (date VARCHAR, visiting_team VARCHAR)", "instruction": "What date did the New York Giants play as a visiting team?", "output": "SELECT date FROM table_name_34 WHERE visiting_team = \"new york giants\"" }
### INSTRUCTION Name the landesliga mitte for fc gundelfingen and vfl frohnlach ### INPUT CREATE TABLE table_20181270_3 (landesliga_mitte VARCHAR, landesliga_süd VARCHAR, landesliga_nord VARCHAR) ### OUTPUT SELECT landesliga_mitte FROM table_20181270_3 WHERE landesliga_süd = "FC Gundelfingen" AND landesliga_nord = "VfL Frohnlach"
{ "input": "CREATE TABLE table_20181270_3 (landesliga_mitte VARCHAR, landesliga_süd VARCHAR, landesliga_nord VARCHAR)", "instruction": "Name the landesliga mitte for fc gundelfingen and vfl frohnlach", "output": "SELECT landesliga_mitte FROM table_20181270_3 WHERE landesliga_süd = \"FC Gundelfingen\" AND landesliga_nord = \"VfL Frohnlach\"" }
### INSTRUCTION Which Record has a December smaller than 28, and Points smaller than 38, and a Game smaller than 26, and a Score of 0–1 ot? ### INPUT CREATE TABLE table_name_53 (record VARCHAR, score VARCHAR, game VARCHAR, december VARCHAR, points VARCHAR) ### OUTPUT SELECT record FROM table_name_53 WHERE december < 28 AND points < 38 AND game < 26 AND score = "0–1 ot"
{ "input": "CREATE TABLE table_name_53 (record VARCHAR, score VARCHAR, game VARCHAR, december VARCHAR, points VARCHAR)", "instruction": "Which Record has a December smaller than 28, and Points smaller than 38, and a Game smaller than 26, and a Score of 0–1 ot?", "output": "SELECT record FROM table_name_53 WHERE december < 28 AND points < 38 AND game < 26 AND score = \"0–1 ot\"" }
### INSTRUCTION Which committees have delegates from both democratic party and liberal party? ### INPUT CREATE TABLE election (Committee VARCHAR, Party VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Party VARCHAR) ### OUTPUT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Liberal"
{ "input": "CREATE TABLE election (Committee VARCHAR, Party VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Party VARCHAR)", "instruction": "Which committees have delegates from both democratic party and liberal party?", "output": "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Democratic\" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Liberal\"" }
### INSTRUCTION How many times were the candidates leven powell (f) 63.8% roger west (dr) 36.4%? ### INPUT CREATE TABLE table_2668405_17 (first_elected VARCHAR, candidates VARCHAR) ### OUTPUT SELECT COUNT(first_elected) FROM table_2668405_17 WHERE candidates = "Leven Powell (F) 63.8% Roger West (DR) 36.4%"
{ "input": "CREATE TABLE table_2668405_17 (first_elected VARCHAR, candidates VARCHAR)", "instruction": "How many times were the candidates leven powell (f) 63.8% roger west (dr) 36.4%?", "output": "SELECT COUNT(first_elected) FROM table_2668405_17 WHERE candidates = \"Leven Powell (F) 63.8% Roger West (DR) 36.4%\"" }
### INSTRUCTION How many distinct locations have the things with service detail 'Unsatisfied' been located in? ### INPUT CREATE TABLE Timed_Locations_of_Things (Location_Code VARCHAR, thing_id VARCHAR); CREATE TABLE Things (thing_id VARCHAR, service_details VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT T2.Location_Code) FROM Things AS T1 JOIN Timed_Locations_of_Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.service_details = 'Unsatisfied'
{ "input": "CREATE TABLE Timed_Locations_of_Things (Location_Code VARCHAR, thing_id VARCHAR); CREATE TABLE Things (thing_id VARCHAR, service_details VARCHAR)", "instruction": "How many distinct locations have the things with service detail 'Unsatisfied' been located in?", "output": "SELECT COUNT(DISTINCT T2.Location_Code) FROM Things AS T1 JOIN Timed_Locations_of_Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.service_details = 'Unsatisfied'" }
### INSTRUCTION For the Cage Combat Fighting Championships: Mayhem, what was the record? ### INPUT CREATE TABLE table_name_13 (record VARCHAR, event VARCHAR) ### OUTPUT SELECT record FROM table_name_13 WHERE event = "cage combat fighting championships: mayhem"
{ "input": "CREATE TABLE table_name_13 (record VARCHAR, event VARCHAR)", "instruction": "For the Cage Combat Fighting Championships: Mayhem, what was the record?", "output": "SELECT record FROM table_name_13 WHERE event = \"cage combat fighting championships: mayhem\"" }
### INSTRUCTION What is the serials issued in 1982 with a format of ABC-123? ### INPUT CREATE TABLE table_name_60 (serials_issued VARCHAR, serial_format VARCHAR, issued VARCHAR) ### OUTPUT SELECT serials_issued FROM table_name_60 WHERE serial_format = "abc-123" AND issued = "1982"
{ "input": "CREATE TABLE table_name_60 (serials_issued VARCHAR, serial_format VARCHAR, issued VARCHAR)", "instruction": "What is the serials issued in 1982 with a format of ABC-123?", "output": "SELECT serials_issued FROM table_name_60 WHERE serial_format = \"abc-123\" AND issued = \"1982\"" }
### INSTRUCTION When the team classification was quick step, what was the total number of general classifications? ### INPUT CREATE TABLE table_15294880_2 (general_classification VARCHAR, team_classification VARCHAR) ### OUTPUT SELECT COUNT(general_classification) FROM table_15294880_2 WHERE team_classification = "Quick Step"
{ "input": "CREATE TABLE table_15294880_2 (general_classification VARCHAR, team_classification VARCHAR)", "instruction": "When the team classification was quick step, what was the total number of general classifications?", "output": "SELECT COUNT(general_classification) FROM table_15294880_2 WHERE team_classification = \"Quick Step\"" }
### INSTRUCTION What is the title of the first episode of the season that begin on february 27, 1954? ### INPUT CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR) ### OUTPUT SELECT title FROM table_15824796_3 WHERE original_air_date = "February 27, 1954"
{ "input": "CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR)", "instruction": "What is the title of the first episode of the season that begin on february 27, 1954?", "output": "SELECT title FROM table_15824796_3 WHERE original_air_date = \"February 27, 1954\"" }
### INSTRUCTION What points awarded are higher than 6 but smaller than 9 ### INPUT CREATE TABLE table_name_51 (points_awarded__platinum_ INTEGER, points_awarded__gold_ VARCHAR, points_awarded__silver_ VARCHAR) ### OUTPUT SELECT MAX(points_awarded__platinum_) FROM table_name_51 WHERE points_awarded__gold_ = 9 AND points_awarded__silver_ > 6
{ "input": "CREATE TABLE table_name_51 (points_awarded__platinum_ INTEGER, points_awarded__gold_ VARCHAR, points_awarded__silver_ VARCHAR)", "instruction": "What points awarded are higher than 6 but smaller than 9", "output": "SELECT MAX(points_awarded__platinum_) FROM table_name_51 WHERE points_awarded__gold_ = 9 AND points_awarded__silver_ > 6" }
### INSTRUCTION What is Reserved Instruments, when Conduct of Litigation is Yes, and when Probate Activities is Yes? ### INPUT CREATE TABLE table_name_19 (reserved_instruments VARCHAR, conduct_of_litigation VARCHAR, probate_activities VARCHAR) ### OUTPUT SELECT reserved_instruments FROM table_name_19 WHERE conduct_of_litigation = "yes" AND probate_activities = "yes"
{ "input": "CREATE TABLE table_name_19 (reserved_instruments VARCHAR, conduct_of_litigation VARCHAR, probate_activities VARCHAR)", "instruction": "What is Reserved Instruments, when Conduct of Litigation is Yes, and when Probate Activities is Yes?", "output": "SELECT reserved_instruments FROM table_name_19 WHERE conduct_of_litigation = \"yes\" AND probate_activities = \"yes\"" }
### INSTRUCTION What's Sara Isakovič's lane number that had a heat of 3? ### INPUT CREATE TABLE table_name_43 (lane INTEGER, heat VARCHAR, name VARCHAR) ### OUTPUT SELECT SUM(lane) FROM table_name_43 WHERE heat = 3 AND name = "sara isakovič"
{ "input": "CREATE TABLE table_name_43 (lane INTEGER, heat VARCHAR, name VARCHAR)", "instruction": "What's Sara Isakovič's lane number that had a heat of 3?", "output": "SELECT SUM(lane) FROM table_name_43 WHERE heat = 3 AND name = \"sara isakovič\"" }