text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is the Domestic Tournament with Chennai Super Kings Team? ### INPUT CREATE TABLE table_name_42 (domestic_tournament VARCHAR, team VARCHAR) ### OUTPUT SELECT domestic_tournament FROM table_name_42 WHERE team = "chennai super kings"
{ "input": "CREATE TABLE table_name_42 (domestic_tournament VARCHAR, team VARCHAR)", "instruction": "What is the Domestic Tournament with Chennai Super Kings Team?", "output": "SELECT domestic_tournament FROM table_name_42 WHERE team = \"chennai super kings\"" }
### INSTRUCTION How many countries sampled has a world ranking of 33 in 2010 and less than 3 ranking in Latin America? ### INPUT CREATE TABLE table_name_71 (countries_sampled INTEGER, ranking_in_latin_america__2_ VARCHAR, year_of_publication VARCHAR, world_ranking__1_ VARCHAR) ### OUTPUT SELECT SUM(countries_sampled)...
{ "input": "CREATE TABLE table_name_71 (countries_sampled INTEGER, ranking_in_latin_america__2_ VARCHAR, year_of_publication VARCHAR, world_ranking__1_ VARCHAR)", "instruction": "How many countries sampled has a world ranking of 33 in 2010 and less than 3 ranking in Latin America?", "output": "SELECT SUM(countrie...
### INSTRUCTION What is listed for Vistor that has a Game # that is smaller than 67 and has a Home listed as Buffalo? ### INPUT CREATE TABLE table_name_20 (visitor VARCHAR, game__number VARCHAR, home VARCHAR) ### OUTPUT SELECT visitor FROM table_name_20 WHERE game__number < 67 AND home = "buffalo"
{ "input": "CREATE TABLE table_name_20 (visitor VARCHAR, game__number VARCHAR, home VARCHAR)", "instruction": "What is listed for Vistor that has a Game # that is smaller than 67 and has a Home listed as Buffalo?", "output": "SELECT visitor FROM table_name_20 WHERE game__number < 67 AND home = \"buffalo\"" }
### INSTRUCTION If winner is alejandro Valverde and the points Classification is by Erik Zabel, who is the mountain classification? ### INPUT CREATE TABLE table_15059783_1 (mountains_classification VARCHAR, winner VARCHAR, points_classification VARCHAR) ### OUTPUT SELECT mountains_classification FROM table_15059783_1...
{ "input": "CREATE TABLE table_15059783_1 (mountains_classification VARCHAR, winner VARCHAR, points_classification VARCHAR)", "instruction": "If winner is alejandro Valverde and the points Classification is by Erik Zabel, who is the mountain classification?", "output": "SELECT mountains_classification FROM table_...
### INSTRUCTION Who is performer 2 of the episode on 9 April 1993 with Josie Lawrence as performer 4? ### INPUT CREATE TABLE table_name_83 (performer_2 VARCHAR, performer_4 VARCHAR, date VARCHAR) ### OUTPUT SELECT performer_2 FROM table_name_83 WHERE performer_4 = "josie lawrence" AND date = "9 april 1993"
{ "input": "CREATE TABLE table_name_83 (performer_2 VARCHAR, performer_4 VARCHAR, date VARCHAR)", "instruction": "Who is performer 2 of the episode on 9 April 1993 with Josie Lawrence as performer 4?", "output": "SELECT performer_2 FROM table_name_83 WHERE performer_4 = \"josie lawrence\" AND date = \"9 april 199...
### INSTRUCTION Who was the away team at Junction Oval? ### INPUT CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT away_team FROM table_name_63 WHERE venue = "junction oval"
{ "input": "CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR)", "instruction": "Who was the away team at Junction Oval?", "output": "SELECT away_team FROM table_name_63 WHERE venue = \"junction oval\"" }
### INSTRUCTION Which Density (2005) has an Area (km²) of 340086.7, and a Population (2005) smaller than 5926300? ### INPUT CREATE TABLE table_name_25 (density__2005_ INTEGER, area__km²_ VARCHAR, population__2005_ VARCHAR) ### OUTPUT SELECT SUM(density__2005_) FROM table_name_25 WHERE area__km²_ = 340086.7 AND popula...
{ "input": "CREATE TABLE table_name_25 (density__2005_ INTEGER, area__km²_ VARCHAR, population__2005_ VARCHAR)", "instruction": "Which Density (2005) has an Area (km²) of 340086.7, and a Population (2005) smaller than 5926300?", "output": "SELECT SUM(density__2005_) FROM table_name_25 WHERE area__km²_ = 340086.7 ...
### INSTRUCTION Name the number one singles for desvarieux, jacob ### INPUT CREATE TABLE table_27441210_5 (number_one_single_s_ VARCHAR, artist VARCHAR) ### OUTPUT SELECT number_one_single_s_ FROM table_27441210_5 WHERE artist = "Desvarieux, Jacob"
{ "input": "CREATE TABLE table_27441210_5 (number_one_single_s_ VARCHAR, artist VARCHAR)", "instruction": "Name the number one singles for desvarieux, jacob", "output": "SELECT number_one_single_s_ FROM table_27441210_5 WHERE artist = \"Desvarieux, Jacob\"" }
### INSTRUCTION What is the alpha 2 code for the area also known as NZL? ### INPUT CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, alpha_3_code VARCHAR) ### OUTPUT SELECT alpha_2_code FROM table_222771_1 WHERE alpha_3_code = "NZL"
{ "input": "CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, alpha_3_code VARCHAR)", "instruction": "What is the alpha 2 code for the area also known as NZL?", "output": "SELECT alpha_2_code FROM table_222771_1 WHERE alpha_3_code = \"NZL\"" }
### INSTRUCTION Which team had the least number of attendances in home games in 1980? ### INPUT CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR) ### OUTPUT SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br ...
{ "input": "CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)", "instruction": "Which team had the least number of attendances in home games in 1980?", "output": "SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.t...
### INSTRUCTION What is the evening gown score of the contestant from the District of Columbia with preliminaries smaller than 8.647? ### INPUT CREATE TABLE table_name_79 (evening_gown VARCHAR, preliminaries VARCHAR, state VARCHAR) ### OUTPUT SELECT COUNT(evening_gown) FROM table_name_79 WHERE preliminaries < 8.647 A...
{ "input": "CREATE TABLE table_name_79 (evening_gown VARCHAR, preliminaries VARCHAR, state VARCHAR)", "instruction": "What is the evening gown score of the contestant from the District of Columbia with preliminaries smaller than 8.647?", "output": "SELECT COUNT(evening_gown) FROM table_name_79 WHERE preliminaries...
### INSTRUCTION When Jean Alesi had laps less than 24, what was his highest grid? ### INPUT CREATE TABLE table_name_75 (grid INTEGER, driver VARCHAR, laps VARCHAR) ### OUTPUT SELECT MAX(grid) FROM table_name_75 WHERE driver = "jean alesi" AND laps < 24
{ "input": "CREATE TABLE table_name_75 (grid INTEGER, driver VARCHAR, laps VARCHAR)", "instruction": "When Jean Alesi had laps less than 24, what was his highest grid?", "output": "SELECT MAX(grid) FROM table_name_75 WHERE driver = \"jean alesi\" AND laps < 24" }
### INSTRUCTION How many events did clay win? ### INPUT CREATE TABLE table_name_42 (COUNT VARCHAR, winner VARCHAR) ### OUTPUT SELECT NOT COUNT AS event FROM table_name_42 WHERE winner = "clay"
{ "input": "CREATE TABLE table_name_42 (COUNT VARCHAR, winner VARCHAR)", "instruction": "How many events did clay win?", "output": "SELECT NOT COUNT AS event FROM table_name_42 WHERE winner = \"clay\"" }
### INSTRUCTION What is the to par for Gene Littler? ### INPUT CREATE TABLE table_name_42 (to_par VARCHAR, player VARCHAR) ### OUTPUT SELECT to_par FROM table_name_42 WHERE player = "gene littler"
{ "input": "CREATE TABLE table_name_42 (to_par VARCHAR, player VARCHAR)", "instruction": "What is the to par for Gene Littler?", "output": "SELECT to_par FROM table_name_42 WHERE player = \"gene littler\"" }
### INSTRUCTION Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks. ### INPUT CREATE TABLE phone_market (Phone_ID VARCHAR, Num_of_stock INTEGER); CREATE TABLE phone (Name VARCHAR, Phone_ID VARCHAR) ### OUTPUT SELECT T2.Name FROM phone_market A...
{ "input": "CREATE TABLE phone_market (Phone_ID VARCHAR, Num_of_stock INTEGER); CREATE TABLE phone (Name VARCHAR, Phone_ID VARCHAR)", "instruction": "Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks.", "output": "SELECT T2.Name FROM phon...
### INSTRUCTION What is the elevator when elevated is May 16, 1288, and cardinalatial title shows Deacon of S. Adriano? ### INPUT CREATE TABLE table_name_21 (elevator VARCHAR, elevated VARCHAR, cardinalatial_title VARCHAR) ### OUTPUT SELECT elevator FROM table_name_21 WHERE elevated = "may 16, 1288" AND cardinalatial...
{ "input": "CREATE TABLE table_name_21 (elevator VARCHAR, elevated VARCHAR, cardinalatial_title VARCHAR)", "instruction": "What is the elevator when elevated is May 16, 1288, and cardinalatial title shows Deacon of S. Adriano?", "output": "SELECT elevator FROM table_name_21 WHERE elevated = \"may 16, 1288\" AND c...
### INSTRUCTION What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'? ### INPUT CREATE TABLE grants (grant_amount VARCHAR, grant_end_date INTEGER); CREATE TABLE Grants (grant_amount VARCHAR, grant_id VARCHAR); CREA...
{ "input": "CREATE TABLE grants (grant_amount VARCHAR, grant_end_date INTEGER); CREATE TABLE Grants (grant_amount VARCHAR, grant_id VARCHAR); CREATE TABLE Documents (grant_id VARCHAR, sent_date INTEGER)", "instruction": "What are the distinct grant amount for the grants where the documents were sent before '1986-08...
### INSTRUCTION what is the most amount of cattle where they live in british columbia ### INPUT CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR) ### OUTPUT SELECT MAX(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "British Columbia"
{ "input": "CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR)", "instruction": "what is the most amount of cattle where they live in british columbia", "output": "SELECT MAX(number_of_dairy_cows) FROM table_29012710_1 WHERE province = \"British Columbia\"" }
### INSTRUCTION When westcott is in division one how many leagues are in division 5? ### INPUT CREATE TABLE table_24575253_4 (division_five VARCHAR, division_one VARCHAR) ### OUTPUT SELECT COUNT(division_five) FROM table_24575253_4 WHERE division_one = "Westcott"
{ "input": "CREATE TABLE table_24575253_4 (division_five VARCHAR, division_one VARCHAR)", "instruction": "When westcott is in division one how many leagues are in division 5?", "output": "SELECT COUNT(division_five) FROM table_24575253_4 WHERE division_one = \"Westcott\"" }
### INSTRUCTION What was the length of the jumper representing FIN, in meters? ### INPUT CREATE TABLE table_14407512_4 (nationality VARCHAR) ### OUTPUT SELECT 1 AS st__m_ FROM table_14407512_4 WHERE nationality = "FIN"
{ "input": "CREATE TABLE table_14407512_4 (nationality VARCHAR)", "instruction": "What was the length of the jumper representing FIN, in meters?", "output": "SELECT 1 AS st__m_ FROM table_14407512_4 WHERE nationality = \"FIN\"" }
### INSTRUCTION Name the population % of eu for greece ### INPUT CREATE TABLE table_1606824_1 (population__percentage_of_eu VARCHAR, member_state VARCHAR) ### OUTPUT SELECT population__percentage_of_eu FROM table_1606824_1 WHERE member_state = "Greece"
{ "input": "CREATE TABLE table_1606824_1 (population__percentage_of_eu VARCHAR, member_state VARCHAR)", "instruction": "Name the population % of eu for greece", "output": "SELECT population__percentage_of_eu FROM table_1606824_1 WHERE member_state = \"Greece\"" }
### INSTRUCTION What is the ERP W number where the frequency is smaller than 91.1? ### INPUT CREATE TABLE table_name_6 (erp_w INTEGER, frequency_mhz INTEGER) ### OUTPUT SELECT MAX(erp_w) FROM table_name_6 WHERE frequency_mhz < 91.1
{ "input": "CREATE TABLE table_name_6 (erp_w INTEGER, frequency_mhz INTEGER)", "instruction": "What is the ERP W number where the frequency is smaller than 91.1?", "output": "SELECT MAX(erp_w) FROM table_name_6 WHERE frequency_mhz < 91.1" }
### INSTRUCTION When relay is the station type and 5kw is the power kw what is the branding? ### INPUT CREATE TABLE table_23394920_1 (branding VARCHAR, power_kw VARCHAR, station_type VARCHAR) ### OUTPUT SELECT branding FROM table_23394920_1 WHERE power_kw = "5kW" AND station_type = "Relay"
{ "input": "CREATE TABLE table_23394920_1 (branding VARCHAR, power_kw VARCHAR, station_type VARCHAR)", "instruction": "When relay is the station type and 5kw is the power kw what is the branding?", "output": "SELECT branding FROM table_23394920_1 WHERE power_kw = \"5kW\" AND station_type = \"Relay\"" }
### INSTRUCTION Name the pole position for 8 september ### INPUT CREATE TABLE table_name_35 (pole_position VARCHAR, date VARCHAR) ### OUTPUT SELECT pole_position FROM table_name_35 WHERE date = "8 september"
{ "input": "CREATE TABLE table_name_35 (pole_position VARCHAR, date VARCHAR)", "instruction": "Name the pole position for 8 september", "output": "SELECT pole_position FROM table_name_35 WHERE date = \"8 september\"" }
### INSTRUCTION For upper Arlington, what was the median household income? ### INPUT CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, place VARCHAR) ### OUTPUT SELECT median_house__hold_income FROM table_1840495_2 WHERE place = "Upper Arlington"
{ "input": "CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, place VARCHAR)", "instruction": "For upper Arlington, what was the median household income?", "output": "SELECT median_house__hold_income FROM table_1840495_2 WHERE place = \"Upper Arlington\"" }
### INSTRUCTION who is the constructor when the grid is more than 23 and the driver is piercarlo ghinzani? ### INPUT CREATE TABLE table_name_66 (constructor VARCHAR, grid VARCHAR, driver VARCHAR) ### OUTPUT SELECT constructor FROM table_name_66 WHERE grid > 23 AND driver = "piercarlo ghinzani"
{ "input": "CREATE TABLE table_name_66 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)", "instruction": "who is the constructor when the grid is more than 23 and the driver is piercarlo ghinzani?", "output": "SELECT constructor FROM table_name_66 WHERE grid > 23 AND driver = \"piercarlo ghinzani\"" }
### INSTRUCTION What is the highest Population that has a Median household income of $32,902 with a number of households less than 11,125 ### INPUT CREATE TABLE table_name_34 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR) ### OUTPUT SELECT MAX(population) FROM table_name_34 WHERE ...
{ "input": "CREATE TABLE table_name_34 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR)", "instruction": "What is the highest Population that has a Median household income of $32,902 with a number of households less than 11,125", "output": "SELECT MAX(population) FROM table_name...
### INSTRUCTION What is the highest col in m of the puncak jaya (carstensz pyramid) peak, which is ranked lower than 7 and has a prominence less than 4,884 m? ### INPUT CREATE TABLE table_name_91 (col__m_ INTEGER, prominence__m_ VARCHAR, rank VARCHAR, peak VARCHAR) ### OUTPUT SELECT MAX(col__m_) FROM table_name_91 WH...
{ "input": "CREATE TABLE table_name_91 (col__m_ INTEGER, prominence__m_ VARCHAR, rank VARCHAR, peak VARCHAR)", "instruction": "What is the highest col in m of the puncak jaya (carstensz pyramid) peak, which is ranked lower than 7 and has a prominence less than 4,884 m?", "output": "SELECT MAX(col__m_) FROM table_...
### INSTRUCTION What is the name of the product with the color description 'yellow'? ### INPUT CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_name VARCHAR, color_code VARCHAR) ### OUTPUT SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.col...
{ "input": "CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_name VARCHAR, color_code VARCHAR)", "instruction": "What is the name of the product with the color description 'yellow'?", "output": "SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2...
### INSTRUCTION Which Combination classification has Points classification of daniele bennati, and a Team classification of quick step? ### INPUT CREATE TABLE table_name_34 (combination_classification VARCHAR, points_classification VARCHAR, team_classification VARCHAR) ### OUTPUT SELECT combination_classification FRO...
{ "input": "CREATE TABLE table_name_34 (combination_classification VARCHAR, points_classification VARCHAR, team_classification VARCHAR)", "instruction": "Which Combination classification has Points classification of daniele bennati, and a Team classification of quick step?", "output": "SELECT combination_classifi...
### INSTRUCTION What is the number of departments in Division "AS"? ### INPUT CREATE TABLE DEPARTMENT (Division VARCHAR) ### OUTPUT SELECT COUNT(*) FROM DEPARTMENT WHERE Division = "AS"
{ "input": "CREATE TABLE DEPARTMENT (Division VARCHAR)", "instruction": "What is the number of departments in Division \"AS\"?", "output": "SELECT COUNT(*) FROM DEPARTMENT WHERE Division = \"AS\"" }
### INSTRUCTION What was the number of nominations for natalia raskokoha? ### INPUT CREATE TABLE table_10236830_1 (nomination VARCHAR, actors_name VARCHAR) ### OUTPUT SELECT COUNT(nomination) FROM table_10236830_1 WHERE actors_name = "Natalia Raskokoha"
{ "input": "CREATE TABLE table_10236830_1 (nomination VARCHAR, actors_name VARCHAR)", "instruction": "What was the number of nominations for natalia raskokoha?", "output": "SELECT COUNT(nomination) FROM table_10236830_1 WHERE actors_name = \"Natalia Raskokoha\"" }
### INSTRUCTION Show names for all aircraft with at least two flights. ### INPUT CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Flight (aid VARCHAR) ### OUTPUT SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Flight (aid VARCHAR)", "instruction": "Show names for all aircraft with at least two flights.", "output": "SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING COUNT(*) >= 2" }
### INSTRUCTION How many losses did Notre Dame have in 1904? ### INPUT CREATE TABLE table_name_43 (losses INTEGER, years VARCHAR) ### OUTPUT SELECT AVG(losses) FROM table_name_43 WHERE years = "1904"
{ "input": "CREATE TABLE table_name_43 (losses INTEGER, years VARCHAR)", "instruction": "How many losses did Notre Dame have in 1904?", "output": "SELECT AVG(losses) FROM table_name_43 WHERE years = \"1904\"" }
### INSTRUCTION What was round of 64 of the singles event when the result of round 16 was did not advance and the athlete was Iveta Benešová? ### INPUT CREATE TABLE table_17289604_38 (round_of_64 VARCHAR, athlete VARCHAR, event VARCHAR, round_of_16 VARCHAR) ### OUTPUT SELECT round_of_64 FROM table_17289604_38 WHERE e...
{ "input": "CREATE TABLE table_17289604_38 (round_of_64 VARCHAR, athlete VARCHAR, event VARCHAR, round_of_16 VARCHAR)", "instruction": "What was round of 64 of the singles event when the result of round 16 was did not advance and the athlete was Iveta Benešová?", "output": "SELECT round_of_64 FROM table_17289604_...
### INSTRUCTION Which film title used in nomination has vinterkyss as the original title? ### INPUT CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) ### OUTPUT SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE original_title = "Vinterkyss"
{ "input": "CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)", "instruction": "Which film title used in nomination has vinterkyss as the original title?", "output": "SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE original_title = \"Vinterkyss\"" }
### INSTRUCTION Who was the manager for the team with captain Neil Redfearn? ### INPUT CREATE TABLE table_name_24 (manager_1 VARCHAR, captain VARCHAR) ### OUTPUT SELECT manager_1 FROM table_name_24 WHERE captain = "neil redfearn"
{ "input": "CREATE TABLE table_name_24 (manager_1 VARCHAR, captain VARCHAR)", "instruction": "Who was the manager for the team with captain Neil Redfearn?", "output": "SELECT manager_1 FROM table_name_24 WHERE captain = \"neil redfearn\"" }
### INSTRUCTION What is the Enrollment for the Coyotes Founded in 1891? ### INPUT CREATE TABLE table_name_34 (enrollment VARCHAR, founded VARCHAR, team_nickname VARCHAR) ### OUTPUT SELECT COUNT(enrollment) FROM table_name_34 WHERE founded = 1891 AND team_nickname = "coyotes"
{ "input": "CREATE TABLE table_name_34 (enrollment VARCHAR, founded VARCHAR, team_nickname VARCHAR)", "instruction": "What is the Enrollment for the Coyotes Founded in 1891?", "output": "SELECT COUNT(enrollment) FROM table_name_34 WHERE founded = 1891 AND team_nickname = \"coyotes\"" }
### INSTRUCTION What is the average number of 2nd place finishes for racers active in the year 2000 and more than 0 titles? ### INPUT ### OUTPUT SELECT AVG(_2nd_place) FROM table_name_16 WHERE years_active = "2000" AND titles > 0
{ "input": "", "instruction": "What is the average number of 2nd place finishes for racers active in the year 2000 and more than 0 titles?", "output": "SELECT AVG(_2nd_place) FROM table_name_16 WHERE years_active = \"2000\" AND titles > 0" }
### INSTRUCTION Who was in third place when Guy Sebastian was the winning mentor and Andrew Wishart was the runner-up? ### INPUT CREATE TABLE table_name_59 (third_place VARCHAR, winning_mentor VARCHAR, runner_up VARCHAR) ### OUTPUT SELECT third_place FROM table_name_59 WHERE winning_mentor = "guy sebastian" AND runne...
{ "input": "CREATE TABLE table_name_59 (third_place VARCHAR, winning_mentor VARCHAR, runner_up VARCHAR)", "instruction": "Who was in third place when Guy Sebastian was the winning mentor and Andrew Wishart was the runner-up?", "output": "SELECT third_place FROM table_name_59 WHERE winning_mentor = \"guy sebastian...
### INSTRUCTION Which School has an Enrollment larger than 264, and a County of 46 la porte? ### INPUT CREATE TABLE table_name_52 (school VARCHAR, enrollment VARCHAR, county VARCHAR) ### OUTPUT SELECT school FROM table_name_52 WHERE enrollment > 264 AND county = "46 la porte"
{ "input": "CREATE TABLE table_name_52 (school VARCHAR, enrollment VARCHAR, county VARCHAR)", "instruction": "Which School has an Enrollment larger than 264, and a County of 46 la porte?", "output": "SELECT school FROM table_name_52 WHERE enrollment > 264 AND county = \"46 la porte\"" }
### INSTRUCTION What is the lowest 1st prize for florida tournaments and a Score of 200 (-16)? ### INPUT ### OUTPUT SELECT MIN(*) AS lowest_1st_prize FROM table_name_65 WHERE location = "florida" AND score = "200 (-16)"
{ "input": "", "instruction": "What is the lowest 1st prize for florida tournaments and a Score of 200 (-16)?", "output": "SELECT MIN(*) AS lowest_1st_prize FROM table_name_65 WHERE location = \"florida\" AND score = \"200 (-16)\"" }
### INSTRUCTION What is the semi-final dual television commentator status of the year with Pierre Tchernia as the grand final television commentator and an unknown spokesperson? ### INPUT CREATE TABLE table_name_96 (semi_final_dual_television_commentator VARCHAR, grand_final_television_commentator VARCHAR, spokesperso...
{ "input": "CREATE TABLE table_name_96 (semi_final_dual_television_commentator VARCHAR, grand_final_television_commentator VARCHAR, spokesperson VARCHAR)", "instruction": "What is the semi-final dual television commentator status of the year with Pierre Tchernia as the grand final television commentator and an unkn...
### INSTRUCTION Find the number of stores in each city. ### INPUT CREATE TABLE district (headquartered_city VARCHAR, district_id VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR); CREATE TABLE store (store_id VARCHAR) ### OUTPUT SELECT t3.headquartered_city, COUNT(*) FROM store AS t1 JOIN ...
{ "input": "CREATE TABLE district (headquartered_city VARCHAR, district_id VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR); CREATE TABLE store (store_id VARCHAR)", "instruction": "Find the number of stores in each city.", "output": "SELECT t3.headquartered_city, COUNT(*) FROM store A...
### INSTRUCTION Show the name and theme for all concerts and the number of singers in each concert. ### INPUT CREATE TABLE singer_in_concert (concert_id VARCHAR); CREATE TABLE concert (concert_name VARCHAR, theme VARCHAR, concert_id VARCHAR) ### OUTPUT SELECT T2.concert_name, T2.theme, COUNT(*) FROM singer_in_concert...
{ "input": "CREATE TABLE singer_in_concert (concert_id VARCHAR); CREATE TABLE concert (concert_name VARCHAR, theme VARCHAR, concert_id VARCHAR)", "instruction": "Show the name and theme for all concerts and the number of singers in each concert.", "output": "SELECT T2.concert_name, T2.theme, COUNT(*) FROM singer_...
### INSTRUCTION What is Score, when Place is "T8", and when Player is "Orville Moody"? ### INPUT CREATE TABLE table_name_40 (score VARCHAR, place VARCHAR, player VARCHAR) ### OUTPUT SELECT score FROM table_name_40 WHERE place = "t8" AND player = "orville moody"
{ "input": "CREATE TABLE table_name_40 (score VARCHAR, place VARCHAR, player VARCHAR)", "instruction": "What is Score, when Place is \"T8\", and when Player is \"Orville Moody\"?", "output": "SELECT score FROM table_name_40 WHERE place = \"t8\" AND player = \"orville moody\"" }
### INSTRUCTION How many viewers in millions for episode number 38? ### INPUT CREATE TABLE table_2602958_3 (us_viewers__million_ VARCHAR, no VARCHAR) ### OUTPUT SELECT us_viewers__million_ FROM table_2602958_3 WHERE no = 38
{ "input": "CREATE TABLE table_2602958_3 (us_viewers__million_ VARCHAR, no VARCHAR)", "instruction": "How many viewers in millions for episode number 38?", "output": "SELECT us_viewers__million_ FROM table_2602958_3 WHERE no = 38" }
### INSTRUCTION What is the original air date of # 6? ### INPUT CREATE TABLE table_27547668_2 (original_airdate VARCHAR, _number VARCHAR) ### OUTPUT SELECT original_airdate FROM table_27547668_2 WHERE _number = 6
{ "input": "CREATE TABLE table_27547668_2 (original_airdate VARCHAR, _number VARCHAR)", "instruction": "What is the original air date of # 6?", "output": "SELECT original_airdate FROM table_27547668_2 WHERE _number = 6" }
### INSTRUCTION What is the largest Area (km²) for Deed number of 21352022 with a Population of more than 184? ### INPUT CREATE TABLE table_name_29 (area__km²_ INTEGER, deed_number VARCHAR, population VARCHAR) ### OUTPUT SELECT MAX(area__km²_) FROM table_name_29 WHERE deed_number = "21352022" AND population > 184
{ "input": "CREATE TABLE table_name_29 (area__km²_ INTEGER, deed_number VARCHAR, population VARCHAR)", "instruction": "What is the largest Area (km²) for Deed number of 21352022 with a Population of more than 184?", "output": "SELECT MAX(area__km²_) FROM table_name_29 WHERE deed_number = \"21352022\" AND populati...
### INSTRUCTION What is the winning span in the country of England with the name of paul casey? ### INPUT CREATE TABLE table_1953516_1 (winning_span VARCHAR, country VARCHAR, name VARCHAR) ### OUTPUT SELECT winning_span FROM table_1953516_1 WHERE country = "England" AND name = "Paul Casey"
{ "input": "CREATE TABLE table_1953516_1 (winning_span VARCHAR, country VARCHAR, name VARCHAR)", "instruction": "What is the winning span in the country of England with the name of paul casey?", "output": "SELECT winning_span FROM table_1953516_1 WHERE country = \"England\" AND name = \"Paul Casey\"" }
### INSTRUCTION Which service has a hindi language, general genre and zee tv network? ### INPUT CREATE TABLE table_name_95 (service VARCHAR, network VARCHAR, language VARCHAR, genre VARCHAR) ### OUTPUT SELECT service FROM table_name_95 WHERE language = "hindi" AND genre = "general" AND network = "zee tv"
{ "input": "CREATE TABLE table_name_95 (service VARCHAR, network VARCHAR, language VARCHAR, genre VARCHAR)", "instruction": "Which service has a hindi language, general genre and zee tv network?", "output": "SELECT service FROM table_name_95 WHERE language = \"hindi\" AND genre = \"general\" AND network = \"zee t...
### INSTRUCTION What are the average points with a Chassis of zakspeed 881? ### INPUT CREATE TABLE table_name_40 (points INTEGER, chassis VARCHAR) ### OUTPUT SELECT AVG(points) FROM table_name_40 WHERE chassis = "zakspeed 881"
{ "input": "CREATE TABLE table_name_40 (points INTEGER, chassis VARCHAR)", "instruction": "What are the average points with a Chassis of zakspeed 881?", "output": "SELECT AVG(points) FROM table_name_40 WHERE chassis = \"zakspeed 881\"" }
### INSTRUCTION Who was the home team on October 28 when the new england patriots were the visitors? ### INPUT CREATE TABLE table_name_34 (designated_home VARCHAR, date VARCHAR, designated_visitors VARCHAR) ### OUTPUT SELECT designated_home FROM table_name_34 WHERE date = "october 28" AND designated_visitors = "new e...
{ "input": "CREATE TABLE table_name_34 (designated_home VARCHAR, date VARCHAR, designated_visitors VARCHAR)", "instruction": "Who was the home team on October 28 when the new england patriots were the visitors?", "output": "SELECT designated_home FROM table_name_34 WHERE date = \"october 28\" AND designated_visit...
### INSTRUCTION Which language is the most popular on the Asian continent? ### INPUT CREATE TABLE country (Code VARCHAR, Continent VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR) ### OUTPUT SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHER...
{ "input": "CREATE TABLE country (Code VARCHAR, Continent VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)", "instruction": "Which language is the most popular on the Asian continent?", "output": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.Countr...
### INSTRUCTION What date has 11 as the tie no.? ### INPUT CREATE TABLE table_name_48 (date VARCHAR, tie_no VARCHAR) ### OUTPUT SELECT date FROM table_name_48 WHERE tie_no = "11"
{ "input": "CREATE TABLE table_name_48 (date VARCHAR, tie_no VARCHAR)", "instruction": "What date has 11 as the tie no.?", "output": "SELECT date FROM table_name_48 WHERE tie_no = \"11\"" }
### INSTRUCTION What was the Candlelight Records Catalog of Candle053tin format? ### INPUT CREATE TABLE table_name_93 (format VARCHAR, label VARCHAR, catalog VARCHAR) ### OUTPUT SELECT format FROM table_name_93 WHERE label = "candlelight records" AND catalog = "candle053tin"
{ "input": "CREATE TABLE table_name_93 (format VARCHAR, label VARCHAR, catalog VARCHAR)", "instruction": "What was the Candlelight Records Catalog of Candle053tin format?", "output": "SELECT format FROM table_name_93 WHERE label = \"candlelight records\" AND catalog = \"candle053tin\"" }
### INSTRUCTION In which state is the city of knoxville? ### INPUT CREATE TABLE table_name_81 (state VARCHAR, city VARCHAR) ### OUTPUT SELECT state FROM table_name_81 WHERE city = "knoxville"
{ "input": "CREATE TABLE table_name_81 (state VARCHAR, city VARCHAR)", "instruction": "In which state is the city of knoxville?", "output": "SELECT state FROM table_name_81 WHERE city = \"knoxville\"" }
### INSTRUCTION Which competition has a result of 2-0 in Ferreiras with an assist/pass by Casey Nogueira? ### INPUT CREATE TABLE table_name_85 (competition VARCHAR, assist_pass VARCHAR, result VARCHAR, location VARCHAR) ### OUTPUT SELECT competition FROM table_name_85 WHERE result = "2-0" AND location = "ferreiras" A...
{ "input": "CREATE TABLE table_name_85 (competition VARCHAR, assist_pass VARCHAR, result VARCHAR, location VARCHAR)", "instruction": "Which competition has a result of 2-0 in Ferreiras with an assist/pass by Casey Nogueira?", "output": "SELECT competition FROM table_name_85 WHERE result = \"2-0\" AND location = \...
### INSTRUCTION Which lead had a season of 2009-10? ### INPUT CREATE TABLE table_name_40 (lead VARCHAR, season VARCHAR) ### OUTPUT SELECT lead FROM table_name_40 WHERE season = "2009-10"
{ "input": "CREATE TABLE table_name_40 (lead VARCHAR, season VARCHAR)", "instruction": "Which lead had a season of 2009-10?", "output": "SELECT lead FROM table_name_40 WHERE season = \"2009-10\"" }
### INSTRUCTION Which is the highest total at rank 6, bronze 2, and gold larger than 0? ### INPUT CREATE TABLE table_name_74 (total INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR) ### OUTPUT SELECT MAX(total) FROM table_name_74 WHERE rank = 6 AND bronze = 2 AND gold > 0
{ "input": "CREATE TABLE table_name_74 (total INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR)", "instruction": "Which is the highest total at rank 6, bronze 2, and gold larger than 0?", "output": "SELECT MAX(total) FROM table_name_74 WHERE rank = 6 AND bronze = 2 AND gold > 0" }
### INSTRUCTION What is the record on December 11? ### INPUT CREATE TABLE table_name_77 (record VARCHAR, date VARCHAR) ### OUTPUT SELECT record FROM table_name_77 WHERE date = "december 11"
{ "input": "CREATE TABLE table_name_77 (record VARCHAR, date VARCHAR)", "instruction": "What is the record on December 11?", "output": "SELECT record FROM table_name_77 WHERE date = \"december 11\"" }
### INSTRUCTION What is the highest number of losses associated with 2 matches played, a first game after 1997, and more than 0 draws? ### INPUT CREATE TABLE table_name_37 (lost INTEGER, drawn VARCHAR, played VARCHAR, first_game VARCHAR) ### OUTPUT SELECT MAX(lost) FROM table_name_37 WHERE played = 2 AND first_game >...
{ "input": "CREATE TABLE table_name_37 (lost INTEGER, drawn VARCHAR, played VARCHAR, first_game VARCHAR)", "instruction": "What is the highest number of losses associated with 2 matches played, a first game after 1997, and more than 0 draws?", "output": "SELECT MAX(lost) FROM table_name_37 WHERE played = 2 AND fi...
### INSTRUCTION Show the prices of the products named "Dining" or "Trading Policy". ### INPUT CREATE TABLE Products (Product_Price VARCHAR, Product_Name VARCHAR) ### OUTPUT SELECT Product_Price FROM Products WHERE Product_Name = "Dining" OR Product_Name = "Trading Policy"
{ "input": "CREATE TABLE Products (Product_Price VARCHAR, Product_Name VARCHAR)", "instruction": "Show the prices of the products named \"Dining\" or \"Trading Policy\".", "output": "SELECT Product_Price FROM Products WHERE Product_Name = \"Dining\" OR Product_Name = \"Trading Policy\"" }
### INSTRUCTION what is the record when marc gasol (8) had the high rebounds? ### INPUT CREATE TABLE table_name_23 (record VARCHAR, high_rebounds VARCHAR) ### OUTPUT SELECT record FROM table_name_23 WHERE high_rebounds = "marc gasol (8)"
{ "input": "CREATE TABLE table_name_23 (record VARCHAR, high_rebounds VARCHAR)", "instruction": "what is the record when marc gasol (8) had the high rebounds?", "output": "SELECT record FROM table_name_23 WHERE high_rebounds = \"marc gasol (8)\"" }
### INSTRUCTION In what City/State did John Bowe win at Phillip Island Grand Prix Circuit? ### INPUT CREATE TABLE table_name_12 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR) ### OUTPUT SELECT city___state FROM table_name_12 WHERE winner = "john bowe" AND circuit = "phillip island grand prix circuit"
{ "input": "CREATE TABLE table_name_12 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR)", "instruction": "In what City/State did John Bowe win at Phillip Island Grand Prix Circuit?", "output": "SELECT city___state FROM table_name_12 WHERE winner = \"john bowe\" AND circuit = \"phillip island grand prix cir...
### INSTRUCTION display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a ’T’. ### INPUT CREATE TABLE employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, department_id VARCHAR) ### OUTPUT SELECT employee_id, f...
{ "input": "CREATE TABLE employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, department_id VARCHAR)", "instruction": "display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a ’T’.", "output": "SELECT empl...
### INSTRUCTION How many position does Teodor Salparov play on? ### INPUT CREATE TABLE table_14038363_1 (position VARCHAR, player VARCHAR) ### OUTPUT SELECT COUNT(position) FROM table_14038363_1 WHERE player = "Teodor Salparov"
{ "input": "CREATE TABLE table_14038363_1 (position VARCHAR, player VARCHAR)", "instruction": "How many position does Teodor Salparov play on? ", "output": "SELECT COUNT(position) FROM table_14038363_1 WHERE player = \"Teodor Salparov\"" }
### INSTRUCTION which round is u.s. open cup division semifinals ### INPUT CREATE TABLE table_1046170_5 (us_open_cup VARCHAR, playoffs VARCHAR) ### OUTPUT SELECT us_open_cup FROM table_1046170_5 WHERE playoffs = "division Semifinals"
{ "input": "CREATE TABLE table_1046170_5 (us_open_cup VARCHAR, playoffs VARCHAR)", "instruction": "which round is u.s. open cup division semifinals", "output": "SELECT us_open_cup FROM table_1046170_5 WHERE playoffs = \"division Semifinals\"" }
### INSTRUCTION What is Result, when Year is 1948, and when Date is November 7? ### INPUT CREATE TABLE table_name_31 (result VARCHAR, year VARCHAR, date VARCHAR) ### OUTPUT SELECT result FROM table_name_31 WHERE year = 1948 AND date = "november 7"
{ "input": "CREATE TABLE table_name_31 (result VARCHAR, year VARCHAR, date VARCHAR)", "instruction": "What is Result, when Year is 1948, and when Date is November 7?", "output": "SELECT result FROM table_name_31 WHERE year = 1948 AND date = \"november 7\"" }
### INSTRUCTION Name the number of first elected for john smith ### INPUT CREATE TABLE table_2668387_18 (first_elected VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT COUNT(first_elected) FROM table_2668387_18 WHERE incumbent = "John Smith"
{ "input": "CREATE TABLE table_2668387_18 (first_elected VARCHAR, incumbent VARCHAR)", "instruction": "Name the number of first elected for john smith", "output": "SELECT COUNT(first_elected) FROM table_2668387_18 WHERE incumbent = \"John Smith\"" }
### INSTRUCTION What is the structure of the document with the least number of accesses? ### INPUT CREATE TABLE document_structures (document_structure_description VARCHAR, document_structure_code VARCHAR); CREATE TABLE documents (document_structure_code VARCHAR) ### OUTPUT SELECT t2.document_structure_description FR...
{ "input": "CREATE TABLE document_structures (document_structure_description VARCHAR, document_structure_code VARCHAR); CREATE TABLE documents (document_structure_code VARCHAR)", "instruction": "What is the structure of the document with the least number of accesses?", "output": "SELECT t2.document_structure_desc...
### INSTRUCTION Which song was chosen during the audition week? ### INPUT CREATE TABLE table_29756040_1 (song_choice VARCHAR, week__number VARCHAR) ### OUTPUT SELECT song_choice FROM table_29756040_1 WHERE week__number = "Audition"
{ "input": "CREATE TABLE table_29756040_1 (song_choice VARCHAR, week__number VARCHAR)", "instruction": "Which song was chosen during the audition week?", "output": "SELECT song_choice FROM table_29756040_1 WHERE week__number = \"Audition\"" }
### INSTRUCTION Show the names of customers who have at least 2 mailshots with outcome code 'Order'. ### INPUT CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR) ### OUTPUT SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T...
{ "input": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR)", "instruction": "Show the names of customers who have at least 2 mailshots with outcome code 'Order'.", "output": "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN cust...
### INSTRUCTION Which Surface has an Opponent of rafael nadal, and an Event of 2? ### INPUT CREATE TABLE table_name_59 (surface VARCHAR, opponent VARCHAR, event VARCHAR) ### OUTPUT SELECT surface FROM table_name_59 WHERE opponent = "rafael nadal" AND NOT event = 2
{ "input": "CREATE TABLE table_name_59 (surface VARCHAR, opponent VARCHAR, event VARCHAR)", "instruction": "Which Surface has an Opponent of rafael nadal, and an Event of 2?", "output": "SELECT surface FROM table_name_59 WHERE opponent = \"rafael nadal\" AND NOT event = 2" }
### INSTRUCTION What County has a Median Family Income of $79,331? ### INPUT CREATE TABLE table_name_3 (county VARCHAR, median_family_income VARCHAR) ### OUTPUT SELECT county FROM table_name_3 WHERE median_family_income = "$79,331"
{ "input": "CREATE TABLE table_name_3 (county VARCHAR, median_family_income VARCHAR)", "instruction": "What County has a Median Family Income of $79,331?", "output": "SELECT county FROM table_name_3 WHERE median_family_income = \"$79,331\"" }
### INSTRUCTION What is the firefox value with a 22.0% internet explorer? ### INPUT CREATE TABLE table_name_56 (firefox VARCHAR, internet_explorer VARCHAR) ### OUTPUT SELECT firefox FROM table_name_56 WHERE internet_explorer = "22.0%"
{ "input": "CREATE TABLE table_name_56 (firefox VARCHAR, internet_explorer VARCHAR)", "instruction": "What is the firefox value with a 22.0% internet explorer?", "output": "SELECT firefox FROM table_name_56 WHERE internet_explorer = \"22.0%\"" }
### INSTRUCTION Tell me the result for lincoln financial field december 11, 2005 ### INPUT CREATE TABLE table_name_90 (result VARCHAR, venue VARCHAR, date VARCHAR) ### OUTPUT SELECT result FROM table_name_90 WHERE venue = "lincoln financial field" AND date = "december 11, 2005"
{ "input": "CREATE TABLE table_name_90 (result VARCHAR, venue VARCHAR, date VARCHAR)", "instruction": "Tell me the result for lincoln financial field december 11, 2005", "output": "SELECT result FROM table_name_90 WHERE venue = \"lincoln financial field\" AND date = \"december 11, 2005\"" }
### INSTRUCTION What is the Film with winner Jerome Kern in the 19th Ceremony? ### INPUT CREATE TABLE table_name_47 (film VARCHAR, ceremony VARCHAR, name VARCHAR) ### OUTPUT SELECT film FROM table_name_47 WHERE ceremony = "19th" AND name = "jerome kern"
{ "input": "CREATE TABLE table_name_47 (film VARCHAR, ceremony VARCHAR, name VARCHAR)", "instruction": "What is the Film with winner Jerome Kern in the 19th Ceremony?", "output": "SELECT film FROM table_name_47 WHERE ceremony = \"19th\" AND name = \"jerome kern\"" }
### INSTRUCTION What year was the rider with a final position-tour of 88 and less than 11 final position-giros? ### INPUT CREATE TABLE table_name_29 (year INTEGER, final_position___tour VARCHAR, final_position___giro VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_29 WHERE final_position___tour = 88 AND final_po...
{ "input": "CREATE TABLE table_name_29 (year INTEGER, final_position___tour VARCHAR, final_position___giro VARCHAR)", "instruction": "What year was the rider with a final position-tour of 88 and less than 11 final position-giros?", "output": "SELECT SUM(year) FROM table_name_29 WHERE final_position___tour = 88 AN...
### INSTRUCTION What is the average position for a driver with less than 54 points and husaberg-bsu as equipment? ### INPUT CREATE TABLE table_name_69 (position INTEGER, points VARCHAR, equipment VARCHAR) ### OUTPUT SELECT AVG(position) FROM table_name_69 WHERE points < 54 AND equipment = "husaberg-bsu"
{ "input": "CREATE TABLE table_name_69 (position INTEGER, points VARCHAR, equipment VARCHAR)", "instruction": "What is the average position for a driver with less than 54 points and husaberg-bsu as equipment?", "output": "SELECT AVG(position) FROM table_name_69 WHERE points < 54 AND equipment = \"husaberg-bsu\"" ...
### INSTRUCTION What is the shortest Time for David Neville when his React time was greater than 0.183? ### INPUT CREATE TABLE table_name_35 (time INTEGER, react VARCHAR, athlete VARCHAR) ### OUTPUT SELECT MIN(time) FROM table_name_35 WHERE react > 0.183 AND athlete = "david neville"
{ "input": "CREATE TABLE table_name_35 (time INTEGER, react VARCHAR, athlete VARCHAR)", "instruction": "What is the shortest Time for David Neville when his React time was greater than 0.183?", "output": "SELECT MIN(time) FROM table_name_35 WHERE react > 0.183 AND athlete = \"david neville\"" }
### INSTRUCTION Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10. ### INPUT CREATE TABLE endowment (school_id VARCHAR, amount INTEGER); CREATE TABLE budget (school_id VARCHAR, budgeted INTEGER); CREATE TABLE school (school_name VARCHAR, school_id VARCHAR) ### ...
{ "input": "CREATE TABLE endowment (school_id VARCHAR, amount INTEGER); CREATE TABLE budget (school_id VARCHAR, budgeted INTEGER); CREATE TABLE school (school_name VARCHAR, school_id VARCHAR)", "instruction": "Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10...
### INSTRUCTION What are the names of the workshop groups that have bookings with status code "stop"? ### INPUT CREATE TABLE Bookings (Workshop_Group_ID VARCHAR, Status_Code VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Workshop_Group_ID VARCHAR) ### OUTPUT SELECT T2.Store_Name FROM Bookings AS T1...
{ "input": "CREATE TABLE Bookings (Workshop_Group_ID VARCHAR, Status_Code VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Workshop_Group_ID VARCHAR)", "instruction": "What are the names of the workshop groups that have bookings with status code \"stop\"?", "output": "SELECT T2.Store_Name FROM Bo...
### INSTRUCTION What is the average money requested in the episode first aired on 18 January 2005 by the company/product name IV Cam ### INPUT CREATE TABLE table_name_96 (money_requested__ INTEGER, first_aired VARCHAR, company_or_product_name VARCHAR) ### OUTPUT SELECT AVG(money_requested__) AS £_ FROM table_name_96 ...
{ "input": "CREATE TABLE table_name_96 (money_requested__ INTEGER, first_aired VARCHAR, company_or_product_name VARCHAR)", "instruction": "What is the average money requested in the episode first aired on 18 January 2005 by the company/product name IV Cam", "output": "SELECT AVG(money_requested__) AS £_ FROM tabl...
### INSTRUCTION How many championships have there been with Steffi Graf? ### INPUT CREATE TABLE table_22858557_1 (championship VARCHAR, opponent_in_final VARCHAR) ### OUTPUT SELECT championship FROM table_22858557_1 WHERE opponent_in_final = "Steffi Graf"
{ "input": "CREATE TABLE table_22858557_1 (championship VARCHAR, opponent_in_final VARCHAR)", "instruction": "How many championships have there been with Steffi Graf?", "output": "SELECT championship FROM table_22858557_1 WHERE opponent_in_final = \"Steffi Graf\"" }
### INSTRUCTION Name the team which has high rebounds of smith (10) ### INPUT CREATE TABLE table_name_96 (team VARCHAR, high_rebounds VARCHAR) ### OUTPUT SELECT team FROM table_name_96 WHERE high_rebounds = "smith (10)"
{ "input": "CREATE TABLE table_name_96 (team VARCHAR, high_rebounds VARCHAR)", "instruction": "Name the team which has high rebounds of smith (10)", "output": "SELECT team FROM table_name_96 WHERE high_rebounds = \"smith (10)\"" }
### INSTRUCTION When Peter Sagan won the youth classification and Thomas Rabou won the most corageous, who won the sprint classification? ### INPUT CREATE TABLE table_25055040_22 (sprint_classification VARCHAR, youth_classification VARCHAR, most_courageous VARCHAR) ### OUTPUT SELECT sprint_classification FROM table_2...
{ "input": "CREATE TABLE table_25055040_22 (sprint_classification VARCHAR, youth_classification VARCHAR, most_courageous VARCHAR)", "instruction": "When Peter Sagan won the youth classification and Thomas Rabou won the most corageous, who won the sprint classification?", "output": "SELECT sprint_classification FR...
### INSTRUCTION how many district with candidates being eliot l. engel (d) 85.2% martin richman (r) 14.8% ### INPUT CREATE TABLE table_1341549_33 (district VARCHAR, candidates VARCHAR) ### OUTPUT SELECT COUNT(district) FROM table_1341549_33 WHERE candidates = "Eliot L. Engel (D) 85.2% Martin Richman (R) 14.8%"
{ "input": "CREATE TABLE table_1341549_33 (district VARCHAR, candidates VARCHAR)", "instruction": " how many district with candidates being eliot l. engel (d) 85.2% martin richman (r) 14.8%", "output": "SELECT COUNT(district) FROM table_1341549_33 WHERE candidates = \"Eliot L. Engel (D) 85.2% Martin Richman (R) 1...
### INSTRUCTION What was the startup year for the Jackpine Mine (ph 2) project with an albian sands operator? ### INPUT CREATE TABLE table_name_18 (year_startup VARCHAR, operator VARCHAR, project_name VARCHAR) ### OUTPUT SELECT year_startup FROM table_name_18 WHERE operator = "albian sands" AND project_name = "jackpi...
{ "input": "CREATE TABLE table_name_18 (year_startup VARCHAR, operator VARCHAR, project_name VARCHAR)", "instruction": "What was the startup year for the Jackpine Mine (ph 2) project with an albian sands operator?", "output": "SELECT year_startup FROM table_name_18 WHERE operator = \"albian sands\" AND project_na...
### INSTRUCTION What is the biggest administrative panel with a nominated by the Taoiseach greater than 3 and an argricultural panel of 5, plust a cultural and educational panel larger than 2? ### INPUT CREATE TABLE table_name_37 (administrative_panel INTEGER, cultural_and_educational_panel VARCHAR, nominated_by_the_t...
{ "input": "CREATE TABLE table_name_37 (administrative_panel INTEGER, cultural_and_educational_panel VARCHAR, nominated_by_the_taoiseach VARCHAR, agricultural_panel VARCHAR)", "instruction": "What is the biggest administrative panel with a nominated by the Taoiseach greater than 3 and an argricultural panel of 5, p...
### INSTRUCTION When the score in the final is 3–6, 6–4, 3–6, 4–6, who are all the opponents in the final? ### INPUT CREATE TABLE table_26202847_6 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR) ### OUTPUT SELECT opponent_in_the_final FROM table_26202847_6 WHERE score_in_the_final = "3–6, 6–4, 3–6, 4–6"
{ "input": "CREATE TABLE table_26202847_6 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)", "instruction": "When the score in the final is 3–6, 6–4, 3–6, 4–6, who are all the opponents in the final?", "output": "SELECT opponent_in_the_final FROM table_26202847_6 WHERE score_in_the_final = \"3–6, 6–4,...
### INSTRUCTION How many students does LORIA ONDERSMA teaches? ### INPUT CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR) ### OUTPUT SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "LORIA" AND ...
{ "input": "CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)", "instruction": "How many students does LORIA ONDERSMA teaches?", "output": "SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"...
### INSTRUCTION What is the mpg-uk combined with an mpg-uk urban (cold) greater than 26.6, a m5 transmission, a diesel fuel type, and an engine capacity less than 1560? ### INPUT CREATE TABLE table_name_89 (mpg_uk_combined VARCHAR, engine_capacity VARCHAR, fuel_type VARCHAR, mpg_uk_urban__cold_ VARCHAR, transmission V...
{ "input": "CREATE TABLE table_name_89 (mpg_uk_combined VARCHAR, engine_capacity VARCHAR, fuel_type VARCHAR, mpg_uk_urban__cold_ VARCHAR, transmission VARCHAR)", "instruction": "What is the mpg-uk combined with an mpg-uk urban (cold) greater than 26.6, a m5 transmission, a diesel fuel type, and an engine capacity l...
### INSTRUCTION Which Lane has a Rank larger than 3, and a Time larger than 45.63, and a Reaction smaller than 0.28800000000000003, and an Athlete of geiner mosquera? ### INPUT CREATE TABLE table_name_60 (lane INTEGER, athlete VARCHAR, react VARCHAR, rank VARCHAR, time VARCHAR) ### OUTPUT SELECT MAX(lane) FROM table_...
{ "input": "CREATE TABLE table_name_60 (lane INTEGER, athlete VARCHAR, react VARCHAR, rank VARCHAR, time VARCHAR)", "instruction": "Which Lane has a Rank larger than 3, and a Time larger than 45.63, and a Reaction smaller than 0.28800000000000003, and an Athlete of geiner mosquera?", "output": "SELECT MAX(lane) F...
### INSTRUCTION What is the verbal noun connected to the participle e-duki? ### INPUT CREATE TABLE table_12784134_1 (verbal_noun VARCHAR, participle VARCHAR) ### OUTPUT SELECT verbal_noun FROM table_12784134_1 WHERE participle = "e-duki"
{ "input": "CREATE TABLE table_12784134_1 (verbal_noun VARCHAR, participle VARCHAR)", "instruction": "What is the verbal noun connected to the participle e-duki?", "output": "SELECT verbal_noun FROM table_12784134_1 WHERE participle = \"e-duki\"" }
### INSTRUCTION Original airdate for #6 with 1.246 viewers? ### INPUT CREATE TABLE table_name_73 (original_airdate VARCHAR, nightly_rank VARCHAR, viewers__millions_ VARCHAR) ### OUTPUT SELECT original_airdate FROM table_name_73 WHERE nightly_rank = "#6" AND viewers__millions_ = 1.246
{ "input": "CREATE TABLE table_name_73 (original_airdate VARCHAR, nightly_rank VARCHAR, viewers__millions_ VARCHAR)", "instruction": "Original airdate for #6 with 1.246 viewers?", "output": "SELECT original_airdate FROM table_name_73 WHERE nightly_rank = \"#6\" AND viewers__millions_ = 1.246" }
### INSTRUCTION Find the types of documents with more than 4 documents. ### INPUT CREATE TABLE documents (document_type_code VARCHAR) ### OUTPUT SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4
{ "input": "CREATE TABLE documents (document_type_code VARCHAR)", "instruction": "Find the types of documents with more than 4 documents.", "output": "SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4" }
### INSTRUCTION What is the total number of Block(s), when Spike is less than 341, when Weight is greater than 82, and when Name is Theodoros Baev? ### INPUT CREATE TABLE table_name_41 (block VARCHAR, name VARCHAR, spike VARCHAR, weight VARCHAR) ### OUTPUT SELECT COUNT(block) FROM table_name_41 WHERE spike < 341 AND ...
{ "input": "CREATE TABLE table_name_41 (block VARCHAR, name VARCHAR, spike VARCHAR, weight VARCHAR)", "instruction": "What is the total number of Block(s), when Spike is less than 341, when Weight is greater than 82, and when Name is Theodoros Baev?", "output": "SELECT COUNT(block) FROM table_name_41 WHERE spike ...
### INSTRUCTION who is the winner when the trofeo fast team is carrera jeans-vagabond in stage 5? ### INPUT CREATE TABLE table_name_55 (winner VARCHAR, trofeo_fast_team VARCHAR, stage VARCHAR) ### OUTPUT SELECT winner FROM table_name_55 WHERE trofeo_fast_team = "carrera jeans-vagabond" AND stage = "5"
{ "input": "CREATE TABLE table_name_55 (winner VARCHAR, trofeo_fast_team VARCHAR, stage VARCHAR)", "instruction": "who is the winner when the trofeo fast team is carrera jeans-vagabond in stage 5?", "output": "SELECT winner FROM table_name_55 WHERE trofeo_fast_team = \"carrera jeans-vagabond\" AND stage = \"5\"" ...
### INSTRUCTION What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday? ### INPUT CREATE TABLE table_18173916_6 (episodes VARCHAR, tuesday VARCHAR) ### OUTPUT SELECT episodes FROM table_18173916_6 WHERE tuesday = "224 Assassin's Creed: Brotherhood Circus Training"
{ "input": "CREATE TABLE table_18173916_6 (episodes VARCHAR, tuesday VARCHAR)", "instruction": "What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?", "output": "SELECT episodes FROM table_18173916_6 WHERE tuesday = \"224 Assassin's Creed: Brotherhood Circus Training\""...