context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE authors (fname VARCHAR, lname VARCHAR) | SELECT fname FROM authors WHERE lname = "Ueno" | What is the first name of the author with last name "Ueno"? | <s>[INST]What is the first name of the author with last name "Ueno"? Context: CREATE TABLE authors (fname VARCHAR, lname VARCHAR)[/INST]SELECT fname FROM authors WHERE lname = "Ueno"</s> |
CREATE TABLE table_name_71 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_71 WHERE player = "jack nicklaus" | What was the To par of Jack Nicklaus? | <s>[INST]What was the To par of Jack Nicklaus? Context: CREATE TABLE table_name_71 (to_par VARCHAR, player VARCHAR)[/INST]SELECT to_par FROM table_name_71 WHERE player = "jack nicklaus"</s> |
CREATE TABLE table_23390604_1 (mahmoud_ahmadinejad VARCHAR, mir_hossein_mousavi VARCHAR) | SELECT mahmoud_ahmadinejad FROM table_23390604_1 WHERE mir_hossein_mousavi = 218481 | List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes. | <s>[INST]List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes. Context: CREATE TABLE table_23390604_1 (mahmoud_ahmadinejad VARCHAR, mir_hossein_mousavi VARCHAR)[/INST]SELECT mahmoud_ahmadinejad FROM table_23390604_1 WHERE mir_hossein_mousavi = 218481</s> |
CREATE TABLE countrylanguage (LANGUAGE VARCHAR, CountryCode VARCHAR, Percentage INTEGER) | SELECT LANGUAGE, CountryCode, MAX(Percentage) FROM countrylanguage GROUP BY CountryCode | What is the language spoken by the largest percentage of people in each country? | <s>[INST]What is the language spoken by the largest percentage of people in each country? Context: CREATE TABLE countrylanguage (LANGUAGE VARCHAR, CountryCode VARCHAR, Percentage INTEGER)[/INST]SELECT LANGUAGE, CountryCode, MAX(Percentage) FROM countrylanguage GROUP BY CountryCode</s> |
CREATE TABLE table_name_59 (high_points VARCHAR, score VARCHAR) | SELECT high_points FROM table_name_59 WHERE score = "w 108–105 (ot)" | Who had the high points when the score was w 108–105 (ot)? | <s>[INST]Who had the high points when the score was w 108–105 (ot)? Context: CREATE TABLE table_name_59 (high_points VARCHAR, score VARCHAR)[/INST]SELECT high_points FROM table_name_59 WHERE score = "w 108–105 (ot)"</s> |
CREATE TABLE table_name_23 (record VARCHAR, score VARCHAR, home VARCHAR) | SELECT record FROM table_name_23 WHERE score = "2–4" AND home = "quebec nordiques" | Which Record has a Score of 2–4, and a Home of quebec nordiques? | <s>[INST]Which Record has a Score of 2–4, and a Home of quebec nordiques? Context: CREATE TABLE table_name_23 (record VARCHAR, score VARCHAR, home VARCHAR)[/INST]SELECT record FROM table_name_23 WHERE score = "2–4" AND home = "quebec nordiques"</s> |
CREATE TABLE table_2655016_10 (season__number INTEGER, nick_prod__number VARCHAR) | SELECT MAX(season__number) FROM table_2655016_10 WHERE nick_prod__number = 942 | What was the latest season with a nick production number of 942? | <s>[INST]What was the latest season with a nick production number of 942? Context: CREATE TABLE table_2655016_10 (season__number INTEGER, nick_prod__number VARCHAR)[/INST]SELECT MAX(season__number) FROM table_2655016_10 WHERE nick_prod__number = 942</s> |
CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) | SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE original_title = "Vinterkyss" | Which film title used in nomination has vinterkyss as the original title? | <s>[INST]Which film title used in nomination has vinterkyss as the original title? Context: CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)[/INST]SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE original_title = "Vinterkyss"</s> |
CREATE TABLE table_24725951_1 (episode VARCHAR, celebrities VARCHAR) | SELECT episode FROM table_24725951_1 WHERE celebrities = "Nick Hewer and Saira Khan" | Which episode had celebrities Nick Hewer and Saira Khan in them? | <s>[INST]Which episode had celebrities Nick Hewer and Saira Khan in them? Context: CREATE TABLE table_24725951_1 (episode VARCHAR, celebrities VARCHAR)[/INST]SELECT episode FROM table_24725951_1 WHERE celebrities = "Nick Hewer and Saira Khan"</s> |
CREATE TABLE table_19897294_8 (family_families VARCHAR, no_overall VARCHAR) | SELECT family_families FROM table_19897294_8 WHERE no_overall = "UK31" | Name the family for uk31 | <s>[INST]Name the family for uk31 Context: CREATE TABLE table_19897294_8 (family_families VARCHAR, no_overall VARCHAR)[/INST]SELECT family_families FROM table_19897294_8 WHERE no_overall = "UK31"</s> |
CREATE TABLE table_name_38 (country VARCHAR, finish VARCHAR) | SELECT country FROM table_name_38 WHERE finish = "t42" | What country had a finish of t42? | <s>[INST]What country had a finish of t42? Context: CREATE TABLE table_name_38 (country VARCHAR, finish VARCHAR)[/INST]SELECT country FROM table_name_38 WHERE finish = "t42"</s> |
CREATE TABLE table_name_78 (frequency VARCHAR, format VARCHAR) | SELECT frequency FROM table_name_78 WHERE format = "first nations community" | What frequency is First Nations Community? | <s>[INST]What frequency is First Nations Community? Context: CREATE TABLE table_name_78 (frequency VARCHAR, format VARCHAR)[/INST]SELECT frequency FROM table_name_78 WHERE format = "first nations community"</s> |
CREATE TABLE table_name_40 (gold VARCHAR, silver VARCHAR, total VARCHAR) | SELECT gold FROM table_name_40 WHERE silver > 30 AND total < 107 | What Gold has a Silver greater than 30 and a Total less than 107? | <s>[INST]What Gold has a Silver greater than 30 and a Total less than 107? Context: CREATE TABLE table_name_40 (gold VARCHAR, silver VARCHAR, total VARCHAR)[/INST]SELECT gold FROM table_name_40 WHERE silver > 30 AND total < 107</s> |
CREATE TABLE table_name_88 (gold VARCHAR, bronze VARCHAR) | SELECT gold FROM table_name_88 WHERE bronze = "8" | What is the number of gold medals when the number of bronze medals is 8? | <s>[INST]What is the number of gold medals when the number of bronze medals is 8? Context: CREATE TABLE table_name_88 (gold VARCHAR, bronze VARCHAR)[/INST]SELECT gold FROM table_name_88 WHERE bronze = "8"</s> |
CREATE TABLE table_name_17 (foundation VARCHAR, enterprise VARCHAR) | SELECT foundation FROM table_name_17 WHERE enterprise = "2" | Which Foundation has an Enterprise of 2? | <s>[INST]Which Foundation has an Enterprise of 2? Context: CREATE TABLE table_name_17 (foundation VARCHAR, enterprise VARCHAR)[/INST]SELECT foundation FROM table_name_17 WHERE enterprise = "2"</s> |
CREATE TABLE table_name_42 (high_rebounds VARCHAR, date VARCHAR) | SELECT high_rebounds FROM table_name_42 WHERE date = "february 14" | Who had the highest number of rebounds on February 14? | <s>[INST]Who had the highest number of rebounds on February 14? Context: CREATE TABLE table_name_42 (high_rebounds VARCHAR, date VARCHAR)[/INST]SELECT high_rebounds FROM table_name_42 WHERE date = "february 14"</s> |
CREATE TABLE table_name_53 (wavelength VARCHAR, frequency__mhz_ VARCHAR) | SELECT wavelength FROM table_name_53 WHERE frequency__mhz_ = "14.050–14.150" | What is the Wavelength of Frequency (MHz) 14.050–14.150? | <s>[INST]What is the Wavelength of Frequency (MHz) 14.050–14.150? Context: CREATE TABLE table_name_53 (wavelength VARCHAR, frequency__mhz_ VARCHAR)[/INST]SELECT wavelength FROM table_name_53 WHERE frequency__mhz_ = "14.050–14.150"</s> |
CREATE TABLE table_name_52 (home_team VARCHAR, tie_no VARCHAR) | SELECT home_team FROM table_name_52 WHERE tie_no = "7" | WHAT IS THE HOME TEAM WITH A TIE NUMBER OF 7? | <s>[INST]WHAT IS THE HOME TEAM WITH A TIE NUMBER OF 7? Context: CREATE TABLE table_name_52 (home_team VARCHAR, tie_no VARCHAR)[/INST]SELECT home_team FROM table_name_52 WHERE tie_no = "7"</s> |
CREATE TABLE table_22893781_5 (team VARCHAR, date VARCHAR) | SELECT team FROM table_22893781_5 WHERE date = "December 11" | Who was he opponent on december 11? | <s>[INST]Who was he opponent on december 11? Context: CREATE TABLE table_22893781_5 (team VARCHAR, date VARCHAR)[/INST]SELECT team FROM table_22893781_5 WHERE date = "December 11"</s> |
CREATE TABLE table_13012165_1 (maryland VARCHAR, pennsylvania VARCHAR) | SELECT maryland FROM table_13012165_1 WHERE pennsylvania = "Deep Run Valley LL Hilltown" | Who played in Maryland the same year that Deep Run Valley LL Hilltown played in Pennsylvania? | <s>[INST]Who played in Maryland the same year that Deep Run Valley LL Hilltown played in Pennsylvania? Context: CREATE TABLE table_13012165_1 (maryland VARCHAR, pennsylvania VARCHAR)[/INST]SELECT maryland FROM table_13012165_1 WHERE pennsylvania = "Deep Run Valley LL Hilltown"</s> |
CREATE TABLE table_17104539_9 (record VARCHAR, date VARCHAR) | SELECT record FROM table_17104539_9 WHERE date = "June 7" | Name the record for june 7 | <s>[INST]Name the record for june 7 Context: CREATE TABLE table_17104539_9 (record VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_17104539_9 WHERE date = "June 7"</s> |
CREATE TABLE table_name_7 (team_2 VARCHAR) | SELECT 1 AS st_leg FROM table_name_7 WHERE team_2 = "nov milenium" | What was the 1st leg when team 2 was nov milenium? | <s>[INST]What was the 1st leg when team 2 was nov milenium? Context: CREATE TABLE table_name_7 (team_2 VARCHAR)[/INST]SELECT 1 AS st_leg FROM table_name_7 WHERE team_2 = "nov milenium"</s> |
CREATE TABLE table_name_17 (opponent VARCHAR, event VARCHAR) | SELECT opponent FROM table_name_17 WHERE event = "ritc 22 - rage in the cage 22" | What is Opponent, when Event is RITC 22 - Rage In The Cage 22? | <s>[INST]What is Opponent, when Event is RITC 22 - Rage In The Cage 22? Context: CREATE TABLE table_name_17 (opponent VARCHAR, event VARCHAR)[/INST]SELECT opponent FROM table_name_17 WHERE event = "ritc 22 - rage in the cage 22"</s> |
CREATE TABLE table_21100348_11 (innings INTEGER, rank VARCHAR) | SELECT MAX(innings) FROM table_21100348_11 WHERE rank = 3 | How many innings does rank 3 have? | <s>[INST]How many innings does rank 3 have? Context: CREATE TABLE table_21100348_11 (innings INTEGER, rank VARCHAR)[/INST]SELECT MAX(innings) FROM table_21100348_11 WHERE rank = 3</s> |
CREATE TABLE table_name_41 (partnering VARCHAR, opponents VARCHAR) | SELECT partnering FROM table_name_41 WHERE opponents = "marin čilić lovro zovko" | Who was the parter against Marin čilić lovro Zovko? | <s>[INST]Who was the parter against Marin čilić lovro Zovko? Context: CREATE TABLE table_name_41 (partnering VARCHAR, opponents VARCHAR)[/INST]SELECT partnering FROM table_name_41 WHERE opponents = "marin čilić lovro zovko"</s> |
CREATE TABLE table_24565004_21 (appearances¹ INTEGER, name VARCHAR) | SELECT MIN(appearances¹) FROM table_24565004_21 WHERE name = "Sammy Traoré" | List the minimum impressions for sammy traoré | <s>[INST]List the minimum impressions for sammy traoré Context: CREATE TABLE table_24565004_21 (appearances¹ INTEGER, name VARCHAR)[/INST]SELECT MIN(appearances¹) FROM table_24565004_21 WHERE name = "Sammy Traoré"</s> |
CREATE TABLE table_name_24 (date VARCHAR, opponent VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_24 WHERE opponent = "detroit tigers" AND attendance = "38,639" | On what date was there a game in which the opponent was the Detroit Tigers, and the attendance was 38,639? | <s>[INST]On what date was there a game in which the opponent was the Detroit Tigers, and the attendance was 38,639? Context: CREATE TABLE table_name_24 (date VARCHAR, opponent VARCHAR, attendance VARCHAR)[/INST]SELECT date FROM table_name_24 WHERE opponent = "detroit tigers" AND attendance = "38,639"</s> |
CREATE TABLE table_24565004_7 (goals¹ INTEGER) | SELECT MAX(goals¹) FROM table_24565004_7 | What is the highest number of goals scored | <s>[INST]What is the highest number of goals scored Context: CREATE TABLE table_24565004_7 (goals¹ INTEGER)[/INST]SELECT MAX(goals¹) FROM table_24565004_7</s> |
CREATE TABLE table_name_38 (average INTEGER, matches VARCHAR, wickets VARCHAR, career VARCHAR) | SELECT MIN(average) FROM table_name_38 WHERE wickets > 265 AND career = "1888/89-1913/14" AND matches > 51 | Name the least average with wickets more than 265 and career of 1888/89-1913/14 and matches more than 51 | <s>[INST]Name the least average with wickets more than 265 and career of 1888/89-1913/14 and matches more than 51 Context: CREATE TABLE table_name_38 (average INTEGER, matches VARCHAR, wickets VARCHAR, career VARCHAR)[/INST]SELECT MIN(average) FROM table_name_38 WHERE wickets > 265 AND career = "1888/89-1913/14" AND matches > 51</s> |
CREATE TABLE Flight (departure_date VARCHAR, arrival_date VARCHAR, origin VARCHAR, destination VARCHAR) | SELECT departure_date, arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu" | Show me the departure date and arrival date for all flights from Los Angeles to Honolulu. | <s>[INST]Show me the departure date and arrival date for all flights from Los Angeles to Honolulu. Context: CREATE TABLE Flight (departure_date VARCHAR, arrival_date VARCHAR, origin VARCHAR, destination VARCHAR)[/INST]SELECT departure_date, arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"</s> |
CREATE TABLE table_23285805_6 (score VARCHAR, record VARCHAR) | SELECT score FROM table_23285805_6 WHERE record = "15-25" | What was the score with the team record was 15-25? | <s>[INST]What was the score with the team record was 15-25? Context: CREATE TABLE table_23285805_6 (score VARCHAR, record VARCHAR)[/INST]SELECT score FROM table_23285805_6 WHERE record = "15-25"</s> |
CREATE TABLE table_name_85 (round INTEGER, position VARCHAR) | SELECT MAX(round) FROM table_name_85 WHERE position = "(c)" | what is the round when the position is (c)? | <s>[INST]what is the round when the position is (c)? Context: CREATE TABLE table_name_85 (round INTEGER, position VARCHAR)[/INST]SELECT MAX(round) FROM table_name_85 WHERE position = "(c)"</s> |
CREATE TABLE table_2850912_5 (pick__number INTEGER, player VARCHAR) | SELECT MAX(pick__number) FROM table_2850912_5 WHERE player = "Timo Lehkonen" | What is Timo Lehkonen's highest pick number? | <s>[INST]What is Timo Lehkonen's highest pick number? Context: CREATE TABLE table_2850912_5 (pick__number INTEGER, player VARCHAR)[/INST]SELECT MAX(pick__number) FROM table_2850912_5 WHERE player = "Timo Lehkonen"</s> |
CREATE TABLE table_name_40 (club VARCHAR, rank VARCHAR) | SELECT club FROM table_name_40 WHERE rank = "5" | Which Club has a Rank of 5? | <s>[INST]Which Club has a Rank of 5? Context: CREATE TABLE table_name_40 (club VARCHAR, rank VARCHAR)[/INST]SELECT club FROM table_name_40 WHERE rank = "5"</s> |
CREATE TABLE table_name_93 (venue VARCHAR, score VARCHAR) | SELECT venue FROM table_name_93 WHERE score = "7-1" | What was the venue when the score was 7-1? | <s>[INST]What was the venue when the score was 7-1? Context: CREATE TABLE table_name_93 (venue VARCHAR, score VARCHAR)[/INST]SELECT venue FROM table_name_93 WHERE score = "7-1"</s> |
CREATE TABLE elimination (Team VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR, Days_held VARCHAR) | SELECT T2.Name, T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC | List the names of wrestlers and the teams in elimination in descending order of days held. | <s>[INST]List the names of wrestlers and the teams in elimination in descending order of days held. Context: CREATE TABLE elimination (Team VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR, Days_held VARCHAR)[/INST]SELECT T2.Name, T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC</s> |
CREATE TABLE table_name_53 (sensor VARCHAR, sensor_resolution VARCHAR, camera VARCHAR) | SELECT sensor FROM table_name_53 WHERE sensor_resolution = "355x288" AND camera = "naturalpoint trackir 3" | What was the sensor with a resolution of 355x288 for a Naturalpoint Trackir 3? | <s>[INST]What was the sensor with a resolution of 355x288 for a Naturalpoint Trackir 3? Context: CREATE TABLE table_name_53 (sensor VARCHAR, sensor_resolution VARCHAR, camera VARCHAR)[/INST]SELECT sensor FROM table_name_53 WHERE sensor_resolution = "355x288" AND camera = "naturalpoint trackir 3"</s> |
CREATE TABLE table_name_18 (team VARCHAR, make VARCHAR, year VARCHAR) | SELECT team FROM table_name_18 WHERE make = "dodge" AND year > 2008 | what is the team when the make is dodge and the year is after 2008? | <s>[INST]what is the team when the make is dodge and the year is after 2008? Context: CREATE TABLE table_name_18 (team VARCHAR, make VARCHAR, year VARCHAR)[/INST]SELECT team FROM table_name_18 WHERE make = "dodge" AND year > 2008</s> |
CREATE TABLE table_120778_2 (jurisdiction VARCHAR, voted_no VARCHAR) | SELECT jurisdiction FROM table_120778_2 WHERE voted_no = 322971 | what's the jurisdiction where voted no is 322971 | <s>[INST] what's the jurisdiction where voted no is 322971 Context: CREATE TABLE table_120778_2 (jurisdiction VARCHAR, voted_no VARCHAR)[/INST]SELECT jurisdiction FROM table_120778_2 WHERE voted_no = 322971</s> |
CREATE TABLE table_name_86 (points VARCHAR, games VARCHAR) | SELECT points FROM table_name_86 WHERE games = "363" | How many points were scored by the player who played 363 games? | <s>[INST]How many points were scored by the player who played 363 games? Context: CREATE TABLE table_name_86 (points VARCHAR, games VARCHAR)[/INST]SELECT points FROM table_name_86 WHERE games = "363"</s> |
CREATE TABLE table_29572583_19 (rank VARCHAR, new_points VARCHAR) | SELECT COUNT(rank) FROM table_29572583_19 WHERE new_points = 1155 | How many rank entries are there when new points are 1155? | <s>[INST]How many rank entries are there when new points are 1155? Context: CREATE TABLE table_29572583_19 (rank VARCHAR, new_points VARCHAR)[/INST]SELECT COUNT(rank) FROM table_29572583_19 WHERE new_points = 1155</s> |
CREATE TABLE table_name_42 (released VARCHAR, memory_type VARCHAR) | SELECT released FROM table_name_42 WHERE memory_type = "ddr2-667" | Whas is the released date of the memory type ddr2-667? | <s>[INST]Whas is the released date of the memory type ddr2-667? Context: CREATE TABLE table_name_42 (released VARCHAR, memory_type VARCHAR)[/INST]SELECT released FROM table_name_42 WHERE memory_type = "ddr2-667"</s> |
CREATE TABLE table_name_61 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_61 WHERE player = "dick metz" | Name the To par for dick metz | <s>[INST]Name the To par for dick metz Context: CREATE TABLE table_name_61 (to_par VARCHAR, player VARCHAR)[/INST]SELECT to_par FROM table_name_61 WHERE player = "dick metz"</s> |
CREATE TABLE table_261222_1 (area__km_2__ VARCHAR, city___municipality VARCHAR) | SELECT COUNT(area__km_2__) FROM table_261222_1 WHERE city___municipality = "Manolo Fortich" | How many places are named manolo fortich? | <s>[INST]How many places are named manolo fortich? Context: CREATE TABLE table_261222_1 (area__km_2__ VARCHAR, city___municipality VARCHAR)[/INST]SELECT COUNT(area__km_2__) FROM table_261222_1 WHERE city___municipality = "Manolo Fortich"</s> |
CREATE TABLE table_2342078_6 (directed_by VARCHAR, written_by VARCHAR) | SELECT directed_by FROM table_2342078_6 WHERE written_by = "George Tibbles" | Name who drected the episode written by george tibbles | <s>[INST]Name who drected the episode written by george tibbles Context: CREATE TABLE table_2342078_6 (directed_by VARCHAR, written_by VARCHAR)[/INST]SELECT directed_by FROM table_2342078_6 WHERE written_by = "George Tibbles"</s> |
CREATE TABLE table_name_54 (class VARCHAR, erp_w INTEGER) | SELECT class FROM table_name_54 WHERE erp_w > 30 | what is the class of the station with erp w more than 30? | <s>[INST]what is the class of the station with erp w more than 30? Context: CREATE TABLE table_name_54 (class VARCHAR, erp_w INTEGER)[/INST]SELECT class FROM table_name_54 WHERE erp_w > 30</s> |
CREATE TABLE table_name_60 (date VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR) | SELECT date FROM table_name_60 WHERE winning_constructor = "bugatti" AND winning_driver = "stanislas czaykowski" | Tell me the date for bugatti fpr stanislas czaykowski | <s>[INST]Tell me the date for bugatti fpr stanislas czaykowski Context: CREATE TABLE table_name_60 (date VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR)[/INST]SELECT date FROM table_name_60 WHERE winning_constructor = "bugatti" AND winning_driver = "stanislas czaykowski"</s> |
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR, resolution INTEGER) | SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY COUNT(*) DESC LIMIT 1 | What is the language that was used most often in songs with resolution above 500? | <s>[INST]What is the language that was used most often in songs with resolution above 500? Context: CREATE TABLE song (artist_name VARCHAR, languages VARCHAR, resolution INTEGER)[/INST]SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY COUNT(*) DESC LIMIT 1</s> |
CREATE TABLE table_name_86 (lost INTEGER, against INTEGER) | SELECT AVG(lost) FROM table_name_86 WHERE against < 5 | What is the average number lost when the against value is less than 5? | <s>[INST]What is the average number lost when the against value is less than 5? Context: CREATE TABLE table_name_86 (lost INTEGER, against INTEGER)[/INST]SELECT AVG(lost) FROM table_name_86 WHERE against < 5</s> |
CREATE TABLE table_name_60 (college VARCHAR, team VARCHAR) | SELECT college FROM table_name_60 WHERE team = "chicago stags" | What college has the Chicago Stags? | <s>[INST]What college has the Chicago Stags? Context: CREATE TABLE table_name_60 (college VARCHAR, team VARCHAR)[/INST]SELECT college FROM table_name_60 WHERE team = "chicago stags"</s> |
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_5 WHERE date = "may 5" | What was the result of the game played on May 5? | <s>[INST]What was the result of the game played on May 5? Context: CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_5 WHERE date = "may 5"</s> |
CREATE TABLE table_13618584_1 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_13618584_1 WHERE incumbent = "Dick Saslaw" | In which district was the incumbent Dick Saslaw? | <s>[INST]In which district was the incumbent Dick Saslaw? Context: CREATE TABLE table_13618584_1 (district VARCHAR, incumbent VARCHAR)[/INST]SELECT district FROM table_13618584_1 WHERE incumbent = "Dick Saslaw"</s> |
CREATE TABLE table_name_78 (format VARCHAR, frequency VARCHAR) | SELECT format FROM table_name_78 WHERE frequency = "fm 99.9" | What is FM 99.9's Format? | <s>[INST]What is FM 99.9's Format? Context: CREATE TABLE table_name_78 (format VARCHAR, frequency VARCHAR)[/INST]SELECT format FROM table_name_78 WHERE frequency = "fm 99.9"</s> |
CREATE TABLE cinema (name VARCHAR, openning_year VARCHAR) | SELECT name, openning_year FROM cinema ORDER BY openning_year DESC | Show all the cinema names and opening years in descending order of opening year. | <s>[INST]Show all the cinema names and opening years in descending order of opening year. Context: CREATE TABLE cinema (name VARCHAR, openning_year VARCHAR)[/INST]SELECT name, openning_year FROM cinema ORDER BY openning_year DESC</s> |
CREATE TABLE table_name_48 (league VARCHAR, date VARCHAR) | SELECT league FROM table_name_48 WHERE date = "5 october 1997" | What is the league on 5 October 1997? | <s>[INST]What is the league on 5 October 1997? Context: CREATE TABLE table_name_48 (league VARCHAR, date VARCHAR)[/INST]SELECT league FROM table_name_48 WHERE date = "5 october 1997"</s> |
CREATE TABLE table_14940519_1 (week VARCHAR, opponent VARCHAR) | SELECT COUNT(week) FROM table_14940519_1 WHERE opponent = "at Cleveland Browns" | Name the total number of weeks for at cleveland browns | <s>[INST]Name the total number of weeks for at cleveland browns Context: CREATE TABLE table_14940519_1 (week VARCHAR, opponent VARCHAR)[/INST]SELECT COUNT(week) FROM table_14940519_1 WHERE opponent = "at Cleveland Browns"</s> |
CREATE TABLE table_19523708_1 (draw INTEGER) | SELECT MAX(draw) FROM table_19523708_1 | What is the highest draw represented? | <s>[INST]What is the highest draw represented? Context: CREATE TABLE table_19523708_1 (draw INTEGER)[/INST]SELECT MAX(draw) FROM table_19523708_1</s> |
CREATE TABLE addresses (state_province_county VARCHAR) | SELECT COUNT(*) FROM addresses WHERE state_province_county = "Colorado" | How many cities are there in state "Colorado"? | <s>[INST]How many cities are there in state "Colorado"? Context: CREATE TABLE addresses (state_province_county VARCHAR)[/INST]SELECT COUNT(*) FROM addresses WHERE state_province_county = "Colorado"</s> |
CREATE TABLE table_name_70 (first_class_team VARCHAR, date_of_birth VARCHAR) | SELECT first_class_team FROM table_name_70 WHERE date_of_birth = "23 february 1973" | What is the first class team of the player born on 23 February 1973? | <s>[INST]What is the first class team of the player born on 23 February 1973? Context: CREATE TABLE table_name_70 (first_class_team VARCHAR, date_of_birth VARCHAR)[/INST]SELECT first_class_team FROM table_name_70 WHERE date_of_birth = "23 february 1973"</s> |
CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_80 WHERE home_team = "south melbourne" | What did the away team score when the home team was south melbourne? | <s>[INST]What did the away team score when the home team was south melbourne? Context: CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR)[/INST]SELECT away_team AS score FROM table_name_80 WHERE home_team = "south melbourne"</s> |
CREATE TABLE table_11642945_1 (celebrity VARCHAR, original_air_date VARCHAR) | SELECT COUNT(celebrity) FROM table_11642945_1 WHERE original_air_date = "18October2007" | How many celebrities had an 18October2007 Original air Date? | <s>[INST]How many celebrities had an 18October2007 Original air Date? Context: CREATE TABLE table_11642945_1 (celebrity VARCHAR, original_air_date VARCHAR)[/INST]SELECT COUNT(celebrity) FROM table_11642945_1 WHERE original_air_date = "18October2007"</s> |
CREATE TABLE table_name_97 (years VARCHAR, jersey_number_s_ VARCHAR, position VARCHAR) | SELECT years FROM table_name_97 WHERE jersey_number_s_ = "21" AND position = "sg" | What is Years, when Jersey Number(s) is 21, and when Position is SG? | <s>[INST]What is Years, when Jersey Number(s) is 21, and when Position is SG? Context: CREATE TABLE table_name_97 (years VARCHAR, jersey_number_s_ VARCHAR, position VARCHAR)[/INST]SELECT years FROM table_name_97 WHERE jersey_number_s_ = "21" AND position = "sg"</s> |
CREATE TABLE table_name_48 (round VARCHAR, overall VARCHAR) | SELECT round FROM table_name_48 WHERE overall = 123 | What number round has an overall of 123? | <s>[INST]What number round has an overall of 123? Context: CREATE TABLE table_name_48 (round VARCHAR, overall VARCHAR)[/INST]SELECT round FROM table_name_48 WHERE overall = 123</s> |
CREATE TABLE Financial_transactions (account_id VARCHAR) | SELECT account_id, COUNT(*) FROM Financial_transactions GROUP BY account_id | Show the account id and the number of transactions for each account | <s>[INST]Show the account id and the number of transactions for each account Context: CREATE TABLE Financial_transactions (account_id VARCHAR)[/INST]SELECT account_id, COUNT(*) FROM Financial_transactions GROUP BY account_id</s> |
CREATE TABLE table_name_21 (played VARCHAR, try_bonus VARCHAR, points_against VARCHAR) | SELECT played FROM table_name_21 WHERE try_bonus = "4" AND points_against = "391" | How many games did the Club that has a try bonus of 4 and 391 points against play ? | <s>[INST]How many games did the Club that has a try bonus of 4 and 391 points against play ? Context: CREATE TABLE table_name_21 (played VARCHAR, try_bonus VARCHAR, points_against VARCHAR)[/INST]SELECT played FROM table_name_21 WHERE try_bonus = "4" AND points_against = "391"</s> |
CREATE TABLE table_name_43 (icao VARCHAR, airport VARCHAR) | SELECT icao FROM table_name_43 WHERE airport = "lilongwe international airport" | Name the ICAO for lilongwe international airport | <s>[INST]Name the ICAO for lilongwe international airport Context: CREATE TABLE table_name_43 (icao VARCHAR, airport VARCHAR)[/INST]SELECT icao FROM table_name_43 WHERE airport = "lilongwe international airport"</s> |
CREATE TABLE table_name_35 (pick INTEGER, position VARCHAR, team VARCHAR) | SELECT MIN(pick) FROM table_name_35 WHERE position = "of" AND team = "chicago white sox" | What was the lowest pick when the position was OF with the Chicago White Sox? | <s>[INST]What was the lowest pick when the position was OF with the Chicago White Sox? Context: CREATE TABLE table_name_35 (pick INTEGER, position VARCHAR, team VARCHAR)[/INST]SELECT MIN(pick) FROM table_name_35 WHERE position = "of" AND team = "chicago white sox"</s> |
CREATE TABLE table_name_75 (location VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_75 WHERE opponent = "martinis knyzelis" | What is the location of the match against Martinis Knyzelis? | <s>[INST]What is the location of the match against Martinis Knyzelis? Context: CREATE TABLE table_name_75 (location VARCHAR, opponent VARCHAR)[/INST]SELECT location FROM table_name_75 WHERE opponent = "martinis knyzelis"</s> |
CREATE TABLE table_20522228_2 (rank__timeslot_ VARCHAR, rating VARCHAR) | SELECT rank__timeslot_ FROM table_20522228_2 WHERE rating = "4.1" | What are the rank timeslots where ratings are 4.1? | <s>[INST]What are the rank timeslots where ratings are 4.1? Context: CREATE TABLE table_20522228_2 (rank__timeslot_ VARCHAR, rating VARCHAR)[/INST]SELECT rank__timeslot_ FROM table_20522228_2 WHERE rating = "4.1"</s> |
CREATE TABLE table_name_8 (field_goals VARCHAR, player VARCHAR) | SELECT field_goals FROM table_name_8 WHERE player = "duncan thompson" | How many field goals did duncan thompson have? | <s>[INST]How many field goals did duncan thompson have? Context: CREATE TABLE table_name_8 (field_goals VARCHAR, player VARCHAR)[/INST]SELECT field_goals FROM table_name_8 WHERE player = "duncan thompson"</s> |
CREATE TABLE table_22083044_2 (winning_team VARCHAR, circuit VARCHAR, fastest_lap VARCHAR) | SELECT winning_team FROM table_22083044_2 WHERE circuit = "Queensland Raceway" AND fastest_lap = "Tim Macrow" | What was the winning team where Tim Macrow won the fastest lap on Queensland Raceway circuit? | <s>[INST]What was the winning team where Tim Macrow won the fastest lap on Queensland Raceway circuit? Context: CREATE TABLE table_22083044_2 (winning_team VARCHAR, circuit VARCHAR, fastest_lap VARCHAR)[/INST]SELECT winning_team FROM table_22083044_2 WHERE circuit = "Queensland Raceway" AND fastest_lap = "Tim Macrow"</s> |
CREATE TABLE CARS_DATA (Cylinders VARCHAR, Accelerate INTEGER) | SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders | What is the maximum accelerate for different number of cylinders? | <s>[INST]What is the maximum accelerate for different number of cylinders? Context: CREATE TABLE CARS_DATA (Cylinders VARCHAR, Accelerate INTEGER)[/INST]SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders</s> |
CREATE TABLE table_1397655_1 (other_programming_sources VARCHAR, year_acquired VARCHAR) | SELECT COUNT(other_programming_sources) FROM table_1397655_1 WHERE year_acquired = 1997 | how many channels were gained in 1997 | <s>[INST]how many channels were gained in 1997 Context: CREATE TABLE table_1397655_1 (other_programming_sources VARCHAR, year_acquired VARCHAR)[/INST]SELECT COUNT(other_programming_sources) FROM table_1397655_1 WHERE year_acquired = 1997</s> |
CREATE TABLE table_name_23 (span_metres INTEGER, span_feet VARCHAR, rank VARCHAR, year_opened VARCHAR, country VARCHAR) | SELECT MIN(span_metres) FROM table_name_23 WHERE year_opened = "2007" AND country = "china" AND rank < 13 AND span_feet < 1378 | What is the lowest amount of Span metres when the year opened is 2007, the country is China, rank is less than 13, and the span feet is less than 1378? | <s>[INST]What is the lowest amount of Span metres when the year opened is 2007, the country is China, rank is less than 13, and the span feet is less than 1378? Context: CREATE TABLE table_name_23 (span_metres INTEGER, span_feet VARCHAR, rank VARCHAR, year_opened VARCHAR, country VARCHAR)[/INST]SELECT MIN(span_metres) FROM table_name_23 WHERE year_opened = "2007" AND country = "china" AND rank < 13 AND span_feet < 1378</s> |
CREATE TABLE table_name_70 (county VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR) | SELECT county FROM table_name_70 WHERE ihsaa_class = "aaaa" AND mascot = "cardinals" | Which County has an IHSAA Class of aaaa, and a Mascot of cardinals? | <s>[INST]Which County has an IHSAA Class of aaaa, and a Mascot of cardinals? Context: CREATE TABLE table_name_70 (county VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)[/INST]SELECT county FROM table_name_70 WHERE ihsaa_class = "aaaa" AND mascot = "cardinals"</s> |
CREATE TABLE table_name_96 (total INTEGER, ward INTEGER) | SELECT MIN(total) FROM table_name_96 WHERE ward > 60 | WHAT IS THE TOTAL WITH WARD LARGER THAN 60? | <s>[INST]WHAT IS THE TOTAL WITH WARD LARGER THAN 60? Context: CREATE TABLE table_name_96 (total INTEGER, ward INTEGER)[/INST]SELECT MIN(total) FROM table_name_96 WHERE ward > 60</s> |
CREATE TABLE table_name_9 (name VARCHAR, regional_county_municipality VARCHAR, code VARCHAR) | SELECT name FROM table_name_9 WHERE regional_county_municipality = "d'autray" AND code < 52017 | What is the name for the regional county municipality of d'autray and a code less than 52017? | <s>[INST]What is the name for the regional county municipality of d'autray and a code less than 52017? Context: CREATE TABLE table_name_9 (name VARCHAR, regional_county_municipality VARCHAR, code VARCHAR)[/INST]SELECT name FROM table_name_9 WHERE regional_county_municipality = "d'autray" AND code < 52017</s> |
CREATE TABLE table_1342149_24 (candidates VARCHAR, first_elected VARCHAR) | SELECT COUNT(candidates) FROM table_1342149_24 WHERE first_elected = 1941 | Name the number of candidates for 1941 | <s>[INST]Name the number of candidates for 1941 Context: CREATE TABLE table_1342149_24 (candidates VARCHAR, first_elected VARCHAR)[/INST]SELECT COUNT(candidates) FROM table_1342149_24 WHERE first_elected = 1941</s> |
CREATE TABLE table_name_1 (course VARCHAR, race_leader VARCHAR) | SELECT course FROM table_name_1 WHERE race_leader = "rest day" | Which course had a rest day for the Race Leader? | <s>[INST]Which course had a rest day for the Race Leader? Context: CREATE TABLE table_name_1 (course VARCHAR, race_leader VARCHAR)[/INST]SELECT course FROM table_name_1 WHERE race_leader = "rest day"</s> |
CREATE TABLE table_25037577_1 (superintendent VARCHAR, year VARCHAR, middle_school_principal VARCHAR, gorham_principal VARCHAR) | SELECT superintendent FROM table_25037577_1 WHERE middle_school_principal = "Alan Degroote" AND gorham_principal = "Paul Lahue" AND year = "2006-2007" | Who were the superintendent(s) when the middle school principal was alan degroote, the gorham principal was paul lahue, and the year was 2006-2007? | <s>[INST]Who were the superintendent(s) when the middle school principal was alan degroote, the gorham principal was paul lahue, and the year was 2006-2007? Context: CREATE TABLE table_25037577_1 (superintendent VARCHAR, year VARCHAR, middle_school_principal VARCHAR, gorham_principal VARCHAR)[/INST]SELECT superintendent FROM table_25037577_1 WHERE middle_school_principal = "Alan Degroote" AND gorham_principal = "Paul Lahue" AND year = "2006-2007"</s> |
CREATE TABLE table_name_11 (manufacturer VARCHAR, time VARCHAR) | SELECT manufacturer FROM table_name_11 WHERE time = "+10.142" | Which manufacturer has a time of +10.142? | <s>[INST]Which manufacturer has a time of +10.142? Context: CREATE TABLE table_name_11 (manufacturer VARCHAR, time VARCHAR)[/INST]SELECT manufacturer FROM table_name_11 WHERE time = "+10.142"</s> |
CREATE TABLE table_name_53 (nationality VARCHAR, college VARCHAR) | SELECT nationality FROM table_name_53 WHERE college = "southwestern oklahoma" | WHAT IS THE NATIONALITY FOR SOUTHWESTERN OKLAHOMA? | <s>[INST]WHAT IS THE NATIONALITY FOR SOUTHWESTERN OKLAHOMA? Context: CREATE TABLE table_name_53 (nationality VARCHAR, college VARCHAR)[/INST]SELECT nationality FROM table_name_53 WHERE college = "southwestern oklahoma"</s> |
CREATE TABLE table_name_78 (points INTEGER, goals VARCHAR, assists VARCHAR, games VARCHAR) | SELECT SUM(points) FROM table_name_78 WHERE assists = 7 AND games = 11 AND goals < 6 | If the goals scored were below 6, 11 games were played, and there were 7 assists, what's the sum of points with games meeting these criteria? | <s>[INST]If the goals scored were below 6, 11 games were played, and there were 7 assists, what's the sum of points with games meeting these criteria? Context: CREATE TABLE table_name_78 (points INTEGER, goals VARCHAR, assists VARCHAR, games VARCHAR)[/INST]SELECT SUM(points) FROM table_name_78 WHERE assists = 7 AND games = 11 AND goals < 6</s> |
CREATE TABLE table_name_74 (service VARCHAR, network VARCHAR) | SELECT service FROM table_name_74 WHERE network = "atn urdu" | Which service does the network of atn urdu offer? | <s>[INST]Which service does the network of atn urdu offer? Context: CREATE TABLE table_name_74 (service VARCHAR, network VARCHAR)[/INST]SELECT service FROM table_name_74 WHERE network = "atn urdu"</s> |
CREATE TABLE table_name_86 (points INTEGER, english_translation VARCHAR) | SELECT AVG(points) FROM table_name_86 WHERE english_translation = "sing" | The English translation of Sing has what average points? | <s>[INST]The English translation of Sing has what average points? Context: CREATE TABLE table_name_86 (points INTEGER, english_translation VARCHAR)[/INST]SELECT AVG(points) FROM table_name_86 WHERE english_translation = "sing"</s> |
CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Employee (eid VARCHAR, name VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR) | SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = "John Williams" | Show names for all aircrafts of which John Williams has certificates. | <s>[INST]Show names for all aircrafts of which John Williams has certificates. Context: CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Employee (eid VARCHAR, name VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR)[/INST]SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = "John Williams"</s> |
CREATE TABLE table_name_10 (lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR) | SELECT lead_envoy FROM table_name_10 WHERE ryūkyūan_king = "shō kei" AND mission_type = "congratulation" AND year = 1718 | Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei? | <s>[INST]Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei? Context: CREATE TABLE table_name_10 (lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR)[/INST]SELECT lead_envoy FROM table_name_10 WHERE ryūkyūan_king = "shō kei" AND mission_type = "congratulation" AND year = 1718</s> |
CREATE TABLE table_11585313_1 (name VARCHAR, date_of_death† VARCHAR) | SELECT name FROM table_11585313_1 WHERE date_of_death† = "01-04-1954" | What is the name of the person whose date of death is 01-04-1954? | <s>[INST]What is the name of the person whose date of death is 01-04-1954? Context: CREATE TABLE table_11585313_1 (name VARCHAR, date_of_death† VARCHAR)[/INST]SELECT name FROM table_11585313_1 WHERE date_of_death† = "01-04-1954"</s> |
CREATE TABLE table_name_8 (name VARCHAR, term_expires VARCHAR, appointing_governor VARCHAR) | SELECT name FROM table_name_8 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad" | Which person has an expiring term of December 31, 2020, and has Terry Branstad as the appointing governor? | <s>[INST]Which person has an expiring term of December 31, 2020, and has Terry Branstad as the appointing governor? Context: CREATE TABLE table_name_8 (name VARCHAR, term_expires VARCHAR, appointing_governor VARCHAR)[/INST]SELECT name FROM table_name_8 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad"</s> |
CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR) | SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' | Find the name of tracks which are in Movies playlist but not in music playlist. | <s>[INST]Find the name of tracks which are in Movies playlist but not in music playlist. Context: CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)[/INST]SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'</s> |
CREATE TABLE table_name_19 (swimsuit VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR) | SELECT COUNT(swimsuit) FROM table_name_19 WHERE average < 8.823 AND evening_gown < 8.69 AND interview = 8.27 | What is the total number of swimsuit scores that have average scores less than 8.823, evening gown scores less than 8.69, and interview scores equal to 8.27? | <s>[INST]What is the total number of swimsuit scores that have average scores less than 8.823, evening gown scores less than 8.69, and interview scores equal to 8.27? Context: CREATE TABLE table_name_19 (swimsuit VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR)[/INST]SELECT COUNT(swimsuit) FROM table_name_19 WHERE average < 8.823 AND evening_gown < 8.69 AND interview = 8.27</s> |
CREATE TABLE table_name_18 (yeast_ortholog VARCHAR, mouse_ortholog VARCHAR) | SELECT yeast_ortholog FROM table_name_18 WHERE mouse_ortholog = "mms19" | What is the yeast ortholog of mouse ortholog MMS19? | <s>[INST]What is the yeast ortholog of mouse ortholog MMS19? Context: CREATE TABLE table_name_18 (yeast_ortholog VARCHAR, mouse_ortholog VARCHAR)[/INST]SELECT yeast_ortholog FROM table_name_18 WHERE mouse_ortholog = "mms19"</s> |
CREATE TABLE table_name_50 (year INTEGER, play VARCHAR, recipient VARCHAR) | SELECT AVG(year) FROM table_name_50 WHERE play = "much ado about nothing" AND recipient = "ray virta" | Name the average year for much ado about nothing and recipient of ray virta | <s>[INST]Name the average year for much ado about nothing and recipient of ray virta Context: CREATE TABLE table_name_50 (year INTEGER, play VARCHAR, recipient VARCHAR)[/INST]SELECT AVG(year) FROM table_name_50 WHERE play = "much ado about nothing" AND recipient = "ray virta"</s> |
CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR) | SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY COUNT(*) DESC LIMIT 1 | What are the first and last name of the faculty who has the most students? | <s>[INST]What are the first and last name of the faculty who has the most students? Context: CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR)[/INST]SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY COUNT(*) DESC LIMIT 1</s> |
CREATE TABLE table_name_51 (home VARCHAR, decision VARCHAR, visitor VARCHAR) | SELECT home FROM table_name_51 WHERE decision = "price" AND visitor = "new jersey devils" | What is the home team of the game with a price decision and the new jersey devils as the visitor team? | <s>[INST]What is the home team of the game with a price decision and the new jersey devils as the visitor team? Context: CREATE TABLE table_name_51 (home VARCHAR, decision VARCHAR, visitor VARCHAR)[/INST]SELECT home FROM table_name_51 WHERE decision = "price" AND visitor = "new jersey devils"</s> |
CREATE TABLE table_name_62 (location VARCHAR, game VARCHAR) | SELECT location FROM table_name_62 WHERE game = 78 | Where was game 78 held? | <s>[INST]Where was game 78 held? Context: CREATE TABLE table_name_62 (location VARCHAR, game VARCHAR)[/INST]SELECT location FROM table_name_62 WHERE game = 78</s> |
CREATE TABLE table_name_59 (money___£__ VARCHAR, country VARCHAR, player VARCHAR) | SELECT money___£__ FROM table_name_59 WHERE country = "england" AND player = "malcolm mackenzie" | Can you tell me the Money (£) that has the Country of england, and the Player of malcolm mackenzie? | <s>[INST]Can you tell me the Money (£) that has the Country of england, and the Player of malcolm mackenzie? Context: CREATE TABLE table_name_59 (money___£__ VARCHAR, country VARCHAR, player VARCHAR)[/INST]SELECT money___£__ FROM table_name_59 WHERE country = "england" AND player = "malcolm mackenzie"</s> |
CREATE TABLE suppliers (customer_phone VARCHAR, supplier_phone VARCHAR); CREATE TABLE customers (customer_phone VARCHAR, supplier_phone VARCHAR) | SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers | What are the phone numbers of all customers and suppliers. | <s>[INST]What are the phone numbers of all customers and suppliers. Context: CREATE TABLE suppliers (customer_phone VARCHAR, supplier_phone VARCHAR); CREATE TABLE customers (customer_phone VARCHAR, supplier_phone VARCHAR)[/INST]SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers</s> |
CREATE TABLE table_name_87 (water_depth VARCHAR, location VARCHAR, name VARCHAR) | SELECT water_depth FROM table_name_87 WHERE location = "gulf of mexico" AND name = "discoverer clear leader" | What was the water depth in the Gulf of Mexico named Discoverer Clear Leader? | <s>[INST]What was the water depth in the Gulf of Mexico named Discoverer Clear Leader? Context: CREATE TABLE table_name_87 (water_depth VARCHAR, location VARCHAR, name VARCHAR)[/INST]SELECT water_depth FROM table_name_87 WHERE location = "gulf of mexico" AND name = "discoverer clear leader"</s> |
CREATE TABLE table_name_19 (bronze INTEGER, gold VARCHAR, silver VARCHAR) | SELECT SUM(bronze) FROM table_name_19 WHERE gold = 1 AND silver < 1 | What is the sum of bronzes for countries with 1 gold and under 1 silver? | <s>[INST]What is the sum of bronzes for countries with 1 gold and under 1 silver? Context: CREATE TABLE table_name_19 (bronze INTEGER, gold VARCHAR, silver VARCHAR)[/INST]SELECT SUM(bronze) FROM table_name_19 WHERE gold = 1 AND silver < 1</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.