text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Who is the Opponent on January 16? ### INPUT CREATE TABLE table_name_45 (opponent VARCHAR, date VARCHAR) ### OUTPUT SELECT opponent FROM table_name_45 WHERE date = "january 16"
{ "input": "CREATE TABLE table_name_45 (opponent VARCHAR, date VARCHAR)", "instruction": "Who is the Opponent on January 16?", "output": "SELECT opponent FROM table_name_45 WHERE date = \"january 16\"" }
### INSTRUCTION Which Year has a Category of best original song (รอเธอหันมา – โฟกัส จิระกุล)? ### INPUT CREATE TABLE table_name_58 (year INTEGER, category VARCHAR) ### OUTPUT SELECT MAX(year) FROM table_name_58 WHERE category = "best original song (รอเธอหันมา – โฟกัส จิระกุล)"
{ "input": "CREATE TABLE table_name_58 (year INTEGER, category VARCHAR)", "instruction": "Which Year has a Category of best original song (รอเธอหันมา – โฟกัส จิระกุล)?", "output": "SELECT MAX(year) FROM table_name_58 WHERE category = \"best original song (รอเธอหันมา – โฟกัส จิระกุล)\"" }
### INSTRUCTION How many Miss Waters has Canada had? ### INPUT CREATE TABLE table_30008638_1 (miss_water INTEGER, country_territory VARCHAR) ### OUTPUT SELECT MAX(miss_water) FROM table_30008638_1 WHERE country_territory = "Canada"
{ "input": "CREATE TABLE table_30008638_1 (miss_water INTEGER, country_territory VARCHAR)", "instruction": "How many Miss Waters has Canada had?", "output": "SELECT MAX(miss_water) FROM table_30008638_1 WHERE country_territory = \"Canada\"" }
### INSTRUCTION Which Purpose has an Elevation + Height of 0 + metres (ft), a Location of bikini, namu (charlie), and a Yield of 220 kt? ### INPUT CREATE TABLE table_name_37 (purpose VARCHAR, yield VARCHAR, location VARCHAR, elevation_ VARCHAR, _height VARCHAR) ### OUTPUT SELECT purpose FROM table_name_37 WHERE elevation_ + _height = "0 + metres (ft)" AND location = "bikini, namu (charlie)" AND yield = "220 kt"
{ "input": "CREATE TABLE table_name_37 (purpose VARCHAR, yield VARCHAR, location VARCHAR, elevation_ VARCHAR, _height VARCHAR)", "instruction": "Which Purpose has an Elevation + Height of 0 + metres (ft), a Location of bikini, namu (charlie), and a Yield of 220 kt?", "output": "SELECT purpose FROM table_name_37 WHERE elevation_ + _height = \"0 + metres (ft)\" AND location = \"bikini, namu (charlie)\" AND yield = \"220 kt\"" }
### INSTRUCTION Who was the Semi-Finalist #2 in 2001? ### INPUT CREATE TABLE table_name_26 (semi_finalist__number2 VARCHAR, year VARCHAR) ### OUTPUT SELECT semi_finalist__number2 FROM table_name_26 WHERE year = "2001"
{ "input": "CREATE TABLE table_name_26 (semi_finalist__number2 VARCHAR, year VARCHAR)", "instruction": "Who was the Semi-Finalist #2 in 2001?", "output": "SELECT semi_finalist__number2 FROM table_name_26 WHERE year = \"2001\"" }
### INSTRUCTION What was the record after the game against the Sharks at Arrowhead Pond of Anaheim? ### INPUT CREATE TABLE table_name_72 (record VARCHAR, arena VARCHAR, opponent VARCHAR) ### OUTPUT SELECT record FROM table_name_72 WHERE arena = "arrowhead pond of anaheim" AND opponent = "sharks"
{ "input": "CREATE TABLE table_name_72 (record VARCHAR, arena VARCHAR, opponent VARCHAR)", "instruction": "What was the record after the game against the Sharks at Arrowhead Pond of Anaheim?", "output": "SELECT record FROM table_name_72 WHERE arena = \"arrowhead pond of anaheim\" AND opponent = \"sharks\"" }
### INSTRUCTION What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000? ### INPUT CREATE TABLE table_name_16 (sydney INTEGER, weekly_rank VARCHAR, brisbane VARCHAR) ### OUTPUT SELECT MIN(sydney) FROM table_name_16 WHERE weekly_rank < 8 AND brisbane > 252 OFFSET 000
{ "input": "CREATE TABLE table_name_16 (sydney INTEGER, weekly_rank VARCHAR, brisbane VARCHAR)", "instruction": "What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000?", "output": "SELECT MIN(sydney) FROM table_name_16 WHERE weekly_rank < 8 AND brisbane > 252 OFFSET 000" }
### INSTRUCTION On December 12, 2001, how many weeks had the single been in its position? ### INPUT CREATE TABLE table_name_18 (weeks VARCHAR, date VARCHAR) ### OUTPUT SELECT weeks FROM table_name_18 WHERE date = "december 12, 2001"
{ "input": "CREATE TABLE table_name_18 (weeks VARCHAR, date VARCHAR)", "instruction": "On December 12, 2001, how many weeks had the single been in its position?", "output": "SELECT weeks FROM table_name_18 WHERE date = \"december 12, 2001\"" }
### INSTRUCTION What is the average week for the game against baltimore colts with less than 41,062 in attendance? ### INPUT CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR) ### OUTPUT SELECT AVG(week) FROM table_name_12 WHERE opponent = "baltimore colts" AND attendance < 41 OFFSET 062
{ "input": "CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR)", "instruction": "What is the average week for the game against baltimore colts with less than 41,062 in attendance?", "output": "SELECT AVG(week) FROM table_name_12 WHERE opponent = \"baltimore colts\" AND attendance < 41 OFFSET 062" }
### INSTRUCTION How many different locations does the school with code BUS has? ### INPUT CREATE TABLE department (dept_address VARCHAR, school_code VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT dept_address) FROM department WHERE school_code = 'BUS'
{ "input": "CREATE TABLE department (dept_address VARCHAR, school_code VARCHAR)", "instruction": "How many different locations does the school with code BUS has?", "output": "SELECT COUNT(DISTINCT dept_address) FROM department WHERE school_code = 'BUS'" }
### INSTRUCTION What is the listed for the bridge at Daniel in Sublette county? ### INPUT CREATE TABLE table_name_86 (listed VARCHAR, county VARCHAR, location VARCHAR) ### OUTPUT SELECT listed FROM table_name_86 WHERE county = "sublette" AND location = "daniel"
{ "input": "CREATE TABLE table_name_86 (listed VARCHAR, county VARCHAR, location VARCHAR)", "instruction": "What is the listed for the bridge at Daniel in Sublette county?", "output": "SELECT listed FROM table_name_86 WHERE county = \"sublette\" AND location = \"daniel\"" }
### INSTRUCTION I want the cast for director of colbert clark and armand schaefer for burn 'em up barnes ### INPUT CREATE TABLE table_name_75 (cast VARCHAR, director VARCHAR, serial_title VARCHAR) ### OUTPUT SELECT cast FROM table_name_75 WHERE director = "colbert clark and armand schaefer" AND serial_title = "burn 'em up barnes"
{ "input": "CREATE TABLE table_name_75 (cast VARCHAR, director VARCHAR, serial_title VARCHAR)", "instruction": "I want the cast for director of colbert clark and armand schaefer for burn 'em up barnes", "output": "SELECT cast FROM table_name_75 WHERE director = \"colbert clark and armand schaefer\" AND serial_title = \"burn 'em up barnes\"" }
### INSTRUCTION If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/dτ in units of c? ### INPUT CREATE TABLE table_15314901_1 (proper_velocity_w_dx_dτ_in_units_of_c VARCHAR, condition_parameter VARCHAR) ### OUTPUT SELECT proper_velocity_w_dx_dτ_in_units_of_c FROM table_15314901_1 WHERE condition_parameter = "Rapidity of 1 hyperbolic radian"
{ "input": "CREATE TABLE table_15314901_1 (proper_velocity_w_dx_dτ_in_units_of_c VARCHAR, condition_parameter VARCHAR)", "instruction": "If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/dτ in units of c?", "output": "SELECT proper_velocity_w_dx_dτ_in_units_of_c FROM table_15314901_1 WHERE condition_parameter = \"Rapidity of 1 hyperbolic radian\"" }
### INSTRUCTION Which match was the final score 7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)? ### INPUT CREATE TABLE table_26202812_7 (no VARCHAR, score_in_the_final VARCHAR) ### OUTPUT SELECT no FROM table_26202812_7 WHERE score_in_the_final = "7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)"
{ "input": "CREATE TABLE table_26202812_7 (no VARCHAR, score_in_the_final VARCHAR)", "instruction": "Which match was the final score 7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)?", "output": "SELECT no FROM table_26202812_7 WHERE score_in_the_final = \"7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)\"" }
### INSTRUCTION What are all the section titles of the document named "David CV"? ### INPUT CREATE TABLE documents (document_code VARCHAR, document_name VARCHAR); CREATE TABLE document_sections (section_title VARCHAR, document_code VARCHAR) ### OUTPUT SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = "David CV"
{ "input": "CREATE TABLE documents (document_code VARCHAR, document_name VARCHAR); CREATE TABLE document_sections (section_title VARCHAR, document_code VARCHAR)", "instruction": "What are all the section titles of the document named \"David CV\"?", "output": "SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = \"David CV\"" }
### INSTRUCTION What is the lowest rank for Chris Brown with react greater than 0.244? ### INPUT CREATE TABLE table_name_44 (rank INTEGER, athlete VARCHAR, react VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_44 WHERE athlete = "chris brown" AND react > 0.244
{ "input": "CREATE TABLE table_name_44 (rank INTEGER, athlete VARCHAR, react VARCHAR)", "instruction": "What is the lowest rank for Chris Brown with react greater than 0.244?", "output": "SELECT MIN(rank) FROM table_name_44 WHERE athlete = \"chris brown\" AND react > 0.244" }
### INSTRUCTION Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number. ### INPUT CREATE TABLE Claims (claim_id VARCHAR, date_claim_made VARCHAR); CREATE TABLE Settlements (claim_id VARCHAR) ### OUTPUT SELECT T1.claim_id, T1.date_claim_made, COUNT(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Claims (claim_id VARCHAR, date_claim_made VARCHAR); CREATE TABLE Settlements (claim_id VARCHAR)", "instruction": "Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.", "output": "SELECT T1.claim_id, T1.date_claim_made, COUNT(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the date that the polls were going on at quinnipiac when john mccain was the republican, barack obama was the democrat and the sample size was bigger than 1427? ### INPUT CREATE TABLE table_name_67 (date VARCHAR, sample_size VARCHAR, democrat VARCHAR, republican VARCHAR, poll_source VARCHAR) ### OUTPUT SELECT date FROM table_name_67 WHERE republican = "john mccain" AND poll_source = "quinnipiac" AND democrat = "barack obama" AND sample_size > 1427
{ "input": "CREATE TABLE table_name_67 (date VARCHAR, sample_size VARCHAR, democrat VARCHAR, republican VARCHAR, poll_source VARCHAR)", "instruction": "What is the date that the polls were going on at quinnipiac when john mccain was the republican, barack obama was the democrat and the sample size was bigger than 1427?", "output": "SELECT date FROM table_name_67 WHERE republican = \"john mccain\" AND poll_source = \"quinnipiac\" AND democrat = \"barack obama\" AND sample_size > 1427" }
### INSTRUCTION Who was the Republican candidate against the Democratic candidate Arthur Levitt? ### INPUT CREATE TABLE table_name_65 (republican_ticket VARCHAR, democratic_ticket VARCHAR) ### OUTPUT SELECT republican_ticket FROM table_name_65 WHERE democratic_ticket = "arthur levitt"
{ "input": "CREATE TABLE table_name_65 (republican_ticket VARCHAR, democratic_ticket VARCHAR)", "instruction": "Who was the Republican candidate against the Democratic candidate Arthur Levitt?", "output": "SELECT republican_ticket FROM table_name_65 WHERE democratic_ticket = \"arthur levitt\"" }
### INSTRUCTION what is the 3-dart average of raymond van barneveld ### INPUT CREATE TABLE table_20301877_2 (player VARCHAR) ### OUTPUT SELECT 3 AS _dart_average FROM table_20301877_2 WHERE player = "Raymond van Barneveld"
{ "input": "CREATE TABLE table_20301877_2 (player VARCHAR)", "instruction": "what is the 3-dart average of raymond van barneveld", "output": "SELECT 3 AS _dart_average FROM table_20301877_2 WHERE player = \"Raymond van Barneveld\"" }
### INSTRUCTION What is the sum of Money of the game that was played in the United States with Sam Snead as a player? ### INPUT CREATE TABLE table_name_55 (money___ INTEGER, country VARCHAR, player VARCHAR) ### OUTPUT SELECT SUM(money___) AS $__ FROM table_name_55 WHERE country = "united states" AND player = "sam snead"
{ "input": "CREATE TABLE table_name_55 (money___ INTEGER, country VARCHAR, player VARCHAR)", "instruction": "What is the sum of Money of the game that was played in the United States with Sam Snead as a player?", "output": "SELECT SUM(money___) AS $__ FROM table_name_55 WHERE country = \"united states\" AND player = \"sam snead\"" }
### INSTRUCTION Who was the opponent when they played at Delta Center with a record of 27-13? ### INPUT CREATE TABLE table_name_7 (opponent VARCHAR, location_attendance VARCHAR, record VARCHAR) ### OUTPUT SELECT opponent FROM table_name_7 WHERE location_attendance = "delta center" AND record = "27-13"
{ "input": "CREATE TABLE table_name_7 (opponent VARCHAR, location_attendance VARCHAR, record VARCHAR)", "instruction": "Who was the opponent when they played at Delta Center with a record of 27-13?", "output": "SELECT opponent FROM table_name_7 WHERE location_attendance = \"delta center\" AND record = \"27-13\"" }
### INSTRUCTION Name least series number for writers david e. kelley & jill goldsmith ### INPUT CREATE TABLE table_23286722_1 (series__number INTEGER, written_by VARCHAR) ### OUTPUT SELECT MIN(series__number) FROM table_23286722_1 WHERE written_by = "David E. Kelley & Jill Goldsmith"
{ "input": "CREATE TABLE table_23286722_1 (series__number INTEGER, written_by VARCHAR)", "instruction": "Name least series number for writers david e. kelley & jill goldsmith", "output": "SELECT MIN(series__number) FROM table_23286722_1 WHERE written_by = \"David E. Kelley & Jill Goldsmith\"" }
### INSTRUCTION What is the average agricultural panel of the composition with a labour panel less than 6, more than 0 nominations by Taoiseach, and a total less than 4? ### INPUT CREATE TABLE table_name_62 (agricultural_panel INTEGER, total VARCHAR, labour_panel VARCHAR, nominated_by_the_taoiseach VARCHAR) ### OUTPUT SELECT AVG(agricultural_panel) FROM table_name_62 WHERE labour_panel < 6 AND nominated_by_the_taoiseach > 0 AND total < 4
{ "input": "CREATE TABLE table_name_62 (agricultural_panel INTEGER, total VARCHAR, labour_panel VARCHAR, nominated_by_the_taoiseach VARCHAR)", "instruction": "What is the average agricultural panel of the composition with a labour panel less than 6, more than 0 nominations by Taoiseach, and a total less than 4?", "output": "SELECT AVG(agricultural_panel) FROM table_name_62 WHERE labour_panel < 6 AND nominated_by_the_taoiseach > 0 AND total < 4" }
### INSTRUCTION How many type of jobs do they have? ### INPUT CREATE TABLE Person (job VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT job) FROM Person
{ "input": "CREATE TABLE Person (job VARCHAR)", "instruction": "How many type of jobs do they have?", "output": "SELECT COUNT(DISTINCT job) FROM Person" }
### INSTRUCTION Which country is the nnamdi azikiwe international airport in? ### INPUT CREATE TABLE table_name_73 (country VARCHAR, airport VARCHAR) ### OUTPUT SELECT country FROM table_name_73 WHERE airport = "nnamdi azikiwe international airport"
{ "input": "CREATE TABLE table_name_73 (country VARCHAR, airport VARCHAR)", "instruction": "Which country is the nnamdi azikiwe international airport in?", "output": "SELECT country FROM table_name_73 WHERE airport = \"nnamdi azikiwe international airport\"" }
### INSTRUCTION How many series had viewers totaling 23.93 million? ### INPUT CREATE TABLE table_18217753_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR) ### OUTPUT SELECT COUNT(series__number) FROM table_18217753_1 WHERE us_viewers__millions_ = "23.93"
{ "input": "CREATE TABLE table_18217753_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR)", "instruction": "How many series had viewers totaling 23.93 million?", "output": "SELECT COUNT(series__number) FROM table_18217753_1 WHERE us_viewers__millions_ = \"23.93\"" }
### INSTRUCTION For the prior occupation listed as assistant police commissioner (ret'd) what are the entire list of romanised name. ### INPUT CREATE TABLE table_17964087_2 (romanised_name VARCHAR, prior_occupation VARCHAR) ### OUTPUT SELECT romanised_name FROM table_17964087_2 WHERE prior_occupation = "Assistant Police Commissioner (ret'd)"
{ "input": "CREATE TABLE table_17964087_2 (romanised_name VARCHAR, prior_occupation VARCHAR)", "instruction": "For the prior occupation listed as assistant police commissioner (ret'd) what are the entire list of romanised name. ", "output": "SELECT romanised_name FROM table_17964087_2 WHERE prior_occupation = \"Assistant Police Commissioner (ret'd)\"" }
### INSTRUCTION During what years did the Guard from Oklahoma with a height of 6-6 play for the Rockets? ### INPUT CREATE TABLE table_name_41 (years_for_rockets VARCHAR, school_club_team_country VARCHAR, height_in_ft VARCHAR, position VARCHAR) ### OUTPUT SELECT years_for_rockets FROM table_name_41 WHERE height_in_ft = "6-6" AND position = "guard" AND school_club_team_country = "oklahoma"
{ "input": "CREATE TABLE table_name_41 (years_for_rockets VARCHAR, school_club_team_country VARCHAR, height_in_ft VARCHAR, position VARCHAR)", "instruction": "During what years did the Guard from Oklahoma with a height of 6-6 play for the Rockets?", "output": "SELECT years_for_rockets FROM table_name_41 WHERE height_in_ft = \"6-6\" AND position = \"guard\" AND school_club_team_country = \"oklahoma\"" }
### INSTRUCTION What market rank and city had the station KABC-TV? ### INPUT CREATE TABLE table_22329326_1 (market_rank_ VARCHAR, _city_of_license__market VARCHAR, station VARCHAR) ### OUTPUT SELECT market_rank_ & _city_of_license__market FROM table_22329326_1 WHERE station = "KABC-TV"
{ "input": "CREATE TABLE table_22329326_1 (market_rank_ VARCHAR, _city_of_license__market VARCHAR, station VARCHAR)", "instruction": "What market rank and city had the station KABC-TV?", "output": "SELECT market_rank_ & _city_of_license__market FROM table_22329326_1 WHERE station = \"KABC-TV\"" }
### INSTRUCTION What is the displacement when the fuel system is carburettor, and a power of ps (kw; hp), and also has a model of 2000? ### INPUT CREATE TABLE table_name_20 (displacement VARCHAR, model VARCHAR, fuel_system VARCHAR, power VARCHAR) ### OUTPUT SELECT displacement FROM table_name_20 WHERE fuel_system = "carburettor" AND power = "ps (kw; hp)" AND model = "2000"
{ "input": "CREATE TABLE table_name_20 (displacement VARCHAR, model VARCHAR, fuel_system VARCHAR, power VARCHAR)", "instruction": "What is the displacement when the fuel system is carburettor, and a power of ps (kw; hp), and also has a model of 2000?", "output": "SELECT displacement FROM table_name_20 WHERE fuel_system = \"carburettor\" AND power = \"ps (kw; hp)\" AND model = \"2000\"" }
### INSTRUCTION During footscray's home game, how much did the away team score? ### INPUT CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_74 WHERE home_team = "footscray"
{ "input": "CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR)", "instruction": "During footscray's home game, how much did the away team score?", "output": "SELECT away_team AS score FROM table_name_74 WHERE home_team = \"footscray\"" }
### INSTRUCTION What is the tally in Kilkenny county with 10 as the total and opposition of Waterford? ### INPUT CREATE TABLE table_name_44 (tally VARCHAR, opposition VARCHAR, county VARCHAR, total VARCHAR) ### OUTPUT SELECT tally FROM table_name_44 WHERE county = "kilkenny" AND total = 10 AND opposition = "waterford"
{ "input": "CREATE TABLE table_name_44 (tally VARCHAR, opposition VARCHAR, county VARCHAR, total VARCHAR)", "instruction": "What is the tally in Kilkenny county with 10 as the total and opposition of Waterford?", "output": "SELECT tally FROM table_name_44 WHERE county = \"kilkenny\" AND total = 10 AND opposition = \"waterford\"" }
### INSTRUCTION How many Bangladeshi citizens are there in the borough ranked at number 7? ### INPUT CREATE TABLE table_19149550_9 (bangladeshi_population INTEGER, rank VARCHAR) ### OUTPUT SELECT MIN(bangladeshi_population) FROM table_19149550_9 WHERE rank = 7
{ "input": "CREATE TABLE table_19149550_9 (bangladeshi_population INTEGER, rank VARCHAR)", "instruction": "How many Bangladeshi citizens are there in the borough ranked at number 7?", "output": "SELECT MIN(bangladeshi_population) FROM table_19149550_9 WHERE rank = 7" }
### INSTRUCTION What is every score for location attendance of Madison Square Garden 19,763 and game less than 80.0? ### INPUT CREATE TABLE table_23248869_10 (score VARCHAR, location_attendance VARCHAR, game VARCHAR) ### OUTPUT SELECT score FROM table_23248869_10 WHERE location_attendance = "Madison Square Garden 19,763" AND game < 80.0
{ "input": "CREATE TABLE table_23248869_10 (score VARCHAR, location_attendance VARCHAR, game VARCHAR)", "instruction": "What is every score for location attendance of Madison Square Garden 19,763 and game less than 80.0?", "output": "SELECT score FROM table_23248869_10 WHERE location_attendance = \"Madison Square Garden 19,763\" AND game < 80.0" }
### INSTRUCTION If the distribution mechanism is the Microsoft website and the security issues id 98-004, what are all of the features? ### INPUT CREATE TABLE table_2263152_1 (features VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR) ### OUTPUT SELECT features FROM table_2263152_1 WHERE security_issues = "98-004" AND distribution_mechanism = "Microsoft website"
{ "input": "CREATE TABLE table_2263152_1 (features VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR)", "instruction": "If the distribution mechanism is the Microsoft website and the security issues id 98-004, what are all of the features?", "output": "SELECT features FROM table_2263152_1 WHERE security_issues = \"98-004\" AND distribution_mechanism = \"Microsoft website\"" }
### INSTRUCTION Name the density for pennsbury village ### INPUT CREATE TABLE table_22916979_5 (density VARCHAR, densest_incorporated_place VARCHAR) ### OUTPUT SELECT density FROM table_22916979_5 WHERE densest_incorporated_place = "Pennsbury Village"
{ "input": "CREATE TABLE table_22916979_5 (density VARCHAR, densest_incorporated_place VARCHAR)", "instruction": "Name the density for pennsbury village", "output": "SELECT density FROM table_22916979_5 WHERE densest_incorporated_place = \"Pennsbury Village\"" }
### INSTRUCTION Who is the constructor for driver alan jones using a chassis of fw06 fw07? ### INPUT CREATE TABLE table_name_93 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR) ### OUTPUT SELECT constructor FROM table_name_93 WHERE chassis = "fw06 fw07" AND driver = "alan jones"
{ "input": "CREATE TABLE table_name_93 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR)", "instruction": "Who is the constructor for driver alan jones using a chassis of fw06 fw07?", "output": "SELECT constructor FROM table_name_93 WHERE chassis = \"fw06 fw07\" AND driver = \"alan jones\"" }
### INSTRUCTION Which company in the oil and gas industry has assets (billion $) under 235.45, sales (billion $) larger than 159.29 and brings in profits (billion $) of 19.28? ### INPUT CREATE TABLE table_name_86 (company VARCHAR, profits__billion_$_ VARCHAR, industry VARCHAR, assets__billion_$_ VARCHAR, sales__billion_$_ VARCHAR) ### OUTPUT SELECT company FROM table_name_86 WHERE assets__billion_$_ < 235.45 AND sales__billion_$_ > 159.29 AND industry = "oil and gas" AND profits__billion_$_ = 19.28
{ "input": "CREATE TABLE table_name_86 (company VARCHAR, profits__billion_$_ VARCHAR, industry VARCHAR, assets__billion_$_ VARCHAR, sales__billion_$_ VARCHAR)", "instruction": "Which company in the oil and gas industry has assets (billion $) under 235.45, sales (billion $) larger than 159.29 and brings in profits (billion $) of 19.28?", "output": "SELECT company FROM table_name_86 WHERE assets__billion_$_ < 235.45 AND sales__billion_$_ > 159.29 AND industry = \"oil and gas\" AND profits__billion_$_ = 19.28" }
### INSTRUCTION What is the area of the civil parish kilworth and townland monadrishane? ### INPUT CREATE TABLE table_30120556_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR) ### OUTPUT SELECT area__acres__ FROM table_30120556_1 WHERE civil_parish = "Kilworth" AND townland = "Monadrishane"
{ "input": "CREATE TABLE table_30120556_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR)", "instruction": "What is the area of the civil parish kilworth and townland monadrishane?", "output": "SELECT area__acres__ FROM table_30120556_1 WHERE civil_parish = \"Kilworth\" AND townland = \"Monadrishane\"" }
### INSTRUCTION I want to know the condition with Prothrombin time of unaffected and bleeding time of prolonged with partial thromboplastin time of unaffected with platelet count of decreased or unaffected ### INPUT CREATE TABLE table_name_75 (condition VARCHAR, platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) ### OUTPUT SELECT condition FROM table_name_75 WHERE prothrombin_time = "unaffected" AND bleeding_time = "prolonged" AND partial_thromboplastin_time = "unaffected" AND platelet_count = "decreased or unaffected"
{ "input": "CREATE TABLE table_name_75 (condition VARCHAR, platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)", "instruction": "I want to know the condition with Prothrombin time of unaffected and bleeding time of prolonged with partial thromboplastin time of unaffected with platelet count of decreased or unaffected", "output": "SELECT condition FROM table_name_75 WHERE prothrombin_time = \"unaffected\" AND bleeding_time = \"prolonged\" AND partial_thromboplastin_time = \"unaffected\" AND platelet_count = \"decreased or unaffected\"" }
### INSTRUCTION On what Surface will the Venezuela F5 Futures in Caracas be played? ### INPUT CREATE TABLE table_name_30 (surface VARCHAR, city VARCHAR, tournament VARCHAR) ### OUTPUT SELECT surface FROM table_name_30 WHERE city = "caracas" AND tournament = "venezuela f5 futures"
{ "input": "CREATE TABLE table_name_30 (surface VARCHAR, city VARCHAR, tournament VARCHAR)", "instruction": "On what Surface will the Venezuela F5 Futures in Caracas be played?", "output": "SELECT surface FROM table_name_30 WHERE city = \"caracas\" AND tournament = \"venezuela f5 futures\"" }
### INSTRUCTION Which tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič? ### INPUT CREATE TABLE table_name_93 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR) ### OUTPUT SELECT tournament FROM table_name_93 WHERE outcome = "runner-up" AND opponent = "maša zec peškirič"
{ "input": "CREATE TABLE table_name_93 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR)", "instruction": "Which tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič?", "output": "SELECT tournament FROM table_name_93 WHERE outcome = \"runner-up\" AND opponent = \"maša zec peškirič\"" }
### INSTRUCTION What is the lowest total data processing and exploitation of 00 0,228, and a management and support larger than 1,7? ### INPUT CREATE TABLE table_name_72 (total INTEGER, data_processing_and_exploitation VARCHAR, management_and_support VARCHAR) ### OUTPUT SELECT MIN(total) FROM table_name_72 WHERE data_processing_and_exploitation = "00 0,228" AND management_and_support > 1 OFFSET 7
{ "input": "CREATE TABLE table_name_72 (total INTEGER, data_processing_and_exploitation VARCHAR, management_and_support VARCHAR)", "instruction": "What is the lowest total data processing and exploitation of 00 0,228, and a management and support larger than 1,7?", "output": "SELECT MIN(total) FROM table_name_72 WHERE data_processing_and_exploitation = \"00 0,228\" AND management_and_support > 1 OFFSET 7" }
### INSTRUCTION List the first name of all the professionals along with the description of the treatment they have done. ### INPUT CREATE TABLE Treatments (professional_id VARCHAR, treatment_type_code VARCHAR); CREATE TABLE Treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR); CREATE TABLE professionals (first_name VARCHAR, professional_id VARCHAR) ### OUTPUT SELECT DISTINCT T1.first_name, T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code
{ "input": "CREATE TABLE Treatments (professional_id VARCHAR, treatment_type_code VARCHAR); CREATE TABLE Treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR); CREATE TABLE professionals (first_name VARCHAR, professional_id VARCHAR)", "instruction": "List the first name of all the professionals along with the description of the treatment they have done.", "output": "SELECT DISTINCT T1.first_name, T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code" }
### INSTRUCTION What is the record when they play the canucks and have under 98 points? ### INPUT CREATE TABLE table_name_61 (record VARCHAR, points VARCHAR, opponent VARCHAR) ### OUTPUT SELECT record FROM table_name_61 WHERE points < 98 AND opponent = "canucks"
{ "input": "CREATE TABLE table_name_61 (record VARCHAR, points VARCHAR, opponent VARCHAR)", "instruction": "What is the record when they play the canucks and have under 98 points?", "output": "SELECT record FROM table_name_61 WHERE points < 98 AND opponent = \"canucks\"" }
### INSTRUCTION What are the ids of the problems reported after the date of any problems reported by Rylan Homenick? ### INPUT CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR) ### OUTPUT SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > (SELECT MAX(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Rylan" AND T4.staff_last_name = "Homenick")
{ "input": "CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR)", "instruction": "What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?", "output": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > (SELECT MAX(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = \"Rylan\" AND T4.staff_last_name = \"Homenick\")" }
### INSTRUCTION Show the names of conductors and the orchestras they have conducted. ### INPUT CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR); CREATE TABLE orchestra (Orchestra VARCHAR, Conductor_ID VARCHAR) ### OUTPUT SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID
{ "input": "CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR); CREATE TABLE orchestra (Orchestra VARCHAR, Conductor_ID VARCHAR)", "instruction": "Show the names of conductors and the orchestras they have conducted.", "output": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID" }
### INSTRUCTION what is the lowest rank when the constituency is edinburgh northern and leith and the swing to gain is less than 4.16? ### INPUT CREATE TABLE table_name_61 (rank INTEGER, constituency VARCHAR, swing_to_gain VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_61 WHERE constituency = "edinburgh northern and leith" AND swing_to_gain < 4.16
{ "input": "CREATE TABLE table_name_61 (rank INTEGER, constituency VARCHAR, swing_to_gain VARCHAR)", "instruction": "what is the lowest rank when the constituency is edinburgh northern and leith and the swing to gain is less than 4.16?", "output": "SELECT MIN(rank) FROM table_name_61 WHERE constituency = \"edinburgh northern and leith\" AND swing_to_gain < 4.16" }
### INSTRUCTION Which Year Ended has a Passenger Load Factor (%) larger than 72.8, and a Revenue (€m) smaller than 906.8? ### INPUT CREATE TABLE table_name_80 (year_ended VARCHAR, passenger_load_factor___percentage_ VARCHAR, revenue__€m_ VARCHAR) ### OUTPUT SELECT year_ended FROM table_name_80 WHERE passenger_load_factor___percentage_ > 72.8 AND revenue__€m_ < 906.8
{ "input": "CREATE TABLE table_name_80 (year_ended VARCHAR, passenger_load_factor___percentage_ VARCHAR, revenue__€m_ VARCHAR)", "instruction": "Which Year Ended has a Passenger Load Factor (%) larger than 72.8, and a Revenue (€m) smaller than 906.8?", "output": "SELECT year_ended FROM table_name_80 WHERE passenger_load_factor___percentage_ > 72.8 AND revenue__€m_ < 906.8" }
### INSTRUCTION What is the competition on October 15, 2008? ### INPUT CREATE TABLE table_name_37 (competition VARCHAR, date VARCHAR) ### OUTPUT SELECT competition FROM table_name_37 WHERE date = "october 15, 2008"
{ "input": "CREATE TABLE table_name_37 (competition VARCHAR, date VARCHAR)", "instruction": "What is the competition on October 15, 2008?", "output": "SELECT competition FROM table_name_37 WHERE date = \"october 15, 2008\"" }
### INSTRUCTION What years did J. Smith Young serve as a Representative? ### INPUT CREATE TABLE table_name_36 (years VARCHAR, representative VARCHAR) ### OUTPUT SELECT years FROM table_name_36 WHERE representative = "j. smith young"
{ "input": "CREATE TABLE table_name_36 (years VARCHAR, representative VARCHAR)", "instruction": "What years did J. Smith Young serve as a Representative?", "output": "SELECT years FROM table_name_36 WHERE representative = \"j. smith young\"" }
### INSTRUCTION What place did the singer in atomic kitten finish? ### INPUT CREATE TABLE table_name_91 (finished VARCHAR, famous_for VARCHAR) ### OUTPUT SELECT finished FROM table_name_91 WHERE famous_for = "singer in atomic kitten"
{ "input": "CREATE TABLE table_name_91 (finished VARCHAR, famous_for VARCHAR)", "instruction": "What place did the singer in atomic kitten finish?", "output": "SELECT finished FROM table_name_91 WHERE famous_for = \"singer in atomic kitten\"" }
### INSTRUCTION Name the candidates for massachusetts 8 ### INPUT CREATE TABLE table_1341884_23 (candidates VARCHAR, district VARCHAR) ### OUTPUT SELECT candidates FROM table_1341884_23 WHERE district = "Massachusetts 8"
{ "input": "CREATE TABLE table_1341884_23 (candidates VARCHAR, district VARCHAR)", "instruction": "Name the candidates for massachusetts 8", "output": "SELECT candidates FROM table_1341884_23 WHERE district = \"Massachusetts 8\"" }
### INSTRUCTION Which Total has a Bronze larger than 2, a Gold smaller than 16, a Silver of 0, and a Rank of 13? ### INPUT CREATE TABLE table_name_27 (total INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR) ### OUTPUT SELECT AVG(total) FROM table_name_27 WHERE bronze > 2 AND gold < 16 AND silver = 0 AND rank = "13"
{ "input": "CREATE TABLE table_name_27 (total INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR)", "instruction": "Which Total has a Bronze larger than 2, a Gold smaller than 16, a Silver of 0, and a Rank of 13?", "output": "SELECT AVG(total) FROM table_name_27 WHERE bronze > 2 AND gold < 16 AND silver = 0 AND rank = \"13\"" }
### INSTRUCTION How many production codes were there for the episode that aired on November 15? ### INPUT CREATE TABLE table_25691838_11 (production_code VARCHAR, original_airdate VARCHAR) ### OUTPUT SELECT COUNT(production_code) FROM table_25691838_11 WHERE original_airdate = "November 15"
{ "input": "CREATE TABLE table_25691838_11 (production_code VARCHAR, original_airdate VARCHAR)", "instruction": "How many production codes were there for the episode that aired on November 15?", "output": "SELECT COUNT(production_code) FROM table_25691838_11 WHERE original_airdate = \"November 15\"" }
### INSTRUCTION What year was a movie with the original title La Leggenda del Santo Bevitore submitted? ### INPUT CREATE TABLE table_10321805_1 (year__ceremony_ VARCHAR, original_title VARCHAR) ### OUTPUT SELECT year__ceremony_ FROM table_10321805_1 WHERE original_title = "La leggenda del santo bevitore"
{ "input": "CREATE TABLE table_10321805_1 (year__ceremony_ VARCHAR, original_title VARCHAR)", "instruction": "What year was a movie with the original title La Leggenda del Santo Bevitore submitted?", "output": "SELECT year__ceremony_ FROM table_10321805_1 WHERE original_title = \"La leggenda del santo bevitore\"" }
### INSTRUCTION What was the average year that the Nashville Metros did not qualify for the Playoffs, did not qualify for the Open Cup, and had the Regular Season 7th, Southeast? ### INPUT CREATE TABLE table_name_78 (year INTEGER, regular_season VARCHAR, playoffs VARCHAR, open_cup VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_78 WHERE playoffs = "did not qualify" AND open_cup = "did not qualify" AND regular_season = "7th, southeast"
{ "input": "CREATE TABLE table_name_78 (year INTEGER, regular_season VARCHAR, playoffs VARCHAR, open_cup VARCHAR)", "instruction": "What was the average year that the Nashville Metros did not qualify for the Playoffs, did not qualify for the Open Cup, and had the Regular Season 7th, Southeast?", "output": "SELECT AVG(year) FROM table_name_78 WHERE playoffs = \"did not qualify\" AND open_cup = \"did not qualify\" AND regular_season = \"7th, southeast\"" }
### INSTRUCTION What is the name of the Company or Product that is Episode 3 and is suppoted by Investing Dragon Deborah Meaden? ### INPUT CREATE TABLE table_name_83 (company_or_product_name VARCHAR, episode VARCHAR, investing_dragon_s_ VARCHAR) ### OUTPUT SELECT company_or_product_name FROM table_name_83 WHERE episode = "episode 3" AND investing_dragon_s_ = "deborah meaden"
{ "input": "CREATE TABLE table_name_83 (company_or_product_name VARCHAR, episode VARCHAR, investing_dragon_s_ VARCHAR)", "instruction": "What is the name of the Company or Product that is Episode 3 and is suppoted by Investing Dragon Deborah Meaden?", "output": "SELECT company_or_product_name FROM table_name_83 WHERE episode = \"episode 3\" AND investing_dragon_s_ = \"deborah meaden\"" }
### INSTRUCTION Which Kit Manufacturer supports team Everton? ### INPUT CREATE TABLE table_name_90 (kit_manufacturer VARCHAR, team VARCHAR) ### OUTPUT SELECT kit_manufacturer FROM table_name_90 WHERE team = "everton"
{ "input": "CREATE TABLE table_name_90 (kit_manufacturer VARCHAR, team VARCHAR)", "instruction": "Which Kit Manufacturer supports team Everton?", "output": "SELECT kit_manufacturer FROM table_name_90 WHERE team = \"everton\"" }
### INSTRUCTION How many silver medals when the bronze is more than 2 and having a rank more than 5? ### INPUT CREATE TABLE table_name_89 (silver INTEGER, rank VARCHAR, bronze VARCHAR) ### OUTPUT SELECT MAX(silver) FROM table_name_89 WHERE rank > 5 AND bronze > 2
{ "input": "CREATE TABLE table_name_89 (silver INTEGER, rank VARCHAR, bronze VARCHAR)", "instruction": "How many silver medals when the bronze is more than 2 and having a rank more than 5?", "output": "SELECT MAX(silver) FROM table_name_89 WHERE rank > 5 AND bronze > 2" }
### INSTRUCTION What are the names of the songs whose rating is below the rating of all songs in English? ### INPUT CREATE TABLE song (song_name VARCHAR, rating INTEGER, languages VARCHAR) ### OUTPUT SELECT song_name FROM song WHERE rating < (SELECT MIN(rating) FROM song WHERE languages = 'english')
{ "input": "CREATE TABLE song (song_name VARCHAR, rating INTEGER, languages VARCHAR)", "instruction": "What are the names of the songs whose rating is below the rating of all songs in English?", "output": "SELECT song_name FROM song WHERE rating < (SELECT MIN(rating) FROM song WHERE languages = 'english')" }
### INSTRUCTION Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'. ### INPUT CREATE TABLE camera_lens (id VARCHAR, brand VARCHAR); CREATE TABLE mountain (name VARCHAR, prominence VARCHAR, id VARCHAR); CREATE TABLE photos (mountain_id VARCHAR, camera_lens_id VARCHAR); CREATE TABLE mountain (name VARCHAR, prominence VARCHAR) ### OUTPUT SELECT name, prominence FROM mountain EXCEPT SELECT T1.name, T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T3.brand = 'Sigma'
{ "input": "CREATE TABLE camera_lens (id VARCHAR, brand VARCHAR); CREATE TABLE mountain (name VARCHAR, prominence VARCHAR, id VARCHAR); CREATE TABLE photos (mountain_id VARCHAR, camera_lens_id VARCHAR); CREATE TABLE mountain (name VARCHAR, prominence VARCHAR)", "instruction": "Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.", "output": "SELECT name, prominence FROM mountain EXCEPT SELECT T1.name, T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T3.brand = 'Sigma'" }
### INSTRUCTION how many pick# does the university of akron reading united michigan bucks affiliation have ### INPUT CREATE TABLE table_29626583_1 (pick__number VARCHAR, affiliation VARCHAR) ### OUTPUT SELECT COUNT(pick__number) FROM table_29626583_1 WHERE affiliation = "University of Akron Reading United Michigan Bucks"
{ "input": "CREATE TABLE table_29626583_1 (pick__number VARCHAR, affiliation VARCHAR)", "instruction": "how many pick# does the university of akron reading united michigan bucks affiliation have", "output": "SELECT COUNT(pick__number) FROM table_29626583_1 WHERE affiliation = \"University of Akron Reading United Michigan Bucks\"" }
### INSTRUCTION Who are all men's doubles when men's singles is Jean-Michel Saive? ### INPUT CREATE TABLE table_28211988_1 (mens_doubles VARCHAR, mens_singles VARCHAR) ### OUTPUT SELECT mens_doubles FROM table_28211988_1 WHERE mens_singles = "Jean-Michel Saive"
{ "input": "CREATE TABLE table_28211988_1 (mens_doubles VARCHAR, mens_singles VARCHAR)", "instruction": "Who are all men's doubles when men's singles is Jean-Michel Saive?", "output": "SELECT mens_doubles FROM table_28211988_1 WHERE mens_singles = \"Jean-Michel Saive\"" }
### INSTRUCTION How many times is the nation china and bronze more than 0? ### INPUT CREATE TABLE table_name_4 (rank VARCHAR, nation VARCHAR, bronze VARCHAR) ### OUTPUT SELECT COUNT(rank) FROM table_name_4 WHERE nation = "china" AND bronze > 0
{ "input": "CREATE TABLE table_name_4 (rank VARCHAR, nation VARCHAR, bronze VARCHAR)", "instruction": "How many times is the nation china and bronze more than 0?", "output": "SELECT COUNT(rank) FROM table_name_4 WHERE nation = \"china\" AND bronze > 0" }
### INSTRUCTION What are the average amount purchased and value purchased for the supplier who supplies the most products. ### INPUT CREATE TABLE Product_Suppliers (total_amount_purchased INTEGER, total_value_purchased INTEGER, supplier_id VARCHAR) ### OUTPUT SELECT AVG(total_amount_purchased), AVG(total_value_purchased) FROM Product_Suppliers WHERE supplier_id = (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY COUNT(*) DESC LIMIT 1)
{ "input": "CREATE TABLE Product_Suppliers (total_amount_purchased INTEGER, total_value_purchased INTEGER, supplier_id VARCHAR)", "instruction": "What are the average amount purchased and value purchased for the supplier who supplies the most products.", "output": "SELECT AVG(total_amount_purchased), AVG(total_value_purchased) FROM Product_Suppliers WHERE supplier_id = (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY COUNT(*) DESC LIMIT 1)" }
### INSTRUCTION Which Series has an Opponent of calgary flames, and a Score of 9–4? ### INPUT CREATE TABLE table_name_3 (series VARCHAR, opponent VARCHAR, score VARCHAR) ### OUTPUT SELECT series FROM table_name_3 WHERE opponent = "calgary flames" AND score = "9–4"
{ "input": "CREATE TABLE table_name_3 (series VARCHAR, opponent VARCHAR, score VARCHAR)", "instruction": "Which Series has an Opponent of calgary flames, and a Score of 9–4?", "output": "SELECT series FROM table_name_3 WHERE opponent = \"calgary flames\" AND score = \"9–4\"" }
### INSTRUCTION Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500? ### INPUT CREATE TABLE MODEL_LIST (Model VARCHAR, Maker VARCHAR); CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, weight VARCHAR) ### OUTPUT SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500
{ "input": "CREATE TABLE MODEL_LIST (Model VARCHAR, Maker VARCHAR); CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, weight VARCHAR)", "instruction": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?", "output": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500" }
### INSTRUCTION What is the frequency of the model with part number lf80537gf0411m? ### INPUT CREATE TABLE table_11602313_4 (frequency VARCHAR, part_number_s_ VARCHAR) ### OUTPUT SELECT frequency FROM table_11602313_4 WHERE part_number_s_ = "LF80537GF0411M"
{ "input": "CREATE TABLE table_11602313_4 (frequency VARCHAR, part_number_s_ VARCHAR)", "instruction": "What is the frequency of the model with part number lf80537gf0411m?", "output": "SELECT frequency FROM table_11602313_4 WHERE part_number_s_ = \"LF80537GF0411M\"" }
### INSTRUCTION Which Android has anOther Unix of unknown? ### INPUT CREATE TABLE table_name_42 (android VARCHAR, other_unix VARCHAR) ### OUTPUT SELECT android FROM table_name_42 WHERE other_unix = "unknown"
{ "input": "CREATE TABLE table_name_42 (android VARCHAR, other_unix VARCHAR)", "instruction": "Which Android has anOther Unix of unknown?", "output": "SELECT android FROM table_name_42 WHERE other_unix = \"unknown\"" }
### INSTRUCTION In 2008, what was the world ranking that ranked 5th in L.A.? ### INPUT CREATE TABLE table_name_54 (world_ranking__1_ VARCHAR, ranking_la__2_ VARCHAR, year_of_publication VARCHAR) ### OUTPUT SELECT world_ranking__1_ FROM table_name_54 WHERE ranking_la__2_ = "5th" AND year_of_publication = "2008"
{ "input": "CREATE TABLE table_name_54 (world_ranking__1_ VARCHAR, ranking_la__2_ VARCHAR, year_of_publication VARCHAR)", "instruction": "In 2008, what was the world ranking that ranked 5th in L.A.?", "output": "SELECT world_ranking__1_ FROM table_name_54 WHERE ranking_la__2_ = \"5th\" AND year_of_publication = \"2008\"" }
### INSTRUCTION what's the currency name with highest monthly inflation rate being 29,500% ### INPUT CREATE TABLE table_13681_2 (currency_name VARCHAR, highest_monthly_inflation_rate VARCHAR) ### OUTPUT SELECT currency_name FROM table_13681_2 WHERE highest_monthly_inflation_rate = "29,500%"
{ "input": "CREATE TABLE table_13681_2 (currency_name VARCHAR, highest_monthly_inflation_rate VARCHAR)", "instruction": "what's the currency name with highest monthly inflation rate being 29,500%", "output": "SELECT currency_name FROM table_13681_2 WHERE highest_monthly_inflation_rate = \"29,500%\"" }
### INSTRUCTION Show white percentages of cities and the crime rates of counties they are in. ### INPUT CREATE TABLE city (White VARCHAR, County_ID VARCHAR); CREATE TABLE county_public_safety (Crime_rate VARCHAR, County_ID VARCHAR) ### OUTPUT SELECT T1.White, T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID
{ "input": "CREATE TABLE city (White VARCHAR, County_ID VARCHAR); CREATE TABLE county_public_safety (Crime_rate VARCHAR, County_ID VARCHAR)", "instruction": "Show white percentages of cities and the crime rates of counties they are in.", "output": "SELECT T1.White, T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID" }
### INSTRUCTION Which January is the lowest one that has an Opponent of florida panthers, and Points smaller than 59? ### INPUT CREATE TABLE table_name_13 (january INTEGER, opponent VARCHAR, points VARCHAR) ### OUTPUT SELECT MIN(january) FROM table_name_13 WHERE opponent = "florida panthers" AND points < 59
{ "input": "CREATE TABLE table_name_13 (january INTEGER, opponent VARCHAR, points VARCHAR)", "instruction": "Which January is the lowest one that has an Opponent of florida panthers, and Points smaller than 59?", "output": "SELECT MIN(january) FROM table_name_13 WHERE opponent = \"florida panthers\" AND points < 59" }
### INSTRUCTION What competition was played at Shay Stadium? ### INPUT CREATE TABLE table_name_84 (competition VARCHAR, venue VARCHAR) ### OUTPUT SELECT competition FROM table_name_84 WHERE venue = "shay stadium"
{ "input": "CREATE TABLE table_name_84 (competition VARCHAR, venue VARCHAR)", "instruction": "What competition was played at Shay Stadium?", "output": "SELECT competition FROM table_name_84 WHERE venue = \"shay stadium\"" }
### INSTRUCTION What is the compatible repository when the version is old version, no longer supported: 9 and default desktop environment is lxde? ### INPUT CREATE TABLE table_27329061_2 (compatible_repository VARCHAR, version VARCHAR, default_desktop_environment VARCHAR) ### OUTPUT SELECT compatible_repository FROM table_27329061_2 WHERE version = "Old version, no longer supported: 9" AND default_desktop_environment = "LXDE"
{ "input": "CREATE TABLE table_27329061_2 (compatible_repository VARCHAR, version VARCHAR, default_desktop_environment VARCHAR)", "instruction": "What is the compatible repository when the version is old version, no longer supported: 9 and default desktop environment is lxde?", "output": "SELECT compatible_repository FROM table_27329061_2 WHERE version = \"Old version, no longer supported: 9\" AND default_desktop_environment = \"LXDE\"" }
### INSTRUCTION What Norwegian title has 218 pages and Translated Title of Breaking Dawn? ### INPUT CREATE TABLE table_name_37 (norwegian_title VARCHAR, pages VARCHAR, translated_title VARCHAR) ### OUTPUT SELECT norwegian_title FROM table_name_37 WHERE pages = 218 AND translated_title = "breaking dawn"
{ "input": "CREATE TABLE table_name_37 (norwegian_title VARCHAR, pages VARCHAR, translated_title VARCHAR)", "instruction": "What Norwegian title has 218 pages and Translated Title of Breaking Dawn?", "output": "SELECT norwegian_title FROM table_name_37 WHERE pages = 218 AND translated_title = \"breaking dawn\"" }
### INSTRUCTION What in the series number of the episode written by Lauren Gussis? ### INPUT CREATE TABLE table_24132083_1 (no_in_series INTEGER, written_by VARCHAR) ### OUTPUT SELECT MIN(no_in_series) FROM table_24132083_1 WHERE written_by = "Lauren Gussis"
{ "input": "CREATE TABLE table_24132083_1 (no_in_series INTEGER, written_by VARCHAR)", "instruction": "What in the series number of the episode written by Lauren Gussis?", "output": "SELECT MIN(no_in_series) FROM table_24132083_1 WHERE written_by = \"Lauren Gussis\"" }
### INSTRUCTION Show all allergy type with number of students affected. ### INPUT CREATE TABLE Has_allergy (allergy VARCHAR); CREATE TABLE Allergy_type (allergytype VARCHAR, allergy VARCHAR) ### OUTPUT SELECT T2.allergytype, COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype
{ "input": "CREATE TABLE Has_allergy (allergy VARCHAR); CREATE TABLE Allergy_type (allergytype VARCHAR, allergy VARCHAR)", "instruction": "Show all allergy type with number of students affected.", "output": "SELECT T2.allergytype, COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype" }
### INSTRUCTION How much Drawn has a Name of erc lechbruck, and Points smaller than 17? ### INPUT CREATE TABLE table_name_13 (drawn VARCHAR, name VARCHAR, points VARCHAR) ### OUTPUT SELECT COUNT(drawn) FROM table_name_13 WHERE name = "erc lechbruck" AND points < 17
{ "input": "CREATE TABLE table_name_13 (drawn VARCHAR, name VARCHAR, points VARCHAR)", "instruction": "How much Drawn has a Name of erc lechbruck, and Points smaller than 17?", "output": "SELECT COUNT(drawn) FROM table_name_13 WHERE name = \"erc lechbruck\" AND points < 17" }
### INSTRUCTION Which IHSAA Football Class has a IHSAA Class of aaa, and a Location of nashville? ### INPUT CREATE TABLE table_name_79 (ihsaa_football_class VARCHAR, ihsaa_class VARCHAR, location VARCHAR) ### OUTPUT SELECT ihsaa_football_class FROM table_name_79 WHERE ihsaa_class = "aaa" AND location = "nashville"
{ "input": "CREATE TABLE table_name_79 (ihsaa_football_class VARCHAR, ihsaa_class VARCHAR, location VARCHAR)", "instruction": "Which IHSAA Football Class has a IHSAA Class of aaa, and a Location of nashville?", "output": "SELECT ihsaa_football_class FROM table_name_79 WHERE ihsaa_class = \"aaa\" AND location = \"nashville\"" }
### INSTRUCTION Which team was at Corio Oval on 4 June 1927? ### INPUT CREATE TABLE table_name_77 (away_team VARCHAR, date VARCHAR, venue VARCHAR) ### OUTPUT SELECT away_team FROM table_name_77 WHERE date = "4 june 1927" AND venue = "corio oval"
{ "input": "CREATE TABLE table_name_77 (away_team VARCHAR, date VARCHAR, venue VARCHAR)", "instruction": "Which team was at Corio Oval on 4 June 1927?", "output": "SELECT away_team FROM table_name_77 WHERE date = \"4 june 1927\" AND venue = \"corio oval\"" }
### INSTRUCTION what is the company when the country is greece and the author is aeschylus? ### INPUT CREATE TABLE table_name_28 (company VARCHAR, country VARCHAR, author VARCHAR) ### OUTPUT SELECT company FROM table_name_28 WHERE country = "greece" AND author = "aeschylus"
{ "input": "CREATE TABLE table_name_28 (company VARCHAR, country VARCHAR, author VARCHAR)", "instruction": "what is the company when the country is greece and the author is aeschylus?", "output": "SELECT company FROM table_name_28 WHERE country = \"greece\" AND author = \"aeschylus\"" }
### INSTRUCTION Find the average age of members of the club "Hopkins Student Enterprises". ### INPUT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) ### OUTPUT SELECT AVG(t3.age) 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"
{ "input": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)", "instruction": "Find the average age of members of the club \"Hopkins Student Enterprises\".", "output": "SELECT AVG(t3.age) 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\"" }
### INSTRUCTION What was the club career for players in positions of DF, fewer than 18 total goals, fewer than 129 league appearances, and more than 7 league goals? ### INPUT CREATE TABLE table_name_65 (club_career VARCHAR, league_goals VARCHAR, league_apps VARCHAR, position VARCHAR, total_goals VARCHAR) ### OUTPUT SELECT club_career FROM table_name_65 WHERE position = "df" AND total_goals < 18 AND league_apps < 129 AND league_goals > 7
{ "input": "CREATE TABLE table_name_65 (club_career VARCHAR, league_goals VARCHAR, league_apps VARCHAR, position VARCHAR, total_goals VARCHAR)", "instruction": "What was the club career for players in positions of DF, fewer than 18 total goals, fewer than 129 league appearances, and more than 7 league goals?", "output": "SELECT club_career FROM table_name_65 WHERE position = \"df\" AND total_goals < 18 AND league_apps < 129 AND league_goals > 7" }
### INSTRUCTION What was the incumbent for missouri 1? ### INPUT CREATE TABLE table_1341640_26 (incumbent VARCHAR, district VARCHAR) ### OUTPUT SELECT incumbent FROM table_1341640_26 WHERE district = "Missouri 1"
{ "input": "CREATE TABLE table_1341640_26 (incumbent VARCHAR, district VARCHAR)", "instruction": "What was the incumbent for missouri 1?", "output": "SELECT incumbent FROM table_1341640_26 WHERE district = \"Missouri 1\"" }
### INSTRUCTION How many entries are in the ranking for jacqueline kohl? ### INPUT CREATE TABLE table_26427332_17 (place VARCHAR, contestant VARCHAR) ### OUTPUT SELECT COUNT(place) FROM table_26427332_17 WHERE contestant = "Jacqueline Kohl"
{ "input": "CREATE TABLE table_26427332_17 (place VARCHAR, contestant VARCHAR)", "instruction": "How many entries are in the ranking for jacqueline kohl?", "output": "SELECT COUNT(place) FROM table_26427332_17 WHERE contestant = \"Jacqueline Kohl\"" }
### INSTRUCTION Give me the names of members whose address is in Harford or Waterbury. ### INPUT CREATE TABLE member (name VARCHAR, address VARCHAR) ### OUTPUT SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury'
{ "input": "CREATE TABLE member (name VARCHAR, address VARCHAR)", "instruction": "Give me the names of members whose address is in Harford or Waterbury.", "output": "SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury'" }
### INSTRUCTION Tell me the total number of total for vovinam and bronze less than 3 ### INPUT CREATE TABLE table_name_16 (total VARCHAR, sport VARCHAR, bronze VARCHAR) ### OUTPUT SELECT COUNT(total) FROM table_name_16 WHERE sport = "vovinam" AND bronze < 3
{ "input": "CREATE TABLE table_name_16 (total VARCHAR, sport VARCHAR, bronze VARCHAR)", "instruction": "Tell me the total number of total for vovinam and bronze less than 3", "output": "SELECT COUNT(total) FROM table_name_16 WHERE sport = \"vovinam\" AND bronze < 3" }
### INSTRUCTION What is the location of the river mile that is larger than 938.9, and Olmsted Locks and Dam? ### INPUT CREATE TABLE table_name_8 (location_ VARCHAR, l_ VARCHAR, river_mile VARCHAR, locks_ VARCHAR, _dam VARCHAR) ### OUTPUT SELECT location_[l_] FROM table_name_8 WHERE river_mile > 938.9 AND locks_ & _dam = "olmsted locks and dam"
{ "input": "CREATE TABLE table_name_8 (location_ VARCHAR, l_ VARCHAR, river_mile VARCHAR, locks_ VARCHAR, _dam VARCHAR)", "instruction": "What is the location of the river mile that is larger than 938.9, and Olmsted Locks and Dam?", "output": "SELECT location_[l_] FROM table_name_8 WHERE river_mile > 938.9 AND locks_ & _dam = \"olmsted locks and dam\"" }
### INSTRUCTION Name the total number of matches with wickets less than 537 and career of 1898/99-1919/20 with runs more than 4476 ### INPUT CREATE TABLE table_name_73 (matches VARCHAR, runs VARCHAR, wickets VARCHAR, career VARCHAR) ### OUTPUT SELECT COUNT(matches) FROM table_name_73 WHERE wickets < 537 AND career = "1898/99-1919/20" AND runs > 4476
{ "input": "CREATE TABLE table_name_73 (matches VARCHAR, runs VARCHAR, wickets VARCHAR, career VARCHAR)", "instruction": "Name the total number of matches with wickets less than 537 and career of 1898/99-1919/20 with runs more than 4476", "output": "SELECT COUNT(matches) FROM table_name_73 WHERE wickets < 537 AND career = \"1898/99-1919/20\" AND runs > 4476" }
### INSTRUCTION What is the current code for the club trophy, in 1867 only? ### INPUT CREATE TABLE table_name_20 (current_code VARCHAR, type VARCHAR, years VARCHAR) ### OUTPUT SELECT current_code FROM table_name_20 WHERE type = "club trophy" AND years = "1867 only"
{ "input": "CREATE TABLE table_name_20 (current_code VARCHAR, type VARCHAR, years VARCHAR)", "instruction": "What is the current code for the club trophy, in 1867 only?", "output": "SELECT current_code FROM table_name_20 WHERE type = \"club trophy\" AND years = \"1867 only\"" }
### INSTRUCTION What is the lowest rank that the protestants population holds? ### INPUT CREATE TABLE table_name_67 (rank INTEGER, name VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_67 WHERE name = "protestants population"
{ "input": "CREATE TABLE table_name_67 (rank INTEGER, name VARCHAR)", "instruction": "What is the lowest rank that the protestants population holds?", "output": "SELECT MIN(rank) FROM table_name_67 WHERE name = \"protestants population\"" }
### INSTRUCTION Name the average week for attendance of 75,111 ### INPUT CREATE TABLE table_name_17 (week INTEGER, attendance VARCHAR) ### OUTPUT SELECT AVG(week) FROM table_name_17 WHERE attendance = 75 OFFSET 111
{ "input": "CREATE TABLE table_name_17 (week INTEGER, attendance VARCHAR)", "instruction": "Name the average week for attendance of 75,111", "output": "SELECT AVG(week) FROM table_name_17 WHERE attendance = 75 OFFSET 111" }
### INSTRUCTION What is the lowest First Elected, when Party is "Republican", and when District is "Minnesota 1"? ### INPUT CREATE TABLE table_name_19 (first_elected INTEGER, party VARCHAR, district VARCHAR) ### OUTPUT SELECT MIN(first_elected) FROM table_name_19 WHERE party = "republican" AND district = "minnesota 1"
{ "input": "CREATE TABLE table_name_19 (first_elected INTEGER, party VARCHAR, district VARCHAR)", "instruction": "What is the lowest First Elected, when Party is \"Republican\", and when District is \"Minnesota 1\"?", "output": "SELECT MIN(first_elected) FROM table_name_19 WHERE party = \"republican\" AND district = \"minnesota 1\"" }
### INSTRUCTION How many faculty lines are there in the university that conferred the most number of degrees in year 2002? ### INPUT CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (faculty VARCHAR); CREATE TABLE degrees (Id VARCHAR) ### OUTPUT SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1
{ "input": "CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (faculty VARCHAR); CREATE TABLE degrees (Id VARCHAR)", "instruction": "How many faculty lines are there in the university that conferred the most number of degrees in year 2002?", "output": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1" }
### INSTRUCTION When the Away team footscray played on the Date of 19 july 1980, what was the amount of people in the Crowd? ### INPUT CREATE TABLE table_name_1 (crowd VARCHAR, date VARCHAR, away_team VARCHAR) ### OUTPUT SELECT crowd FROM table_name_1 WHERE date = "19 july 1980" AND away_team = "footscray"
{ "input": "CREATE TABLE table_name_1 (crowd VARCHAR, date VARCHAR, away_team VARCHAR)", "instruction": "When the Away team footscray played on the Date of 19 july 1980, what was the amount of people in the Crowd?", "output": "SELECT crowd FROM table_name_1 WHERE date = \"19 july 1980\" AND away_team = \"footscray\"" }
### INSTRUCTION Which season used production code "am10"? ### INPUT CREATE TABLE table_23279434_1 (season__number VARCHAR, production_code VARCHAR) ### OUTPUT SELECT COUNT(season__number) FROM table_23279434_1 WHERE production_code = "AM10"
{ "input": "CREATE TABLE table_23279434_1 (season__number VARCHAR, production_code VARCHAR)", "instruction": "Which season used production code \"am10\"?", "output": "SELECT COUNT(season__number) FROM table_23279434_1 WHERE production_code = \"AM10\"" }
### INSTRUCTION Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64. ### INPUT CREATE TABLE phone (Carrier VARCHAR, Memory_in_G INTEGER) ### OUTPUT SELECT Carrier FROM phone WHERE Memory_in_G < 32 INTERSECT SELECT Carrier FROM phone WHERE Memory_in_G > 64
{ "input": "CREATE TABLE phone (Carrier VARCHAR, Memory_in_G INTEGER)", "instruction": "Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64.", "output": "SELECT Carrier FROM phone WHERE Memory_in_G < 32 INTERSECT SELECT Carrier FROM phone WHERE Memory_in_G > 64" }