text
stringlengths
147
1.06k
source
dict
### INSTRUCTION How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress? ### INPUT CREATE TABLE table_22753245_1 (margin VARCHAR, party VARCHAR, winner VARCHAR) ### OUTPUT SELECT COUNT(margin) FROM table_22753245_1 WHERE party = "Indian National Congress" AND winner = "L. Adaikalaraj c"
{ "input": "CREATE TABLE table_22753245_1 (margin VARCHAR, party VARCHAR, winner VARCHAR)", "instruction": "How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress? ", "output": "SELECT COUNT(margin) FROM table_22753245_1 WHERE party = \"Indian National Congress\" AND winner = \"L. Adaikalaraj c\"" }
### INSTRUCTION When was the earliest first game with 11 played and 12 games lost? ### INPUT CREATE TABLE table_name_60 (first_game INTEGER, played VARCHAR, lost VARCHAR) ### OUTPUT SELECT MIN(first_game) FROM table_name_60 WHERE played > 11 AND lost = 12
{ "input": "CREATE TABLE table_name_60 (first_game INTEGER, played VARCHAR, lost VARCHAR)", "instruction": "When was the earliest first game with 11 played and 12 games lost?", "output": "SELECT MIN(first_game) FROM table_name_60 WHERE played > 11 AND lost = 12" }
### INSTRUCTION what is the date when saros is more than 124, the type is total, the magnitude is more than 1.0535 and the time (greatest) is 20:55:28? ### INPUT CREATE TABLE table_name_21 (date VARCHAR, time__greatest_ VARCHAR, magnitude VARCHAR, saros VARCHAR, type VARCHAR) ### OUTPUT SELECT date FROM table_name_21 WHERE saros > 124 AND type = "total" AND magnitude > 1.0535 AND time__greatest_ = "20:55:28"
{ "input": "CREATE TABLE table_name_21 (date VARCHAR, time__greatest_ VARCHAR, magnitude VARCHAR, saros VARCHAR, type VARCHAR)", "instruction": "what is the date when saros is more than 124, the type is total, the magnitude is more than 1.0535 and the time (greatest) is 20:55:28?", "output": "SELECT date FROM table_name_21 WHERE saros > 124 AND type = \"total\" AND magnitude > 1.0535 AND time__greatest_ = \"20:55:28\"" }
### INSTRUCTION Which country had a series that premiered on September 4, 2006? ### INPUT CREATE TABLE table_name_77 (country VARCHAR, series_premiere VARCHAR) ### OUTPUT SELECT country FROM table_name_77 WHERE series_premiere = "september 4, 2006"
{ "input": "CREATE TABLE table_name_77 (country VARCHAR, series_premiere VARCHAR)", "instruction": "Which country had a series that premiered on September 4, 2006?", "output": "SELECT country FROM table_name_77 WHERE series_premiere = \"september 4, 2006\"" }
### INSTRUCTION Which driver was in 8 rounds with a chassis of dallara f306? ### INPUT CREATE TABLE table_name_57 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR) ### OUTPUT SELECT driver FROM table_name_57 WHERE chassis = "dallara f306" AND rounds = "8"
{ "input": "CREATE TABLE table_name_57 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR)", "instruction": "Which driver was in 8 rounds with a chassis of dallara f306?", "output": "SELECT driver FROM table_name_57 WHERE chassis = \"dallara f306\" AND rounds = \"8\"" }
### INSTRUCTION Which major has least number of students? List the major and the number of students. ### INPUT CREATE TABLE Student (Major VARCHAR) ### OUTPUT SELECT Major, COUNT(*) FROM Student GROUP BY Major ORDER BY COUNT(Major) LIMIT 1
{ "input": "CREATE TABLE Student (Major VARCHAR)", "instruction": "Which major has least number of students? List the major and the number of students.", "output": "SELECT Major, COUNT(*) FROM Student GROUP BY Major ORDER BY COUNT(Major) LIMIT 1" }
### INSTRUCTION Which college/junior/team has defence as the position with canada as the nationality and the pick # is less than 61.0? ### INPUT CREATE TABLE table_2897457_3 (college_junior_club_team VARCHAR, pick__number VARCHAR, position VARCHAR, nationality VARCHAR) ### OUTPUT SELECT college_junior_club_team FROM table_2897457_3 WHERE position = "Defence" AND nationality = "Canada" AND pick__number < 61.0
{ "input": "CREATE TABLE table_2897457_3 (college_junior_club_team VARCHAR, pick__number VARCHAR, position VARCHAR, nationality VARCHAR)", "instruction": "Which college/junior/team has defence as the position with canada as the nationality and the pick # is less than 61.0?", "output": "SELECT college_junior_club_team FROM table_2897457_3 WHERE position = \"Defence\" AND nationality = \"Canada\" AND pick__number < 61.0" }
### INSTRUCTION What is the Proto-Austronesian word for the Proto-Polynesian word *tui? ### INPUT CREATE TABLE table_name_53 (proto_austronesian VARCHAR, proto_polynesian VARCHAR) ### OUTPUT SELECT proto_austronesian FROM table_name_53 WHERE proto_polynesian = "*tui"
{ "input": "CREATE TABLE table_name_53 (proto_austronesian VARCHAR, proto_polynesian VARCHAR)", "instruction": "What is the Proto-Austronesian word for the Proto-Polynesian word *tui?", "output": "SELECT proto_austronesian FROM table_name_53 WHERE proto_polynesian = \"*tui\"" }
### INSTRUCTION Who was the opponent in London, England in a round less than 2? ### INPUT CREATE TABLE table_name_62 (opponent VARCHAR, location VARCHAR, round VARCHAR) ### OUTPUT SELECT opponent FROM table_name_62 WHERE location = "london, england" AND round < 2
{ "input": "CREATE TABLE table_name_62 (opponent VARCHAR, location VARCHAR, round VARCHAR)", "instruction": "Who was the opponent in London, England in a round less than 2?", "output": "SELECT opponent FROM table_name_62 WHERE location = \"london, england\" AND round < 2" }
### INSTRUCTION Find the names of customers who have used both the service "Close a policy" and the service "New policy application". ### INPUT CREATE TABLE first_notification_of_loss (customer_id VARCHAR, service_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE services (service_id VARCHAR, service_name VARCHAR) ### OUTPUT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "New policy application"
{ "input": "CREATE TABLE first_notification_of_loss (customer_id VARCHAR, service_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE services (service_id VARCHAR, service_name VARCHAR)", "instruction": "Find the names of customers who have used both the service \"Close a policy\" and the service \"New policy application\".", "output": "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"Close a policy\" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"New policy application\"" }
### INSTRUCTION Who had the decision when the visitor was Detroit and the home team was Ottawa? ### INPUT CREATE TABLE table_name_71 (decision VARCHAR, visitor VARCHAR, home VARCHAR) ### OUTPUT SELECT decision FROM table_name_71 WHERE visitor = "detroit" AND home = "ottawa"
{ "input": "CREATE TABLE table_name_71 (decision VARCHAR, visitor VARCHAR, home VARCHAR)", "instruction": "Who had the decision when the visitor was Detroit and the home team was Ottawa?", "output": "SELECT decision FROM table_name_71 WHERE visitor = \"detroit\" AND home = \"ottawa\"" }
### INSTRUCTION What was Jeff Sluman's To par when his total was smaller than 284? ### INPUT CREATE TABLE table_name_61 (to_par VARCHAR, total VARCHAR, player VARCHAR) ### OUTPUT SELECT to_par FROM table_name_61 WHERE total < 284 AND player = "jeff sluman"
{ "input": "CREATE TABLE table_name_61 (to_par VARCHAR, total VARCHAR, player VARCHAR)", "instruction": "What was Jeff Sluman's To par when his total was smaller than 284?", "output": "SELECT to_par FROM table_name_61 WHERE total < 284 AND player = \"jeff sluman\"" }
### INSTRUCTION what's the party with opponent being mike oxley (r) unopposed ### INPUT CREATE TABLE table_1341522_38 (party VARCHAR, opponent VARCHAR) ### OUTPUT SELECT party FROM table_1341522_38 WHERE opponent = "Mike Oxley (R) unopposed"
{ "input": "CREATE TABLE table_1341522_38 (party VARCHAR, opponent VARCHAR)", "instruction": "what's the party with opponent being mike oxley (r) unopposed", "output": "SELECT party FROM table_1341522_38 WHERE opponent = \"Mike Oxley (R) unopposed\"" }
### INSTRUCTION What is the total number of Draw(s), when Televotes is greater than 1761, when Song is "Ils Sont Là", and when Place is less than 2? ### INPUT CREATE TABLE table_name_9 (draw VARCHAR, place VARCHAR, televotes VARCHAR, song VARCHAR) ### OUTPUT SELECT COUNT(draw) FROM table_name_9 WHERE televotes > 1761 AND song = "ils sont là" AND place < 2
{ "input": "CREATE TABLE table_name_9 (draw VARCHAR, place VARCHAR, televotes VARCHAR, song VARCHAR)", "instruction": "What is the total number of Draw(s), when Televotes is greater than 1761, when Song is \"Ils Sont Là\", and when Place is less than 2?", "output": "SELECT COUNT(draw) FROM table_name_9 WHERE televotes > 1761 AND song = \"ils sont là\" AND place < 2" }
### INSTRUCTION What is Jillian Evans highest number of seats? ### INPUT CREATE TABLE table_name_45 (number_of_seats INTEGER, leader VARCHAR) ### OUTPUT SELECT MAX(number_of_seats) FROM table_name_45 WHERE leader = "jillian evans"
{ "input": "CREATE TABLE table_name_45 (number_of_seats INTEGER, leader VARCHAR)", "instruction": "What is Jillian Evans highest number of seats?", "output": "SELECT MAX(number_of_seats) FROM table_name_45 WHERE leader = \"jillian evans\"" }
### INSTRUCTION Which score has a competition of 1997 dunhill cup malaysia and february 23, 1997 as the date? ### INPUT CREATE TABLE table_name_92 (score VARCHAR, competition VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_92 WHERE competition = "1997 dunhill cup malaysia" AND date = "february 23, 1997"
{ "input": "CREATE TABLE table_name_92 (score VARCHAR, competition VARCHAR, date VARCHAR)", "instruction": "Which score has a competition of 1997 dunhill cup malaysia and february 23, 1997 as the date?", "output": "SELECT score FROM table_name_92 WHERE competition = \"1997 dunhill cup malaysia\" AND date = \"february 23, 1997\"" }
### INSTRUCTION When the Winning score was –9 (69-72-68-70=279), what was the Margin of victory? ### INPUT CREATE TABLE table_name_66 (margin_of_victory VARCHAR, winning_score VARCHAR) ### OUTPUT SELECT margin_of_victory FROM table_name_66 WHERE winning_score = –9(69 - 72 - 68 - 70 = 279)
{ "input": "CREATE TABLE table_name_66 (margin_of_victory VARCHAR, winning_score VARCHAR)", "instruction": "When the Winning score was –9 (69-72-68-70=279), what was the Margin of victory?", "output": "SELECT margin_of_victory FROM table_name_66 WHERE winning_score = –9(69 - 72 - 68 - 70 = 279)" }
### INSTRUCTION Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities. ### INPUT CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Mar INTEGER, Dec VARCHAR) ### OUTPUT SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city
{ "input": "CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Mar INTEGER, Dec VARCHAR)", "instruction": "Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities.", "output": "SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city" }
### INSTRUCTION Find the names of the top 10 airlines that operate the most number of routes. ### INPUT CREATE TABLE airlines (name VARCHAR, alid VARCHAR); CREATE TABLE routes (alid VARCHAR) ### OUTPUT SELECT T1.name, T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY COUNT(*) DESC LIMIT 10
{ "input": "CREATE TABLE airlines (name VARCHAR, alid VARCHAR); CREATE TABLE routes (alid VARCHAR)", "instruction": "Find the names of the top 10 airlines that operate the most number of routes.", "output": "SELECT T1.name, T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY COUNT(*) DESC LIMIT 10" }
### INSTRUCTION Who was the centerfold model when the issue's pictorial was kimberly bell , bunnies of the new playboy club? ### INPUT CREATE TABLE table_1566852_8 (centerfold_model VARCHAR, pictorials VARCHAR) ### OUTPUT SELECT centerfold_model FROM table_1566852_8 WHERE pictorials = "Kimberly Bell , Bunnies of the New Playboy Club"
{ "input": "CREATE TABLE table_1566852_8 (centerfold_model VARCHAR, pictorials VARCHAR)", "instruction": "Who was the centerfold model when the issue's pictorial was kimberly bell , bunnies of the new playboy club?", "output": "SELECT centerfold_model FROM table_1566852_8 WHERE pictorials = \"Kimberly Bell , Bunnies of the New Playboy Club\"" }
### INSTRUCTION What is the average grid with brm and under 63 laps? ### INPUT CREATE TABLE table_name_33 (grid INTEGER, constructor VARCHAR, laps VARCHAR) ### OUTPUT SELECT AVG(grid) FROM table_name_33 WHERE constructor = "brm" AND laps < 63
{ "input": "CREATE TABLE table_name_33 (grid INTEGER, constructor VARCHAR, laps VARCHAR)", "instruction": "What is the average grid with brm and under 63 laps?", "output": "SELECT AVG(grid) FROM table_name_33 WHERE constructor = \"brm\" AND laps < 63" }
### INSTRUCTION What's the earliest year that had a category of best supporting actress at the asian film awards? ### INPUT CREATE TABLE table_name_46 (year INTEGER, category VARCHAR, award VARCHAR) ### OUTPUT SELECT MIN(year) FROM table_name_46 WHERE category = "best supporting actress" AND award = "asian film awards"
{ "input": "CREATE TABLE table_name_46 (year INTEGER, category VARCHAR, award VARCHAR)", "instruction": "What's the earliest year that had a category of best supporting actress at the asian film awards?", "output": "SELECT MIN(year) FROM table_name_46 WHERE category = \"best supporting actress\" AND award = \"asian film awards\"" }
### INSTRUCTION What is the area located in Rhode Island with more than 38 sq mi area? ### INPUT CREATE TABLE table_name_81 (area__km_2__ INTEGER, location VARCHAR, area__sq_mi_ VARCHAR) ### OUTPUT SELECT AVG(area__km_2__) FROM table_name_81 WHERE location = "rhode island" AND area__sq_mi_ > 38
{ "input": "CREATE TABLE table_name_81 (area__km_2__ INTEGER, location VARCHAR, area__sq_mi_ VARCHAR)", "instruction": "What is the area located in Rhode Island with more than 38 sq mi area?", "output": "SELECT AVG(area__km_2__) FROM table_name_81 WHERE location = \"rhode island\" AND area__sq_mi_ > 38" }
### INSTRUCTION Find the names of customers who never placed an order. ### INPUT CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR) ### OUTPUT SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id
{ "input": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)", "instruction": "Find the names of customers who never placed an order.", "output": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id" }
### INSTRUCTION Show the attendances of the performances at location "TD Garden" or "Bell Centre" ### INPUT CREATE TABLE performance (Attendance VARCHAR, LOCATION VARCHAR) ### OUTPUT SELECT Attendance FROM performance WHERE LOCATION = "TD Garden" OR LOCATION = "Bell Centre"
{ "input": "CREATE TABLE performance (Attendance VARCHAR, LOCATION VARCHAR)", "instruction": "Show the attendances of the performances at location \"TD Garden\" or \"Bell Centre\"", "output": "SELECT Attendance FROM performance WHERE LOCATION = \"TD Garden\" OR LOCATION = \"Bell Centre\"" }
### INSTRUCTION What issue was the spoofed title Ho-Hum land? ### INPUT CREATE TABLE table_name_75 (issue INTEGER, spoofed_title VARCHAR) ### OUTPUT SELECT SUM(issue) FROM table_name_75 WHERE spoofed_title = "ho-hum land"
{ "input": "CREATE TABLE table_name_75 (issue INTEGER, spoofed_title VARCHAR)", "instruction": "What issue was the spoofed title Ho-Hum land?", "output": "SELECT SUM(issue) FROM table_name_75 WHERE spoofed_title = \"ho-hum land\"" }
### INSTRUCTION What were the former schools of the player from East Brunswick, NJ? ### INPUT CREATE TABLE table_25177625_1 (former_school VARCHAR, hometown VARCHAR) ### OUTPUT SELECT former_school FROM table_25177625_1 WHERE hometown = "East Brunswick, NJ"
{ "input": "CREATE TABLE table_25177625_1 (former_school VARCHAR, hometown VARCHAR)", "instruction": "What were the former schools of the player from East Brunswick, NJ?", "output": "SELECT former_school FROM table_25177625_1 WHERE hometown = \"East Brunswick, NJ\"" }
### INSTRUCTION What is the Date when the Country shows uk, the Format is cd, and the Catalog of edcd 227? ### INPUT CREATE TABLE table_name_91 (date VARCHAR, catalog VARCHAR, country VARCHAR, format VARCHAR) ### OUTPUT SELECT date FROM table_name_91 WHERE country = "uk" AND format = "cd" AND catalog = "edcd 227"
{ "input": "CREATE TABLE table_name_91 (date VARCHAR, catalog VARCHAR, country VARCHAR, format VARCHAR)", "instruction": "What is the Date when the Country shows uk, the Format is cd, and the Catalog of edcd 227?", "output": "SELECT date FROM table_name_91 WHERE country = \"uk\" AND format = \"cd\" AND catalog = \"edcd 227\"" }
### INSTRUCTION Where was the match with a score of 4.10 (34) - 8.12 (60)? ### INPUT CREATE TABLE table_name_51 (venue VARCHAR, score VARCHAR) ### OUTPUT SELECT venue FROM table_name_51 WHERE score = "4.10 (34) - 8.12 (60)"
{ "input": "CREATE TABLE table_name_51 (venue VARCHAR, score VARCHAR)", "instruction": "Where was the match with a score of 4.10 (34) - 8.12 (60)?", "output": "SELECT venue FROM table_name_51 WHERE score = \"4.10 (34) - 8.12 (60)\"" }
### INSTRUCTION Which date has an Outcome of runner-up, and an Opponent in the final of gilles simon? ### INPUT CREATE TABLE table_name_86 (date VARCHAR, outcome VARCHAR, opponent_in_the_final VARCHAR) ### OUTPUT SELECT date FROM table_name_86 WHERE outcome = "runner-up" AND opponent_in_the_final = "gilles simon"
{ "input": "CREATE TABLE table_name_86 (date VARCHAR, outcome VARCHAR, opponent_in_the_final VARCHAR)", "instruction": "Which date has an Outcome of runner-up, and an Opponent in the final of gilles simon?", "output": "SELECT date FROM table_name_86 WHERE outcome = \"runner-up\" AND opponent_in_the_final = \"gilles simon\"" }
### INSTRUCTION What are the names and types of the companies that have ever operated a flight? ### INPUT CREATE TABLE operate_company (name VARCHAR, type VARCHAR, id VARCHAR); CREATE TABLE flight (Id VARCHAR) ### OUTPUT SELECT T1.name, T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id
{ "input": "CREATE TABLE operate_company (name VARCHAR, type VARCHAR, id VARCHAR); CREATE TABLE flight (Id VARCHAR)", "instruction": "What are the names and types of the companies that have ever operated a flight?", "output": "SELECT T1.name, T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id" }
### INSTRUCTION Who was the constructor of the officine alfieri maserati that was driven by Sergio Mantovani? ### INPUT CREATE TABLE table_name_77 (constructor VARCHAR, entrant VARCHAR, driver VARCHAR) ### OUTPUT SELECT constructor FROM table_name_77 WHERE entrant = "officine alfieri maserati" AND driver = "sergio mantovani"
{ "input": "CREATE TABLE table_name_77 (constructor VARCHAR, entrant VARCHAR, driver VARCHAR)", "instruction": "Who was the constructor of the officine alfieri maserati that was driven by Sergio Mantovani?", "output": "SELECT constructor FROM table_name_77 WHERE entrant = \"officine alfieri maserati\" AND driver = \"sergio mantovani\"" }
### INSTRUCTION How much Distance has a County of faulkner, and a Total smaller than 1.5? ### INPUT CREATE TABLE table_name_73 (distance INTEGER, county VARCHAR, total VARCHAR) ### OUTPUT SELECT SUM(distance) FROM table_name_73 WHERE county = "faulkner" AND total < 1.5
{ "input": "CREATE TABLE table_name_73 (distance INTEGER, county VARCHAR, total VARCHAR)", "instruction": "How much Distance has a County of faulkner, and a Total smaller than 1.5?", "output": "SELECT SUM(distance) FROM table_name_73 WHERE county = \"faulkner\" AND total < 1.5" }
### INSTRUCTION What are names of stations that have average bike availability above 10 and are not located in San Jose city? ### INPUT CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE status (station_id VARCHAR); CREATE TABLE station (name VARCHAR, city VARCHAR, bikes_available INTEGER) ### OUTPUT SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = "San Jose"
{ "input": "CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE status (station_id VARCHAR); CREATE TABLE station (name VARCHAR, city VARCHAR, bikes_available INTEGER)", "instruction": "What are names of stations that have average bike availability above 10 and are not located in San Jose city?", "output": "SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = \"San Jose\"" }
### INSTRUCTION Tell me the total number of SP+FS with rank more than 8 for the netherlands and points more than 127.26 ### INPUT CREATE TABLE table_name_75 (fs VARCHAR, sp VARCHAR, points VARCHAR, rank VARCHAR, nation VARCHAR) ### OUTPUT SELECT COUNT(sp) + fs FROM table_name_75 WHERE rank > 8 AND nation = "netherlands" AND points > 127.26
{ "input": "CREATE TABLE table_name_75 (fs VARCHAR, sp VARCHAR, points VARCHAR, rank VARCHAR, nation VARCHAR)", "instruction": "Tell me the total number of SP+FS with rank more than 8 for the netherlands and points more than 127.26", "output": "SELECT COUNT(sp) + fs FROM table_name_75 WHERE rank > 8 AND nation = \"netherlands\" AND points > 127.26" }
### INSTRUCTION How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed? ### INPUT CREATE TABLE Lessons (customer_id VARCHAR, lesson_status_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### OUTPUT SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin" AND T1.lesson_status_code = "Completed"
{ "input": "CREATE TABLE Lessons (customer_id VARCHAR, lesson_status_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "instruction": "How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?", "output": "SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\" AND T1.lesson_status_code = \"Completed\"" }
### INSTRUCTION Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco. ### INPUT CREATE TABLE campuses (campus VARCHAR, LOCATION VARCHAR, county VARCHAR) ### OUTPUT SELECT campus FROM campuses WHERE LOCATION = "Northridge" AND county = "Los Angeles" UNION SELECT campus FROM campuses WHERE LOCATION = "San Francisco" AND county = "San Francisco"
{ "input": "CREATE TABLE campuses (campus VARCHAR, LOCATION VARCHAR, county VARCHAR)", "instruction": "Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.", "output": "SELECT campus FROM campuses WHERE LOCATION = \"Northridge\" AND county = \"Los Angeles\" UNION SELECT campus FROM campuses WHERE LOCATION = \"San Francisco\" AND county = \"San Francisco\"" }
### INSTRUCTION What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾in)? ### INPUT CREATE TABLE table_name_45 (date VARCHAR, athlete VARCHAR, record VARCHAR) ### OUTPUT SELECT date FROM table_name_45 WHERE athlete = "yelena isinbayeva" AND record = "4.90m(16ft0¾in)"
{ "input": "CREATE TABLE table_name_45 (date VARCHAR, athlete VARCHAR, record VARCHAR)", "instruction": "What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾in)?", "output": "SELECT date FROM table_name_45 WHERE athlete = \"yelena isinbayeva\" AND record = \"4.90m(16ft0¾in)\"" }
### INSTRUCTION What is the postal code when the administrative capital in Bori? ### INPUT CREATE TABLE table_28891101_3 (postal_code INTEGER, administrative_capital VARCHAR) ### OUTPUT SELECT MAX(postal_code) FROM table_28891101_3 WHERE administrative_capital = "Bori"
{ "input": "CREATE TABLE table_28891101_3 (postal_code INTEGER, administrative_capital VARCHAR)", "instruction": "What is the postal code when the administrative capital in Bori?", "output": "SELECT MAX(postal_code) FROM table_28891101_3 WHERE administrative_capital = \"Bori\"" }
### INSTRUCTION Tell me the race name for ferrari on 25 april ### INPUT CREATE TABLE table_name_17 (race_name VARCHAR, constructor VARCHAR, date VARCHAR) ### OUTPUT SELECT race_name FROM table_name_17 WHERE constructor = "ferrari" AND date = "25 april"
{ "input": "CREATE TABLE table_name_17 (race_name VARCHAR, constructor VARCHAR, date VARCHAR)", "instruction": "Tell me the race name for ferrari on 25 april", "output": "SELECT race_name FROM table_name_17 WHERE constructor = \"ferrari\" AND date = \"25 april\"" }
### INSTRUCTION How many laps had a constructor of toyota and a Time/Retired of +13.409? ### INPUT CREATE TABLE table_name_3 (laps VARCHAR, constructor VARCHAR, time_retired VARCHAR) ### OUTPUT SELECT COUNT(laps) FROM table_name_3 WHERE constructor = "toyota" AND time_retired = "+13.409"
{ "input": "CREATE TABLE table_name_3 (laps VARCHAR, constructor VARCHAR, time_retired VARCHAR)", "instruction": "How many laps had a constructor of toyota and a Time/Retired of +13.409?", "output": "SELECT COUNT(laps) FROM table_name_3 WHERE constructor = \"toyota\" AND time_retired = \"+13.409\"" }
### INSTRUCTION Which team was 3:47.761 on day 2? ### INPUT CREATE TABLE table_name_78 (team VARCHAR, day_2 VARCHAR) ### OUTPUT SELECT team FROM table_name_78 WHERE day_2 = "3:47.761"
{ "input": "CREATE TABLE table_name_78 (team VARCHAR, day_2 VARCHAR)", "instruction": "Which team was 3:47.761 on day 2?", "output": "SELECT team FROM table_name_78 WHERE day_2 = \"3:47.761\"" }
### INSTRUCTION Who wrote the episode directed by Jos Humphrey that had an original Canadian air date that was unknown and a United States original air date of August 27, 2011? ### INPUT CREATE TABLE table_29087004_2 (written_by VARCHAR, united_states_original_airdate VARCHAR, directed_by VARCHAR, canada_original_airdate VARCHAR) ### OUTPUT SELECT written_by FROM table_29087004_2 WHERE directed_by = "Jos Humphrey" AND canada_original_airdate = "Unknown" AND united_states_original_airdate = "August 27, 2011"
{ "input": "CREATE TABLE table_29087004_2 (written_by VARCHAR, united_states_original_airdate VARCHAR, directed_by VARCHAR, canada_original_airdate VARCHAR)", "instruction": "Who wrote the episode directed by Jos Humphrey that had an original Canadian air date that was unknown and a United States original air date of August 27, 2011?", "output": "SELECT written_by FROM table_29087004_2 WHERE directed_by = \"Jos Humphrey\" AND canada_original_airdate = \"Unknown\" AND united_states_original_airdate = \"August 27, 2011\"" }
### INSTRUCTION Who wrote the episode with production code 1AJN05? ### INPUT CREATE TABLE table_23242933_2 (written_by VARCHAR, production_code VARCHAR) ### OUTPUT SELECT written_by FROM table_23242933_2 WHERE production_code = "1AJN05"
{ "input": "CREATE TABLE table_23242933_2 (written_by VARCHAR, production_code VARCHAR)", "instruction": "Who wrote the episode with production code 1AJN05?", "output": "SELECT written_by FROM table_23242933_2 WHERE production_code = \"1AJN05\"" }
### INSTRUCTION Name the number of proto austronesian for *natu ### INPUT CREATE TABLE table_15568886_14 (proto_austronesian VARCHAR, proto_oceanic VARCHAR) ### OUTPUT SELECT COUNT(proto_austronesian) FROM table_15568886_14 WHERE proto_oceanic = "*natu"
{ "input": "CREATE TABLE table_15568886_14 (proto_austronesian VARCHAR, proto_oceanic VARCHAR)", "instruction": "Name the number of proto austronesian for *natu", "output": "SELECT COUNT(proto_austronesian) FROM table_15568886_14 WHERE proto_oceanic = \"*natu\"" }
### INSTRUCTION What is listed under occupation for someone from Santa Monica, California? ### INPUT CREATE TABLE table_name_71 (occupation VARCHAR, hometown VARCHAR) ### OUTPUT SELECT occupation FROM table_name_71 WHERE hometown = "santa monica, california"
{ "input": "CREATE TABLE table_name_71 (occupation VARCHAR, hometown VARCHAR)", "instruction": "What is listed under occupation for someone from Santa Monica, California?", "output": "SELECT occupation FROM table_name_71 WHERE hometown = \"santa monica, california\"" }
### INSTRUCTION What rank is He Yingqin who was born before 1890? ### INPUT CREATE TABLE table_name_75 (rank INTEGER, name VARCHAR, birth VARCHAR) ### OUTPUT SELECT AVG(rank) FROM table_name_75 WHERE name = "he yingqin" AND birth < 1890
{ "input": "CREATE TABLE table_name_75 (rank INTEGER, name VARCHAR, birth VARCHAR)", "instruction": "What rank is He Yingqin who was born before 1890?", "output": "SELECT AVG(rank) FROM table_name_75 WHERE name = \"he yingqin\" AND birth < 1890" }
### INSTRUCTION Which papers have "Stephanie Weirich" as an author? ### INPUT CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR) ### OUTPUT SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Stephanie" AND t1.lname = "Weirich"
{ "input": "CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)", "instruction": "Which papers have \"Stephanie Weirich\" as an author?", "output": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Stephanie\" AND t1.lname = \"Weirich\"" }
### INSTRUCTION What is the highest labour panel value with a cultural and educational panel greater than 1, a University of Dublin value greater than 0, and a total value less than 60? ### INPUT CREATE TABLE table_name_43 (labour_panel INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR) ### OUTPUT SELECT MAX(labour_panel) FROM table_name_43 WHERE cultural_and_educational_panel > 1 AND university_of_dublin > 0 AND total < 60
{ "input": "CREATE TABLE table_name_43 (labour_panel INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR)", "instruction": "What is the highest labour panel value with a cultural and educational panel greater than 1, a University of Dublin value greater than 0, and a total value less than 60?", "output": "SELECT MAX(labour_panel) FROM table_name_43 WHERE cultural_and_educational_panel > 1 AND university_of_dublin > 0 AND total < 60" }
### INSTRUCTION What is the Current Club of the PG/SG player with a Height of less than 1.9500000000000002? ### INPUT CREATE TABLE table_name_87 (current_club VARCHAR, height VARCHAR, position VARCHAR) ### OUTPUT SELECT current_club FROM table_name_87 WHERE height < 1.9500000000000002 AND position = "pg/sg"
{ "input": "CREATE TABLE table_name_87 (current_club VARCHAR, height VARCHAR, position VARCHAR)", "instruction": "What is the Current Club of the PG/SG player with a Height of less than 1.9500000000000002?", "output": "SELECT current_club FROM table_name_87 WHERE height < 1.9500000000000002 AND position = \"pg/sg\"" }
### INSTRUCTION What nation are carolina hermann / daniel hermann from? ### INPUT CREATE TABLE table_name_64 (nation VARCHAR, name VARCHAR) ### OUTPUT SELECT nation FROM table_name_64 WHERE name = "carolina hermann / daniel hermann"
{ "input": "CREATE TABLE table_name_64 (nation VARCHAR, name VARCHAR)", "instruction": "What nation are carolina hermann / daniel hermann from?", "output": "SELECT nation FROM table_name_64 WHERE name = \"carolina hermann / daniel hermann\"" }
### INSTRUCTION Name the highest laps for maserati and +6 laps for grid more than 11 ### INPUT CREATE TABLE table_name_33 (laps INTEGER, grid VARCHAR, constructor VARCHAR, time_retired VARCHAR) ### OUTPUT SELECT MAX(laps) FROM table_name_33 WHERE constructor = "maserati" AND time_retired = "+6 laps" AND grid > 11
{ "input": "CREATE TABLE table_name_33 (laps INTEGER, grid VARCHAR, constructor VARCHAR, time_retired VARCHAR)", "instruction": "Name the highest laps for maserati and +6 laps for grid more than 11", "output": "SELECT MAX(laps) FROM table_name_33 WHERE constructor = \"maserati\" AND time_retired = \"+6 laps\" AND grid > 11" }
### INSTRUCTION What is shown for Record as played with a Regular season Vacated of 24–0 later than 1997? ### INPUT CREATE TABLE table_name_19 (record_as_played VARCHAR, regular_season_vacated VARCHAR, season VARCHAR) ### OUTPUT SELECT record_as_played FROM table_name_19 WHERE regular_season_vacated = "24–0" AND season > 1997
{ "input": "CREATE TABLE table_name_19 (record_as_played VARCHAR, regular_season_vacated VARCHAR, season VARCHAR)", "instruction": "What is shown for Record as played with a Regular season Vacated of 24–0 later than 1997?", "output": "SELECT record_as_played FROM table_name_19 WHERE regular_season_vacated = \"24–0\" AND season > 1997" }
### INSTRUCTION What is the average number of cities of markets with low film market estimate bigger than 10000? ### INPUT CREATE TABLE market (Number_cities INTEGER, Market_ID VARCHAR); CREATE TABLE film_market_estimation (Market_ID VARCHAR, Low_Estimate INTEGER) ### OUTPUT SELECT AVG(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000
{ "input": "CREATE TABLE market (Number_cities INTEGER, Market_ID VARCHAR); CREATE TABLE film_market_estimation (Market_ID VARCHAR, Low_Estimate INTEGER)", "instruction": "What is the average number of cities of markets with low film market estimate bigger than 10000?", "output": "SELECT AVG(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000" }
### INSTRUCTION Name the score when the opponent was the dodgers on april 21 ### INPUT CREATE TABLE table_name_61 (score VARCHAR, opponent VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_61 WHERE opponent = "dodgers" AND date = "april 21"
{ "input": "CREATE TABLE table_name_61 (score VARCHAR, opponent VARCHAR, date VARCHAR)", "instruction": "Name the score when the opponent was the dodgers on april 21", "output": "SELECT score FROM table_name_61 WHERE opponent = \"dodgers\" AND date = \"april 21\"" }
### INSTRUCTION Which opponent had 73,428 in attendance? ### INPUT CREATE TABLE table_name_32 (opponent VARCHAR, attendance VARCHAR) ### OUTPUT SELECT opponent FROM table_name_32 WHERE attendance = "73,428"
{ "input": "CREATE TABLE table_name_32 (opponent VARCHAR, attendance VARCHAR)", "instruction": "Which opponent had 73,428 in attendance?", "output": "SELECT opponent FROM table_name_32 WHERE attendance = \"73,428\"" }
### INSTRUCTION Who played against Hapoel tel aviv when they were team #1? ### INPUT CREATE TABLE table_name_89 (team__number2 VARCHAR, team__number1 VARCHAR) ### OUTPUT SELECT team__number2 FROM table_name_89 WHERE team__number1 = "hapoel tel aviv"
{ "input": "CREATE TABLE table_name_89 (team__number2 VARCHAR, team__number1 VARCHAR)", "instruction": "Who played against Hapoel tel aviv when they were team #1?", "output": "SELECT team__number2 FROM table_name_89 WHERE team__number1 = \"hapoel tel aviv\"" }
### INSTRUCTION Find the first and last name of students who are living in the dorms that have amenity TV Lounge. ### INPUT CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR) ### OUTPUT SELECT T1.fname, T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')
{ "input": "CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)", "instruction": "Find the first and last name of students who are living in the dorms that have amenity TV Lounge.", "output": "SELECT T1.fname, T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')" }
### INSTRUCTION Which player plays forward and is from Kentucky? ### INPUT CREATE TABLE table_name_43 (player VARCHAR, position VARCHAR, school_country VARCHAR) ### OUTPUT SELECT player FROM table_name_43 WHERE position = "forward" AND school_country = "kentucky"
{ "input": "CREATE TABLE table_name_43 (player VARCHAR, position VARCHAR, school_country VARCHAR)", "instruction": "Which player plays forward and is from Kentucky?", "output": "SELECT player FROM table_name_43 WHERE position = \"forward\" AND school_country = \"kentucky\"" }
### INSTRUCTION Find the name of amenities Smith Hall dorm have. ### INPUT CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenity_name VARCHAR, amenid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR) ### OUTPUT SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall'
{ "input": "CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenity_name VARCHAR, amenid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR)", "instruction": "Find the name of amenities Smith Hall dorm have.", "output": "SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall'" }
### INSTRUCTION What year did Martina Navratilova win Wimbledon? ### INPUT CREATE TABLE table_2092557_12 (wimbledon VARCHAR, player VARCHAR) ### OUTPUT SELECT wimbledon FROM table_2092557_12 WHERE player = "Martina Navratilova"
{ "input": "CREATE TABLE table_2092557_12 (wimbledon VARCHAR, player VARCHAR)", "instruction": "What year did Martina Navratilova win Wimbledon?", "output": "SELECT wimbledon FROM table_2092557_12 WHERE player = \"Martina Navratilova\"" }
### INSTRUCTION What was the transfer window with a moving from of fenerbahçe? ### INPUT CREATE TABLE table_name_21 (transfer_window VARCHAR, moving_from VARCHAR) ### OUTPUT SELECT transfer_window FROM table_name_21 WHERE moving_from = "fenerbahçe"
{ "input": "CREATE TABLE table_name_21 (transfer_window VARCHAR, moving_from VARCHAR)", "instruction": "What was the transfer window with a moving from of fenerbahçe?", "output": "SELECT transfer_window FROM table_name_21 WHERE moving_from = \"fenerbahçe\"" }
### INSTRUCTION Name the height for asko esna ### INPUT CREATE TABLE table_25058562_2 (height VARCHAR, player VARCHAR) ### OUTPUT SELECT height FROM table_25058562_2 WHERE player = "Asko Esna"
{ "input": "CREATE TABLE table_25058562_2 (height VARCHAR, player VARCHAR)", "instruction": "Name the height for asko esna", "output": "SELECT height FROM table_25058562_2 WHERE player = \"Asko Esna\"" }
### INSTRUCTION What are the colours of the team with benedikt guðmundsson as head coach? ### INPUT CREATE TABLE table_name_26 (colours VARCHAR, head_coach VARCHAR) ### OUTPUT SELECT colours FROM table_name_26 WHERE head_coach = "benedikt guðmundsson"
{ "input": "CREATE TABLE table_name_26 (colours VARCHAR, head_coach VARCHAR)", "instruction": "What are the colours of the team with benedikt guðmundsson as head coach?", "output": "SELECT colours FROM table_name_26 WHERE head_coach = \"benedikt guðmundsson\"" }
### INSTRUCTION Name the least rank when games are more than 34 and the season is 2009-10 ### INPUT CREATE TABLE table_name_98 (rank INTEGER, games VARCHAR, season VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_98 WHERE games > 34 AND season = "2009-10"
{ "input": "CREATE TABLE table_name_98 (rank INTEGER, games VARCHAR, season VARCHAR)", "instruction": "Name the least rank when games are more than 34 and the season is 2009-10", "output": "SELECT MIN(rank) FROM table_name_98 WHERE games > 34 AND season = \"2009-10\"" }
### INSTRUCTION What is the highest laps with a 30 finish? ### INPUT CREATE TABLE table_name_89 (laps INTEGER, finish VARCHAR) ### OUTPUT SELECT MAX(laps) FROM table_name_89 WHERE finish = "30"
{ "input": "CREATE TABLE table_name_89 (laps INTEGER, finish VARCHAR)", "instruction": "What is the highest laps with a 30 finish?", "output": "SELECT MAX(laps) FROM table_name_89 WHERE finish = \"30\"" }
### INSTRUCTION How many members have professor edward acton as vice-chancellor? ### INPUT CREATE TABLE table_142950_1 (total_number_of_students VARCHAR, vice_chancellor VARCHAR) ### OUTPUT SELECT COUNT(total_number_of_students) FROM table_142950_1 WHERE vice_chancellor = "Professor Edward Acton"
{ "input": "CREATE TABLE table_142950_1 (total_number_of_students VARCHAR, vice_chancellor VARCHAR)", "instruction": "How many members have professor edward acton as vice-chancellor?", "output": "SELECT COUNT(total_number_of_students) FROM table_142950_1 WHERE vice_chancellor = \"Professor Edward Acton\"" }
### INSTRUCTION Which representative was the Ambassador Extraordinary and Plenipotentiary and had a Termination of Mission date September 20, 1996? ### INPUT CREATE TABLE table_name_83 (representative VARCHAR, title VARCHAR, termination_of_mission VARCHAR) ### OUTPUT SELECT representative FROM table_name_83 WHERE title = "ambassador extraordinary and plenipotentiary" AND termination_of_mission = "september 20, 1996"
{ "input": "CREATE TABLE table_name_83 (representative VARCHAR, title VARCHAR, termination_of_mission VARCHAR)", "instruction": "Which representative was the Ambassador Extraordinary and Plenipotentiary and had a Termination of Mission date September 20, 1996?", "output": "SELECT representative FROM table_name_83 WHERE title = \"ambassador extraordinary and plenipotentiary\" AND termination_of_mission = \"september 20, 1996\"" }
### INSTRUCTION Find the distinct first names of all the students who have vice president votes and whose city code is not PIT. ### INPUT CREATE TABLE STUDENT (Fname VARCHAR, city_code VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (VICE_PRESIDENT_Vote VARCHAR) ### OUTPUT SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = "PIT"
{ "input": "CREATE TABLE STUDENT (Fname VARCHAR, city_code VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (VICE_PRESIDENT_Vote VARCHAR)", "instruction": "Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.", "output": "SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = \"PIT\"" }
### INSTRUCTION what is the series number where the date of first broadcast is 16 october 2008? ### INPUT CREATE TABLE table_12995531_3 (series_number VARCHAR, date_of_first_broadcast VARCHAR) ### OUTPUT SELECT series_number FROM table_12995531_3 WHERE date_of_first_broadcast = "16 October 2008"
{ "input": "CREATE TABLE table_12995531_3 (series_number VARCHAR, date_of_first_broadcast VARCHAR)", "instruction": "what is the series number where the date of first broadcast is 16 october 2008?", "output": "SELECT series_number FROM table_12995531_3 WHERE date_of_first_broadcast = \"16 October 2008\"" }
### INSTRUCTION Which Auckland has an Adelaide of no, a Melbourne of yes, and a Sydney of yes? ### INPUT CREATE TABLE table_name_1 (auckland VARCHAR, sydney VARCHAR, adelaide VARCHAR, melbourne VARCHAR) ### OUTPUT SELECT auckland FROM table_name_1 WHERE adelaide = "no" AND melbourne = "yes" AND sydney = "yes"
{ "input": "CREATE TABLE table_name_1 (auckland VARCHAR, sydney VARCHAR, adelaide VARCHAR, melbourne VARCHAR)", "instruction": "Which Auckland has an Adelaide of no, a Melbourne of yes, and a Sydney of yes?", "output": "SELECT auckland FROM table_name_1 WHERE adelaide = \"no\" AND melbourne = \"yes\" AND sydney = \"yes\"" }
### INSTRUCTION What is the Round for the jiu-jitsu vs martial arts? ### INPUT CREATE TABLE table_name_20 (round VARCHAR, event VARCHAR) ### OUTPUT SELECT round FROM table_name_20 WHERE event = "jiu-jitsu vs martial arts"
{ "input": "CREATE TABLE table_name_20 (round VARCHAR, event VARCHAR)", "instruction": "What is the Round for the jiu-jitsu vs martial arts?", "output": "SELECT round FROM table_name_20 WHERE event = \"jiu-jitsu vs martial arts\"" }
### INSTRUCTION Who is the winning driver of the race on 2 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team? ### INPUT CREATE TABLE table_name_15 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR) ### OUTPUT SELECT winning_driver FROM table_name_15 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "2 june"
{ "input": "CREATE TABLE table_name_15 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR)", "instruction": "Who is the winning driver of the race on 2 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?", "output": "SELECT winning_driver FROM table_name_15 WHERE winning_team = \"a.z.k./roc-compétition a.z.k./roc-compétition\" AND date = \"2 june\"" }
### INSTRUCTION Name the sum of year for engine of brm p202 3.0 v12 brm p200 3.0 v12 ### INPUT CREATE TABLE table_name_43 (year INTEGER, engine_s_ VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_43 WHERE engine_s_ = "brm p202 3.0 v12 brm p200 3.0 v12"
{ "input": "CREATE TABLE table_name_43 (year INTEGER, engine_s_ VARCHAR)", "instruction": "Name the sum of year for engine of brm p202 3.0 v12 brm p200 3.0 v12", "output": "SELECT SUM(year) FROM table_name_43 WHERE engine_s_ = \"brm p202 3.0 v12 brm p200 3.0 v12\"" }
### INSTRUCTION What is the highest number of severe tropical cyclones when there are 10 tropical cyclones and 14 tropical lows? ### INPUT CREATE TABLE table_name_78 (Severe INTEGER, tropical_cyclones VARCHAR, tropical_lows VARCHAR) ### OUTPUT SELECT MAX(Severe) AS tropical_cyclones FROM table_name_78 WHERE tropical_cyclones = 10 AND tropical_lows = 14
{ "input": "CREATE TABLE table_name_78 (Severe INTEGER, tropical_cyclones VARCHAR, tropical_lows VARCHAR)", "instruction": "What is the highest number of severe tropical cyclones when there are 10 tropical cyclones and 14 tropical lows?", "output": "SELECT MAX(Severe) AS tropical_cyclones FROM table_name_78 WHERE tropical_cyclones = 10 AND tropical_lows = 14" }
### INSTRUCTION What's the Denomination listed for the Date of Issue 12 April 2005? ### INPUT CREATE TABLE table_name_88 (denomination VARCHAR, date_of_issue VARCHAR) ### OUTPUT SELECT denomination FROM table_name_88 WHERE date_of_issue = "12 april 2005"
{ "input": "CREATE TABLE table_name_88 (denomination VARCHAR, date_of_issue VARCHAR)", "instruction": "What's the Denomination listed for the Date of Issue 12 April 2005?", "output": "SELECT denomination FROM table_name_88 WHERE date_of_issue = \"12 april 2005\"" }
### INSTRUCTION What is the Score for the Game less than 21, and of antonio davis (12)had the High rebounds? ### INPUT CREATE TABLE table_name_87 (score VARCHAR, game VARCHAR, high_rebounds VARCHAR) ### OUTPUT SELECT score FROM table_name_87 WHERE game < 21 AND high_rebounds = "antonio davis (12)"
{ "input": "CREATE TABLE table_name_87 (score VARCHAR, game VARCHAR, high_rebounds VARCHAR)", "instruction": "What is the Score for the Game less than 21, and of antonio davis (12)had the High rebounds?", "output": "SELECT score FROM table_name_87 WHERE game < 21 AND high_rebounds = \"antonio davis (12)\"" }
### INSTRUCTION What is the To par for Robert Allenby from Australia ### INPUT CREATE TABLE table_name_6 (to_par VARCHAR, country VARCHAR, player VARCHAR) ### OUTPUT SELECT to_par FROM table_name_6 WHERE country = "australia" AND player = "robert allenby"
{ "input": "CREATE TABLE table_name_6 (to_par VARCHAR, country VARCHAR, player VARCHAR)", "instruction": "What is the To par for Robert Allenby from Australia", "output": "SELECT to_par FROM table_name_6 WHERE country = \"australia\" AND player = \"robert allenby\"" }
### INSTRUCTION What is the date of enrollment of the course named "Spanish"? ### INPUT CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, course_id VARCHAR); CREATE TABLE Courses (course_id VARCHAR, course_name VARCHAR) ### OUTPUT SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "Spanish"
{ "input": "CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, course_id VARCHAR); CREATE TABLE Courses (course_id VARCHAR, course_name VARCHAR)", "instruction": "What is the date of enrollment of the course named \"Spanish\"?", "output": "SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"Spanish\"" }
### INSTRUCTION What format is the link for the polling data for February 10–28, 2011? ### INPUT CREATE TABLE table_24778847_2 (link VARCHAR, date_of_polling VARCHAR) ### OUTPUT SELECT link FROM table_24778847_2 WHERE date_of_polling = "February 10–28, 2011"
{ "input": "CREATE TABLE table_24778847_2 (link VARCHAR, date_of_polling VARCHAR)", "instruction": "What format is the link for the polling data for February 10–28, 2011?", "output": "SELECT link FROM table_24778847_2 WHERE date_of_polling = \"February 10–28, 2011\"" }
### INSTRUCTION How many members gained university status in 1900? ### INPUT CREATE TABLE table_142950_1 (research_funding__ VARCHAR, gained_university_status VARCHAR) ### OUTPUT SELECT COUNT(research_funding__) AS £, 000 AS _ FROM table_142950_1 WHERE gained_university_status = 1900
{ "input": "CREATE TABLE table_142950_1 (research_funding__ VARCHAR, gained_university_status VARCHAR)", "instruction": "How many members gained university status in 1900?", "output": "SELECT COUNT(research_funding__) AS £, 000 AS _ FROM table_142950_1 WHERE gained_university_status = 1900" }
### INSTRUCTION What is the athlete from Edwardsville? ### INPUT CREATE TABLE table_1231316_7 (athlete VARCHAR, location VARCHAR) ### OUTPUT SELECT athlete FROM table_1231316_7 WHERE location = "Edwardsville"
{ "input": "CREATE TABLE table_1231316_7 (athlete VARCHAR, location VARCHAR)", "instruction": "What is the athlete from Edwardsville?", "output": "SELECT athlete FROM table_1231316_7 WHERE location = \"Edwardsville\"" }
### INSTRUCTION How many United Airlines flights go to City 'Aberdeen'? ### INPUT CREATE TABLE AIRPORTS (AirportCode VARCHAR, City VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR); CREATE TABLE FLIGHTS (DestAirport VARCHAR, Airline VARCHAR) ### OUTPUT SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = "Aberdeen" AND T3.Airline = "United Airlines"
{ "input": "CREATE TABLE AIRPORTS (AirportCode VARCHAR, City VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR); CREATE TABLE FLIGHTS (DestAirport VARCHAR, Airline VARCHAR)", "instruction": "How many United Airlines flights go to City 'Aberdeen'?", "output": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"" }
### INSTRUCTION Name the number of going to for thurlby, braceborough spa at departure being 16.50 ### INPUT CREATE TABLE table_17200372_2 (going_to VARCHAR, calling_at VARCHAR, departure VARCHAR) ### OUTPUT SELECT COUNT(going_to) FROM table_17200372_2 WHERE calling_at = "Thurlby, Braceborough Spa" AND departure = "16.50"
{ "input": "CREATE TABLE table_17200372_2 (going_to VARCHAR, calling_at VARCHAR, departure VARCHAR)", "instruction": "Name the number of going to for thurlby, braceborough spa at departure being 16.50", "output": "SELECT COUNT(going_to) FROM table_17200372_2 WHERE calling_at = \"Thurlby, Braceborough Spa\" AND departure = \"16.50\"" }
### INSTRUCTION How many millions of people in the US watched when Kevin Bray was director? ### INPUT CREATE TABLE table_24319661_3 (us_viewers__million_ VARCHAR, directed_by VARCHAR) ### OUTPUT SELECT us_viewers__million_ FROM table_24319661_3 WHERE directed_by = "Kevin Bray"
{ "input": "CREATE TABLE table_24319661_3 (us_viewers__million_ VARCHAR, directed_by VARCHAR)", "instruction": "How many millions of people in the US watched when Kevin Bray was director?", "output": "SELECT us_viewers__million_ FROM table_24319661_3 WHERE directed_by = \"Kevin Bray\"" }
### INSTRUCTION what is the filter when the wavelength is 222mm (k-band)? ### INPUT CREATE TABLE table_2583036_1 (filter VARCHAR, wavelength VARCHAR) ### OUTPUT SELECT filter FROM table_2583036_1 WHERE wavelength = "222mm (K-band)"
{ "input": "CREATE TABLE table_2583036_1 (filter VARCHAR, wavelength VARCHAR)", "instruction": "what is the filter when the wavelength is 222mm (k-band)?", "output": "SELECT filter FROM table_2583036_1 WHERE wavelength = \"222mm (K-band)\"" }
### INSTRUCTION Show the number of high schoolers for each grade. ### INPUT CREATE TABLE Highschooler (grade VARCHAR) ### OUTPUT SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade
{ "input": "CREATE TABLE Highschooler (grade VARCHAR)", "instruction": "Show the number of high schoolers for each grade.", "output": "SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade" }
### INSTRUCTION What are the mm dimensions for the Fujitsu fi-6130 a4 Series Scanner? ### INPUT CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR) ### OUTPUT SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = "Fujitsu fi-6130 A4 Series Scanner"
{ "input": "CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR)", "instruction": "What are the mm dimensions for the Fujitsu fi-6130 a4 Series Scanner?", "output": "SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = \"Fujitsu fi-6130 A4 Series Scanner\"" }
### INSTRUCTION Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way. ### INPUT CREATE TABLE Tourist_Attractions (How_to_Get_There VARCHAR) ### OUTPUT SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There
{ "input": "CREATE TABLE Tourist_Attractions (How_to_Get_There VARCHAR)", "instruction": "Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way.", "output": "SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There" }
### INSTRUCTION What was the total score / week of the contestant who placed in the bottom 2 on august 14? ### INPUT CREATE TABLE table_18278508_6 (total_score_week VARCHAR, date_performed VARCHAR, position VARCHAR) ### OUTPUT SELECT total_score_week FROM table_18278508_6 WHERE date_performed = "August 14" AND position = "Bottom 2"
{ "input": "CREATE TABLE table_18278508_6 (total_score_week VARCHAR, date_performed VARCHAR, position VARCHAR)", "instruction": "What was the total score / week of the contestant who placed in the bottom 2 on august 14?", "output": "SELECT total_score_week FROM table_18278508_6 WHERE date_performed = \"August 14\" AND position = \"Bottom 2\"" }
### INSTRUCTION Find the name of the swimmer who has the most records. ### INPUT CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR) ### OUTPUT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR)", "instruction": "Find the name of the swimmer who has the most records.", "output": "SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Which 1992 is the lowest one that has a 1977 smaller than 385577, and a 2011 larger than 340310, and a 2002 larger than 300123, and a 1948 larger than 280524? ### INPUT CREATE TABLE table_name_12 (Id VARCHAR) ### OUTPUT SELECT MIN(1992) FROM table_name_12 WHERE 1977 < 385577 AND 2011 > 340310 AND 2002 > 300123 AND 1948 > 280524
{ "input": "CREATE TABLE table_name_12 (Id VARCHAR)", "instruction": "Which 1992 is the lowest one that has a 1977 smaller than 385577, and a 2011 larger than 340310, and a 2002 larger than 300123, and a 1948 larger than 280524?", "output": "SELECT MIN(1992) FROM table_name_12 WHERE 1977 < 385577 AND 2011 > 340310 AND 2002 > 300123 AND 1948 > 280524" }
### INSTRUCTION What is Country, when Place is "T8", and when Score is "70-67=137"? ### INPUT CREATE TABLE table_name_98 (country VARCHAR, place VARCHAR, score VARCHAR) ### OUTPUT SELECT country FROM table_name_98 WHERE place = "t8" AND score = 70 - 67 = 137
{ "input": "CREATE TABLE table_name_98 (country VARCHAR, place VARCHAR, score VARCHAR)", "instruction": "What is Country, when Place is \"T8\", and when Score is \"70-67=137\"?", "output": "SELECT country FROM table_name_98 WHERE place = \"t8\" AND score = 70 - 67 = 137" }
### INSTRUCTION What is the production code of the episode that was watched by 3.81 million U.S. viewers? ### INPUT CREATE TABLE table_29054902_1 (production_code VARCHAR, us_viewers__million_ VARCHAR) ### OUTPUT SELECT production_code FROM table_29054902_1 WHERE us_viewers__million_ = "3.81"
{ "input": "CREATE TABLE table_29054902_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)", "instruction": "What is the production code of the episode that was watched by 3.81 million U.S. viewers? ", "output": "SELECT production_code FROM table_29054902_1 WHERE us_viewers__million_ = \"3.81\"" }
### INSTRUCTION What is the date they played against fitzroy? ### INPUT CREATE TABLE table_name_10 (date VARCHAR, away_team VARCHAR) ### OUTPUT SELECT date FROM table_name_10 WHERE away_team = "fitzroy"
{ "input": "CREATE TABLE table_name_10 (date VARCHAR, away_team VARCHAR)", "instruction": "What is the date they played against fitzroy?", "output": "SELECT date FROM table_name_10 WHERE away_team = \"fitzroy\"" }
### INSTRUCTION What's the bronze medal count of Spain that has less than 39 Gold, 3 silver, and a rank better than 35? ### INPUT CREATE TABLE table_name_27 (bronze VARCHAR, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR) ### OUTPUT SELECT bronze FROM table_name_27 WHERE gold < 39 AND silver = 3 AND rank < 35 AND nation = "spain"
{ "input": "CREATE TABLE table_name_27 (bronze VARCHAR, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)", "instruction": "What's the bronze medal count of Spain that has less than 39 Gold, 3 silver, and a rank better than 35?", "output": "SELECT bronze FROM table_name_27 WHERE gold < 39 AND silver = 3 AND rank < 35 AND nation = \"spain\"" }
### INSTRUCTION Name the general classification of stage 15 ### INPUT CREATE TABLE table_12261806_2 (general_classification VARCHAR, stage VARCHAR) ### OUTPUT SELECT COUNT(general_classification) FROM table_12261806_2 WHERE stage = "15"
{ "input": "CREATE TABLE table_12261806_2 (general_classification VARCHAR, stage VARCHAR)", "instruction": "Name the general classification of stage 15", "output": "SELECT COUNT(general_classification) FROM table_12261806_2 WHERE stage = \"15\"" }
### INSTRUCTION What is the sum of poverty (2009) HPI-1 % when the GDP (PPP) (2012) US$ per capita of 11,284? ### INPUT CREATE TABLE table_name_69 (poverty__2009__hpi_1__percentage VARCHAR, gdp__ppp___2012__us$_per_capita VARCHAR) ### OUTPUT SELECT COUNT(poverty__2009__hpi_1__percentage) FROM table_name_69 WHERE gdp__ppp___2012__us$_per_capita = "11,284"
{ "input": "CREATE TABLE table_name_69 (poverty__2009__hpi_1__percentage VARCHAR, gdp__ppp___2012__us$_per_capita VARCHAR)", "instruction": "What is the sum of poverty (2009) HPI-1 % when the GDP (PPP) (2012) US$ per capita of 11,284?", "output": "SELECT COUNT(poverty__2009__hpi_1__percentage) FROM table_name_69 WHERE gdp__ppp___2012__us$_per_capita = \"11,284\"" }
### INSTRUCTION Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse? ### INPUT CREATE TABLE table_name_12 (land_area__km²_ INTEGER, name VARCHAR, population_density__per_km²_ VARCHAR, population__2006_ VARCHAR) ### OUTPUT SELECT MAX(land_area__km²_) FROM table_name_12 WHERE population_density__per_km²_ > 112.6 AND population__2006_ > 785 AND name = "pinehouse"
{ "input": "CREATE TABLE table_name_12 (land_area__km²_ INTEGER, name VARCHAR, population_density__per_km²_ VARCHAR, population__2006_ VARCHAR)", "instruction": "Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse?", "output": "SELECT MAX(land_area__km²_) FROM table_name_12 WHERE population_density__per_km²_ > 112.6 AND population__2006_ > 785 AND name = \"pinehouse\"" }
### INSTRUCTION How many students attend course English? ### INPUT CREATE TABLE student_course_attendance (course_id VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR) ### OUTPUT SELECT COUNT(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "English"
{ "input": "CREATE TABLE student_course_attendance (course_id VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR)", "instruction": "How many students attend course English?", "output": "SELECT COUNT(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"English\"" }