text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What region has the date of 2005 and Playground Music Scandinavia as a label? ### INPUT CREATE TABLE table_name_16 (region VARCHAR, date VARCHAR, label VARCHAR) ### OUTPUT SELECT region FROM table_name_16 WHERE date = "2005" AND label = "playground music scandinavia"
{ "input": "CREATE TABLE table_name_16 (region VARCHAR, date VARCHAR, label VARCHAR)", "instruction": "What region has the date of 2005 and Playground Music Scandinavia as a label?", "output": "SELECT region FROM table_name_16 WHERE date = \"2005\" AND label = \"playground music scandinavia\"" }
### INSTRUCTION What was the termination type for the headphones with comfort pads and selling for $150? ### INPUT CREATE TABLE table_name_2 (termination VARCHAR, earpads VARCHAR, us_msrp VARCHAR) ### OUTPUT SELECT termination FROM table_name_2 WHERE earpads = "comfort pads" AND us_msrp = "$150"
{ "input": "CREATE TABLE table_name_2 (termination VARCHAR, earpads VARCHAR, us_msrp VARCHAR)", "instruction": "What was the termination type for the headphones with comfort pads and selling for $150?", "output": "SELECT termination FROM table_name_2 WHERE earpads = \"comfort pads\" AND us_msrp = \"$150\"" }
### INSTRUCTION Which professionals have done at least two treatments? List the professional's id, role, and first name. ### INPUT CREATE TABLE Professionals (professional_id VARCHAR, role_code VARCHAR, first_name VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR) ### OUTPUT SELECT T1.professional_id, T1.role_code, T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE Professionals (professional_id VARCHAR, role_code VARCHAR, first_name VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)", "instruction": "Which professionals have done at least two treatments? List the professional's id, role, and first name.", "output": "SELECT T1.professional_id, T1.role_code, T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2" }
### INSTRUCTION Which is the email of the party that has used the services the most number of times? ### INPUT CREATE TABLE parties (party_email VARCHAR, party_id VARCHAR); CREATE TABLE party_services (customer_id VARCHAR) ### OUTPUT SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE parties (party_email VARCHAR, party_id VARCHAR); CREATE TABLE party_services (customer_id VARCHAR)", "instruction": "Which is the email of the party that has used the services the most number of times?", "output": "SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What was the recorded flaps of HBR Motorsport team? ### INPUT CREATE TABLE table_25369796_1 (f_laps VARCHAR, team VARCHAR) ### OUTPUT SELECT f_laps FROM table_25369796_1 WHERE team = "HBR Motorsport"
{ "input": "CREATE TABLE table_25369796_1 (f_laps VARCHAR, team VARCHAR)", "instruction": "What was the recorded flaps of HBR Motorsport team?", "output": "SELECT f_laps FROM table_25369796_1 WHERE team = \"HBR Motorsport\"" }
### INSTRUCTION What is the total number of # Of Prefectural Votes, when % Of Prefectural Vote is 48.4%, and when # Of Seats Won is greater than 61? ### INPUT CREATE TABLE table_name_37 (_number_of_prefectural_votes VARCHAR, _percentage_of_prefectural_vote VARCHAR, _number_of_seats_won VARCHAR) ### OUTPUT SELECT COUNT(_number_of_prefectural_votes) FROM table_name_37 WHERE _percentage_of_prefectural_vote = "48.4%" AND _number_of_seats_won > 61
{ "input": "CREATE TABLE table_name_37 (_number_of_prefectural_votes VARCHAR, _percentage_of_prefectural_vote VARCHAR, _number_of_seats_won VARCHAR)", "instruction": "What is the total number of # Of Prefectural Votes, when % Of Prefectural Vote is 48.4%, and when # Of Seats Won is greater than 61?", "output": "SELECT COUNT(_number_of_prefectural_votes) FROM table_name_37 WHERE _percentage_of_prefectural_vote = \"48.4%\" AND _number_of_seats_won > 61" }
### INSTRUCTION What was the date of Circuit Hockenheimring and the winning manufacturer being Mercedes-Benz? ### INPUT CREATE TABLE table_name_34 (date VARCHAR, circuit VARCHAR, winning_manufacturer VARCHAR) ### OUTPUT SELECT date FROM table_name_34 WHERE circuit = "hockenheimring" AND winning_manufacturer = "mercedes-benz"
{ "input": "CREATE TABLE table_name_34 (date VARCHAR, circuit VARCHAR, winning_manufacturer VARCHAR)", "instruction": "What was the date of Circuit Hockenheimring and the winning manufacturer being Mercedes-Benz?", "output": "SELECT date FROM table_name_34 WHERE circuit = \"hockenheimring\" AND winning_manufacturer = \"mercedes-benz\"" }
### INSTRUCTION Who was the runner-up in the RR Donnelley LPGA Founders Cup? ### INPUT CREATE TABLE table_name_52 (runner_s__up VARCHAR, tournament VARCHAR) ### OUTPUT SELECT runner_s__up FROM table_name_52 WHERE tournament = "rr donnelley lpga founders cup"
{ "input": "CREATE TABLE table_name_52 (runner_s__up VARCHAR, tournament VARCHAR)", "instruction": "Who was the runner-up in the RR Donnelley LPGA Founders Cup?", "output": "SELECT runner_s__up FROM table_name_52 WHERE tournament = \"rr donnelley lpga founders cup\"" }
### INSTRUCTION What is the Label of the release with Catalog number LPM-2899? ### INPUT CREATE TABLE table_name_87 (label VARCHAR, catalog VARCHAR) ### OUTPUT SELECT label FROM table_name_87 WHERE catalog = "lpm-2899"
{ "input": "CREATE TABLE table_name_87 (label VARCHAR, catalog VARCHAR)", "instruction": "What is the Label of the release with Catalog number LPM-2899?", "output": "SELECT label FROM table_name_87 WHERE catalog = \"lpm-2899\"" }
### INSTRUCTION What round has 3-4 as the record? ### INPUT CREATE TABLE table_name_49 (round VARCHAR, record VARCHAR) ### OUTPUT SELECT round FROM table_name_49 WHERE record = "3-4"
{ "input": "CREATE TABLE table_name_49 (round VARCHAR, record VARCHAR)", "instruction": "What round has 3-4 as the record?", "output": "SELECT round FROM table_name_49 WHERE record = \"3-4\"" }
### INSTRUCTION Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in. ### INPUT CREATE TABLE Faculty_participates_in (facID VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR, facID VARCHAR) ### OUTPUT SELECT T1.fname, T1.lname, COUNT(*), T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID
{ "input": "CREATE TABLE Faculty_participates_in (facID VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR, facID VARCHAR)", "instruction": "Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in.", "output": "SELECT T1.fname, T1.lname, COUNT(*), T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID" }
### INSTRUCTION What was the role in 2001? ### INPUT CREATE TABLE table_name_91 (role VARCHAR, year VARCHAR) ### OUTPUT SELECT role FROM table_name_91 WHERE year = "2001"
{ "input": "CREATE TABLE table_name_91 (role VARCHAR, year VARCHAR)", "instruction": "What was the role in 2001?", "output": "SELECT role FROM table_name_91 WHERE year = \"2001\"" }
### INSTRUCTION what is the percentage of male voters where the level of maturity is 123726 ### INPUT CREATE TABLE table_25042332_30 (e_vap_ratio_total VARCHAR, men_of_voting_age VARCHAR) ### OUTPUT SELECT e_vap_ratio_total FROM table_25042332_30 WHERE men_of_voting_age = 123726
{ "input": "CREATE TABLE table_25042332_30 (e_vap_ratio_total VARCHAR, men_of_voting_age VARCHAR)", "instruction": "what is the percentage of male voters where the level of maturity is 123726", "output": "SELECT e_vap_ratio_total FROM table_25042332_30 WHERE men_of_voting_age = 123726" }
### INSTRUCTION what was the score of the parallel bars with a floor exercise score more than 9.137, vault more than 9.5 and horizontal bar of 9.225? ### INPUT CREATE TABLE table_name_87 (parallel_bars INTEGER, vault VARCHAR, floor_exercise VARCHAR, horizontal_bar VARCHAR) ### OUTPUT SELECT SUM(parallel_bars) FROM table_name_87 WHERE floor_exercise > 9.137 AND horizontal_bar = 9.225 AND vault > 9.5
{ "input": "CREATE TABLE table_name_87 (parallel_bars INTEGER, vault VARCHAR, floor_exercise VARCHAR, horizontal_bar VARCHAR)", "instruction": "what was the score of the parallel bars with a floor exercise score more than 9.137, vault more than 9.5 and horizontal bar of 9.225?", "output": "SELECT SUM(parallel_bars) FROM table_name_87 WHERE floor_exercise > 9.137 AND horizontal_bar = 9.225 AND vault > 9.5" }
### INSTRUCTION What school has a public nickname, founded after 1838 in Harrisonburg, Va? ### INPUT CREATE TABLE table_name_38 (nickname VARCHAR, location VARCHAR, affiliation VARCHAR, founded VARCHAR) ### OUTPUT SELECT nickname FROM table_name_38 WHERE affiliation = "public" AND founded > 1838 AND location = "harrisonburg, va"
{ "input": "CREATE TABLE table_name_38 (nickname VARCHAR, location VARCHAR, affiliation VARCHAR, founded VARCHAR)", "instruction": "What school has a public nickname, founded after 1838 in Harrisonburg, Va?", "output": "SELECT nickname FROM table_name_38 WHERE affiliation = \"public\" AND founded > 1838 AND location = \"harrisonburg, va\"" }
### INSTRUCTION What was the lowest re-elected result for Sylvester C. Smith? ### INPUT CREATE TABLE table_name_47 (first_elected INTEGER, result VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT MIN(first_elected) FROM table_name_47 WHERE result = "re-elected" AND incumbent = "sylvester c. smith"
{ "input": "CREATE TABLE table_name_47 (first_elected INTEGER, result VARCHAR, incumbent VARCHAR)", "instruction": "What was the lowest re-elected result for Sylvester C. Smith?", "output": "SELECT MIN(first_elected) FROM table_name_47 WHERE result = \"re-elected\" AND incumbent = \"sylvester c. smith\"" }
### INSTRUCTION What activities does Clear Channel Entertainment Facilitation Limited engage in? ### INPUT CREATE TABLE table_1756264_2 (description_of_activities VARCHAR, company_name VARCHAR) ### OUTPUT SELECT description_of_activities FROM table_1756264_2 WHERE company_name = "CLEAR CHANNEL ENTERTAINMENT FACILITATION LIMITED"
{ "input": "CREATE TABLE table_1756264_2 (description_of_activities VARCHAR, company_name VARCHAR)", "instruction": "What activities does Clear Channel Entertainment Facilitation Limited engage in?", "output": "SELECT description_of_activities FROM table_1756264_2 WHERE company_name = \"CLEAR CHANNEL ENTERTAINMENT FACILITATION LIMITED\"" }
### INSTRUCTION What is the Result of Game 3? ### INPUT CREATE TABLE table_name_16 (result VARCHAR, game VARCHAR) ### OUTPUT SELECT result FROM table_name_16 WHERE game = "game 3"
{ "input": "CREATE TABLE table_name_16 (result VARCHAR, game VARCHAR)", "instruction": "What is the Result of Game 3?", "output": "SELECT result FROM table_name_16 WHERE game = \"game 3\"" }
### INSTRUCTION What is the Badge/Serial Number of the Policeman who died in Gunfire on 1919-02-18? ### INPUT CREATE TABLE table_name_58 (badge_serial_number VARCHAR, date_of_death VARCHAR, rank VARCHAR, cause_of_death VARCHAR) ### OUTPUT SELECT badge_serial_number FROM table_name_58 WHERE rank = "policeman" AND cause_of_death = "gunfire" AND date_of_death = "1919-02-18"
{ "input": "CREATE TABLE table_name_58 (badge_serial_number VARCHAR, date_of_death VARCHAR, rank VARCHAR, cause_of_death VARCHAR)", "instruction": "What is the Badge/Serial Number of the Policeman who died in Gunfire on 1919-02-18?", "output": "SELECT badge_serial_number FROM table_name_58 WHERE rank = \"policeman\" AND cause_of_death = \"gunfire\" AND date_of_death = \"1919-02-18\"" }
### INSTRUCTION How many times were Duke the opponents? ### INPUT CREATE TABLE table_20745444_1 (opponents VARCHAR, opponent VARCHAR) ### OUTPUT SELECT COUNT(opponents) FROM table_20745444_1 WHERE opponent = "Duke"
{ "input": "CREATE TABLE table_20745444_1 (opponents VARCHAR, opponent VARCHAR)", "instruction": "How many times were Duke the opponents?", "output": "SELECT COUNT(opponents) FROM table_20745444_1 WHERE opponent = \"Duke\"" }
### INSTRUCTION Name the sum of place with ties larger than 0 and point sof 7 qc and losses more than 2 ### INPUT CREATE TABLE table_name_58 (place INTEGER, losses VARCHAR, ties VARCHAR, points VARCHAR) ### OUTPUT SELECT SUM(place) FROM table_name_58 WHERE ties > 0 AND points = "7 qc" AND losses > 2
{ "input": "CREATE TABLE table_name_58 (place INTEGER, losses VARCHAR, ties VARCHAR, points VARCHAR)", "instruction": "Name the sum of place with ties larger than 0 and point sof 7 qc and losses more than 2", "output": "SELECT SUM(place) FROM table_name_58 WHERE ties > 0 AND points = \"7 qc\" AND losses > 2" }
### INSTRUCTION Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0? ### INPUT CREATE TABLE table_name_43 (promotions INTEGER, team VARCHAR, relegations VARCHAR) ### OUTPUT SELECT MAX(promotions) FROM table_name_43 WHERE team = "pallacanestro messina" AND relegations > 0
{ "input": "CREATE TABLE table_name_43 (promotions INTEGER, team VARCHAR, relegations VARCHAR)", "instruction": "Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0?", "output": "SELECT MAX(promotions) FROM table_name_43 WHERE team = \"pallacanestro messina\" AND relegations > 0" }
### INSTRUCTION What's the rank for a team that has a percentage of 56% and a loss smaller than 4? ### INPUT CREATE TABLE table_name_45 (rank INTEGER, loss VARCHAR, percentage VARCHAR) ### OUTPUT SELECT AVG(rank) FROM table_name_45 WHERE NOT percentage = "56%" AND loss < 4
{ "input": "CREATE TABLE table_name_45 (rank INTEGER, loss VARCHAR, percentage VARCHAR)", "instruction": "What's the rank for a team that has a percentage of 56% and a loss smaller than 4?", "output": "SELECT AVG(rank) FROM table_name_45 WHERE NOT percentage = \"56%\" AND loss < 4" }
### INSTRUCTION What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers? ### INPUT CREATE TABLE table_name_28 (current_club VARCHAR, player VARCHAR, first_team_appearances VARCHAR, position VARCHAR) ### OUTPUT SELECT current_club FROM table_name_28 WHERE first_team_appearances = "ongoing" AND position = "midfielder" AND player = "samir carruthers"
{ "input": "CREATE TABLE table_name_28 (current_club VARCHAR, player VARCHAR, first_team_appearances VARCHAR, position VARCHAR)", "instruction": "What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?", "output": "SELECT current_club FROM table_name_28 WHERE first_team_appearances = \"ongoing\" AND position = \"midfielder\" AND player = \"samir carruthers\"" }
### INSTRUCTION Name the NOSAWA Rongai for petey williams ### INPUT CREATE TABLE table_name_97 (nosawa_rongai VARCHAR, block_a VARCHAR) ### OUTPUT SELECT nosawa_rongai FROM table_name_97 WHERE block_a = "petey williams"
{ "input": "CREATE TABLE table_name_97 (nosawa_rongai VARCHAR, block_a VARCHAR)", "instruction": "Name the NOSAWA Rongai for petey williams", "output": "SELECT nosawa_rongai FROM table_name_97 WHERE block_a = \"petey williams\"" }
### INSTRUCTION What yacht type is involved where Bob Oatley is the skipper? ### INPUT CREATE TABLE table_25594888_1 (yacht VARCHAR, skipper VARCHAR) ### OUTPUT SELECT yacht AS type FROM table_25594888_1 WHERE skipper = "Bob Oatley"
{ "input": "CREATE TABLE table_25594888_1 (yacht VARCHAR, skipper VARCHAR)", "instruction": "What yacht type is involved where Bob Oatley is the skipper?", "output": "SELECT yacht AS type FROM table_25594888_1 WHERE skipper = \"Bob Oatley\"" }
### INSTRUCTION What is the antiparticle symbol with a rest mess (mev/c2) of .47 ± .33? ### INPUT CREATE TABLE table_name_16 (antiparticle_symbol VARCHAR, rest_mass___mev___c_2__ VARCHAR) ### OUTPUT SELECT antiparticle_symbol FROM table_name_16 WHERE rest_mass___mev___c_2__ = ".47 ± .33"
{ "input": "CREATE TABLE table_name_16 (antiparticle_symbol VARCHAR, rest_mass___mev___c_2__ VARCHAR)", "instruction": "What is the antiparticle symbol with a rest mess (mev/c2) of .47 ± .33?", "output": "SELECT antiparticle_symbol FROM table_name_16 WHERE rest_mass___mev___c_2__ = \".47 ± .33\"" }
### INSTRUCTION How many clubs does number 6 play for? ### INPUT CREATE TABLE table_12962773_15 (current_club VARCHAR, no VARCHAR) ### OUTPUT SELECT COUNT(current_club) FROM table_12962773_15 WHERE no = 6
{ "input": "CREATE TABLE table_12962773_15 (current_club VARCHAR, no VARCHAR)", "instruction": "How many clubs does number 6 play for?", "output": "SELECT COUNT(current_club) FROM table_12962773_15 WHERE no = 6" }
### INSTRUCTION Show the most common headquarter for companies. ### INPUT CREATE TABLE company (Headquarters VARCHAR) ### OUTPUT SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE company (Headquarters VARCHAR)", "instruction": "Show the most common headquarter for companies.", "output": "SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the average # Of National Votes, when the Election is before 1992, when the % Of Prefectural Vote is 39.5%, when Leader is Takeo Fukuda, and when # Of Seats Won is greater than 63? ### INPUT CREATE TABLE table_name_30 (_number_of_national_votes INTEGER, _number_of_seats_won VARCHAR, leader VARCHAR, election VARCHAR, _percentage_of_prefectural_vote VARCHAR) ### OUTPUT SELECT AVG(_number_of_national_votes) FROM table_name_30 WHERE election < 1992 AND _percentage_of_prefectural_vote = "39.5%" AND leader = "takeo fukuda" AND _number_of_seats_won > 63
{ "input": "CREATE TABLE table_name_30 (_number_of_national_votes INTEGER, _number_of_seats_won VARCHAR, leader VARCHAR, election VARCHAR, _percentage_of_prefectural_vote VARCHAR)", "instruction": "What is the average # Of National Votes, when the Election is before 1992, when the % Of Prefectural Vote is 39.5%, when Leader is Takeo Fukuda, and when # Of Seats Won is greater than 63?", "output": "SELECT AVG(_number_of_national_votes) FROM table_name_30 WHERE election < 1992 AND _percentage_of_prefectural_vote = \"39.5%\" AND leader = \"takeo fukuda\" AND _number_of_seats_won > 63" }
### INSTRUCTION The match against Paul-Henri Mathieu had what outcome? ### INPUT CREATE TABLE table_name_92 (outcome VARCHAR, opponent VARCHAR) ### OUTPUT SELECT outcome FROM table_name_92 WHERE opponent = "paul-henri mathieu"
{ "input": "CREATE TABLE table_name_92 (outcome VARCHAR, opponent VARCHAR)", "instruction": "The match against Paul-Henri Mathieu had what outcome?", "output": "SELECT outcome FROM table_name_92 WHERE opponent = \"paul-henri mathieu\"" }
### INSTRUCTION What opponent is at Richmond Academy? ### INPUT CREATE TABLE table_name_38 (opponent VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT opponent FROM table_name_38 WHERE location_attendance = "richmond academy"
{ "input": "CREATE TABLE table_name_38 (opponent VARCHAR, location_attendance VARCHAR)", "instruction": "What opponent is at Richmond Academy?", "output": "SELECT opponent FROM table_name_38 WHERE location_attendance = \"richmond academy\"" }
### INSTRUCTION What is the highest Market Value (billion $), when Rank is 02 2, and when Sales (billion $) is greater than 113.1? ### INPUT CREATE TABLE table_name_99 (market_value__billion_ INTEGER, rank VARCHAR, sales__billion_$_ VARCHAR) ### OUTPUT SELECT MAX(market_value__billion_) AS $_ FROM table_name_99 WHERE rank = "02 2" AND sales__billion_$_ > 113.1
{ "input": "CREATE TABLE table_name_99 (market_value__billion_ INTEGER, rank VARCHAR, sales__billion_$_ VARCHAR)", "instruction": "What is the highest Market Value (billion $), when Rank is 02 2, and when Sales (billion $) is greater than 113.1?", "output": "SELECT MAX(market_value__billion_) AS $_ FROM table_name_99 WHERE rank = \"02 2\" AND sales__billion_$_ > 113.1" }
### INSTRUCTION What is the hardness for the alloy that is liquid at 243 degrees C? ### INPUT CREATE TABLE table_name_45 (hardness VARCHAR, liquid_at__°c_ VARCHAR) ### OUTPUT SELECT hardness FROM table_name_45 WHERE liquid_at__°c_ = "243"
{ "input": "CREATE TABLE table_name_45 (hardness VARCHAR, liquid_at__°c_ VARCHAR)", "instruction": "What is the hardness for the alloy that is liquid at 243 degrees C?", "output": "SELECT hardness FROM table_name_45 WHERE liquid_at__°c_ = \"243\"" }
### INSTRUCTION Show different tourist attractions' names, ids, and the corresponding number of visits. ### INPUT CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) ### OUTPUT SELECT T1.Name, T2.Tourist_Attraction_ID, COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID
{ "input": "CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)", "instruction": "Show different tourist attractions' names, ids, and the corresponding number of visits.", "output": "SELECT T1.Name, T2.Tourist_Attraction_ID, COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID" }
### INSTRUCTION How many bookings did each customer make? List the customer id, first name, and the count. ### INPUT CREATE TABLE bookings (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR) ### OUTPUT SELECT T1.customer_id, T1.first_name, COUNT(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id
{ "input": "CREATE TABLE bookings (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR)", "instruction": "How many bookings did each customer make? List the customer id, first name, and the count.", "output": "SELECT T1.customer_id, T1.first_name, COUNT(*) FROM Customers AS T1 JOIN bookings AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id" }
### INSTRUCTION If Di Drew is the director, what was the original air date for episode A Whole Lot to Lose? ### INPUT CREATE TABLE table_18427769_1 (original_air_date VARCHAR, directed_by VARCHAR) ### OUTPUT SELECT original_air_date FROM table_18427769_1 WHERE directed_by = "Di Drew"
{ "input": "CREATE TABLE table_18427769_1 (original_air_date VARCHAR, directed_by VARCHAR)", "instruction": "If Di Drew is the director, what was the original air date for episode A Whole Lot to Lose?", "output": "SELECT original_air_date FROM table_18427769_1 WHERE directed_by = \"Di Drew\"" }
### INSTRUCTION What is the Type for l. publilius philo vulscus? ### INPUT CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR) ### OUTPUT SELECT type FROM table_name_46 WHERE name = "l. publilius philo vulscus"
{ "input": "CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR)", "instruction": "What is the Type for l. publilius philo vulscus?", "output": "SELECT type FROM table_name_46 WHERE name = \"l. publilius philo vulscus\"" }
### INSTRUCTION Find the building, room number, semester and year of all courses offered by Psychology department sorted by course titles. ### INPUT CREATE TABLE SECTION (building VARCHAR, room_number VARCHAR, semester VARCHAR, year VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR, title VARCHAR) ### OUTPUT SELECT T2.building, T2.room_number, T2.semester, T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY T1.title
{ "input": "CREATE TABLE SECTION (building VARCHAR, room_number VARCHAR, semester VARCHAR, year VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR, title VARCHAR)", "instruction": "Find the building, room number, semester and year of all courses offered by Psychology department sorted by course titles.", "output": "SELECT T2.building, T2.room_number, T2.semester, T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY T1.title" }
### INSTRUCTION which brand have drivers who won with the names of ryan briscoe and tomas scheckter ### INPUT CREATE TABLE table_13512105_3 (winning_team VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR) ### OUTPUT SELECT winning_team FROM table_13512105_3 WHERE winning_driver = "Ryan Briscoe" AND fastest_lap = "Tomas Scheckter"
{ "input": "CREATE TABLE table_13512105_3 (winning_team VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR)", "instruction": "which brand have drivers who won with the names of ryan briscoe and tomas scheckter", "output": "SELECT winning_team FROM table_13512105_3 WHERE winning_driver = \"Ryan Briscoe\" AND fastest_lap = \"Tomas Scheckter\"" }
### INSTRUCTION What Label has a Region of united states, and a Format of cassette? ### INPUT CREATE TABLE table_name_68 (label VARCHAR, region VARCHAR, format VARCHAR) ### OUTPUT SELECT label FROM table_name_68 WHERE region = "united states" AND format = "cassette"
{ "input": "CREATE TABLE table_name_68 (label VARCHAR, region VARCHAR, format VARCHAR)", "instruction": "What Label has a Region of united states, and a Format of cassette?", "output": "SELECT label FROM table_name_68 WHERE region = \"united states\" AND format = \"cassette\"" }
### INSTRUCTION How many Goals have a Result of 0 – 4? ### INPUT CREATE TABLE table_name_26 (goals INTEGER, result VARCHAR) ### OUTPUT SELECT AVG(goals) FROM table_name_26 WHERE result = "0 – 4"
{ "input": "CREATE TABLE table_name_26 (goals INTEGER, result VARCHAR)", "instruction": "How many Goals have a Result of 0 – 4?", "output": "SELECT AVG(goals) FROM table_name_26 WHERE result = \"0 – 4\"" }
### INSTRUCTION Who directed the episode directed by colin teague? ### INPUT CREATE TABLE table_25737761_3 (writer VARCHAR, director VARCHAR) ### OUTPUT SELECT writer FROM table_25737761_3 WHERE director = "Colin Teague"
{ "input": "CREATE TABLE table_25737761_3 (writer VARCHAR, director VARCHAR)", "instruction": "Who directed the episode directed by colin teague?", "output": "SELECT writer FROM table_25737761_3 WHERE director = \"Colin Teague\"" }
### INSTRUCTION Which Record has a Game larger than 15, and Points smaller than 31, and a November of 7? ### INPUT CREATE TABLE table_name_36 (record VARCHAR, november VARCHAR, game VARCHAR, points VARCHAR) ### OUTPUT SELECT record FROM table_name_36 WHERE game > 15 AND points < 31 AND november = 7
{ "input": "CREATE TABLE table_name_36 (record VARCHAR, november VARCHAR, game VARCHAR, points VARCHAR)", "instruction": "Which Record has a Game larger than 15, and Points smaller than 31, and a November of 7?", "output": "SELECT record FROM table_name_36 WHERE game > 15 AND points < 31 AND november = 7" }
### INSTRUCTION Name the college/junior club team for jimmy jones ### INPUT CREATE TABLE table_1965650_2 (college_junior_club_team VARCHAR, player VARCHAR) ### OUTPUT SELECT college_junior_club_team FROM table_1965650_2 WHERE player = "Jimmy Jones"
{ "input": "CREATE TABLE table_1965650_2 (college_junior_club_team VARCHAR, player VARCHAR)", "instruction": "Name the college/junior club team for jimmy jones", "output": "SELECT college_junior_club_team FROM table_1965650_2 WHERE player = \"Jimmy Jones\"" }
### INSTRUCTION What is the city in India with an airport named Sardar Vallabhbhai Patel International Airport? ### INPUT CREATE TABLE table_name_58 (city VARCHAR, country VARCHAR, airport VARCHAR) ### OUTPUT SELECT city FROM table_name_58 WHERE country = "india" AND airport = "sardar vallabhbhai patel international airport"
{ "input": "CREATE TABLE table_name_58 (city VARCHAR, country VARCHAR, airport VARCHAR)", "instruction": "What is the city in India with an airport named Sardar Vallabhbhai Patel International Airport?", "output": "SELECT city FROM table_name_58 WHERE country = \"india\" AND airport = \"sardar vallabhbhai patel international airport\"" }
### INSTRUCTION What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up? ### INPUT CREATE TABLE table_name_91 (event VARCHAR, runner_up_skip VARCHAR, location VARCHAR) ### OUTPUT SELECT event FROM table_name_91 WHERE runner_up_skip = "randy ferbey" AND location = "gander, newfoundland and labrador"
{ "input": "CREATE TABLE table_name_91 (event VARCHAR, runner_up_skip VARCHAR, location VARCHAR)", "instruction": "What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up?", "output": "SELECT event FROM table_name_91 WHERE runner_up_skip = \"randy ferbey\" AND location = \"gander, newfoundland and labrador\"" }
### INSTRUCTION Find the name of customers who have loans of both Mortgages and Auto. ### INPUT CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR) ### OUTPUT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto'
{ "input": "CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)", "instruction": "Find the name of customers who have loans of both Mortgages and Auto.", "output": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto'" }
### INSTRUCTION After 1979, where was the European Indoor Championships held? ### INPUT CREATE TABLE table_name_27 (venue VARCHAR, competition VARCHAR, year VARCHAR) ### OUTPUT SELECT venue FROM table_name_27 WHERE competition = "european indoor championships" AND year > 1979
{ "input": "CREATE TABLE table_name_27 (venue VARCHAR, competition VARCHAR, year VARCHAR)", "instruction": "After 1979, where was the European Indoor Championships held?", "output": "SELECT venue FROM table_name_27 WHERE competition = \"european indoor championships\" AND year > 1979" }
### INSTRUCTION Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%? ### INPUT CREATE TABLE table_name_77 (races VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, driver VARCHAR) ### OUTPUT SELECT races FROM table_name_77 WHERE points > 123 AND driver = "fernando alonso" AND percentage_of_possible_points = "74.44%"
{ "input": "CREATE TABLE table_name_77 (races VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, driver VARCHAR)", "instruction": "Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%?", "output": "SELECT races FROM table_name_77 WHERE points > 123 AND driver = \"fernando alonso\" AND percentage_of_possible_points = \"74.44%\"" }
### INSTRUCTION On songs that have a release date of 6/17/61, a track larger than 20, and a writer of Woody Harris, what is the chart peak? ### INPUT CREATE TABLE table_name_46 (chart_peak VARCHAR, writer_s_ VARCHAR, release_date VARCHAR, track VARCHAR) ### OUTPUT SELECT chart_peak FROM table_name_46 WHERE release_date = "6/17/61" AND track > 20 AND writer_s_ = "woody harris"
{ "input": "CREATE TABLE table_name_46 (chart_peak VARCHAR, writer_s_ VARCHAR, release_date VARCHAR, track VARCHAR)", "instruction": "On songs that have a release date of 6/17/61, a track larger than 20, and a writer of Woody Harris, what is the chart peak?", "output": "SELECT chart_peak FROM table_name_46 WHERE release_date = \"6/17/61\" AND track > 20 AND writer_s_ = \"woody harris\"" }
### INSTRUCTION Show all flight numbers with aircraft Airbus A340-300. ### INPUT CREATE TABLE Flight (flno VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR) ### OUTPUT SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = "Airbus A340-300"
{ "input": "CREATE TABLE Flight (flno VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)", "instruction": "Show all flight numbers with aircraft Airbus A340-300.", "output": "SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = \"Airbus A340-300\"" }
### INSTRUCTION Find the names of all directors whose movies are rated by Sarah Martinez. ### INPUT CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (director VARCHAR, mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) ### OUTPUT SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez'
{ "input": "CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (director VARCHAR, mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)", "instruction": "Find the names of all directors whose movies are rated by Sarah Martinez.", "output": "SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez'" }
### INSTRUCTION What is the average number of events of PGA Championship tournaments with a top-5 less than 0? ### INPUT CREATE TABLE table_name_27 (events INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR) ### OUTPUT SELECT AVG(events) FROM table_name_27 WHERE top_10 = 0 AND tournament = "pga championship" AND top_5 < 0
{ "input": "CREATE TABLE table_name_27 (events INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR)", "instruction": "What is the average number of events of PGA Championship tournaments with a top-5 less than 0?", "output": "SELECT AVG(events) FROM table_name_27 WHERE top_10 = 0 AND tournament = \"pga championship\" AND top_5 < 0" }
### INSTRUCTION What is the average games a player born on 17 March 1915 and debut before 1935 had? ### INPUT CREATE TABLE table_name_68 (games INTEGER, date_of_birth VARCHAR, debut_year VARCHAR) ### OUTPUT SELECT AVG(games) FROM table_name_68 WHERE date_of_birth = "17 march 1915" AND debut_year < 1935
{ "input": "CREATE TABLE table_name_68 (games INTEGER, date_of_birth VARCHAR, debut_year VARCHAR)", "instruction": "What is the average games a player born on 17 March 1915 and debut before 1935 had?", "output": "SELECT AVG(games) FROM table_name_68 WHERE date_of_birth = \"17 march 1915\" AND debut_year < 1935" }
### INSTRUCTION What tries against value does burry port rfc have? ### INPUT CREATE TABLE table_name_87 (tries_against VARCHAR, club VARCHAR) ### OUTPUT SELECT tries_against FROM table_name_87 WHERE club = "burry port rfc"
{ "input": "CREATE TABLE table_name_87 (tries_against VARCHAR, club VARCHAR)", "instruction": "What tries against value does burry port rfc have?", "output": "SELECT tries_against FROM table_name_87 WHERE club = \"burry port rfc\"" }
### INSTRUCTION Which show was nominated for the ITA Milestone Award at the Indian Television Academy Awards? ### INPUT CREATE TABLE table_name_85 (show VARCHAR, award_ceremony VARCHAR, category VARCHAR) ### OUTPUT SELECT show FROM table_name_85 WHERE award_ceremony = "indian television academy awards" AND category = "ita milestone award"
{ "input": "CREATE TABLE table_name_85 (show VARCHAR, award_ceremony VARCHAR, category VARCHAR)", "instruction": "Which show was nominated for the ITA Milestone Award at the Indian Television Academy Awards?", "output": "SELECT show FROM table_name_85 WHERE award_ceremony = \"indian television academy awards\" AND category = \"ita milestone award\"" }
### INSTRUCTION What is the portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀? ### INPUT CREATE TABLE table_name_47 (portfolio_attachment VARCHAR, age_at_appointment VARCHAR, chinese_name VARCHAR) ### OUTPUT SELECT portfolio_attachment FROM table_name_47 WHERE age_at_appointment = 48 AND chinese_name = "梁鳳儀"
{ "input": "CREATE TABLE table_name_47 (portfolio_attachment VARCHAR, age_at_appointment VARCHAR, chinese_name VARCHAR)", "instruction": "What is the portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀?", "output": "SELECT portfolio_attachment FROM table_name_47 WHERE age_at_appointment = 48 AND chinese_name = \"梁鳳儀\"" }
### INSTRUCTION What is Player, when Total is greater than 148, and when To Par is "12"? ### INPUT CREATE TABLE table_name_83 (player VARCHAR, total VARCHAR, to_par VARCHAR) ### OUTPUT SELECT player FROM table_name_83 WHERE total > 148 AND to_par = 12
{ "input": "CREATE TABLE table_name_83 (player VARCHAR, total VARCHAR, to_par VARCHAR)", "instruction": "What is Player, when Total is greater than 148, and when To Par is \"12\"?", "output": "SELECT player FROM table_name_83 WHERE total > 148 AND to_par = 12" }
### INSTRUCTION After 2009, what's the nationality of a player named Dwayne de Rosario Category:articles with hcards? ### INPUT CREATE TABLE table_name_78 (nationality VARCHAR, year VARCHAR, player VARCHAR) ### OUTPUT SELECT nationality FROM table_name_78 WHERE year > 2009 AND player = "dwayne de rosario category:articles with hcards"
{ "input": "CREATE TABLE table_name_78 (nationality VARCHAR, year VARCHAR, player VARCHAR)", "instruction": "After 2009, what's the nationality of a player named Dwayne de Rosario Category:articles with hcards?", "output": "SELECT nationality FROM table_name_78 WHERE year > 2009 AND player = \"dwayne de rosario category:articles with hcards\"" }
### INSTRUCTION What is the Venue for the 2002 fifa world cup qualifier, and a Result of 8-2? ### INPUT CREATE TABLE table_name_23 (venue VARCHAR, competition VARCHAR, result VARCHAR) ### OUTPUT SELECT venue FROM table_name_23 WHERE competition = "2002 fifa world cup qualifier" AND result = "8-2"
{ "input": "CREATE TABLE table_name_23 (venue VARCHAR, competition VARCHAR, result VARCHAR)", "instruction": "What is the Venue for the 2002 fifa world cup qualifier, and a Result of 8-2?", "output": "SELECT venue FROM table_name_23 WHERE competition = \"2002 fifa world cup qualifier\" AND result = \"8-2\"" }
### INSTRUCTION what is the television order of the episode directed by ben jones, written by j. m. dematteis and originally aired on february6,2009 ### INPUT CREATE TABLE table_20360535_2 (television_order VARCHAR, original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR) ### OUTPUT SELECT television_order FROM table_20360535_2 WHERE directed_by = "Ben Jones" AND written_by = "J. M. DeMatteis" AND original_air_date = "February6,2009"
{ "input": "CREATE TABLE table_20360535_2 (television_order VARCHAR, original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)", "instruction": "what is the television order of the episode directed by ben jones, written by j. m. dematteis and originally aired on february6,2009", "output": "SELECT television_order FROM table_20360535_2 WHERE directed_by = \"Ben Jones\" AND written_by = \"J. M. DeMatteis\" AND original_air_date = \"February6,2009\"" }
### INSTRUCTION For a country of Spain, place of t6, what is the Money ($)? ### INPUT CREATE TABLE table_name_44 (money___$__ VARCHAR, place VARCHAR, country VARCHAR) ### OUTPUT SELECT money___$__ FROM table_name_44 WHERE place = "t6" AND country = "spain"
{ "input": "CREATE TABLE table_name_44 (money___$__ VARCHAR, place VARCHAR, country VARCHAR)", "instruction": "For a country of Spain, place of t6, what is the Money ($)?", "output": "SELECT money___$__ FROM table_name_44 WHERE place = \"t6\" AND country = \"spain\"" }
### INSTRUCTION Name the number of appearances for yugoslavia ### INPUT CREATE TABLE table_24565004_20 (appearances¹ VARCHAR, nationality² VARCHAR) ### OUTPUT SELECT COUNT(appearances¹) FROM table_24565004_20 WHERE nationality² = "Yugoslavia"
{ "input": "CREATE TABLE table_24565004_20 (appearances¹ VARCHAR, nationality² VARCHAR)", "instruction": "Name the number of appearances for yugoslavia", "output": "SELECT COUNT(appearances¹) FROM table_24565004_20 WHERE nationality² = \"Yugoslavia\"" }
### INSTRUCTION What is the total score when 7 is the average ranking? ### INPUT CREATE TABLE table_23465011_5 (total_score INTEGER, average_ranking VARCHAR) ### OUTPUT SELECT MAX(total_score) FROM table_23465011_5 WHERE average_ranking = 7
{ "input": "CREATE TABLE table_23465011_5 (total_score INTEGER, average_ranking VARCHAR)", "instruction": "What is the total score when 7 is the average ranking?", "output": "SELECT MAX(total_score) FROM table_23465011_5 WHERE average_ranking = 7" }
### INSTRUCTION Which date had a year under 1988, loser of Philadelphia Eagles, location of Giants Stadium, and a result of 21-0? ### INPUT CREATE TABLE table_name_68 (date VARCHAR, result VARCHAR, location VARCHAR, year VARCHAR, loser VARCHAR) ### OUTPUT SELECT date FROM table_name_68 WHERE year < 1988 AND loser = "philadelphia eagles" AND location = "giants stadium" AND result = "21-0"
{ "input": "CREATE TABLE table_name_68 (date VARCHAR, result VARCHAR, location VARCHAR, year VARCHAR, loser VARCHAR)", "instruction": "Which date had a year under 1988, loser of Philadelphia Eagles, location of Giants Stadium, and a result of 21-0?", "output": "SELECT date FROM table_name_68 WHERE year < 1988 AND loser = \"philadelphia eagles\" AND location = \"giants stadium\" AND result = \"21-0\"" }
### INSTRUCTION find the name of employee who was awarded the most times in the evaluation. ### INPUT CREATE TABLE evaluation (Employee_ID VARCHAR); CREATE TABLE employee (name VARCHAR, Employee_ID VARCHAR) ### OUTPUT SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE evaluation (Employee_ID VARCHAR); CREATE TABLE employee (name VARCHAR, Employee_ID VARCHAR)", "instruction": "find the name of employee who was awarded the most times in the evaluation.", "output": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION I want the type for host interface of pci saa7146 tmx320av7111 ### INPUT CREATE TABLE table_name_89 (type VARCHAR, host_interface VARCHAR) ### OUTPUT SELECT type FROM table_name_89 WHERE host_interface = "pci saa7146 tmx320av7111"
{ "input": "CREATE TABLE table_name_89 (type VARCHAR, host_interface VARCHAR)", "instruction": "I want the type for host interface of pci saa7146 tmx320av7111", "output": "SELECT type FROM table_name_89 WHERE host_interface = \"pci saa7146 tmx320av7111\"" }
### INSTRUCTION What is the Craft used at Coniston Water? ### INPUT CREATE TABLE table_name_15 (craft VARCHAR, location VARCHAR) ### OUTPUT SELECT craft FROM table_name_15 WHERE location = "coniston water"
{ "input": "CREATE TABLE table_name_15 (craft VARCHAR, location VARCHAR)", "instruction": "What is the Craft used at Coniston Water?", "output": "SELECT craft FROM table_name_15 WHERE location = \"coniston water\"" }
### INSTRUCTION When are the birthdays of customer who are classified as 'Good Customer' status? ### INPUT CREATE TABLE Customers (date_of_birth VARCHAR, customer_status_code VARCHAR) ### OUTPUT SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer'
{ "input": "CREATE TABLE Customers (date_of_birth VARCHAR, customer_status_code VARCHAR)", "instruction": "When are the birthdays of customer who are classified as 'Good Customer' status?", "output": "SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer'" }
### INSTRUCTION Who were the umpires when Paul Medhurst (C) won the Simpson Medal? ### INPUT CREATE TABLE table_13514348_7 (umpires VARCHAR, simpson_medal VARCHAR) ### OUTPUT SELECT umpires FROM table_13514348_7 WHERE simpson_medal = "Paul Medhurst (C)"
{ "input": "CREATE TABLE table_13514348_7 (umpires VARCHAR, simpson_medal VARCHAR)", "instruction": "Who were the umpires when Paul Medhurst (C) won the Simpson Medal?", "output": "SELECT umpires FROM table_13514348_7 WHERE simpson_medal = \"Paul Medhurst (C)\"" }
### INSTRUCTION who is the the judges with local title being x factor and presenters being heikki paasonen jukka rossi (xtra factor) ### INPUT CREATE TABLE table_13779832_1 (judges VARCHAR, local_title VARCHAR, presenters VARCHAR) ### OUTPUT SELECT judges FROM table_13779832_1 WHERE local_title = "X Factor" AND presenters = "Heikki Paasonen Jukka Rossi (Xtra Factor)"
{ "input": "CREATE TABLE table_13779832_1 (judges VARCHAR, local_title VARCHAR, presenters VARCHAR)", "instruction": "who is the the judges with local title being x factor and presenters being heikki paasonen jukka rossi (xtra factor)", "output": "SELECT judges FROM table_13779832_1 WHERE local_title = \"X Factor\" AND presenters = \"Heikki Paasonen Jukka Rossi (Xtra Factor)\"" }
### INSTRUCTION What's the earliest year with a role of alvin seville simon seville david 'dave' seville, and a Title of alvin and the chipmunks meet the wolfman? ### INPUT CREATE TABLE table_name_18 (year INTEGER, role VARCHAR, title VARCHAR) ### OUTPUT SELECT MIN(year) FROM table_name_18 WHERE role = "alvin seville simon seville david 'dave' seville" AND title = "alvin and the chipmunks meet the wolfman"
{ "input": "CREATE TABLE table_name_18 (year INTEGER, role VARCHAR, title VARCHAR)", "instruction": "What's the earliest year with a role of alvin seville simon seville david 'dave' seville, and a Title of alvin and the chipmunks meet the wolfman?", "output": "SELECT MIN(year) FROM table_name_18 WHERE role = \"alvin seville simon seville david 'dave' seville\" AND title = \"alvin and the chipmunks meet the wolfman\"" }
### INSTRUCTION What is the current version of windows 8 with an RTM build of 9200? ### INPUT CREATE TABLE table_name_14 (current_version VARCHAR, rtm_build VARCHAR, name VARCHAR) ### OUTPUT SELECT current_version FROM table_name_14 WHERE rtm_build = "9200" AND name = "windows 8"
{ "input": "CREATE TABLE table_name_14 (current_version VARCHAR, rtm_build VARCHAR, name VARCHAR)", "instruction": "What is the current version of windows 8 with an RTM build of 9200?", "output": "SELECT current_version FROM table_name_14 WHERE rtm_build = \"9200\" AND name = \"windows 8\"" }
### INSTRUCTION Name the most numbers dam and gnis query link for borough or census area for fairbanks north star ### INPUT CREATE TABLE table_18760137_2 (_number_s_dam_and_gnis_query_link INTEGER, borough_or_census_area VARCHAR) ### OUTPUT SELECT MAX(_number_s_dam_and_gnis_query_link) FROM table_18760137_2 WHERE borough_or_census_area = "Fairbanks North Star"
{ "input": "CREATE TABLE table_18760137_2 (_number_s_dam_and_gnis_query_link INTEGER, borough_or_census_area VARCHAR)", "instruction": "Name the most numbers dam and gnis query link for borough or census area for fairbanks north star", "output": "SELECT MAX(_number_s_dam_and_gnis_query_link) FROM table_18760137_2 WHERE borough_or_census_area = \"Fairbanks North Star\"" }
### INSTRUCTION What's the original NFL team when the POS is S and college is Georgia Tech? ### INPUT CREATE TABLE table_name_31 (original_nfl_team VARCHAR, pos VARCHAR, college VARCHAR) ### OUTPUT SELECT original_nfl_team FROM table_name_31 WHERE pos = "s" AND college = "georgia tech"
{ "input": "CREATE TABLE table_name_31 (original_nfl_team VARCHAR, pos VARCHAR, college VARCHAR)", "instruction": "What's the original NFL team when the POS is S and college is Georgia Tech?", "output": "SELECT original_nfl_team FROM table_name_31 WHERE pos = \"s\" AND college = \"georgia tech\"" }
### INSTRUCTION Who has the home ground Aami stadium? ### INPUT CREATE TABLE table_14312471_7 (home_team VARCHAR, ground VARCHAR) ### OUTPUT SELECT home_team FROM table_14312471_7 WHERE ground = "AAMI Stadium"
{ "input": "CREATE TABLE table_14312471_7 (home_team VARCHAR, ground VARCHAR)", "instruction": "Who has the home ground Aami stadium?", "output": "SELECT home_team FROM table_14312471_7 WHERE ground = \"AAMI Stadium\"" }
### INSTRUCTION Does the Ghana Scout Association (founded in 1912) admit boys, girls, or both? ### INPUT CREATE TABLE table_104858_1 (admits_boys_girls VARCHAR, year_member_organization_was_founded VARCHAR, name_of_member_organization VARCHAR) ### OUTPUT SELECT admits_boys_girls FROM table_104858_1 WHERE year_member_organization_was_founded = "1912" AND name_of_member_organization = "The Ghana Scout Association"
{ "input": "CREATE TABLE table_104858_1 (admits_boys_girls VARCHAR, year_member_organization_was_founded VARCHAR, name_of_member_organization VARCHAR)", "instruction": "Does the Ghana Scout Association (founded in 1912) admit boys, girls, or both?", "output": "SELECT admits_boys_girls FROM table_104858_1 WHERE year_member_organization_was_founded = \"1912\" AND name_of_member_organization = \"The Ghana Scout Association\"" }
### INSTRUCTION What is the month and year less than 5 German submarines were lost, less than 6893 were sunk by warship or raider, less than 133746 were sunk by aircraft, and more than 111263 were sunk by U-boat? ### INPUT CREATE TABLE table_name_24 (month VARCHAR, _year VARCHAR, sunk_by_u_boat VARCHAR, sunk_by_aircraft VARCHAR, german_submarines_lost VARCHAR, sunk_by_warship_or_raider VARCHAR) ### OUTPUT SELECT month, _year FROM table_name_24 WHERE german_submarines_lost < 5 AND sunk_by_warship_or_raider < 6893 AND sunk_by_aircraft < 133746 AND sunk_by_u_boat > 111263
{ "input": "CREATE TABLE table_name_24 (month VARCHAR, _year VARCHAR, sunk_by_u_boat VARCHAR, sunk_by_aircraft VARCHAR, german_submarines_lost VARCHAR, sunk_by_warship_or_raider VARCHAR)", "instruction": "What is the month and year less than 5 German submarines were lost, less than 6893 were sunk by warship or raider, less than 133746 were sunk by aircraft, and more than 111263 were sunk by U-boat?", "output": "SELECT month, _year FROM table_name_24 WHERE german_submarines_lost < 5 AND sunk_by_warship_or_raider < 6893 AND sunk_by_aircraft < 133746 AND sunk_by_u_boat > 111263" }
### INSTRUCTION What was Herdez Competition's total points with a grid larger than 1? ### INPUT CREATE TABLE table_name_39 (points VARCHAR, team VARCHAR, grid VARCHAR) ### OUTPUT SELECT COUNT(points) FROM table_name_39 WHERE team = "herdez competition" AND grid > 1
{ "input": "CREATE TABLE table_name_39 (points VARCHAR, team VARCHAR, grid VARCHAR)", "instruction": "What was Herdez Competition's total points with a grid larger than 1?", "output": "SELECT COUNT(points) FROM table_name_39 WHERE team = \"herdez competition\" AND grid > 1" }
### INSTRUCTION What was the Attendance when the Home team was Montreal, on the Date of March 24? ### INPUT CREATE TABLE table_name_59 (attendance INTEGER, home VARCHAR, date VARCHAR) ### OUTPUT SELECT SUM(attendance) FROM table_name_59 WHERE home = "montreal" AND date = "march 24"
{ "input": "CREATE TABLE table_name_59 (attendance INTEGER, home VARCHAR, date VARCHAR)", "instruction": "What was the Attendance when the Home team was Montreal, on the Date of March 24?", "output": "SELECT SUM(attendance) FROM table_name_59 WHERE home = \"montreal\" AND date = \"march 24\"" }
### INSTRUCTION WHAT POSITION DOES THE PLAYER FROM SOUTH POINTE HIGH SCHOOL PLAY? ### INPUT CREATE TABLE table_11677691_2 (position VARCHAR, school VARCHAR) ### OUTPUT SELECT position FROM table_11677691_2 WHERE school = "South Pointe High school"
{ "input": "CREATE TABLE table_11677691_2 (position VARCHAR, school VARCHAR)", "instruction": "WHAT POSITION DOES THE PLAYER FROM SOUTH POINTE HIGH SCHOOL PLAY?", "output": "SELECT position FROM table_11677691_2 WHERE school = \"South Pointe High school\"" }
### INSTRUCTION What is the total number of 1st prize ($) that has a United States country with a score lower than 271 and in a year after 1964 with a winner of Bobby Mitchell? ### INPUT ### OUTPUT SELECT COUNT(*) AS $__ FROM table_name_15 WHERE country = "united states" AND score < 271 AND year > 1964 AND winner = "bobby mitchell"
{ "input": "", "instruction": "What is the total number of 1st prize ($) that has a United States country with a score lower than 271 and in a year after 1964 with a winner of Bobby Mitchell?", "output": "SELECT COUNT(*) AS $__ FROM table_name_15 WHERE country = \"united states\" AND score < 271 AND year > 1964 AND winner = \"bobby mitchell\"" }
### INSTRUCTION What is the highest elevation for the highest point of Schnebelhorn? ### INPUT CREATE TABLE table_name_7 (highest_elevation VARCHAR, highest_point VARCHAR) ### OUTPUT SELECT highest_elevation FROM table_name_7 WHERE highest_point = "schnebelhorn"
{ "input": "CREATE TABLE table_name_7 (highest_elevation VARCHAR, highest_point VARCHAR)", "instruction": "What is the highest elevation for the highest point of Schnebelhorn?", "output": "SELECT highest_elevation FROM table_name_7 WHERE highest_point = \"schnebelhorn\"" }
### INSTRUCTION Which elementary schools list Cort Monroe as the principal from 2013 to 2014? ### INPUT CREATE TABLE table_14254419_3 (elementary_schools VARCHAR, principal__2013_2014_ VARCHAR) ### OUTPUT SELECT elementary_schools FROM table_14254419_3 WHERE principal__2013_2014_ = "Cort Monroe"
{ "input": "CREATE TABLE table_14254419_3 (elementary_schools VARCHAR, principal__2013_2014_ VARCHAR)", "instruction": "Which elementary schools list Cort Monroe as the principal from 2013 to 2014?", "output": "SELECT elementary_schools FROM table_14254419_3 WHERE principal__2013_2014_ = \"Cort Monroe\"" }
### INSTRUCTION What report happened on 22 september? ### INPUT CREATE TABLE table_name_25 (report VARCHAR, date VARCHAR) ### OUTPUT SELECT report FROM table_name_25 WHERE date = "22 september"
{ "input": "CREATE TABLE table_name_25 (report VARCHAR, date VARCHAR)", "instruction": "What report happened on 22 september?", "output": "SELECT report FROM table_name_25 WHERE date = \"22 september\"" }
### INSTRUCTION What was the lowest home attendance for the southern derby? ### INPUT CREATE TABLE table_14302582_1 (home_attendance INTEGER, competition VARCHAR) ### OUTPUT SELECT MIN(home_attendance) FROM table_14302582_1 WHERE competition = "Southern Derby"
{ "input": "CREATE TABLE table_14302582_1 (home_attendance INTEGER, competition VARCHAR)", "instruction": "What was the lowest home attendance for the southern derby?", "output": "SELECT MIN(home_attendance) FROM table_14302582_1 WHERE competition = \"Southern Derby\"" }
### INSTRUCTION How many times was the GFR 2006 equal to 53.2? ### INPUT CREATE TABLE table_12251936_1 (whites_as__percentage_of_pop VARCHAR, gfr_2006 VARCHAR) ### OUTPUT SELECT COUNT(whites_as__percentage_of_pop) FROM table_12251936_1 WHERE gfr_2006 = "53.2"
{ "input": "CREATE TABLE table_12251936_1 (whites_as__percentage_of_pop VARCHAR, gfr_2006 VARCHAR)", "instruction": "How many times was the GFR 2006 equal to 53.2?", "output": "SELECT COUNT(whites_as__percentage_of_pop) FROM table_12251936_1 WHERE gfr_2006 = \"53.2\"" }
### INSTRUCTION When South warrnambool has more than 8 wins, what is the least amount of losses? ### INPUT CREATE TABLE table_name_64 (losses INTEGER, club VARCHAR, wins VARCHAR) ### OUTPUT SELECT MIN(losses) FROM table_name_64 WHERE club = "south warrnambool" AND wins > 8
{ "input": "CREATE TABLE table_name_64 (losses INTEGER, club VARCHAR, wins VARCHAR)", "instruction": "When South warrnambool has more than 8 wins, what is the least amount of losses?", "output": "SELECT MIN(losses) FROM table_name_64 WHERE club = \"south warrnambool\" AND wins > 8" }
### INSTRUCTION Who is the opponent of the match with a method of submission (armbar) and a 9-3-1 record? ### INPUT CREATE TABLE table_name_86 (opponent VARCHAR, method VARCHAR, record VARCHAR) ### OUTPUT SELECT opponent FROM table_name_86 WHERE method = "submission (armbar)" AND record = "9-3-1"
{ "input": "CREATE TABLE table_name_86 (opponent VARCHAR, method VARCHAR, record VARCHAR)", "instruction": "Who is the opponent of the match with a method of submission (armbar) and a 9-3-1 record?", "output": "SELECT opponent FROM table_name_86 WHERE method = \"submission (armbar)\" AND record = \"9-3-1\"" }
### INSTRUCTION How many degrees were conferred in "San Jose State University" in 2000? ### INPUT CREATE TABLE degrees (Id VARCHAR); CREATE TABLE campuses (Id VARCHAR) ### OUTPUT SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = "San Jose State University" AND t2.year = 2000
{ "input": "CREATE TABLE degrees (Id VARCHAR); CREATE TABLE campuses (Id VARCHAR)", "instruction": "How many degrees were conferred in \"San Jose State University\" in 2000?", "output": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND t2.year = 2000" }
### INSTRUCTION What was the net seat gain in the race john a. elston (r) 88.4% luella twining (s) 11.6%? ### INPUT CREATE TABLE table_1346118_5 (result VARCHAR, candidates VARCHAR) ### OUTPUT SELECT result FROM table_1346118_5 WHERE candidates = "John A. Elston (R) 88.4% Luella Twining (S) 11.6%"
{ "input": "CREATE TABLE table_1346118_5 (result VARCHAR, candidates VARCHAR)", "instruction": "What was the net seat gain in the race john a. elston (r) 88.4% luella twining (s) 11.6%?", "output": "SELECT result FROM table_1346118_5 WHERE candidates = \"John A. Elston (R) 88.4% Luella Twining (S) 11.6%\"" }
### INSTRUCTION During the hungarian grand prix where the pole position was michael schumacher and the fastest lap was driven by damon hill, what's the total number of rounds of races matching these standards? ### INPUT CREATE TABLE table_name_17 (round VARCHAR, grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) ### OUTPUT SELECT COUNT(round) FROM table_name_17 WHERE fastest_lap = "damon hill" AND pole_position = "michael schumacher" AND grand_prix = "hungarian grand prix"
{ "input": "CREATE TABLE table_name_17 (round VARCHAR, grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)", "instruction": "During the hungarian grand prix where the pole position was michael schumacher and the fastest lap was driven by damon hill, what's the total number of rounds of races matching these standards?", "output": "SELECT COUNT(round) FROM table_name_17 WHERE fastest_lap = \"damon hill\" AND pole_position = \"michael schumacher\" AND grand_prix = \"hungarian grand prix\"" }
### INSTRUCTION Manufacturer of honda, and a Rank of 8 had what highest wins? ### INPUT CREATE TABLE table_name_71 (wins INTEGER, manufacturer VARCHAR, rank VARCHAR) ### OUTPUT SELECT MAX(wins) FROM table_name_71 WHERE manufacturer = "honda" AND rank = 8
{ "input": "CREATE TABLE table_name_71 (wins INTEGER, manufacturer VARCHAR, rank VARCHAR)", "instruction": "Manufacturer of honda, and a Rank of 8 had what highest wins?", "output": "SELECT MAX(wins) FROM table_name_71 WHERE manufacturer = \"honda\" AND rank = 8" }
### INSTRUCTION Name the other for chironius multiventris septentrionalis ### INPUT CREATE TABLE table_1850282_7 (other VARCHAR, species VARCHAR) ### OUTPUT SELECT other FROM table_1850282_7 WHERE species = "Chironius multiventris septentrionalis"
{ "input": "CREATE TABLE table_1850282_7 (other VARCHAR, species VARCHAR)", "instruction": "Name the other for chironius multiventris septentrionalis", "output": "SELECT other FROM table_1850282_7 WHERE species = \"Chironius multiventris septentrionalis\"" }
### INSTRUCTION What beer won a silver medal at the camra reading branch beer festival in 2008? ### INPUT CREATE TABLE table_name_33 (beer_name VARCHAR, year VARCHAR, prize VARCHAR, competition VARCHAR) ### OUTPUT SELECT beer_name FROM table_name_33 WHERE prize = "silver medal" AND competition = "camra reading branch beer festival" AND year = 2008
{ "input": "CREATE TABLE table_name_33 (beer_name VARCHAR, year VARCHAR, prize VARCHAR, competition VARCHAR)", "instruction": "What beer won a silver medal at the camra reading branch beer festival in 2008?", "output": "SELECT beer_name FROM table_name_33 WHERE prize = \"silver medal\" AND competition = \"camra reading branch beer festival\" AND year = 2008" }
### INSTRUCTION Which Nationality has a Position of left wing? ### INPUT CREATE TABLE table_name_99 (nationality VARCHAR, position VARCHAR) ### OUTPUT SELECT nationality FROM table_name_99 WHERE position = "left wing"
{ "input": "CREATE TABLE table_name_99 (nationality VARCHAR, position VARCHAR)", "instruction": "Which Nationality has a Position of left wing?", "output": "SELECT nationality FROM table_name_99 WHERE position = \"left wing\"" }
### INSTRUCTION What Social AO has a President of harm van leeuwen? ### INPUT CREATE TABLE table_name_68 (social_ao VARCHAR, president VARCHAR) ### OUTPUT SELECT social_ao FROM table_name_68 WHERE president = "harm van leeuwen"
{ "input": "CREATE TABLE table_name_68 (social_ao VARCHAR, president VARCHAR)", "instruction": "What Social AO has a President of harm van leeuwen?", "output": "SELECT social_ao FROM table_name_68 WHERE president = \"harm van leeuwen\"" }
### INSTRUCTION What team did the Chicago Black Hawks visit on April 20? ### INPUT CREATE TABLE table_name_92 (home VARCHAR, visitor VARCHAR, date VARCHAR) ### OUTPUT SELECT home FROM table_name_92 WHERE visitor = "chicago black hawks" AND date = "april 20"
{ "input": "CREATE TABLE table_name_92 (home VARCHAR, visitor VARCHAR, date VARCHAR)", "instruction": "What team did the Chicago Black Hawks visit on April 20?", "output": "SELECT home FROM table_name_92 WHERE visitor = \"chicago black hawks\" AND date = \"april 20\"" }
### INSTRUCTION What is the customer last name, id and phone number with most number of orders? ### INPUT CREATE TABLE Orders (customer_id VARCHAR); CREATE TABLE Customers (customer_last_name VARCHAR, phone_number VARCHAR, customer_id VARCHAR) ### OUTPUT SELECT T2.customer_last_name, T1.customer_id, T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Orders (customer_id VARCHAR); CREATE TABLE Customers (customer_last_name VARCHAR, phone_number VARCHAR, customer_id VARCHAR)", "instruction": "What is the customer last name, id and phone number with most number of orders?", "output": "SELECT T2.customer_last_name, T1.customer_id, T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1" }