context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_77 (class VARCHAR, laps VARCHAR, year VARCHAR) | SELECT class FROM table_name_77 WHERE laps < 336 AND year = 2004 | What class had fewer than 336 laps in 2004? | <s>[INST]What class had fewer than 336 laps in 2004? Context: CREATE TABLE table_name_77 (class VARCHAR, laps VARCHAR, year VARCHAR)[/INST]SELECT class FROM table_name_77 WHERE laps < 336 AND year = 2004</s> |
CREATE TABLE table_name_35 (popular_votes INTEGER, year VARCHAR, percentage VARCHAR) | SELECT MIN(popular_votes) FROM table_name_35 WHERE year < 1994 AND percentage = "0.96%" | Name the least popular votes for year less than 1994 and percentage of 0.96% | <s>[INST]Name the least popular votes for year less than 1994 and percentage of 0.96% Context: CREATE TABLE table_name_35 (popular_votes INTEGER, year VARCHAR, percentage VARCHAR)[/INST]SELECT MIN(popular_votes) FROM table_name_35 WHERE year < 1994 AND percentage = "0.96%"</s> |
CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_90 WHERE venue = "mcg" | What day did the VFL pay MCG? | <s>[INST]What day did the VFL pay MCG? Context: CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)[/INST]SELECT date FROM table_name_90 WHERE venue = "mcg"</s> |
CREATE TABLE table_name_74 (cpu_speed VARCHAR, type VARCHAR) | SELECT cpu_speed FROM table_name_74 WHERE type = "new plus" | What is the CPU speed(s) of the New Plus type hardware? | <s>[INST]What is the CPU speed(s) of the New Plus type hardware? Context: CREATE TABLE table_name_74 (cpu_speed VARCHAR, type VARCHAR)[/INST]SELECT cpu_speed FROM table_name_74 WHERE type = "new plus"</s> |
CREATE TABLE table_name_78 (surface VARCHAR, opponent VARCHAR) | SELECT surface FROM table_name_78 WHERE opponent = "malek jaziri" | On what Surface was the match against Malek Jaziri played? | <s>[INST]On what Surface was the match against Malek Jaziri played? Context: CREATE TABLE table_name_78 (surface VARCHAR, opponent VARCHAR)[/INST]SELECT surface FROM table_name_78 WHERE opponent = "malek jaziri"</s> |
CREATE TABLE table_name_98 (open_cup VARCHAR, playoffs VARCHAR) | SELECT open_cup FROM table_name_98 WHERE playoffs = "2nd round" | What was the Rampage's status in the Open Cup in the year that they made it to the 2nd round of the playoffs? | <s>[INST]What was the Rampage's status in the Open Cup in the year that they made it to the 2nd round of the playoffs? Context: CREATE TABLE table_name_98 (open_cup VARCHAR, playoffs VARCHAR)[/INST]SELECT open_cup FROM table_name_98 WHERE playoffs = "2nd round"</s> |
CREATE TABLE table_2266976_1 (team VARCHAR, year VARCHAR) | SELECT team FROM table_2266976_1 WHERE year = "2003" | What team competed in 2003? | <s>[INST]What team competed in 2003? Context: CREATE TABLE table_2266976_1 (team VARCHAR, year VARCHAR)[/INST]SELECT team FROM table_2266976_1 WHERE year = "2003"</s> |
CREATE TABLE table_name_59 (leading_scorer VARCHAR, score VARCHAR) | SELECT leading_scorer FROM table_name_59 WHERE score = "89–102" | What is the name of the Leading scorer when the Score was 89–102? | <s>[INST]What is the name of the Leading scorer when the Score was 89–102? Context: CREATE TABLE table_name_59 (leading_scorer VARCHAR, score VARCHAR)[/INST]SELECT leading_scorer FROM table_name_59 WHERE score = "89–102"</s> |
CREATE TABLE table_name_49 (away VARCHAR, home VARCHAR) | SELECT away FROM table_name_49 WHERE home = "deportes savio" | What team was the away team when the Deportes Savio was the home team? | <s>[INST]What team was the away team when the Deportes Savio was the home team? Context: CREATE TABLE table_name_49 (away VARCHAR, home VARCHAR)[/INST]SELECT away FROM table_name_49 WHERE home = "deportes savio"</s> |
CREATE TABLE table_name_22 (visitor VARCHAR, home VARCHAR) | SELECT visitor FROM table_name_22 WHERE home = "seattle" | Who was the visiting team when the home team was Seattle? | <s>[INST]Who was the visiting team when the home team was Seattle? Context: CREATE TABLE table_name_22 (visitor VARCHAR, home VARCHAR)[/INST]SELECT visitor FROM table_name_22 WHERE home = "seattle"</s> |
CREATE TABLE table_name_55 (quantity VARCHAR, class VARCHAR) | SELECT quantity FROM table_name_55 WHERE class = "b v" | What is the quantity of class B V? | <s>[INST]What is the quantity of class B V? Context: CREATE TABLE table_name_55 (quantity VARCHAR, class VARCHAR)[/INST]SELECT quantity FROM table_name_55 WHERE class = "b v"</s> |
CREATE TABLE table_name_95 (max_power_at_rpm VARCHAR, engine_code_s_ VARCHAR) | SELECT max_power_at_rpm FROM table_name_95 WHERE engine_code_s_ = "2e" | What is the maximum power of engine code 2e? | <s>[INST]What is the maximum power of engine code 2e? Context: CREATE TABLE table_name_95 (max_power_at_rpm VARCHAR, engine_code_s_ VARCHAR)[/INST]SELECT max_power_at_rpm FROM table_name_95 WHERE engine_code_s_ = "2e"</s> |
CREATE TABLE table_name_54 (d_46 VARCHAR, d_45 VARCHAR) | SELECT d_46 FROM table_name_54 WHERE d_45 = "r 5" | I want the D 46 for D 45 of r 5 | <s>[INST]I want the D 46 for D 45 of r 5 Context: CREATE TABLE table_name_54 (d_46 VARCHAR, d_45 VARCHAR)[/INST]SELECT d_46 FROM table_name_54 WHERE d_45 = "r 5"</s> |
CREATE TABLE table_name_86 (score VARCHAR, champion VARCHAR, stadium VARCHAR) | SELECT score FROM table_name_86 WHERE champion = "vikings" AND stadium = "namyangju stadium" | What was the score when the Vikings won the championship at Namyangju Stadium? | <s>[INST]What was the score when the Vikings won the championship at Namyangju Stadium? Context: CREATE TABLE table_name_86 (score VARCHAR, champion VARCHAR, stadium VARCHAR)[/INST]SELECT score FROM table_name_86 WHERE champion = "vikings" AND stadium = "namyangju stadium"</s> |
CREATE TABLE table_name_33 (host_team VARCHAR, visiting_team VARCHAR) | SELECT host_team FROM table_name_33 WHERE visiting_team = "miami dolphins" | Who was the host team when the Miami Dolphins were the visiting team? | <s>[INST]Who was the host team when the Miami Dolphins were the visiting team? Context: CREATE TABLE table_name_33 (host_team VARCHAR, visiting_team VARCHAR)[/INST]SELECT host_team FROM table_name_33 WHERE visiting_team = "miami dolphins"</s> |
CREATE TABLE table_name_90 (output VARCHAR, ir_leds VARCHAR) | SELECT output FROM table_name_90 WHERE ir_leds = "no" | What was the output with no IR LEDs? | <s>[INST]What was the output with no IR LEDs? Context: CREATE TABLE table_name_90 (output VARCHAR, ir_leds VARCHAR)[/INST]SELECT output FROM table_name_90 WHERE ir_leds = "no"</s> |
CREATE TABLE table_name_72 (release_date VARCHAR, multi_1 VARCHAR) | SELECT release_date FROM table_name_72 WHERE multi_1 = "10.5×" | When was the release date for technology that has a Multi 1 of 10.5×? | <s>[INST]When was the release date for technology that has a Multi 1 of 10.5×? Context: CREATE TABLE table_name_72 (release_date VARCHAR, multi_1 VARCHAR)[/INST]SELECT release_date FROM table_name_72 WHERE multi_1 = "10.5×"</s> |
CREATE TABLE table_name_92 (quantity_made VARCHAR, class VARCHAR) | SELECT quantity_made FROM table_name_92 WHERE class = "f-7" | What is the Quantity made when class is f-7? | <s>[INST]What is the Quantity made when class is f-7? Context: CREATE TABLE table_name_92 (quantity_made VARCHAR, class VARCHAR)[/INST]SELECT quantity_made FROM table_name_92 WHERE class = "f-7"</s> |
CREATE TABLE table_name_96 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) | SELECT to_par FROM table_name_96 WHERE country = "united states" AND place = "t4" AND player = "arnold palmer" | What is To Par, when Country is "United States", when Place is "T4", and when Player is "Arnold Palmer"? | <s>[INST]What is To Par, when Country is "United States", when Place is "T4", and when Player is "Arnold Palmer"? Context: CREATE TABLE table_name_96 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)[/INST]SELECT to_par FROM table_name_96 WHERE country = "united states" AND place = "t4" AND player = "arnold palmer"</s> |
CREATE TABLE table_2562572_25 (settlement VARCHAR, cyrillic_name_other_names VARCHAR, dominant_religion__2002_ VARCHAR, type VARCHAR) | SELECT settlement FROM table_2562572_25 WHERE dominant_religion__2002_ = "Orthodox Christianity" AND type = "village" AND cyrillic_name_other_names = "Ратково" | When ратково is cyrillic name other names and village is the type and orthodox Christianity is the dominant religion of 2002 what is the settlement? | <s>[INST]When ратково is cyrillic name other names and village is the type and orthodox Christianity is the dominant religion of 2002 what is the settlement? Context: CREATE TABLE table_2562572_25 (settlement VARCHAR, cyrillic_name_other_names VARCHAR, dominant_religion__2002_ VARCHAR, type VARCHAR)[/INST]SELECT settlement FROM table_2562572_25 WHERE dominant_religion__2002_ = "Orthodox Christianity" AND type = "village" AND cyrillic_name_other_names = "Ратково"</s> |
CREATE TABLE table_name_16 (first_us_tour_cast VARCHAR, original_broadway_cast VARCHAR) | SELECT first_us_tour_cast FROM table_name_16 WHERE original_broadway_cast = "sarah bolt" | What shows as the First US Tour Cast when the Original Broadway Cast was Sarah Bolt? | <s>[INST]What shows as the First US Tour Cast when the Original Broadway Cast was Sarah Bolt? Context: CREATE TABLE table_name_16 (first_us_tour_cast VARCHAR, original_broadway_cast VARCHAR)[/INST]SELECT first_us_tour_cast FROM table_name_16 WHERE original_broadway_cast = "sarah bolt"</s> |
CREATE TABLE table_name_87 (position VARCHAR, pick__number VARCHAR) | SELECT position FROM table_name_87 WHERE pick__number = 12 | What position does pick number 12 play? | <s>[INST]What position does pick number 12 play? Context: CREATE TABLE table_name_87 (position VARCHAR, pick__number VARCHAR)[/INST]SELECT position FROM table_name_87 WHERE pick__number = 12</s> |
CREATE TABLE table_2112766_1 (episode VARCHAR, viewers__in_millions_ VARCHAR) | SELECT COUNT(episode) FROM table_2112766_1 WHERE viewers__in_millions_ = "8.4" | how many episode have 8.4 millions viewer. | <s>[INST]how many episode have 8.4 millions viewer. Context: CREATE TABLE table_2112766_1 (episode VARCHAR, viewers__in_millions_ VARCHAR)[/INST]SELECT COUNT(episode) FROM table_2112766_1 WHERE viewers__in_millions_ = "8.4"</s> |
CREATE TABLE table_2818164_7 (title VARCHAR, no_in_series VARCHAR) | SELECT title FROM table_2818164_7 WHERE no_in_series = 147 | Which title has 147 as no. in series? | <s>[INST]Which title has 147 as no. in series? Context: CREATE TABLE table_2818164_7 (title VARCHAR, no_in_series VARCHAR)[/INST]SELECT title FROM table_2818164_7 WHERE no_in_series = 147</s> |
CREATE TABLE table_name_21 (lane VARCHAR, heat VARCHAR, name VARCHAR) | SELECT COUNT(lane) FROM table_name_21 WHERE heat > 2 AND name = "khadevis robinson" | How many lanes was Khadevis Robinson in for heats over 2? | <s>[INST]How many lanes was Khadevis Robinson in for heats over 2? Context: CREATE TABLE table_name_21 (lane VARCHAR, heat VARCHAR, name VARCHAR)[/INST]SELECT COUNT(lane) FROM table_name_21 WHERE heat > 2 AND name = "khadevis robinson"</s> |
CREATE TABLE table_name_17 (lithium VARCHAR, caesium VARCHAR) | SELECT lithium FROM table_name_17 WHERE caesium = "ki (1.7)" | what is the properties of lithium when caesium is ki (1.7)? | <s>[INST]what is the properties of lithium when caesium is ki (1.7)? Context: CREATE TABLE table_name_17 (lithium VARCHAR, caesium VARCHAR)[/INST]SELECT lithium FROM table_name_17 WHERE caesium = "ki (1.7)"</s> |
CREATE TABLE table_name_18 (played INTEGER, first_game INTEGER) | SELECT SUM(played) FROM table_name_18 WHERE first_game < 2005 | What is the number of games played in the season before 2005? | <s>[INST]What is the number of games played in the season before 2005? Context: CREATE TABLE table_name_18 (played INTEGER, first_game INTEGER)[/INST]SELECT SUM(played) FROM table_name_18 WHERE first_game < 2005</s> |
CREATE TABLE table_13812785_5 (high_rebounds VARCHAR, date VARCHAR) | SELECT high_rebounds FROM table_13812785_5 WHERE date = "December 22" | Who was responsible and what was the number for the high rebounds on December 22? | <s>[INST]Who was responsible and what was the number for the high rebounds on December 22? Context: CREATE TABLE table_13812785_5 (high_rebounds VARCHAR, date VARCHAR)[/INST]SELECT high_rebounds FROM table_13812785_5 WHERE date = "December 22"</s> |
CREATE TABLE table_name_51 (gold INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT AVG(gold) FROM table_name_51 WHERE silver < 2 AND nation = "uzbekistan" AND bronze < 4 | What is the average number of golds for nations with less than 2 silver, named uzbekistan, and less than 4 bronze? | <s>[INST]What is the average number of golds for nations with less than 2 silver, named uzbekistan, and less than 4 bronze? Context: CREATE TABLE table_name_51 (gold INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR)[/INST]SELECT AVG(gold) FROM table_name_51 WHERE silver < 2 AND nation = "uzbekistan" AND bronze < 4</s> |
CREATE TABLE table_name_31 (grid INTEGER, driver VARCHAR) | SELECT MAX(grid) FROM table_name_31 WHERE driver = "piers courage" | What is the largest Grid with a Driver of piers courage? | <s>[INST]What is the largest Grid with a Driver of piers courage? Context: CREATE TABLE table_name_31 (grid INTEGER, driver VARCHAR)[/INST]SELECT MAX(grid) FROM table_name_31 WHERE driver = "piers courage"</s> |
CREATE TABLE table_name_80 (tie_no VARCHAR, score VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_80 WHERE score = "1–1" AND home_team = "hull city" | What is the Tie no at the Hull City Home game with a Score of 1–1? | <s>[INST]What is the Tie no at the Hull City Home game with a Score of 1–1? Context: CREATE TABLE table_name_80 (tie_no VARCHAR, score VARCHAR, home_team VARCHAR)[/INST]SELECT tie_no FROM table_name_80 WHERE score = "1–1" AND home_team = "hull city"</s> |
CREATE TABLE table_21790203_1 (result VARCHAR, film_title_used_in_nomination VARCHAR) | SELECT result FROM table_21790203_1 WHERE film_title_used_in_nomination = "Already Famous" | Name the result for already famous | <s>[INST]Name the result for already famous Context: CREATE TABLE table_21790203_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)[/INST]SELECT result FROM table_21790203_1 WHERE film_title_used_in_nomination = "Already Famous"</s> |
CREATE TABLE table_name_69 (year INTEGER, venue VARCHAR) | SELECT MIN(year) FROM table_name_69 WHERE venue = "gothenburg, sweden" | When is the earliest year the venue is in gothenburg, sweden? | <s>[INST]When is the earliest year the venue is in gothenburg, sweden? Context: CREATE TABLE table_name_69 (year INTEGER, venue VARCHAR)[/INST]SELECT MIN(year) FROM table_name_69 WHERE venue = "gothenburg, sweden"</s> |
CREATE TABLE table_1939405_2 (_percentage_2001 VARCHAR, _percentage_2011 VARCHAR, province VARCHAR) | SELECT _percentage_2001 FROM table_1939405_2 WHERE _percentage_2011 = "0.8%" AND province = "Manitoba" | What's the percentage in 2001 in Manitoba where the percentage in 2011 is 0.8%? | <s>[INST]What's the percentage in 2001 in Manitoba where the percentage in 2011 is 0.8%? Context: CREATE TABLE table_1939405_2 (_percentage_2001 VARCHAR, _percentage_2011 VARCHAR, province VARCHAR)[/INST]SELECT _percentage_2001 FROM table_1939405_2 WHERE _percentage_2011 = "0.8%" AND province = "Manitoba"</s> |
CREATE TABLE table_name_20 (current_code VARCHAR, type VARCHAR, years VARCHAR) | SELECT current_code FROM table_name_20 WHERE type = "club trophy" AND years = "1867 only" | What is the current code for the club trophy, in 1867 only? | <s>[INST]What is the current code for the club trophy, in 1867 only? Context: CREATE TABLE table_name_20 (current_code VARCHAR, type VARCHAR, years VARCHAR)[/INST]SELECT current_code FROM table_name_20 WHERE type = "club trophy" AND years = "1867 only"</s> |
CREATE TABLE table_name_26 (rank VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT COUNT(rank) FROM table_name_26 WHERE total > 2 AND bronze < 4 | What number of rank has more than 2 medals in total with less than 4 bronze? | <s>[INST]What number of rank has more than 2 medals in total with less than 4 bronze? Context: CREATE TABLE table_name_26 (rank VARCHAR, total VARCHAR, bronze VARCHAR)[/INST]SELECT COUNT(rank) FROM table_name_26 WHERE total > 2 AND bronze < 4</s> |
CREATE TABLE table_name_9 (date VARCHAR, sub_total VARCHAR) | SELECT date FROM table_name_9 WHERE sub_total = "9:30" | On which day were the subtotal hours 9:30? | <s>[INST]On which day were the subtotal hours 9:30? Context: CREATE TABLE table_name_9 (date VARCHAR, sub_total VARCHAR)[/INST]SELECT date FROM table_name_9 WHERE sub_total = "9:30"</s> |
CREATE TABLE table_261941_1 (enrollment VARCHAR, joined VARCHAR) | SELECT COUNT(enrollment) FROM table_261941_1 WHERE joined = "1931, 1949 1" | How many different items appear in the enrollment column that joined in 1931, 1949 1? | <s>[INST]How many different items appear in the enrollment column that joined in 1931, 1949 1? Context: CREATE TABLE table_261941_1 (enrollment VARCHAR, joined VARCHAR)[/INST]SELECT COUNT(enrollment) FROM table_261941_1 WHERE joined = "1931, 1949 1"</s> |
CREATE TABLE table_name_36 (date VARCHAR, time VARCHAR) | SELECT date FROM table_name_36 WHERE time = "16:24.12" | On what date was the time of 16:24.12 achieved? | <s>[INST]On what date was the time of 16:24.12 achieved? Context: CREATE TABLE table_name_36 (date VARCHAR, time VARCHAR)[/INST]SELECT date FROM table_name_36 WHERE time = "16:24.12"</s> |
CREATE TABLE table_name_34 (points VARCHAR, points_for VARCHAR) | SELECT points FROM table_name_34 WHERE points_for = "381" | Which Points has a Points for of 381? | <s>[INST]Which Points has a Points for of 381? Context: CREATE TABLE table_name_34 (points VARCHAR, points_for VARCHAR)[/INST]SELECT points FROM table_name_34 WHERE points_for = "381"</s> |
CREATE TABLE table_1601027_2 (headphone_model VARCHAR, succeeded_by VARCHAR) | SELECT headphone_model FROM table_1601027_2 WHERE succeeded_by = "SR125" | Name the headphone model for succeeded by sr125 | <s>[INST]Name the headphone model for succeeded by sr125 Context: CREATE TABLE table_1601027_2 (headphone_model VARCHAR, succeeded_by VARCHAR)[/INST]SELECT headphone_model FROM table_1601027_2 WHERE succeeded_by = "SR125"</s> |
CREATE TABLE table_name_89 (bronze VARCHAR, total VARCHAR, silver VARCHAR) | SELECT COUNT(bronze) FROM table_name_89 WHERE total = 4 AND silver = 1 | What is the total number of bronze medals of the nation with 4 total medals and 1 silver? | <s>[INST]What is the total number of bronze medals of the nation with 4 total medals and 1 silver? Context: CREATE TABLE table_name_89 (bronze VARCHAR, total VARCHAR, silver VARCHAR)[/INST]SELECT COUNT(bronze) FROM table_name_89 WHERE total = 4 AND silver = 1</s> |
CREATE TABLE table_name_11 (date VARCHAR, opponent VARCHAR, match VARCHAR, ground VARCHAR) | SELECT date FROM table_name_11 WHERE match < 14 AND ground = "h" AND opponent = "aston villa under 18s" | On what date is there a match lower than 14 with a ground of H and the opponent Aston Villa under 18s? | <s>[INST]On what date is there a match lower than 14 with a ground of H and the opponent Aston Villa under 18s? Context: CREATE TABLE table_name_11 (date VARCHAR, opponent VARCHAR, match VARCHAR, ground VARCHAR)[/INST]SELECT date FROM table_name_11 WHERE match < 14 AND ground = "h" AND opponent = "aston villa under 18s"</s> |
CREATE TABLE table_name_83 (chassis VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR) | SELECT chassis FROM table_name_83 WHERE year < 1956 AND engine = "gordini straight-4" AND points = 3 | Before 1956, what Chassis has Gordini Straight-4 engine with 3 points? | <s>[INST]Before 1956, what Chassis has Gordini Straight-4 engine with 3 points? Context: CREATE TABLE table_name_83 (chassis VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR)[/INST]SELECT chassis FROM table_name_83 WHERE year < 1956 AND engine = "gordini straight-4" AND points = 3</s> |
CREATE TABLE table_2794180_11 (radio_commentator VARCHAR, television_commentator VARCHAR) | SELECT radio_commentator FROM table_2794180_11 WHERE television_commentator = "Jan Gabrielsson" | Who made the comments for radio broadcast when Jan Gabrielsson made them for television broadcast? | <s>[INST]Who made the comments for radio broadcast when Jan Gabrielsson made them for television broadcast? Context: CREATE TABLE table_2794180_11 (radio_commentator VARCHAR, television_commentator VARCHAR)[/INST]SELECT radio_commentator FROM table_2794180_11 WHERE television_commentator = "Jan Gabrielsson"</s> |
CREATE TABLE table_name_89 (heat INTEGER, athlete VARCHAR) | SELECT SUM(heat) FROM table_name_89 WHERE athlete = "anita pistone" | what is the heat when the athlete is anita pistone? | <s>[INST]what is the heat when the athlete is anita pistone? Context: CREATE TABLE table_name_89 (heat INTEGER, athlete VARCHAR)[/INST]SELECT SUM(heat) FROM table_name_89 WHERE athlete = "anita pistone"</s> |
CREATE TABLE phone (Id VARCHAR) | SELECT COUNT(*) FROM phone | How many phones are there? | <s>[INST]How many phones are there? Context: CREATE TABLE phone (Id VARCHAR)[/INST]SELECT COUNT(*) FROM phone</s> |
CREATE TABLE table_name_45 (laps INTEGER, class VARCHAR) | SELECT AVG(laps) FROM table_name_45 WHERE class = "gt" | What are the average laps driven in the GT class? | <s>[INST]What are the average laps driven in the GT class? Context: CREATE TABLE table_name_45 (laps INTEGER, class VARCHAR)[/INST]SELECT AVG(laps) FROM table_name_45 WHERE class = "gt"</s> |
CREATE TABLE table_name_43 (package_option VARCHAR, television_service VARCHAR, hdtv VARCHAR, language VARCHAR) | SELECT package_option FROM table_name_43 WHERE hdtv = "no" AND language = "italian" AND television_service = "cartello promozionale sky hd" | What is Package/Option, when HDTV is no, when Language is Italian, and when Television service is cartello promozionale sky hd? | <s>[INST]What is Package/Option, when HDTV is no, when Language is Italian, and when Television service is cartello promozionale sky hd? Context: CREATE TABLE table_name_43 (package_option VARCHAR, television_service VARCHAR, hdtv VARCHAR, language VARCHAR)[/INST]SELECT package_option FROM table_name_43 WHERE hdtv = "no" AND language = "italian" AND television_service = "cartello promozionale sky hd"</s> |
CREATE TABLE table_1847523_2 (owned_since VARCHAR, station VARCHAR) | SELECT owned_since FROM table_1847523_2 WHERE station = "WFTS-TV" | How many stations have been owned since wfts-tv? | <s>[INST]How many stations have been owned since wfts-tv? Context: CREATE TABLE table_1847523_2 (owned_since VARCHAR, station VARCHAR)[/INST]SELECT owned_since FROM table_1847523_2 WHERE station = "WFTS-TV"</s> |
CREATE TABLE table_name_56 (build_date VARCHAR, prr_class VARCHAR) | SELECT build_date FROM table_name_56 WHERE prr_class = "brs24" | What is the build date of the model with PRR Class brs24? | <s>[INST]What is the build date of the model with PRR Class brs24? Context: CREATE TABLE table_name_56 (build_date VARCHAR, prr_class VARCHAR)[/INST]SELECT build_date FROM table_name_56 WHERE prr_class = "brs24"</s> |
CREATE TABLE table_name_96 (player VARCHAR, round VARCHAR) | SELECT player FROM table_name_96 WHERE round = 6 | What player was selected in Round 6? | <s>[INST]What player was selected in Round 6? Context: CREATE TABLE table_name_96 (player VARCHAR, round VARCHAR)[/INST]SELECT player FROM table_name_96 WHERE round = 6</s> |
CREATE TABLE table_name_96 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) | SELECT SUM(laps) FROM table_name_96 WHERE time_retired = "engine" AND grid = 1 | How many laps did the grid 1 engine have? | <s>[INST]How many laps did the grid 1 engine have? Context: CREATE TABLE table_name_96 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)[/INST]SELECT SUM(laps) FROM table_name_96 WHERE time_retired = "engine" AND grid = 1</s> |
CREATE TABLE table_name_59 (december INTEGER, opponent VARCHAR, game VARCHAR) | SELECT SUM(december) FROM table_name_59 WHERE opponent = "vancouver canucks" AND game < 33 | What is the sum for December against the vancouver canucks earlier than game 33? | <s>[INST]What is the sum for December against the vancouver canucks earlier than game 33? Context: CREATE TABLE table_name_59 (december INTEGER, opponent VARCHAR, game VARCHAR)[/INST]SELECT SUM(december) FROM table_name_59 WHERE opponent = "vancouver canucks" AND game < 33</s> |
CREATE TABLE table_name_27 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_27 WHERE venue = "victoria park" | What was the home team's score at Victoria Park? | <s>[INST]What was the home team's score at Victoria Park? Context: CREATE TABLE table_name_27 (home_team VARCHAR, venue VARCHAR)[/INST]SELECT home_team AS score FROM table_name_27 WHERE venue = "victoria park"</s> |
CREATE TABLE table_name_39 (goals_against INTEGER, games_played INTEGER) | SELECT AVG(goals_against) FROM table_name_39 WHERE games_played < 8 | What is the mean number of goals against when there were fewer than 8 games played? | <s>[INST]What is the mean number of goals against when there were fewer than 8 games played? Context: CREATE TABLE table_name_39 (goals_against INTEGER, games_played INTEGER)[/INST]SELECT AVG(goals_against) FROM table_name_39 WHERE games_played < 8</s> |
CREATE TABLE table_name_95 (score VARCHAR, country VARCHAR) | SELECT score FROM table_name_95 WHERE country = "japan" | What is the score where the country is Japan? | <s>[INST]What is the score where the country is Japan? Context: CREATE TABLE table_name_95 (score VARCHAR, country VARCHAR)[/INST]SELECT score FROM table_name_95 WHERE country = "japan"</s> |
CREATE TABLE table_name_71 (diameter__km_ VARCHAR, longitude VARCHAR, latitude VARCHAR, name VARCHAR) | SELECT COUNT(diameter__km_) FROM table_name_71 WHERE latitude < 14 AND name = "xenia" AND longitude > 249.4 | What in Xenia's Diameter in km, with a latitude of 14 and a longitude of 249.4? | <s>[INST]What in Xenia's Diameter in km, with a latitude of 14 and a longitude of 249.4? Context: CREATE TABLE table_name_71 (diameter__km_ VARCHAR, longitude VARCHAR, latitude VARCHAR, name VARCHAR)[/INST]SELECT COUNT(diameter__km_) FROM table_name_71 WHERE latitude < 14 AND name = "xenia" AND longitude > 249.4</s> |
CREATE TABLE country (country VARCHAR, country_id VARCHAR); CREATE TABLE city (country_id VARCHAR) | SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING COUNT(*) >= 3 | Which countries have at least 3 cities? | <s>[INST]Which countries have at least 3 cities? Context: CREATE TABLE country (country VARCHAR, country_id VARCHAR); CREATE TABLE city (country_id VARCHAR)[/INST]SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING COUNT(*) >= 3</s> |
CREATE TABLE table_28925058_1 (date VARCHAR, grand_prix VARCHAR) | SELECT date FROM table_28925058_1 WHERE grand_prix = "Italian grand_prix" | What is the date of the Italian Grand Prix? | <s>[INST]What is the date of the Italian Grand Prix? Context: CREATE TABLE table_28925058_1 (date VARCHAR, grand_prix VARCHAR)[/INST]SELECT date FROM table_28925058_1 WHERE grand_prix = "Italian grand_prix"</s> |
CREATE TABLE table_name_56 (wins INTEGER, team VARCHAR, season VARCHAR) | SELECT AVG(wins) FROM table_name_56 WHERE team = "winnipeg blue bombers" AND season > 1964 | Which Wins have a Team of winnipeg blue bombers, and a Season larger than 1964? | <s>[INST]Which Wins have a Team of winnipeg blue bombers, and a Season larger than 1964? Context: CREATE TABLE table_name_56 (wins INTEGER, team VARCHAR, season VARCHAR)[/INST]SELECT AVG(wins) FROM table_name_56 WHERE team = "winnipeg blue bombers" AND season > 1964</s> |
CREATE TABLE table_name_67 (site VARCHAR, opponent_number VARCHAR) | SELECT site FROM table_name_67 WHERE opponent_number = "northwestern" | At which site was Northwestern an opponent? | <s>[INST]At which site was Northwestern an opponent? Context: CREATE TABLE table_name_67 (site VARCHAR, opponent_number VARCHAR)[/INST]SELECT site FROM table_name_67 WHERE opponent_number = "northwestern"</s> |
CREATE TABLE table_name_56 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_56 WHERE away_team = "north melbourne" | Where did North Melbourne play as the away team? | <s>[INST]Where did North Melbourne play as the away team? Context: CREATE TABLE table_name_56 (venue VARCHAR, away_team VARCHAR)[/INST]SELECT venue FROM table_name_56 WHERE away_team = "north melbourne"</s> |
CREATE TABLE table_name_7 (district VARCHAR, first_elected VARCHAR, towns_represented VARCHAR) | SELECT district FROM table_name_7 WHERE first_elected < 2006 AND towns_represented = "broken arrow, tulsa" | Which district had first elected earlier than 2006 for representation of Broken Arrow, Tulsa? | <s>[INST]Which district had first elected earlier than 2006 for representation of Broken Arrow, Tulsa? Context: CREATE TABLE table_name_7 (district VARCHAR, first_elected VARCHAR, towns_represented VARCHAR)[/INST]SELECT district FROM table_name_7 WHERE first_elected < 2006 AND towns_represented = "broken arrow, tulsa"</s> |
CREATE TABLE table_2592308_1 (denominations__gold_weight_ VARCHAR, country VARCHAR) | SELECT COUNT(denominations__gold_weight_) FROM table_2592308_1 WHERE country = "Austria" | How many catagories for denominations does Austria have? | <s>[INST]How many catagories for denominations does Austria have? Context: CREATE TABLE table_2592308_1 (denominations__gold_weight_ VARCHAR, country VARCHAR)[/INST]SELECT COUNT(denominations__gold_weight_) FROM table_2592308_1 WHERE country = "Austria"</s> |
CREATE TABLE table_14940519_1 (week VARCHAR, game_site VARCHAR, opponent VARCHAR) | SELECT COUNT(week) FROM table_14940519_1 WHERE game_site = "Memorial Stadium" AND opponent = "Buffalo Bills" | Name the number of week for game site being memorial stadium for buffalo bills | <s>[INST]Name the number of week for game site being memorial stadium for buffalo bills Context: CREATE TABLE table_14940519_1 (week VARCHAR, game_site VARCHAR, opponent VARCHAR)[/INST]SELECT COUNT(week) FROM table_14940519_1 WHERE game_site = "Memorial Stadium" AND opponent = "Buffalo Bills"</s> |
CREATE TABLE table_17467578_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) | SELECT written_by FROM table_17467578_1 WHERE us_viewers__million_ = "3.96" | Who wrote the episode "The Dream Lover", which was viewed by 3.96 million viewers? | <s>[INST]Who wrote the episode "The Dream Lover", which was viewed by 3.96 million viewers? Context: CREATE TABLE table_17467578_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)[/INST]SELECT written_by FROM table_17467578_1 WHERE us_viewers__million_ = "3.96"</s> |
CREATE TABLE table_name_11 (year INTEGER, laps VARCHAR) | SELECT AVG(year) FROM table_name_11 WHERE laps = 6 | Name the average year with Laps of 6 | <s>[INST]Name the average year with Laps of 6 Context: CREATE TABLE table_name_11 (year INTEGER, laps VARCHAR)[/INST]SELECT AVG(year) FROM table_name_11 WHERE laps = 6</s> |
CREATE TABLE table_1449169_1 (rank VARCHAR, common VARCHAR) | SELECT rank FROM table_1449169_1 WHERE common = "Galliate" | Where does the common of Galliate rank in population? | <s>[INST]Where does the common of Galliate rank in population? Context: CREATE TABLE table_1449169_1 (rank VARCHAR, common VARCHAR)[/INST]SELECT rank FROM table_1449169_1 WHERE common = "Galliate"</s> |
CREATE TABLE invoices (billing_country VARCHAR, total INTEGER) | SELECT billing_country, SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8 | A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size. | <s>[INST]A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size. Context: CREATE TABLE invoices (billing_country VARCHAR, total INTEGER)[/INST]SELECT billing_country, SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8</s> |
CREATE TABLE Movie (title VARCHAR, YEAR INTEGER, director VARCHAR) | SELECT title FROM Movie WHERE YEAR > (SELECT MAX(YEAR) FROM Movie WHERE director = "Steven Spielberg") | What is the names of movies whose created year is after all movies directed by Steven Spielberg? | <s>[INST]What is the names of movies whose created year is after all movies directed by Steven Spielberg? Context: CREATE TABLE Movie (title VARCHAR, YEAR INTEGER, director VARCHAR)[/INST]SELECT title FROM Movie WHERE YEAR > (SELECT MAX(YEAR) FROM Movie WHERE director = "Steven Spielberg")</s> |
CREATE TABLE table_25675509_1 (depth VARCHAR, longitude VARCHAR) | SELECT depth FROM table_25675509_1 WHERE longitude = "158.091° E" | If the longitude is 158.091° e, what is the depth? | <s>[INST]If the longitude is 158.091° e, what is the depth? Context: CREATE TABLE table_25675509_1 (depth VARCHAR, longitude VARCHAR)[/INST]SELECT depth FROM table_25675509_1 WHERE longitude = "158.091° E"</s> |
CREATE TABLE table_26368963_2 (under_11 VARCHAR, under_19 VARCHAR) | SELECT under_11 FROM table_26368963_2 WHERE under_19 = "Leong Siu Lynn" | What is every value for Under-11 if Under-19 is Leong Siu Lynn? | <s>[INST]What is every value for Under-11 if Under-19 is Leong Siu Lynn? Context: CREATE TABLE table_26368963_2 (under_11 VARCHAR, under_19 VARCHAR)[/INST]SELECT under_11 FROM table_26368963_2 WHERE under_19 = "Leong Siu Lynn"</s> |
CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE person (name VARCHAR) | SELECT name FROM person EXCEPT SELECT name FROM PersonFriend | Who is the person that has no friend? | <s>[INST]Who is the person that has no friend? Context: CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE person (name VARCHAR)[/INST]SELECT name FROM person EXCEPT SELECT name FROM PersonFriend</s> |
CREATE TABLE table_1745820_5 (athlete VARCHAR, event VARCHAR) | SELECT athlete FROM table_1745820_5 WHERE event = "Flyweight" | Which athlete competed in the flyweight division? | <s>[INST]Which athlete competed in the flyweight division? Context: CREATE TABLE table_1745820_5 (athlete VARCHAR, event VARCHAR)[/INST]SELECT athlete FROM table_1745820_5 WHERE event = "Flyweight"</s> |
CREATE TABLE table_name_46 (diff VARCHAR, points_for VARCHAR) | SELECT diff FROM table_name_46 WHERE points_for = "662" | What is the diff for a club that has a value of 662 for points for? | <s>[INST]What is the diff for a club that has a value of 662 for points for? Context: CREATE TABLE table_name_46 (diff VARCHAR, points_for VARCHAR)[/INST]SELECT diff FROM table_name_46 WHERE points_for = "662"</s> |
CREATE TABLE table_name_94 (place INTEGER, total VARCHAR, draw VARCHAR) | SELECT MIN(place) FROM table_name_94 WHERE total < 24 AND draw > 7 | Which Place is the lowest one that has a Total smaller than 24, and a Draw larger than 7? | <s>[INST]Which Place is the lowest one that has a Total smaller than 24, and a Draw larger than 7? Context: CREATE TABLE table_name_94 (place INTEGER, total VARCHAR, draw VARCHAR)[/INST]SELECT MIN(place) FROM table_name_94 WHERE total < 24 AND draw > 7</s> |
CREATE TABLE table_name_64 (year VARCHAR, championship VARCHAR) | SELECT COUNT(year) FROM table_name_64 WHERE championship = "peter jackson classic" | How many years was there a peter jackson classic? | <s>[INST]How many years was there a peter jackson classic? Context: CREATE TABLE table_name_64 (year VARCHAR, championship VARCHAR)[/INST]SELECT COUNT(year) FROM table_name_64 WHERE championship = "peter jackson classic"</s> |
CREATE TABLE table_name_49 (attendance INTEGER, date VARCHAR) | SELECT SUM(attendance) FROM table_name_49 WHERE date = "september 8" | What is the sum of people in attendance on September 8? | <s>[INST]What is the sum of people in attendance on September 8? Context: CREATE TABLE table_name_49 (attendance INTEGER, date VARCHAR)[/INST]SELECT SUM(attendance) FROM table_name_49 WHERE date = "september 8"</s> |
CREATE TABLE table_name_5 (date VARCHAR, visitor VARCHAR, record VARCHAR) | SELECT date FROM table_name_5 WHERE visitor = "new england whalers" AND record = "9–9–1" | When has a Visitor of new england whalers, and a Record of 9–9–1? Question 2 | <s>[INST]When has a Visitor of new england whalers, and a Record of 9–9–1? Question 2 Context: CREATE TABLE table_name_5 (date VARCHAR, visitor VARCHAR, record VARCHAR)[/INST]SELECT date FROM table_name_5 WHERE visitor = "new england whalers" AND record = "9–9–1"</s> |
CREATE TABLE table_1840495_2 (per_capita_income VARCHAR, median_house__hold_income VARCHAR) | SELECT per_capita_income FROM table_1840495_2 WHERE median_house__hold_income = "$57,407" | If the median income is $57,407, what is the per capita income? | <s>[INST]If the median income is $57,407, what is the per capita income? Context: CREATE TABLE table_1840495_2 (per_capita_income VARCHAR, median_house__hold_income VARCHAR)[/INST]SELECT per_capita_income FROM table_1840495_2 WHERE median_house__hold_income = "$57,407"</s> |
CREATE TABLE table_name_6 (total INTEGER, silver VARCHAR, gold VARCHAR) | SELECT MIN(total) FROM table_name_6 WHERE silver > 6 AND gold > 10 | For nations with more than 6 silvers and more than 10 golds, what is the lowest total? | <s>[INST]For nations with more than 6 silvers and more than 10 golds, what is the lowest total? Context: CREATE TABLE table_name_6 (total INTEGER, silver VARCHAR, gold VARCHAR)[/INST]SELECT MIN(total) FROM table_name_6 WHERE silver > 6 AND gold > 10</s> |
CREATE TABLE table_name_33 (drawn INTEGER, penalties VARCHAR, conversions VARCHAR) | SELECT SUM(drawn) FROM table_name_33 WHERE penalties = 1 AND conversions > 20 | How many ties did he have when he had 1 penalties and more than 20 conversions? | <s>[INST]How many ties did he have when he had 1 penalties and more than 20 conversions? Context: CREATE TABLE table_name_33 (drawn INTEGER, penalties VARCHAR, conversions VARCHAR)[/INST]SELECT SUM(drawn) FROM table_name_33 WHERE penalties = 1 AND conversions > 20</s> |
CREATE TABLE table_name_95 (points VARCHAR, entrant VARCHAR) | SELECT points FROM table_name_95 WHERE entrant = "g a vandervell" | How many points does g a vandervell have? | <s>[INST]How many points does g a vandervell have? Context: CREATE TABLE table_name_95 (points VARCHAR, entrant VARCHAR)[/INST]SELECT points FROM table_name_95 WHERE entrant = "g a vandervell"</s> |
CREATE TABLE table_name_92 (total_goals INTEGER, position VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR) | SELECT AVG(total_goals) FROM table_name_92 WHERE fa_cup_goals = 0 AND fa_cup_apps = "3" AND position = "fw" | Which Total Goals have an FA Cup Goals of 0, and an FA Cup Apps of 3, and a Position of fw? | <s>[INST]Which Total Goals have an FA Cup Goals of 0, and an FA Cup Apps of 3, and a Position of fw? Context: CREATE TABLE table_name_92 (total_goals INTEGER, position VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)[/INST]SELECT AVG(total_goals) FROM table_name_92 WHERE fa_cup_goals = 0 AND fa_cup_apps = "3" AND position = "fw"</s> |
CREATE TABLE table_19929970_1 (directed_by VARCHAR, production_code VARCHAR) | SELECT directed_by FROM table_19929970_1 WHERE production_code = "4AKJ08" | Who directed the episode with production code 4akj08? | <s>[INST]Who directed the episode with production code 4akj08? Context: CREATE TABLE table_19929970_1 (directed_by VARCHAR, production_code VARCHAR)[/INST]SELECT directed_by FROM table_19929970_1 WHERE production_code = "4AKJ08"</s> |
CREATE TABLE table_name_50 (british_name VARCHAR, american_name VARCHAR) | SELECT british_name FROM table_name_50 WHERE american_name = "sixteenth note" | what is the british name when the american name is sixteenth note? | <s>[INST]what is the british name when the american name is sixteenth note? Context: CREATE TABLE table_name_50 (british_name VARCHAR, american_name VARCHAR)[/INST]SELECT british_name FROM table_name_50 WHERE american_name = "sixteenth note"</s> |
CREATE TABLE table_name_85 (position VARCHAR, level VARCHAR, season VARCHAR) | SELECT position FROM table_name_85 WHERE level = "tier 4" AND season < 2003 | What Position has a Level of tier 4 with a Season smaller than 2003? | <s>[INST]What Position has a Level of tier 4 with a Season smaller than 2003? Context: CREATE TABLE table_name_85 (position VARCHAR, level VARCHAR, season VARCHAR)[/INST]SELECT position FROM table_name_85 WHERE level = "tier 4" AND season < 2003</s> |
CREATE TABLE table_name_53 (season VARCHAR, downhill VARCHAR, overall VARCHAR) | SELECT COUNT(season) FROM table_name_53 WHERE downhill = "35" AND overall > 21 | What season had a downhill of 35 and overall greater than 21? | <s>[INST]What season had a downhill of 35 and overall greater than 21? Context: CREATE TABLE table_name_53 (season VARCHAR, downhill VARCHAR, overall VARCHAR)[/INST]SELECT COUNT(season) FROM table_name_53 WHERE downhill = "35" AND overall > 21</s> |
CREATE TABLE table_name_52 (size_km² INTEGER, density_hab_km VARCHAR) | SELECT SUM(size_km²) FROM table_name_52 WHERE density_hab_km = 8 OFFSET 321 | what is the size km² when the density hab/km is 8,321? | <s>[INST]what is the size km² when the density hab/km is 8,321? Context: CREATE TABLE table_name_52 (size_km² INTEGER, density_hab_km VARCHAR)[/INST]SELECT SUM(size_km²) FROM table_name_52 WHERE density_hab_km = 8 OFFSET 321</s> |
CREATE TABLE table_name_27 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT SUM(grid) FROM table_name_27 WHERE time_retired = "+ 1:33.141" AND laps < 70 | What is the grid total that has a Time/Retired of + 1:33.141, and under 70 laps? | <s>[INST]What is the grid total that has a Time/Retired of + 1:33.141, and under 70 laps? Context: CREATE TABLE table_name_27 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)[/INST]SELECT SUM(grid) FROM table_name_27 WHERE time_retired = "+ 1:33.141" AND laps < 70</s> |
CREATE TABLE table_name_9 (entrant VARCHAR, chassis VARCHAR) | SELECT entrant FROM table_name_9 WHERE chassis = "de tomaso 505" | Which entrant used the chassis de tomaso 505? | <s>[INST]Which entrant used the chassis de tomaso 505? Context: CREATE TABLE table_name_9 (entrant VARCHAR, chassis VARCHAR)[/INST]SELECT entrant FROM table_name_9 WHERE chassis = "de tomaso 505"</s> |
CREATE TABLE table_22871316_6 (high_points VARCHAR, date VARCHAR) | SELECT high_points FROM table_22871316_6 WHERE date = "December 2" | Who did the high points in the game played on December 2? | <s>[INST]Who did the high points in the game played on December 2? Context: CREATE TABLE table_22871316_6 (high_points VARCHAR, date VARCHAR)[/INST]SELECT high_points FROM table_22871316_6 WHERE date = "December 2"</s> |
CREATE TABLE table_name_88 (points VARCHAR, january VARCHAR) | SELECT COUNT(points) FROM table_name_88 WHERE january = 18 | How many Points have a January of 18? | <s>[INST]How many Points have a January of 18? Context: CREATE TABLE table_name_88 (points VARCHAR, january VARCHAR)[/INST]SELECT COUNT(points) FROM table_name_88 WHERE january = 18</s> |
CREATE TABLE table_2430014_6 (written_by VARCHAR, directed_by VARCHAR) | SELECT written_by FROM table_2430014_6 WHERE directed_by = "John Trefor" | Name the written by for john trefor | <s>[INST]Name the written by for john trefor Context: CREATE TABLE table_2430014_6 (written_by VARCHAR, directed_by VARCHAR)[/INST]SELECT written_by FROM table_2430014_6 WHERE directed_by = "John Trefor"</s> |
CREATE TABLE table_name_99 (rank INTEGER, total VARCHAR, nation VARCHAR) | SELECT MAX(rank) FROM table_name_99 WHERE total = 1 AND nation = "united kingdom" | What is the highest rank when the metal total is 1 and the nation is the United Kingdom? | <s>[INST]What is the highest rank when the metal total is 1 and the nation is the United Kingdom? Context: CREATE TABLE table_name_99 (rank INTEGER, total VARCHAR, nation VARCHAR)[/INST]SELECT MAX(rank) FROM table_name_99 WHERE total = 1 AND nation = "united kingdom"</s> |
CREATE TABLE table_name_76 (silver INTEGER, rank VARCHAR, bronze VARCHAR) | SELECT MIN(silver) FROM table_name_76 WHERE rank < 4 AND bronze > 9 | What is the least number of Silvers with a ranking of less than 4 where the bronze number was larger than 9? | <s>[INST]What is the least number of Silvers with a ranking of less than 4 where the bronze number was larger than 9? Context: CREATE TABLE table_name_76 (silver INTEGER, rank VARCHAR, bronze VARCHAR)[/INST]SELECT MIN(silver) FROM table_name_76 WHERE rank < 4 AND bronze > 9</s> |
CREATE TABLE table_2290097_4 (Id VARCHAR) | SELECT MIN(2 AS nd_runner_up) FROM table_2290097_4 | What is the minimum for 2nd runner-up? | <s>[INST]What is the minimum for 2nd runner-up? Context: CREATE TABLE table_2290097_4 (Id VARCHAR)[/INST]SELECT MIN(2 AS nd_runner_up) FROM table_2290097_4</s> |
CREATE TABLE table_13836704_4 (total_passengers_2008 INTEGER, change_2008_09 VARCHAR) | SELECT MAX(total_passengers_2008) FROM table_13836704_4 WHERE change_2008_09 = "6.5%" | what being the maximum total passengers 2008 with change 2008/09 being 6.5% | <s>[INST]what being the maximum total passengers 2008 with change 2008/09 being 6.5% Context: CREATE TABLE table_13836704_4 (total_passengers_2008 INTEGER, change_2008_09 VARCHAR)[/INST]SELECT MAX(total_passengers_2008) FROM table_13836704_4 WHERE change_2008_09 = "6.5%"</s> |
CREATE TABLE Friend (student_id VARCHAR) | SELECT student_id, COUNT(*) FROM Friend GROUP BY student_id | Show the student IDs and numbers of friends corresponding to each. | <s>[INST]Show the student IDs and numbers of friends corresponding to each. Context: CREATE TABLE Friend (student_id VARCHAR)[/INST]SELECT student_id, COUNT(*) FROM Friend GROUP BY student_id</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.