text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Record of 11-10-3 is what sum of game #? ### INPUT CREATE TABLE table_name_57 (game__number INTEGER, record VARCHAR) ### OUTPUT SELECT SUM(game__number) FROM table_name_57 WHERE record = "11-10-3"
{ "input": "CREATE TABLE table_name_57 (game__number INTEGER, record VARCHAR)", "instruction": "Record of 11-10-3 is what sum of game #?", "output": "SELECT SUM(game__number) FROM table_name_57 WHERE record = \"11-10-3\"" }
### INSTRUCTION How far to par did ed furgol from the United States get when he scored less than 72 and was placed at t3? ### INPUT CREATE TABLE table_name_93 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR, score VARCHAR) ### OUTPUT SELECT to_par FROM table_name_93 WHERE country = "united states" AND score < 72 AND place = "t3" AND player = "ed furgol"
{ "input": "CREATE TABLE table_name_93 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR, score VARCHAR)", "instruction": "How far to par did ed furgol from the United States get when he scored less than 72 and was placed at t3?", "output": "SELECT to_par FROM table_name_93 WHERE country = \"united states\" AND score < 72 AND place = \"t3\" AND player = \"ed furgol\"" }
### INSTRUCTION What was the date of release for the episode sorted value of 6Y/AA? ### INPUT CREATE TABLE table_name_13 (released VARCHAR, series_sorted VARCHAR) ### OUTPUT SELECT released FROM table_name_13 WHERE series_sorted = "6y/aa"
{ "input": "CREATE TABLE table_name_13 (released VARCHAR, series_sorted VARCHAR)", "instruction": "What was the date of release for the episode sorted value of 6Y/AA?", "output": "SELECT released FROM table_name_13 WHERE series_sorted = \"6y/aa\"" }
### INSTRUCTION who won the kansas state game on 11/26/1988 ### INPUT CREATE TABLE table_15740666_6 (kansas_state_vs VARCHAR, last_meeting VARCHAR) ### OUTPUT SELECT kansas_state_vs FROM table_15740666_6 WHERE last_meeting = "11/26/1988"
{ "input": "CREATE TABLE table_15740666_6 (kansas_state_vs VARCHAR, last_meeting VARCHAR)", "instruction": "who won the kansas state game on 11/26/1988", "output": "SELECT kansas_state_vs FROM table_15740666_6 WHERE last_meeting = \"11/26/1988\"" }
### INSTRUCTION During what years did the tallest building, located at 211 Union Street, have less than 31 floors? ### INPUT CREATE TABLE table_name_95 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR) ### OUTPUT SELECT years_as_tallest FROM table_name_95 WHERE floors < 31 AND street_address = "211 union street"
{ "input": "CREATE TABLE table_name_95 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR)", "instruction": "During what years did the tallest building, located at 211 Union Street, have less than 31 floors?", "output": "SELECT years_as_tallest FROM table_name_95 WHERE floors < 31 AND street_address = \"211 union street\"" }
### INSTRUCTION How many points have 500cc for the class, a win greater than 0, with a year after 1974? ### INPUT CREATE TABLE table_name_77 (points INTEGER, year VARCHAR, class VARCHAR, wins VARCHAR) ### OUTPUT SELECT SUM(points) FROM table_name_77 WHERE class = "500cc" AND wins > 0 AND year > 1974
{ "input": "CREATE TABLE table_name_77 (points INTEGER, year VARCHAR, class VARCHAR, wins VARCHAR)", "instruction": "How many points have 500cc for the class, a win greater than 0, with a year after 1974?", "output": "SELECT SUM(points) FROM table_name_77 WHERE class = \"500cc\" AND wins > 0 AND year > 1974" }
### INSTRUCTION What are the ids of stations that are located in San Francisco and have average bike availability above 10. ### INPUT CREATE TABLE status (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INTEGER); CREATE TABLE station (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INTEGER) ### OUTPUT SELECT id FROM station WHERE city = "San Francisco" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING AVG(bikes_available) > 10
{ "input": "CREATE TABLE status (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INTEGER); CREATE TABLE station (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INTEGER)", "instruction": "What are the ids of stations that are located in San Francisco and have average bike availability above 10.", "output": "SELECT id FROM station WHERE city = \"San Francisco\" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING AVG(bikes_available) > 10" }
### INSTRUCTION Who was eliminated by being pinned after a spear at 22:50? ### INPUT CREATE TABLE table_29692554_2 (wrestler VARCHAR, method_of_elimination VARCHAR, time VARCHAR) ### OUTPUT SELECT wrestler FROM table_29692554_2 WHERE method_of_elimination = "Pinned after a spear" AND time = "22:50"
{ "input": "CREATE TABLE table_29692554_2 (wrestler VARCHAR, method_of_elimination VARCHAR, time VARCHAR)", "instruction": "Who was eliminated by being pinned after a spear at 22:50?", "output": "SELECT wrestler FROM table_29692554_2 WHERE method_of_elimination = \"Pinned after a spear\" AND time = \"22:50\"" }
### INSTRUCTION Find the minimum salary for the departments whose average salary is above the average payment of all instructors. ### INPUT CREATE TABLE instructor (dept_name VARCHAR, salary INTEGER) ### OUTPUT SELECT MIN(salary), dept_name FROM instructor GROUP BY dept_name HAVING AVG(salary) > (SELECT AVG(salary) FROM instructor)
{ "input": "CREATE TABLE instructor (dept_name VARCHAR, salary INTEGER)", "instruction": "Find the minimum salary for the departments whose average salary is above the average payment of all instructors.", "output": "SELECT MIN(salary), dept_name FROM instructor GROUP BY dept_name HAVING AVG(salary) > (SELECT AVG(salary) FROM instructor)" }
### INSTRUCTION Show all cities where at least one customer lives in but no performer lives in. ### INPUT CREATE TABLE Customers (Address_ID VARCHAR); CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Performers (Address_ID VARCHAR) ### OUTPUT SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID
{ "input": "CREATE TABLE Customers (Address_ID VARCHAR); CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Performers (Address_ID VARCHAR)", "instruction": "Show all cities where at least one customer lives in but no performer lives in.", "output": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID" }
### INSTRUCTION Which Number has a Name of cooper, c. kenneth, and a Year End larger than 1984? ### INPUT CREATE TABLE table_name_90 (number INTEGER, name VARCHAR, year_end VARCHAR) ### OUTPUT SELECT AVG(number) FROM table_name_90 WHERE name = "cooper, c. kenneth" AND year_end > 1984
{ "input": "CREATE TABLE table_name_90 (number INTEGER, name VARCHAR, year_end VARCHAR)", "instruction": "Which Number has a Name of cooper, c. kenneth, and a Year End larger than 1984?", "output": "SELECT AVG(number) FROM table_name_90 WHERE name = \"cooper, c. kenneth\" AND year_end > 1984" }
### INSTRUCTION What is the highest total medals winter athlete Clara Hughes has? ### INPUT CREATE TABLE table_name_41 (total INTEGER, type VARCHAR, athlete VARCHAR) ### OUTPUT SELECT MAX(total) FROM table_name_41 WHERE type = "winter" AND athlete = "clara hughes"
{ "input": "CREATE TABLE table_name_41 (total INTEGER, type VARCHAR, athlete VARCHAR)", "instruction": "What is the highest total medals winter athlete Clara Hughes has?", "output": "SELECT MAX(total) FROM table_name_41 WHERE type = \"winter\" AND athlete = \"clara hughes\"" }
### INSTRUCTION Which duration was defeated by retired? ### INPUT CREATE TABLE table_name_84 (duration VARCHAR, defeated_by VARCHAR) ### OUTPUT SELECT duration FROM table_name_84 WHERE defeated_by = "retired"
{ "input": "CREATE TABLE table_name_84 (duration VARCHAR, defeated_by VARCHAR)", "instruction": "Which duration was defeated by retired?", "output": "SELECT duration FROM table_name_84 WHERE defeated_by = \"retired\"" }
### INSTRUCTION What is every value for average on previous season if the competition is league two? ### INPUT CREATE TABLE table_2970978_1 (___ave_on_prev_season VARCHAR, competition VARCHAR) ### OUTPUT SELECT ___ave_on_prev_season FROM table_2970978_1 WHERE competition = "League Two"
{ "input": "CREATE TABLE table_2970978_1 (___ave_on_prev_season VARCHAR, competition VARCHAR)", "instruction": "What is every value for average on previous season if the competition is league two?", "output": "SELECT ___ave_on_prev_season FROM table_2970978_1 WHERE competition = \"League Two\"" }
### INSTRUCTION What is Name, when Team is Detroit Pistons, and when WSU Year(s) is 1979-82? ### INPUT CREATE TABLE table_name_3 (name VARCHAR, team VARCHAR, wsu_year_s_ VARCHAR) ### OUTPUT SELECT name FROM table_name_3 WHERE team = "detroit pistons" AND wsu_year_s_ = "1979-82"
{ "input": "CREATE TABLE table_name_3 (name VARCHAR, team VARCHAR, wsu_year_s_ VARCHAR)", "instruction": "What is Name, when Team is Detroit Pistons, and when WSU Year(s) is 1979-82?", "output": "SELECT name FROM table_name_3 WHERE team = \"detroit pistons\" AND wsu_year_s_ = \"1979-82\"" }
### INSTRUCTION What is the television service that has package with sky tv, and it in Italian English? ### INPUT CREATE TABLE table_name_30 (television_service VARCHAR, package_option VARCHAR, language VARCHAR) ### OUTPUT SELECT television_service FROM table_name_30 WHERE package_option = "sky tv" AND language = "italian english"
{ "input": "CREATE TABLE table_name_30 (television_service VARCHAR, package_option VARCHAR, language VARCHAR)", "instruction": "What is the television service that has package with sky tv, and it in Italian English?", "output": "SELECT television_service FROM table_name_30 WHERE package_option = \"sky tv\" AND language = \"italian english\"" }
### INSTRUCTION Who was in third place when the Winner was Dalian Shide, Chongqing Longxin was 4th and 14 clubs? ### INPUT CREATE TABLE table_name_48 (third_place VARCHAR, fourth_placed VARCHAR, number_of_clubs VARCHAR, winners VARCHAR) ### OUTPUT SELECT third_place FROM table_name_48 WHERE number_of_clubs = 14 AND winners = "dalian shide" AND fourth_placed = "chongqing longxin"
{ "input": "CREATE TABLE table_name_48 (third_place VARCHAR, fourth_placed VARCHAR, number_of_clubs VARCHAR, winners VARCHAR)", "instruction": "Who was in third place when the Winner was Dalian Shide, Chongqing Longxin was 4th and 14 clubs?", "output": "SELECT third_place FROM table_name_48 WHERE number_of_clubs = 14 AND winners = \"dalian shide\" AND fourth_placed = \"chongqing longxin\"" }
### INSTRUCTION What is Score, when Partnering is "Alexander Waske", and when Opponents In The Final is "Rafael Nadal Bartolomé Salvá-Vidal"? ### INPUT CREATE TABLE table_name_26 (score VARCHAR, partnering VARCHAR, opponents_in_the_final VARCHAR) ### OUTPUT SELECT score FROM table_name_26 WHERE partnering = "alexander waske" AND opponents_in_the_final = "rafael nadal bartolomé salvá-vidal"
{ "input": "CREATE TABLE table_name_26 (score VARCHAR, partnering VARCHAR, opponents_in_the_final VARCHAR)", "instruction": "What is Score, when Partnering is \"Alexander Waske\", and when Opponents In The Final is \"Rafael Nadal Bartolomé Salvá-Vidal\"?", "output": "SELECT score FROM table_name_26 WHERE partnering = \"alexander waske\" AND opponents_in_the_final = \"rafael nadal bartolomé salvá-vidal\"" }
### INSTRUCTION How many wins were there in the 2000 season in the central division with less than 81 losses? ### INPUT CREATE TABLE table_name_85 (wins INTEGER, losses VARCHAR, division VARCHAR, reds_season VARCHAR) ### OUTPUT SELECT AVG(wins) FROM table_name_85 WHERE division = "central" AND reds_season < 2000 AND losses < 81
{ "input": "CREATE TABLE table_name_85 (wins INTEGER, losses VARCHAR, division VARCHAR, reds_season VARCHAR)", "instruction": "How many wins were there in the 2000 season in the central division with less than 81 losses?", "output": "SELECT AVG(wins) FROM table_name_85 WHERE division = \"central\" AND reds_season < 2000 AND losses < 81" }
### INSTRUCTION How many faculty lines are there in the university that conferred the least number of degrees in year 2001? ### INPUT CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (faculty VARCHAR); CREATE TABLE degrees (Id VARCHAR) ### OUTPUT SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1
{ "input": "CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (faculty VARCHAR); CREATE TABLE degrees (Id VARCHAR)", "instruction": "How many faculty lines are there in the university that conferred the least number of degrees in year 2001?", "output": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1" }
### INSTRUCTION What is the highest total when bronze is less than 1 and gold more than 0? ### INPUT CREATE TABLE table_name_65 (total INTEGER, bronze VARCHAR, gold VARCHAR) ### OUTPUT SELECT MAX(total) FROM table_name_65 WHERE bronze < 1 AND gold > 0
{ "input": "CREATE TABLE table_name_65 (total INTEGER, bronze VARCHAR, gold VARCHAR)", "instruction": "What is the highest total when bronze is less than 1 and gold more than 0?", "output": "SELECT MAX(total) FROM table_name_65 WHERE bronze < 1 AND gold > 0" }
### INSTRUCTION What was the swimsuit score for the one who had a semifinal average of 8.759 (5)? ### INPUT CREATE TABLE table_16323766_3 (swimsuit VARCHAR, semifinal_average VARCHAR) ### OUTPUT SELECT swimsuit FROM table_16323766_3 WHERE semifinal_average = "8.759 (5)"
{ "input": "CREATE TABLE table_16323766_3 (swimsuit VARCHAR, semifinal_average VARCHAR)", "instruction": "What was the swimsuit score for the one who had a semifinal average of 8.759 (5)?", "output": "SELECT swimsuit FROM table_16323766_3 WHERE semifinal_average = \"8.759 (5)\"" }
### INSTRUCTION What was the game edition when they played on the clay (i) surface and the outcome was a winner? ### INPUT CREATE TABLE table_18183850_12 (edition VARCHAR, surface VARCHAR, outcome VARCHAR) ### OUTPUT SELECT edition FROM table_18183850_12 WHERE surface = "Clay (i)" AND outcome = "Winner"
{ "input": "CREATE TABLE table_18183850_12 (edition VARCHAR, surface VARCHAR, outcome VARCHAR)", "instruction": "What was the game edition when they played on the clay (i) surface and the outcome was a winner?", "output": "SELECT edition FROM table_18183850_12 WHERE surface = \"Clay (i)\" AND outcome = \"Winner\"" }
### INSTRUCTION What is the largest decile with a Roll larger than 34, a Gender of coed, and an Authority of state integrated, and an Area of georgetown? ### INPUT CREATE TABLE table_name_47 (decile INTEGER, area VARCHAR, authority VARCHAR, roll VARCHAR, gender VARCHAR) ### OUTPUT SELECT MAX(decile) FROM table_name_47 WHERE roll > 34 AND gender = "coed" AND authority = "state integrated" AND area = "georgetown"
{ "input": "CREATE TABLE table_name_47 (decile INTEGER, area VARCHAR, authority VARCHAR, roll VARCHAR, gender VARCHAR)", "instruction": "What is the largest decile with a Roll larger than 34, a Gender of coed, and an Authority of state integrated, and an Area of georgetown?", "output": "SELECT MAX(decile) FROM table_name_47 WHERE roll > 34 AND gender = \"coed\" AND authority = \"state integrated\" AND area = \"georgetown\"" }
### INSTRUCTION What was the compression ration when the engine was Wasp Jr. T1B2? ### INPUT CREATE TABLE table_1123802_1 (compression_ratio VARCHAR, engine VARCHAR) ### OUTPUT SELECT compression_ratio FROM table_1123802_1 WHERE engine = "Wasp Jr. T1B2"
{ "input": "CREATE TABLE table_1123802_1 (compression_ratio VARCHAR, engine VARCHAR)", "instruction": "What was the compression ration when the engine was Wasp Jr. T1B2?", "output": "SELECT compression_ratio FROM table_1123802_1 WHERE engine = \"Wasp Jr. T1B2\"" }
### INSTRUCTION WHAT IS THE AWAY TEAM WHEN HOME IS LEEDS UNITED? ### INPUT CREATE TABLE table_name_44 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team FROM table_name_44 WHERE home_team = "leeds united"
{ "input": "CREATE TABLE table_name_44 (away_team VARCHAR, home_team VARCHAR)", "instruction": "WHAT IS THE AWAY TEAM WHEN HOME IS LEEDS UNITED?", "output": "SELECT away_team FROM table_name_44 WHERE home_team = \"leeds united\"" }
### INSTRUCTION What is the primary conference of the school that has the lowest acc percent score in the competition? ### INPUT CREATE TABLE basketball_match (school_id VARCHAR, acc_percent VARCHAR); CREATE TABLE university (Primary_conference VARCHAR, school_id VARCHAR) ### OUTPUT SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1
{ "input": "CREATE TABLE basketball_match (school_id VARCHAR, acc_percent VARCHAR); CREATE TABLE university (Primary_conference VARCHAR, school_id VARCHAR)", "instruction": "What is the primary conference of the school that has the lowest acc percent score in the competition?", "output": "SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1" }
### INSTRUCTION What is the lowest Lost for são paulo railway, Points more than 21? ### INPUT CREATE TABLE table_name_46 (lost INTEGER, team VARCHAR, points VARCHAR) ### OUTPUT SELECT MIN(lost) FROM table_name_46 WHERE team = "são paulo railway" AND points > 21
{ "input": "CREATE TABLE table_name_46 (lost INTEGER, team VARCHAR, points VARCHAR)", "instruction": "What is the lowest Lost for são paulo railway, Points more than 21?", "output": "SELECT MIN(lost) FROM table_name_46 WHERE team = \"são paulo railway\" AND points > 21" }
### INSTRUCTION Name the k. r. narayanan values for pondicherry ### INPUT CREATE TABLE table_22897453_1 (kr_narayanan__values_ VARCHAR, states VARCHAR) ### OUTPUT SELECT kr_narayanan__values_ FROM table_22897453_1 WHERE states = "Pondicherry"
{ "input": "CREATE TABLE table_22897453_1 (kr_narayanan__values_ VARCHAR, states VARCHAR)", "instruction": "Name the k. r. narayanan values for pondicherry", "output": "SELECT kr_narayanan__values_ FROM table_22897453_1 WHERE states = \"Pondicherry\"" }
### INSTRUCTION display the department name and number of employees in each of the department. ### INPUT CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR); CREATE TABLE employees (department_id VARCHAR) ### OUTPUT SELECT T2.department_name, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY T2.department_name
{ "input": "CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR); CREATE TABLE employees (department_id VARCHAR)", "instruction": "display the department name and number of employees in each of the department.", "output": "SELECT T2.department_name, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY T2.department_name" }
### INSTRUCTION What is Venue, when Competition is 2010 FIFA World Cup Qualification, when Result is Won, and when Date is 14 June 2008? ### INPUT CREATE TABLE table_name_25 (venue VARCHAR, date VARCHAR, competition VARCHAR, result VARCHAR) ### OUTPUT SELECT venue FROM table_name_25 WHERE competition = "2010 fifa world cup qualification" AND result = "won" AND date = "14 june 2008"
{ "input": "CREATE TABLE table_name_25 (venue VARCHAR, date VARCHAR, competition VARCHAR, result VARCHAR)", "instruction": "What is Venue, when Competition is 2010 FIFA World Cup Qualification, when Result is Won, and when Date is 14 June 2008?", "output": "SELECT venue FROM table_name_25 WHERE competition = \"2010 fifa world cup qualification\" AND result = \"won\" AND date = \"14 june 2008\"" }
### INSTRUCTION WHAT IS THE NAME OF THE MIXED DOUBLES PLAYER WHEN THE WOMENS SINGLE PLAYER IS KAIRI VIILUP? ### INPUT CREATE TABLE table_14903627_1 (mixed_doubles VARCHAR, womens_singles VARCHAR) ### OUTPUT SELECT mixed_doubles FROM table_14903627_1 WHERE womens_singles = "Kairi Viilup"
{ "input": "CREATE TABLE table_14903627_1 (mixed_doubles VARCHAR, womens_singles VARCHAR)", "instruction": "WHAT IS THE NAME OF THE MIXED DOUBLES PLAYER WHEN THE WOMENS SINGLE PLAYER IS KAIRI VIILUP?", "output": "SELECT mixed_doubles FROM table_14903627_1 WHERE womens_singles = \"Kairi Viilup\"" }
### INSTRUCTION Which Pocona Municipality (%) has a Puerto Villarroel Municipality (%) larger than 14.6, and a Pojo Municipality (%) smaller than 88.5? ### INPUT CREATE TABLE table_name_6 (pocona_municipality___percentage_ INTEGER, puerto_villarroel_municipality___percentage_ VARCHAR, pojo_municipality___percentage_ VARCHAR) ### OUTPUT SELECT SUM(pocona_municipality___percentage_) FROM table_name_6 WHERE puerto_villarroel_municipality___percentage_ > 14.6 AND pojo_municipality___percentage_ < 88.5
{ "input": "CREATE TABLE table_name_6 (pocona_municipality___percentage_ INTEGER, puerto_villarroel_municipality___percentage_ VARCHAR, pojo_municipality___percentage_ VARCHAR)", "instruction": "Which Pocona Municipality (%) has a Puerto Villarroel Municipality (%) larger than 14.6, and a Pojo Municipality (%) smaller than 88.5?", "output": "SELECT SUM(pocona_municipality___percentage_) FROM table_name_6 WHERE puerto_villarroel_municipality___percentage_ > 14.6 AND pojo_municipality___percentage_ < 88.5" }
### INSTRUCTION WHERE THE WEEK NUMBER WAS TOP 8, WHAT WAS THE THEME? ### INPUT CREATE TABLE table_15778392_1 (theme VARCHAR, week__number VARCHAR) ### OUTPUT SELECT theme FROM table_15778392_1 WHERE week__number = "Top 8"
{ "input": "CREATE TABLE table_15778392_1 (theme VARCHAR, week__number VARCHAR)", "instruction": "WHERE THE WEEK NUMBER WAS TOP 8, WHAT WAS THE THEME?", "output": "SELECT theme FROM table_15778392_1 WHERE week__number = \"Top 8\"" }
### INSTRUCTION What is the Name of the power station with a Capacity of 25 MW? ### INPUT CREATE TABLE table_name_9 (name VARCHAR, capacity__mw_ VARCHAR) ### OUTPUT SELECT name FROM table_name_9 WHERE capacity__mw_ = 25
{ "input": "CREATE TABLE table_name_9 (name VARCHAR, capacity__mw_ VARCHAR)", "instruction": "What is the Name of the power station with a Capacity of 25 MW?", "output": "SELECT name FROM table_name_9 WHERE capacity__mw_ = 25" }
### INSTRUCTION What year did maggs magnificent mild win a gold medal in the mild and porter category at the siba south east region beer competition? ### INPUT CREATE TABLE table_name_93 (year INTEGER, competition VARCHAR, category VARCHAR, beer_name VARCHAR, prize VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_93 WHERE beer_name = "maggs magnificent mild" AND prize = "gold medal" AND category = "mild and porter" AND competition = "siba south east region beer competition"
{ "input": "CREATE TABLE table_name_93 (year INTEGER, competition VARCHAR, category VARCHAR, beer_name VARCHAR, prize VARCHAR)", "instruction": "What year did maggs magnificent mild win a gold medal in the mild and porter category at the siba south east region beer competition?", "output": "SELECT AVG(year) FROM table_name_93 WHERE beer_name = \"maggs magnificent mild\" AND prize = \"gold medal\" AND category = \"mild and porter\" AND competition = \"siba south east region beer competition\"" }
### INSTRUCTION Which year was the peter jackson classic? ### INPUT CREATE TABLE table_name_36 (year VARCHAR, championship VARCHAR) ### OUTPUT SELECT year FROM table_name_36 WHERE championship = "peter jackson classic"
{ "input": "CREATE TABLE table_name_36 (year VARCHAR, championship VARCHAR)", "instruction": "Which year was the peter jackson classic?", "output": "SELECT year FROM table_name_36 WHERE championship = \"peter jackson classic\"" }
### INSTRUCTION What is the total rank with more than 2 silver and total larger than 10? ### INPUT CREATE TABLE table_name_55 (rank INTEGER, silver VARCHAR, total VARCHAR) ### OUTPUT SELECT SUM(rank) FROM table_name_55 WHERE silver = 2 AND total > 10
{ "input": "CREATE TABLE table_name_55 (rank INTEGER, silver VARCHAR, total VARCHAR)", "instruction": "What is the total rank with more than 2 silver and total larger than 10?", "output": "SELECT SUM(rank) FROM table_name_55 WHERE silver = 2 AND total > 10" }
### INSTRUCTION Which Week has a Game site of oakland-alameda county coliseum, and an Attendance larger than 52,169? ### INPUT CREATE TABLE table_name_71 (week INTEGER, game_site VARCHAR, attendance VARCHAR) ### OUTPUT SELECT MIN(week) FROM table_name_71 WHERE game_site = "oakland-alameda county coliseum" AND attendance > 52 OFFSET 169
{ "input": "CREATE TABLE table_name_71 (week INTEGER, game_site VARCHAR, attendance VARCHAR)", "instruction": "Which Week has a Game site of oakland-alameda county coliseum, and an Attendance larger than 52,169?", "output": "SELECT MIN(week) FROM table_name_71 WHERE game_site = \"oakland-alameda county coliseum\" AND attendance > 52 OFFSET 169" }
### INSTRUCTION WHAT IS THE STROKE COUNT WITH RADICAL OF 生, FRQUENCY SMALLER THAN 22? ### INPUT CREATE TABLE table_name_57 (stroke_count VARCHAR, radical__variants_ VARCHAR, frequency VARCHAR) ### OUTPUT SELECT COUNT(stroke_count) FROM table_name_57 WHERE radical__variants_ = "生" AND frequency < 22
{ "input": "CREATE TABLE table_name_57 (stroke_count VARCHAR, radical__variants_ VARCHAR, frequency VARCHAR)", "instruction": "WHAT IS THE STROKE COUNT WITH RADICAL OF 生, FRQUENCY SMALLER THAN 22?", "output": "SELECT COUNT(stroke_count) FROM table_name_57 WHERE radical__variants_ = \"生\" AND frequency < 22" }
### INSTRUCTION Who was the writer of The Year of the Cat from the BBV? ### INPUT CREATE TABLE table_name_2 (writer VARCHAR, company VARCHAR, title VARCHAR) ### OUTPUT SELECT writer FROM table_name_2 WHERE company = "bbv" AND title = "the year of the cat"
{ "input": "CREATE TABLE table_name_2 (writer VARCHAR, company VARCHAR, title VARCHAR)", "instruction": "Who was the writer of The Year of the Cat from the BBV?", "output": "SELECT writer FROM table_name_2 WHERE company = \"bbv\" AND title = \"the year of the cat\"" }
### INSTRUCTION What is the country with a 66-70-69=205 score? ### INPUT CREATE TABLE table_name_21 (country VARCHAR, score VARCHAR) ### OUTPUT SELECT country FROM table_name_21 WHERE score = 66 - 70 - 69 = 205
{ "input": "CREATE TABLE table_name_21 (country VARCHAR, score VARCHAR)", "instruction": "What is the country with a 66-70-69=205 score?", "output": "SELECT country FROM table_name_21 WHERE score = 66 - 70 - 69 = 205" }
### INSTRUCTION How many gold medals has the club with the most coaches won? ### INPUT CREATE TABLE match_result (club_id VARCHAR, gold VARCHAR); CREATE TABLE coach (club_id VARCHAR) ### OUTPUT SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE match_result (club_id VARCHAR, gold VARCHAR); CREATE TABLE coach (club_id VARCHAR)", "instruction": "How many gold medals has the club with the most coaches won?", "output": "SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What was the decision on october 5? ### INPUT CREATE TABLE table_name_44 (decision VARCHAR, date VARCHAR) ### OUTPUT SELECT decision FROM table_name_44 WHERE date = "october 5"
{ "input": "CREATE TABLE table_name_44 (decision VARCHAR, date VARCHAR)", "instruction": "What was the decision on october 5?", "output": "SELECT decision FROM table_name_44 WHERE date = \"october 5\"" }
### INSTRUCTION Find the first names of all customers that live in Brazil and have an invoice. ### INPUT CREATE TABLE CUSTOMER (FirstName VARCHAR, CustomerId VARCHAR, country VARCHAR); CREATE TABLE INVOICE (CustomerId VARCHAR) ### OUTPUT SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Brazil"
{ "input": "CREATE TABLE CUSTOMER (FirstName VARCHAR, CustomerId VARCHAR, country VARCHAR); CREATE TABLE INVOICE (CustomerId VARCHAR)", "instruction": "Find the first names of all customers that live in Brazil and have an invoice.", "output": "SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Brazil\"" }
### INSTRUCTION What is the Time/Retired value for Driver Johnny Herbert with Constructor Benetton - Renault ### INPUT CREATE TABLE table_name_38 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR) ### OUTPUT SELECT time_retired FROM table_name_38 WHERE constructor = "benetton - renault" AND driver = "johnny herbert"
{ "input": "CREATE TABLE table_name_38 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR)", "instruction": "What is the Time/Retired value for Driver Johnny Herbert with Constructor Benetton - Renault", "output": "SELECT time_retired FROM table_name_38 WHERE constructor = \"benetton - renault\" AND driver = \"johnny herbert\"" }
### INSTRUCTION How many compound names list a chemical class of depsipeptide and a clinical trials β value of 1/7? ### INPUT CREATE TABLE table_12715053_1 (compound_name VARCHAR, chemical_class VARCHAR, clinical_trials_β VARCHAR) ### OUTPUT SELECT COUNT(compound_name) FROM table_12715053_1 WHERE chemical_class = "Depsipeptide" AND clinical_trials_β = "1/7"
{ "input": "CREATE TABLE table_12715053_1 (compound_name VARCHAR, chemical_class VARCHAR, clinical_trials_β VARCHAR)", "instruction": "How many compound names list a chemical class of depsipeptide and a clinical trials β value of 1/7?", "output": "SELECT COUNT(compound_name) FROM table_12715053_1 WHERE chemical_class = \"Depsipeptide\" AND clinical_trials_β = \"1/7\"" }
### INSTRUCTION What are the codes of countries where Spanish is spoken by the largest percentage of people? ### INPUT CREATE TABLE countrylanguage (CountryCode VARCHAR, Percentage INTEGER, LANGUAGE VARCHAR) ### OUTPUT SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode
{ "input": "CREATE TABLE countrylanguage (CountryCode VARCHAR, Percentage INTEGER, LANGUAGE VARCHAR)", "instruction": "What are the codes of countries where Spanish is spoken by the largest percentage of people?", "output": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode" }
### INSTRUCTION Which position had 3 podiums and F/laps of 4? ### INPUT CREATE TABLE table_name_14 (position VARCHAR, podiums VARCHAR, f_laps VARCHAR) ### OUTPUT SELECT position FROM table_name_14 WHERE podiums = "3" AND f_laps = "4"
{ "input": "CREATE TABLE table_name_14 (position VARCHAR, podiums VARCHAR, f_laps VARCHAR)", "instruction": "Which position had 3 podiums and F/laps of 4?", "output": "SELECT position FROM table_name_14 WHERE podiums = \"3\" AND f_laps = \"4\"" }
### INSTRUCTION What is the july average low associated with a january average high of 30.4? ### INPUT CREATE TABLE table_name_28 (july__avg_low_ VARCHAR, january__avg_high_°f_ VARCHAR) ### OUTPUT SELECT COUNT(july__avg_low_) AS °f_ FROM table_name_28 WHERE january__avg_high_°f_ = "30.4"
{ "input": "CREATE TABLE table_name_28 (july__avg_low_ VARCHAR, january__avg_high_°f_ VARCHAR)", "instruction": "What is the july average low associated with a january average high of 30.4?", "output": "SELECT COUNT(july__avg_low_) AS °f_ FROM table_name_28 WHERE january__avg_high_°f_ = \"30.4\"" }
### INSTRUCTION Who built the car that has a Time/Retired of 1:34:12.912? ### INPUT CREATE TABLE table_name_88 (constructor VARCHAR, time_retired VARCHAR) ### OUTPUT SELECT constructor FROM table_name_88 WHERE time_retired = "1:34:12.912"
{ "input": "CREATE TABLE table_name_88 (constructor VARCHAR, time_retired VARCHAR)", "instruction": "Who built the car that has a Time/Retired of 1:34:12.912?", "output": "SELECT constructor FROM table_name_88 WHERE time_retired = \"1:34:12.912\"" }
### INSTRUCTION What time was the kickoff when the miami dolphins were the opponent? ### INPUT CREATE TABLE table_name_31 (kickoff___et__ VARCHAR, opponent VARCHAR) ### OUTPUT SELECT kickoff___et__ FROM table_name_31 WHERE opponent = "miami dolphins"
{ "input": "CREATE TABLE table_name_31 (kickoff___et__ VARCHAR, opponent VARCHAR)", "instruction": "What time was the kickoff when the miami dolphins were the opponent?", "output": "SELECT kickoff___et__ FROM table_name_31 WHERE opponent = \"miami dolphins\"" }
### INSTRUCTION If the establishment is 49319, what is the sales, receipts or shipments maximum amount? ### INPUT CREATE TABLE table_23802822_1 (_receipts VARCHAR, _or_shipments__$1 VARCHAR, sales INTEGER, establishments VARCHAR) ### OUTPUT SELECT MAX(sales), _receipts, _or_shipments__$1, 000 AS _ FROM table_23802822_1 WHERE establishments = 49319
{ "input": "CREATE TABLE table_23802822_1 (_receipts VARCHAR, _or_shipments__$1 VARCHAR, sales INTEGER, establishments VARCHAR)", "instruction": "If the establishment is 49319, what is the sales, receipts or shipments maximum amount?", "output": "SELECT MAX(sales), _receipts, _or_shipments__$1, 000 AS _ FROM table_23802822_1 WHERE establishments = 49319" }
### INSTRUCTION What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings? ### INPUT CREATE TABLE table_22282917_26 (control_site_condition_owner VARCHAR, launch_site_condition_owner VARCHAR) ### OUTPUT SELECT control_site_condition_owner FROM table_22282917_26 WHERE launch_site_condition_owner = "lakefront office buildings"
{ "input": "CREATE TABLE table_22282917_26 (control_site_condition_owner VARCHAR, launch_site_condition_owner VARCHAR)", "instruction": "What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings?", "output": "SELECT control_site_condition_owner FROM table_22282917_26 WHERE launch_site_condition_owner = \"lakefront office buildings\"" }
### INSTRUCTION What is the network that aired Star King prior to 2011? ### INPUT CREATE TABLE table_name_70 (network VARCHAR, year VARCHAR, title VARCHAR) ### OUTPUT SELECT network FROM table_name_70 WHERE year < 2011 AND title = "star king"
{ "input": "CREATE TABLE table_name_70 (network VARCHAR, year VARCHAR, title VARCHAR)", "instruction": "What is the network that aired Star King prior to 2011?", "output": "SELECT network FROM table_name_70 WHERE year < 2011 AND title = \"star king\"" }
### INSTRUCTION What attendance does 1-6 record have? ### INPUT CREATE TABLE table_name_46 (attendance INTEGER, record VARCHAR) ### OUTPUT SELECT SUM(attendance) FROM table_name_46 WHERE record = "1-6"
{ "input": "CREATE TABLE table_name_46 (attendance INTEGER, record VARCHAR)", "instruction": "What attendance does 1-6 record have?", "output": "SELECT SUM(attendance) FROM table_name_46 WHERE record = \"1-6\"" }
### INSTRUCTION Return the name and gender of the staff who was assigned in 2016. ### INPUT CREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (staff_id VARCHAR, date_assigned_from VARCHAR) ### OUTPUT SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE "2016%"
{ "input": "CREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (staff_id VARCHAR, date_assigned_from VARCHAR)", "instruction": "Return the name and gender of the staff who was assigned in 2016.", "output": "SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE \"2016%\"" }
### INSTRUCTION Name the high points for mo williams , lebron james , j.j. hickson (6) ### INPUT CREATE TABLE table_22654073_7 (high_points VARCHAR, high_rebounds VARCHAR) ### OUTPUT SELECT COUNT(high_points) FROM table_22654073_7 WHERE high_rebounds = "Mo Williams , LeBron James , J.J. Hickson (6)"
{ "input": "CREATE TABLE table_22654073_7 (high_points VARCHAR, high_rebounds VARCHAR)", "instruction": "Name the high points for mo williams , lebron james , j.j. hickson (6)", "output": "SELECT COUNT(high_points) FROM table_22654073_7 WHERE high_rebounds = \"Mo Williams , LeBron James , J.J. Hickson (6)\"" }
### INSTRUCTION Name the incumbent for virginia 18 ### INPUT CREATE TABLE table_2668387_18 (incumbent VARCHAR, district VARCHAR) ### OUTPUT SELECT incumbent FROM table_2668387_18 WHERE district = "Virginia 18"
{ "input": "CREATE TABLE table_2668387_18 (incumbent VARCHAR, district VARCHAR)", "instruction": "Name the incumbent for virginia 18", "output": "SELECT incumbent FROM table_2668387_18 WHERE district = \"Virginia 18\"" }
### INSTRUCTION Name the most peak performance for october 2006 - january 2010 ### INPUT CREATE TABLE table_27765443_2 (maximum_peak_performance___teraflops__ VARCHAR, period_of_operation VARCHAR) ### OUTPUT SELECT maximum_peak_performance___teraflops__ FROM table_27765443_2 WHERE period_of_operation = "October 2006 - January 2010"
{ "input": "CREATE TABLE table_27765443_2 (maximum_peak_performance___teraflops__ VARCHAR, period_of_operation VARCHAR)", "instruction": "Name the most peak performance for october 2006 - january 2010", "output": "SELECT maximum_peak_performance___teraflops__ FROM table_27765443_2 WHERE period_of_operation = \"October 2006 - January 2010\"" }
### INSTRUCTION what is the "normalized" transliteration for Roman i ### INPUT CREATE TABLE table_name_9 (roman_equivalent VARCHAR) ### OUTPUT SELECT "normalised" AS _transliteration FROM table_name_9 WHERE roman_equivalent = "i"
{ "input": "CREATE TABLE table_name_9 (roman_equivalent VARCHAR)", "instruction": "what is the \"normalized\" transliteration for Roman i", "output": "SELECT \"normalised\" AS _transliteration FROM table_name_9 WHERE roman_equivalent = \"i\"" }
### INSTRUCTION Which Type has a Date smaller than 1943, and a Builder of alco schenectady, and a Number larger than 822, and Works number of 59867? ### INPUT CREATE TABLE table_name_46 (type VARCHAR, works_number VARCHAR, number VARCHAR, date VARCHAR, builder VARCHAR) ### OUTPUT SELECT type FROM table_name_46 WHERE date < 1943 AND builder = "alco schenectady" AND number > 822 AND works_number = 59867
{ "input": "CREATE TABLE table_name_46 (type VARCHAR, works_number VARCHAR, number VARCHAR, date VARCHAR, builder VARCHAR)", "instruction": "Which Type has a Date smaller than 1943, and a Builder of alco schenectady, and a Number larger than 822, and Works number of 59867?", "output": "SELECT type FROM table_name_46 WHERE date < 1943 AND builder = \"alco schenectady\" AND number > 822 AND works_number = 59867" }
### INSTRUCTION What is the Displacement that has Power of 220kw (299hp) @ 4000, and a year larger than 2002? ### INPUT CREATE TABLE table_name_95 (displacement VARCHAR, year VARCHAR, power VARCHAR) ### OUTPUT SELECT displacement FROM table_name_95 WHERE year > 2002 AND power = "220kw (299hp) @ 4000"
{ "input": "CREATE TABLE table_name_95 (displacement VARCHAR, year VARCHAR, power VARCHAR)", "instruction": "What is the Displacement that has Power of 220kw (299hp) @ 4000, and a year larger than 2002?", "output": "SELECT displacement FROM table_name_95 WHERE year > 2002 AND power = \"220kw (299hp) @ 4000\"" }
### INSTRUCTION How many regions had 153 women prison inmates? ### INPUT CREATE TABLE table_25042332_31 (incarceration_rate_total VARCHAR, prison_inmates_women VARCHAR) ### OUTPUT SELECT COUNT(incarceration_rate_total) FROM table_25042332_31 WHERE prison_inmates_women = 153
{ "input": "CREATE TABLE table_25042332_31 (incarceration_rate_total VARCHAR, prison_inmates_women VARCHAR)", "instruction": "How many regions had 153 women prison inmates?", "output": "SELECT COUNT(incarceration_rate_total) FROM table_25042332_31 WHERE prison_inmates_women = 153" }
### INSTRUCTION What prize money has michelob light challenge of champions as the commercial name? ### INPUT CREATE TABLE table_name_56 (prize_money VARCHAR, commercial_name VARCHAR) ### OUTPUT SELECT prize_money FROM table_name_56 WHERE commercial_name = "michelob light challenge of champions"
{ "input": "CREATE TABLE table_name_56 (prize_money VARCHAR, commercial_name VARCHAR)", "instruction": "What prize money has michelob light challenge of champions as the commercial name?", "output": "SELECT prize_money FROM table_name_56 WHERE commercial_name = \"michelob light challenge of champions\"" }
### INSTRUCTION Find the names of the students who are in the position of striker and got a yes tryout decision. ### INPUT CREATE TABLE tryout (pID VARCHAR, decision VARCHAR, pPos VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR) ### OUTPUT SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker'
{ "input": "CREATE TABLE tryout (pID VARCHAR, decision VARCHAR, pPos VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR)", "instruction": "Find the names of the students who are in the position of striker and got a yes tryout decision.", "output": "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker'" }
### INSTRUCTION Show the locations of schools that have more than 1 player. ### INPUT CREATE TABLE player (School_ID VARCHAR); CREATE TABLE school (Location VARCHAR, School_ID VARCHAR) ### OUTPUT SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1
{ "input": "CREATE TABLE player (School_ID VARCHAR); CREATE TABLE school (Location VARCHAR, School_ID VARCHAR)", "instruction": "Show the locations of schools that have more than 1 player.", "output": "SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1" }
### INSTRUCTION Which Opponent has a Type of tko, and a Round of 2 (6) on 2006-09-20? ### INPUT CREATE TABLE table_name_67 (opponent VARCHAR, date VARCHAR, type VARCHAR, round VARCHAR) ### OUTPUT SELECT opponent FROM table_name_67 WHERE type = "tko" AND round = "2 (6)" AND date = "2006-09-20"
{ "input": "CREATE TABLE table_name_67 (opponent VARCHAR, date VARCHAR, type VARCHAR, round VARCHAR)", "instruction": "Which Opponent has a Type of tko, and a Round of 2 (6) on 2006-09-20?", "output": "SELECT opponent FROM table_name_67 WHERE type = \"tko\" AND round = \"2 (6)\" AND date = \"2006-09-20\"" }
### INSTRUCTION What competition had a Rank-Qualifying of 1st and a ball apparatus? ### INPUT CREATE TABLE table_name_94 (competition_description VARCHAR, rank_qualifying VARCHAR, apparatus VARCHAR) ### OUTPUT SELECT competition_description FROM table_name_94 WHERE rank_qualifying = "1st" AND apparatus = "ball"
{ "input": "CREATE TABLE table_name_94 (competition_description VARCHAR, rank_qualifying VARCHAR, apparatus VARCHAR)", "instruction": "What competition had a Rank-Qualifying of 1st and a ball apparatus?", "output": "SELECT competition_description FROM table_name_94 WHERE rank_qualifying = \"1st\" AND apparatus = \"ball\"" }
### INSTRUCTION Name the sanskrit word and meaning for aquarius ### INPUT CREATE TABLE table_20354_7 (sanskrit_word_and_meaning VARCHAR, zodiac_sign VARCHAR) ### OUTPUT SELECT sanskrit_word_and_meaning FROM table_20354_7 WHERE zodiac_sign = "Aquarius"
{ "input": "CREATE TABLE table_20354_7 (sanskrit_word_and_meaning VARCHAR, zodiac_sign VARCHAR)", "instruction": "Name the sanskrit word and meaning for aquarius", "output": "SELECT sanskrit_word_and_meaning FROM table_20354_7 WHERE zodiac_sign = \"Aquarius\"" }
### INSTRUCTION Which Drawn is the highest one that has an Against larger than 15, and Points smaller than 15, and a Lost smaller than 9? ### INPUT CREATE TABLE table_name_39 (drawn INTEGER, lost VARCHAR, against VARCHAR, points VARCHAR) ### OUTPUT SELECT MAX(drawn) FROM table_name_39 WHERE against > 15 AND points < 15 AND lost < 9
{ "input": "CREATE TABLE table_name_39 (drawn INTEGER, lost VARCHAR, against VARCHAR, points VARCHAR)", "instruction": "Which Drawn is the highest one that has an Against larger than 15, and Points smaller than 15, and a Lost smaller than 9?", "output": "SELECT MAX(drawn) FROM table_name_39 WHERE against > 15 AND points < 15 AND lost < 9" }
### INSTRUCTION What is the serial number of the pilot car that is black, has a pilot car number larger than 2, and an engine number of 1008? ### INPUT CREATE TABLE table_name_71 (serial_no VARCHAR, engine_no VARCHAR, colour VARCHAR, pilot_car_no VARCHAR) ### OUTPUT SELECT serial_no FROM table_name_71 WHERE colour = "black" AND pilot_car_no > 2 AND engine_no = 1008
{ "input": "CREATE TABLE table_name_71 (serial_no VARCHAR, engine_no VARCHAR, colour VARCHAR, pilot_car_no VARCHAR)", "instruction": "What is the serial number of the pilot car that is black, has a pilot car number larger than 2, and an engine number of 1008?", "output": "SELECT serial_no FROM table_name_71 WHERE colour = \"black\" AND pilot_car_no > 2 AND engine_no = 1008" }
### INSTRUCTION What was the manner of depature of the manager with a date of appointment on 23 November 2008? ### INPUT CREATE TABLE table_name_9 (manner_of_departure VARCHAR, date_of_appointment VARCHAR) ### OUTPUT SELECT manner_of_departure FROM table_name_9 WHERE date_of_appointment = "23 november 2008"
{ "input": "CREATE TABLE table_name_9 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)", "instruction": "What was the manner of depature of the manager with a date of appointment on 23 November 2008?", "output": "SELECT manner_of_departure FROM table_name_9 WHERE date_of_appointment = \"23 november 2008\"" }
### INSTRUCTION What was the score of the match against roger federer on April 3, 2006? ### INPUT CREATE TABLE table_name_44 (score VARCHAR, opponent VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_44 WHERE opponent = "roger federer" AND date = "april 3, 2006"
{ "input": "CREATE TABLE table_name_44 (score VARCHAR, opponent VARCHAR, date VARCHAR)", "instruction": "What was the score of the match against roger federer on April 3, 2006?", "output": "SELECT score FROM table_name_44 WHERE opponent = \"roger federer\" AND date = \"april 3, 2006\"" }
### INSTRUCTION What is detail of the student who registered the most number of courses? ### INPUT CREATE TABLE students (student_details VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR) ### OUTPUT SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE students (student_details VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR)", "instruction": "What is detail of the student who registered the most number of courses?", "output": "SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What was the outcome when the final score was 7–6(9), 7–6(1)? ### INPUT CREATE TABLE table_2199290_2 (outcome VARCHAR, score_in_the_final VARCHAR) ### OUTPUT SELECT outcome FROM table_2199290_2 WHERE score_in_the_final = "7–6(9), 7–6(1)"
{ "input": "CREATE TABLE table_2199290_2 (outcome VARCHAR, score_in_the_final VARCHAR)", "instruction": "What was the outcome when the final score was 7–6(9), 7–6(1)?", "output": "SELECT outcome FROM table_2199290_2 WHERE score_in_the_final = \"7–6(9), 7–6(1)\"" }
### INSTRUCTION Name the least number for production code for 3abc21 ### INPUT CREATE TABLE table_23289934_1 (no_in_series INTEGER, production_code VARCHAR) ### OUTPUT SELECT MIN(no_in_series) FROM table_23289934_1 WHERE production_code = "3ABC21"
{ "input": "CREATE TABLE table_23289934_1 (no_in_series INTEGER, production_code VARCHAR)", "instruction": "Name the least number for production code for 3abc21", "output": "SELECT MIN(no_in_series) FROM table_23289934_1 WHERE production_code = \"3ABC21\"" }
### INSTRUCTION Who directed the movie when John Wayne played the role of John Travers? ### INPUT CREATE TABLE table_name_54 (director VARCHAR, role VARCHAR) ### OUTPUT SELECT director FROM table_name_54 WHERE role = "john travers"
{ "input": "CREATE TABLE table_name_54 (director VARCHAR, role VARCHAR)", "instruction": "Who directed the movie when John Wayne played the role of John Travers?", "output": "SELECT director FROM table_name_54 WHERE role = \"john travers\"" }
### INSTRUCTION Which player had a position of t1 and played in the united states? ### INPUT CREATE TABLE table_name_49 (player VARCHAR, place VARCHAR, country VARCHAR) ### OUTPUT SELECT player FROM table_name_49 WHERE place = "t1" AND country = "united states"
{ "input": "CREATE TABLE table_name_49 (player VARCHAR, place VARCHAR, country VARCHAR)", "instruction": "Which player had a position of t1 and played in the united states?", "output": "SELECT player FROM table_name_49 WHERE place = \"t1\" AND country = \"united states\"" }
### INSTRUCTION What was the rank when then time was 7:52.53? ### INPUT CREATE TABLE table_name_10 (rank INTEGER, time VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_10 WHERE time = "7:52.53"
{ "input": "CREATE TABLE table_name_10 (rank INTEGER, time VARCHAR)", "instruction": "What was the rank when then time was 7:52.53?", "output": "SELECT MIN(rank) FROM table_name_10 WHERE time = \"7:52.53\"" }
### INSTRUCTION What is the league cup apps when the league goals are greater than 3, there are 30 (2) total apps, and has a position of mf? ### INPUT CREATE TABLE table_name_13 (league_cup_apps VARCHAR, total_apps VARCHAR, position VARCHAR, league_goals VARCHAR) ### OUTPUT SELECT league_cup_apps FROM table_name_13 WHERE position = "mf" AND league_goals > 3 AND total_apps = "30 (2)"
{ "input": "CREATE TABLE table_name_13 (league_cup_apps VARCHAR, total_apps VARCHAR, position VARCHAR, league_goals VARCHAR)", "instruction": "What is the league cup apps when the league goals are greater than 3, there are 30 (2) total apps, and has a position of mf?", "output": "SELECT league_cup_apps FROM table_name_13 WHERE position = \"mf\" AND league_goals > 3 AND total_apps = \"30 (2)\"" }
### INSTRUCTION Who is the player with the pick# 80? ### INPUT CREATE TABLE table_22402438_7 (player VARCHAR, pick__number VARCHAR) ### OUTPUT SELECT player FROM table_22402438_7 WHERE pick__number = 80
{ "input": "CREATE TABLE table_22402438_7 (player VARCHAR, pick__number VARCHAR)", "instruction": "Who is the player with the pick# 80?", "output": "SELECT player FROM table_22402438_7 WHERE pick__number = 80" }
### INSTRUCTION What is the highest attendace of the game with the Lakers as the home team? ### INPUT CREATE TABLE table_name_56 (attendance INTEGER, home VARCHAR) ### OUTPUT SELECT MAX(attendance) FROM table_name_56 WHERE home = "lakers"
{ "input": "CREATE TABLE table_name_56 (attendance INTEGER, home VARCHAR)", "instruction": "What is the highest attendace of the game with the Lakers as the home team?", "output": "SELECT MAX(attendance) FROM table_name_56 WHERE home = \"lakers\"" }
### INSTRUCTION What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence? ### INPUT CREATE TABLE table_name_49 (pick__number VARCHAR, college_junior_club_team VARCHAR, position VARCHAR) ### OUTPUT SELECT pick__number FROM table_name_49 WHERE college_junior_club_team = "edmonton oil kings (wchl)" AND position = "defence"
{ "input": "CREATE TABLE table_name_49 (pick__number VARCHAR, college_junior_club_team VARCHAR, position VARCHAR)", "instruction": "What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence?", "output": "SELECT pick__number FROM table_name_49 WHERE college_junior_club_team = \"edmonton oil kings (wchl)\" AND position = \"defence\"" }
### INSTRUCTION How many department stores does the store chain South have? ### INPUT CREATE TABLE department_stores (dept_store_chain_id VARCHAR); CREATE TABLE department_store_chain (dept_store_chain_id VARCHAR, dept_store_chain_name VARCHAR) ### OUTPUT SELECT COUNT(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = "South"
{ "input": "CREATE TABLE department_stores (dept_store_chain_id VARCHAR); CREATE TABLE department_store_chain (dept_store_chain_id VARCHAR, dept_store_chain_name VARCHAR)", "instruction": "How many department stores does the store chain South have?", "output": "SELECT COUNT(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = \"South\"" }
### INSTRUCTION When tim brasil brokers are the minor sponsors who is the kit manufacturer? ### INPUT CREATE TABLE table_187239_1 (kit_manufacturer VARCHAR, minor_sponsors VARCHAR) ### OUTPUT SELECT kit_manufacturer FROM table_187239_1 WHERE minor_sponsors = "Tim Brasil Brokers"
{ "input": "CREATE TABLE table_187239_1 (kit_manufacturer VARCHAR, minor_sponsors VARCHAR)", "instruction": "When tim brasil brokers are the minor sponsors who is the kit manufacturer?", "output": "SELECT kit_manufacturer FROM table_187239_1 WHERE minor_sponsors = \"Tim Brasil Brokers\"" }
### INSTRUCTION Find the details of all the distinct customers who have orders with status "On Road". ### INPUT CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR) ### OUTPUT SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road"
{ "input": "CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR)", "instruction": "Find the details of all the distinct customers who have orders with status \"On Road\".", "output": "SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\"" }
### INSTRUCTION What is the average year that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france with ### INPUT CREATE TABLE table_name_22 (year INTEGER, result VARCHAR, extra VARCHAR, tournament VARCHAR, venue VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_22 WHERE tournament = "world cross country championships" AND venue = "st etienne, france" AND extra = "team competition" AND result = "8th"
{ "input": "CREATE TABLE table_name_22 (year INTEGER, result VARCHAR, extra VARCHAR, tournament VARCHAR, venue VARCHAR)", "instruction": "What is the average year that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france with", "output": "SELECT AVG(year) FROM table_name_22 WHERE tournament = \"world cross country championships\" AND venue = \"st etienne, france\" AND extra = \"team competition\" AND result = \"8th\"" }
### INSTRUCTION What is the BBC 2 rank when BBC 1 is 1st rank and the total viewing is 9,840,000? ### INPUT CREATE TABLE table_name_2 (bbc_two_rank VARCHAR, bbc_one_rank VARCHAR, bbc_one_total_viewing VARCHAR) ### OUTPUT SELECT bbc_two_rank FROM table_name_2 WHERE bbc_one_rank = "1st" AND bbc_one_total_viewing = "9,840,000"
{ "input": "CREATE TABLE table_name_2 (bbc_two_rank VARCHAR, bbc_one_rank VARCHAR, bbc_one_total_viewing VARCHAR)", "instruction": "What is the BBC 2 rank when BBC 1 is 1st rank and the total viewing is 9,840,000?", "output": "SELECT bbc_two_rank FROM table_name_2 WHERE bbc_one_rank = \"1st\" AND bbc_one_total_viewing = \"9,840,000\"" }
### INSTRUCTION How many teams does Lee Sorochan play for? ### INPUT CREATE TABLE table_2781227_2 (college_junior_club_team VARCHAR, player VARCHAR) ### OUTPUT SELECT COUNT(college_junior_club_team) FROM table_2781227_2 WHERE player = "Lee Sorochan"
{ "input": "CREATE TABLE table_2781227_2 (college_junior_club_team VARCHAR, player VARCHAR)", "instruction": "How many teams does Lee Sorochan play for?", "output": "SELECT COUNT(college_junior_club_team) FROM table_2781227_2 WHERE player = \"Lee Sorochan\"" }
### INSTRUCTION find the total market rate of the furnitures that have the top 2 market shares. ### INPUT CREATE TABLE furniture (market_rate INTEGER) ### OUTPUT SELECT SUM(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2
{ "input": "CREATE TABLE furniture (market_rate INTEGER)", "instruction": "find the total market rate of the furnitures that have the top 2 market shares.", "output": "SELECT SUM(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2" }
### INSTRUCTION What is the IHSAA class for the team located in Middlebury, IN? ### INPUT CREATE TABLE table_name_95 (ihsaa_class VARCHAR, location VARCHAR) ### OUTPUT SELECT ihsaa_class FROM table_name_95 WHERE location = "middlebury, in"
{ "input": "CREATE TABLE table_name_95 (ihsaa_class VARCHAR, location VARCHAR)", "instruction": "What is the IHSAA class for the team located in Middlebury, IN?", "output": "SELECT ihsaa_class FROM table_name_95 WHERE location = \"middlebury, in\"" }
### INSTRUCTION What is the surface of the match on July 5, 2009? ### INPUT CREATE TABLE table_name_95 (surface VARCHAR, date VARCHAR) ### OUTPUT SELECT surface FROM table_name_95 WHERE date = "july 5, 2009"
{ "input": "CREATE TABLE table_name_95 (surface VARCHAR, date VARCHAR)", "instruction": "What is the surface of the match on July 5, 2009?", "output": "SELECT surface FROM table_name_95 WHERE date = \"july 5, 2009\"" }
### INSTRUCTION What's the white of E93 King's Indian Defence when Kasparov was black, moves were greater than 19, and happened before 2000? ### INPUT CREATE TABLE table_name_80 (white VARCHAR, opening VARCHAR, year VARCHAR, moves VARCHAR, black VARCHAR) ### OUTPUT SELECT white FROM table_name_80 WHERE moves > 19 AND black = "kasparov" AND year < 2000 AND opening = "e93 king's indian defence"
{ "input": "CREATE TABLE table_name_80 (white VARCHAR, opening VARCHAR, year VARCHAR, moves VARCHAR, black VARCHAR)", "instruction": "What's the white of E93 King's Indian Defence when Kasparov was black, moves were greater than 19, and happened before 2000?", "output": "SELECT white FROM table_name_80 WHERE moves > 19 AND black = \"kasparov\" AND year < 2000 AND opening = \"e93 king's indian defence\"" }
### INSTRUCTION What is the location and attendance on October 18? ### INPUT CREATE TABLE table_27713030_3 (location_attendance VARCHAR, date VARCHAR) ### OUTPUT SELECT location_attendance FROM table_27713030_3 WHERE date = "October 18"
{ "input": "CREATE TABLE table_27713030_3 (location_attendance VARCHAR, date VARCHAR)", "instruction": "What is the location and attendance on October 18?", "output": "SELECT location_attendance FROM table_27713030_3 WHERE date = \"October 18\"" }
### INSTRUCTION Who is the driver of the team with the crew chief Derrick Finley? ### INPUT CREATE TABLE table_name_16 (driver_s_ VARCHAR, crew_chief VARCHAR) ### OUTPUT SELECT driver_s_ FROM table_name_16 WHERE crew_chief = "derrick finley"
{ "input": "CREATE TABLE table_name_16 (driver_s_ VARCHAR, crew_chief VARCHAR)", "instruction": "Who is the driver of the team with the crew chief Derrick Finley?", "output": "SELECT driver_s_ FROM table_name_16 WHERE crew_chief = \"derrick finley\"" }
### INSTRUCTION What was the total prize money where John Tabatabai was the runner-up? ### INPUT CREATE TABLE table_12454156_1 (prize_money VARCHAR, runner_up VARCHAR) ### OUTPUT SELECT prize_money FROM table_12454156_1 WHERE runner_up = "John Tabatabai"
{ "input": "CREATE TABLE table_12454156_1 (prize_money VARCHAR, runner_up VARCHAR)", "instruction": "What was the total prize money where John Tabatabai was the runner-up?", "output": "SELECT prize_money FROM table_12454156_1 WHERE runner_up = \"John Tabatabai\"" }
### INSTRUCTION What is the number for D. Shulman if C. Abate has 728 (43%) ### INPUT CREATE TABLE table_name_9 (d_shulman VARCHAR, c_abate VARCHAR) ### OUTPUT SELECT d_shulman FROM table_name_9 WHERE c_abate = "728 (43%)"
{ "input": "CREATE TABLE table_name_9 (d_shulman VARCHAR, c_abate VARCHAR)", "instruction": "What is the number for D. Shulman if C. Abate has 728 (43%)", "output": "SELECT d_shulman FROM table_name_9 WHERE c_abate = \"728 (43%)\"" }
### INSTRUCTION Which opponent was played at Forbes Field after week 4? ### INPUT CREATE TABLE table_name_76 (opponent VARCHAR, game_site VARCHAR, week VARCHAR) ### OUTPUT SELECT opponent FROM table_name_76 WHERE game_site = "forbes field" AND week > 4
{ "input": "CREATE TABLE table_name_76 (opponent VARCHAR, game_site VARCHAR, week VARCHAR)", "instruction": "Which opponent was played at Forbes Field after week 4?", "output": "SELECT opponent FROM table_name_76 WHERE game_site = \"forbes field\" AND week > 4" }
### INSTRUCTION What segment A is associated with a Segment D of manual motorcycle transmissions? ### INPUT CREATE TABLE table_name_76 (segment_a VARCHAR, segment_d VARCHAR) ### OUTPUT SELECT segment_a FROM table_name_76 WHERE segment_d = "manual motorcycle transmissions"
{ "input": "CREATE TABLE table_name_76 (segment_a VARCHAR, segment_d VARCHAR)", "instruction": "What segment A is associated with a Segment D of manual motorcycle transmissions?", "output": "SELECT segment_a FROM table_name_76 WHERE segment_d = \"manual motorcycle transmissions\"" }