context
stringlengths 27
489
| answer
stringlengths 18
557
| question
stringlengths 12
243
| text
stringlengths 103
1.05k
|
---|---|---|---|
CREATE TABLE table_name_85 (venue VARCHAR, score VARCHAR, h_a_n VARCHAR, pos VARCHAR) | SELECT venue FROM table_name_85 WHERE h_a_n = "neutral" AND pos < 3 AND score = "141" | Which venue has a neutral H/A/N, lower than position 3 and a score of 141? | <s>[INST]Which venue has a neutral H/A/N, lower than position 3 and a score of 141? Context: CREATE TABLE table_name_85 (venue VARCHAR, score VARCHAR, h_a_n VARCHAR, pos VARCHAR)[/INST]SELECT venue FROM table_name_85 WHERE h_a_n = "neutral" AND pos < 3 AND score = "141"</s> |
CREATE TABLE table_26593762_2 (team VARCHAR, manager VARCHAR) | SELECT team AS captain FROM table_26593762_2 WHERE manager = "Neil Warnock" | Who is the captain of Neil Warnock's team? | <s>[INST]Who is the captain of Neil Warnock's team? Context: CREATE TABLE table_26593762_2 (team VARCHAR, manager VARCHAR)[/INST]SELECT team AS captain FROM table_26593762_2 WHERE manager = "Neil Warnock"</s> |
CREATE TABLE table_23242968_1 (directed_by VARCHAR, written_by VARCHAR) | SELECT directed_by FROM table_23242968_1 WHERE written_by = "Jonathan Fener" | Who directed the episode that was written by Jonathan Fener? | <s>[INST]Who directed the episode that was written by Jonathan Fener? Context: CREATE TABLE table_23242968_1 (directed_by VARCHAR, written_by VARCHAR)[/INST]SELECT directed_by FROM table_23242968_1 WHERE written_by = "Jonathan Fener"</s> |
CREATE TABLE table_name_60 (location VARCHAR, listed VARCHAR) | SELECT location FROM table_name_60 WHERE listed = "1977-09-15" | What location was listed on 1977-09-15? | <s>[INST]What location was listed on 1977-09-15? Context: CREATE TABLE table_name_60 (location VARCHAR, listed VARCHAR)[/INST]SELECT location FROM table_name_60 WHERE listed = "1977-09-15"</s> |
CREATE TABLE table_name_44 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_44 WHERE player = "mark o'meara" | What is Mark O'Meara's Score? | <s>[INST]What is Mark O'Meara's Score? Context: CREATE TABLE table_name_44 (score VARCHAR, player VARCHAR)[/INST]SELECT score FROM table_name_44 WHERE player = "mark o'meara"</s> |
CREATE TABLE table_name_5 (name VARCHAR, pos VARCHAR, club VARCHAR, height VARCHAR) | SELECT name FROM table_name_5 WHERE club = "spandau 04" AND height = "m (ft 4in)" AND pos = "d" | What D Player with a Height of m (ft 4in) is in the Spandau 04 Club? | <s>[INST]What D Player with a Height of m (ft 4in) is in the Spandau 04 Club? Context: CREATE TABLE table_name_5 (name VARCHAR, pos VARCHAR, club VARCHAR, height VARCHAR)[/INST]SELECT name FROM table_name_5 WHERE club = "spandau 04" AND height = "m (ft 4in)" AND pos = "d"</s> |
CREATE TABLE table_name_27 (try_bonus VARCHAR, club VARCHAR) | SELECT try_bonus FROM table_name_27 WHERE club = "caerphilly rfc" | What try bonus has a club of caerphilly rfc? | <s>[INST]What try bonus has a club of caerphilly rfc? Context: CREATE TABLE table_name_27 (try_bonus VARCHAR, club VARCHAR)[/INST]SELECT try_bonus FROM table_name_27 WHERE club = "caerphilly rfc"</s> |
CREATE TABLE table_name_44 (title VARCHAR, last_issue VARCHAR, first_issue VARCHAR) | SELECT title FROM table_name_44 WHERE last_issue = "ongoing" AND first_issue = "february 2009" | What is the title that was first published in February 2009 and is still ongoing? | <s>[INST]What is the title that was first published in February 2009 and is still ongoing? Context: CREATE TABLE table_name_44 (title VARCHAR, last_issue VARCHAR, first_issue VARCHAR)[/INST]SELECT title FROM table_name_44 WHERE last_issue = "ongoing" AND first_issue = "february 2009"</s> |
CREATE TABLE table_name_86 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_86 WHERE away_team = "south melbourne" | What is the away team score for South Melbourne? | <s>[INST]What is the away team score for South Melbourne? Context: CREATE TABLE table_name_86 (away_team VARCHAR)[/INST]SELECT away_team AS score FROM table_name_86 WHERE away_team = "south melbourne"</s> |
CREATE TABLE table_16729063_1 (pick__number VARCHAR, position VARCHAR) | SELECT COUNT(pick__number) FROM table_16729063_1 WHERE position = "Defensive End" | How many draft picks are there at the Defensive End position? | <s>[INST]How many draft picks are there at the Defensive End position? Context: CREATE TABLE table_16729063_1 (pick__number VARCHAR, position VARCHAR)[/INST]SELECT COUNT(pick__number) FROM table_16729063_1 WHERE position = "Defensive End"</s> |
CREATE TABLE table_name_49 (overall INTEGER, school_club_team VARCHAR, round VARCHAR) | SELECT AVG(overall) FROM table_name_49 WHERE school_club_team = "duke" AND round > 9 | What is the average overall rank of all players drafted from Duke after round 9? | <s>[INST]What is the average overall rank of all players drafted from Duke after round 9? Context: CREATE TABLE table_name_49 (overall INTEGER, school_club_team VARCHAR, round VARCHAR)[/INST]SELECT AVG(overall) FROM table_name_49 WHERE school_club_team = "duke" AND round > 9</s> |
CREATE TABLE table_name_58 (format VARCHAR, frequency VARCHAR) | SELECT format FROM table_name_58 WHERE frequency = "fm 94.5" | what is the format when the frequency is fm 94.5? | <s>[INST]what is the format when the frequency is fm 94.5? Context: CREATE TABLE table_name_58 (format VARCHAR, frequency VARCHAR)[/INST]SELECT format FROM table_name_58 WHERE frequency = "fm 94.5"</s> |
CREATE TABLE table_name_35 (tries_for VARCHAR, points_against VARCHAR, try_bonus VARCHAR, tries_against VARCHAR) | SELECT tries_for FROM table_name_35 WHERE try_bonus = "6" AND tries_against = "41" AND points_against = "317" | Name the tries when tries against were 41, try bonus was 6, and had 317 points. | <s>[INST]Name the tries when tries against were 41, try bonus was 6, and had 317 points. Context: CREATE TABLE table_name_35 (tries_for VARCHAR, points_against VARCHAR, try_bonus VARCHAR, tries_against VARCHAR)[/INST]SELECT tries_for FROM table_name_35 WHERE try_bonus = "6" AND tries_against = "41" AND points_against = "317"</s> |
CREATE TABLE table_name_10 (date VARCHAR, tournament VARCHAR) | SELECT date FROM table_name_10 WHERE tournament = "the tour championship" | When did the Tournament of the Tour Championship take place? | <s>[INST]When did the Tournament of the Tour Championship take place? Context: CREATE TABLE table_name_10 (date VARCHAR, tournament VARCHAR)[/INST]SELECT date FROM table_name_10 WHERE tournament = "the tour championship"</s> |
CREATE TABLE table_name_64 (height_m___ft VARCHAR, street_address VARCHAR) | SELECT height_m___ft FROM table_name_64 WHERE street_address = "207 w. hastings st." | What is the height m/ft where 207 w. hastings st. is the address? | <s>[INST]What is the height m/ft where 207 w. hastings st. is the address? Context: CREATE TABLE table_name_64 (height_m___ft VARCHAR, street_address VARCHAR)[/INST]SELECT height_m___ft FROM table_name_64 WHERE street_address = "207 w. hastings st."</s> |
CREATE TABLE table_name_57 (res VARCHAR, opponent VARCHAR) | SELECT res FROM table_name_57 WHERE opponent = "nate mohr" | What was the result of the event against Nate Mohr? | <s>[INST]What was the result of the event against Nate Mohr? Context: CREATE TABLE table_name_57 (res VARCHAR, opponent VARCHAR)[/INST]SELECT res FROM table_name_57 WHERE opponent = "nate mohr"</s> |
CREATE TABLE table_name_1 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_1 WHERE score = "6–4" | On what date was the score 6–4? | <s>[INST]On what date was the score 6–4? Context: CREATE TABLE table_name_1 (date VARCHAR, score VARCHAR)[/INST]SELECT date FROM table_name_1 WHERE score = "6–4"</s> |
CREATE TABLE table_name_70 (pick__number INTEGER, round VARCHAR) | SELECT SUM(pick__number) FROM table_name_70 WHERE round = 4 | What is the sum pick # of the player from round 4? | <s>[INST]What is the sum pick # of the player from round 4? Context: CREATE TABLE table_name_70 (pick__number INTEGER, round VARCHAR)[/INST]SELECT SUM(pick__number) FROM table_name_70 WHERE round = 4</s> |
CREATE TABLE table_name_11 (area VARCHAR, authority VARCHAR, roll VARCHAR) | SELECT area FROM table_name_11 WHERE authority = "state" AND roll > 157 | Where is the school with state authority that has a roll of more than 157 students? | <s>[INST]Where is the school with state authority that has a roll of more than 157 students? Context: CREATE TABLE table_name_11 (area VARCHAR, authority VARCHAR, roll VARCHAR)[/INST]SELECT area FROM table_name_11 WHERE authority = "state" AND roll > 157</s> |
CREATE TABLE table_name_83 (match_report VARCHAR, date VARCHAR) | SELECT match_report FROM table_name_83 WHERE date = "october 26, 2008" | Which Match Report has a Date of october 26, 2008? | <s>[INST]Which Match Report has a Date of october 26, 2008? Context: CREATE TABLE table_name_83 (match_report VARCHAR, date VARCHAR)[/INST]SELECT match_report FROM table_name_83 WHERE date = "october 26, 2008"</s> |
CREATE TABLE table_name_9 (round INTEGER, player VARCHAR) | SELECT MIN(round) FROM table_name_9 WHERE player = "adam wiesel" | What is the lowest round that Adam Wiesel was picked? | <s>[INST]What is the lowest round that Adam Wiesel was picked? Context: CREATE TABLE table_name_9 (round INTEGER, player VARCHAR)[/INST]SELECT MIN(round) FROM table_name_9 WHERE player = "adam wiesel"</s> |
CREATE TABLE festival_detail (Num_of_Audience INTEGER) | SELECT SUM(Num_of_Audience) FROM festival_detail | What are the total number of the audiences who visited any of the festivals? | <s>[INST]What are the total number of the audiences who visited any of the festivals? Context: CREATE TABLE festival_detail (Num_of_Audience INTEGER)[/INST]SELECT SUM(Num_of_Audience) FROM festival_detail</s> |
CREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR) | SELECT profits__billion_$_ FROM table_1682026_3 WHERE market_value__billion_$_ = "172.9" | What are the profits (in billions) of the company with a market value of 172.9 billion? | <s>[INST]What are the profits (in billions) of the company with a market value of 172.9 billion? Context: CREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR)[/INST]SELECT profits__billion_$_ FROM table_1682026_3 WHERE market_value__billion_$_ = "172.9"</s> |
CREATE TABLE table_10470082_5 (no VARCHAR, villains VARCHAR) | SELECT COUNT(no) FROM table_10470082_5 WHERE villains = "Mrs. Briar" | How many have Mrs. briar as a villain | <s>[INST]How many have Mrs. briar as a villain Context: CREATE TABLE table_10470082_5 (no VARCHAR, villains VARCHAR)[/INST]SELECT COUNT(no) FROM table_10470082_5 WHERE villains = "Mrs. Briar"</s> |
CREATE TABLE table_name_14 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_14 WHERE home_team = "south melbourne" | What was the date when South Melbourne was the home team? | <s>[INST]What was the date when South Melbourne was the home team? Context: CREATE TABLE table_name_14 (date VARCHAR, home_team VARCHAR)[/INST]SELECT date FROM table_name_14 WHERE home_team = "south melbourne"</s> |
CREATE TABLE table_name_28 (seasons VARCHAR, entries VARCHAR, poles VARCHAR) | SELECT seasons FROM table_name_28 WHERE entries > 52 AND poles = 33 | Which Seasons have Entries larger than 52, and Poles of 33? | <s>[INST]Which Seasons have Entries larger than 52, and Poles of 33? Context: CREATE TABLE table_name_28 (seasons VARCHAR, entries VARCHAR, poles VARCHAR)[/INST]SELECT seasons FROM table_name_28 WHERE entries > 52 AND poles = 33</s> |
CREATE TABLE table_2820584_2 (year INTEGER) | SELECT MAX(year) FROM table_2820584_2 | What is the most recent year shown for Betty Stove? | <s>[INST]What is the most recent year shown for Betty Stove? Context: CREATE TABLE table_2820584_2 (year INTEGER)[/INST]SELECT MAX(year) FROM table_2820584_2</s> |
CREATE TABLE table_name_30 (home VARCHAR, date VARCHAR) | SELECT home FROM table_name_30 WHERE date = "may 2" | Who was the home team on the May 2 game? | <s>[INST]Who was the home team on the May 2 game? Context: CREATE TABLE table_name_30 (home VARCHAR, date VARCHAR)[/INST]SELECT home FROM table_name_30 WHERE date = "may 2"</s> |
CREATE TABLE table_name_66 (date VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_66 WHERE visitor = "ny islanders" | What date has ny islanders as the visitor? | <s>[INST]What date has ny islanders as the visitor? Context: CREATE TABLE table_name_66 (date VARCHAR, visitor VARCHAR)[/INST]SELECT date FROM table_name_66 WHERE visitor = "ny islanders"</s> |
CREATE TABLE table_name_67 (team VARCHAR, driver VARCHAR, points VARCHAR, grid VARCHAR) | SELECT team FROM table_name_67 WHERE points = 0 AND grid > 13 AND driver = "alex yoong" | Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong? | <s>[INST]Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong? Context: CREATE TABLE table_name_67 (team VARCHAR, driver VARCHAR, points VARCHAR, grid VARCHAR)[/INST]SELECT team FROM table_name_67 WHERE points = 0 AND grid > 13 AND driver = "alex yoong"</s> |
CREATE TABLE table_12146068_2 (gt1_winning_team VARCHAR, rnd VARCHAR) | SELECT COUNT(gt1_winning_team) FROM table_12146068_2 WHERE rnd = 5 | What is the number of gt1 winning team for rnd 5? | <s>[INST]What is the number of gt1 winning team for rnd 5? Context: CREATE TABLE table_12146068_2 (gt1_winning_team VARCHAR, rnd VARCHAR)[/INST]SELECT COUNT(gt1_winning_team) FROM table_12146068_2 WHERE rnd = 5</s> |
CREATE TABLE Rating (stars INTEGER) | SELECT MAX(stars), MIN(stars) FROM Rating | What is the lowest and highest rating star? | <s>[INST]What is the lowest and highest rating star? Context: CREATE TABLE Rating (stars INTEGER)[/INST]SELECT MAX(stars), MIN(stars) FROM Rating</s> |
CREATE TABLE table_name_61 (played INTEGER, losses VARCHAR, wins VARCHAR) | SELECT AVG(played) FROM table_name_61 WHERE losses = 6 AND wins > 33 | How many Played that has Losses of 6, and Wins larger than 33? | <s>[INST]How many Played that has Losses of 6, and Wins larger than 33? Context: CREATE TABLE table_name_61 (played INTEGER, losses VARCHAR, wins VARCHAR)[/INST]SELECT AVG(played) FROM table_name_61 WHERE losses = 6 AND wins > 33</s> |
CREATE TABLE table_name_37 (skip VARCHAR, third VARCHAR) | SELECT skip FROM table_name_37 WHERE third = "constanze hummelt" | Which Skip has a Third of constanze hummelt? | <s>[INST]Which Skip has a Third of constanze hummelt? Context: CREATE TABLE table_name_37 (skip VARCHAR, third VARCHAR)[/INST]SELECT skip FROM table_name_37 WHERE third = "constanze hummelt"</s> |
CREATE TABLE table_27698941_6 (score VARCHAR, record VARCHAR) | SELECT score FROM table_27698941_6 WHERE record = "3–12" | What is the score for the game with the record of 3–12? | <s>[INST]What is the score for the game with the record of 3–12? Context: CREATE TABLE table_27698941_6 (score VARCHAR, record VARCHAR)[/INST]SELECT score FROM table_27698941_6 WHERE record = "3–12"</s> |
CREATE TABLE table_name_67 (visitor VARCHAR, home VARCHAR) | SELECT visitor FROM table_name_67 WHERE home = "minnesota" | Who is the visiting team when Minnesota is the home team? | <s>[INST]Who is the visiting team when Minnesota is the home team? Context: CREATE TABLE table_name_67 (visitor VARCHAR, home VARCHAR)[/INST]SELECT visitor FROM table_name_67 WHERE home = "minnesota"</s> |
CREATE TABLE table_name_43 (manufacturer VARCHAR, fleet_numbers VARCHAR) | SELECT manufacturer FROM table_name_43 WHERE fleet_numbers = "wlwr 2, 4, 11" | Who manufactured fleet numbers of wlwr 2, 4, 11? | <s>[INST]Who manufactured fleet numbers of wlwr 2, 4, 11? Context: CREATE TABLE table_name_43 (manufacturer VARCHAR, fleet_numbers VARCHAR)[/INST]SELECT manufacturer FROM table_name_43 WHERE fleet_numbers = "wlwr 2, 4, 11"</s> |
CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR) | SELECT COUNT(original_air_date) FROM table_28859177_3 WHERE directed_by = "Bethany Rooney" | How many original air dates did the episode directed by Bethany rooney have? | <s>[INST]How many original air dates did the episode directed by Bethany rooney have? Context: CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR)[/INST]SELECT COUNT(original_air_date) FROM table_28859177_3 WHERE directed_by = "Bethany Rooney"</s> |
CREATE TABLE table_name_17 (inegi_code INTEGER, population_density___km_2__ VARCHAR, human_development_index__2000_ VARCHAR) | SELECT AVG(inegi_code) FROM table_name_17 WHERE population_density___km_2__ < 81.4 AND human_development_index__2000_ = 0.6593 | WHich INEGI code has a Population density (/km 2 ) smaller than 81.4 and 0.6593 Human Development Index (2000)? | <s>[INST]WHich INEGI code has a Population density (/km 2 ) smaller than 81.4 and 0.6593 Human Development Index (2000)? Context: CREATE TABLE table_name_17 (inegi_code INTEGER, population_density___km_2__ VARCHAR, human_development_index__2000_ VARCHAR)[/INST]SELECT AVG(inegi_code) FROM table_name_17 WHERE population_density___km_2__ < 81.4 AND human_development_index__2000_ = 0.6593</s> |
CREATE TABLE Employees (employee_id VARCHAR, Destroyed_by_Employee_ID VARCHAR); CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destroyed_by_Employee_ID VARCHAR) | SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed | Show the ids of all employees who don't destroy any document. | <s>[INST]Show the ids of all employees who don't destroy any document. Context: CREATE TABLE Employees (employee_id VARCHAR, Destroyed_by_Employee_ID VARCHAR); CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destroyed_by_Employee_ID VARCHAR)[/INST]SELECT employee_id FROM Employees EXCEPT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed</s> |
CREATE TABLE table_name_65 (nickname VARCHAR, established VARCHAR) | SELECT nickname FROM table_name_65 WHERE established = 1773 | What is the nickname of the college established in 1773? | <s>[INST]What is the nickname of the college established in 1773? Context: CREATE TABLE table_name_65 (nickname VARCHAR, established VARCHAR)[/INST]SELECT nickname FROM table_name_65 WHERE established = 1773</s> |
CREATE TABLE table_name_79 (interview INTEGER, swimsuit VARCHAR, country VARCHAR, preliminaries VARCHAR, evening_gown VARCHAR) | SELECT MIN(interview) FROM table_name_79 WHERE preliminaries < 9.4 AND evening_gown < 9.55 AND country = "new york" AND swimsuit > 9.18 | What is the least score for interview with a preliminaries score less than 9.4, evening gown score less than 9.55, and swimsuit score more than 9.18 in New York? | <s>[INST]What is the least score for interview with a preliminaries score less than 9.4, evening gown score less than 9.55, and swimsuit score more than 9.18 in New York? Context: CREATE TABLE table_name_79 (interview INTEGER, swimsuit VARCHAR, country VARCHAR, preliminaries VARCHAR, evening_gown VARCHAR)[/INST]SELECT MIN(interview) FROM table_name_79 WHERE preliminaries < 9.4 AND evening_gown < 9.55 AND country = "new york" AND swimsuit > 9.18</s> |
CREATE TABLE table_23705843_1 (writer VARCHAR, ratings__millions_ VARCHAR) | SELECT writer FROM table_23705843_1 WHERE ratings__millions_ = "2.61" | What is the name of the writer when the ratings was 2.61 million? | <s>[INST]What is the name of the writer when the ratings was 2.61 million? Context: CREATE TABLE table_23705843_1 (writer VARCHAR, ratings__millions_ VARCHAR)[/INST]SELECT writer FROM table_23705843_1 WHERE ratings__millions_ = "2.61"</s> |
CREATE TABLE table_name_26 (speed VARCHAR, rank VARCHAR) | SELECT speed FROM table_name_26 WHERE rank = "1" | What is the speed for rank 1? | <s>[INST]What is the speed for rank 1? Context: CREATE TABLE table_name_26 (speed VARCHAR, rank VARCHAR)[/INST]SELECT speed FROM table_name_26 WHERE rank = "1"</s> |
CREATE TABLE table_name_12 (country VARCHAR, mountain VARCHAR, range VARCHAR, prominence__m_ VARCHAR, height__m_ VARCHAR) | SELECT country FROM table_name_12 WHERE prominence__m_ < 1540 AND height__m_ < 3530 AND range = "virunga mountains" AND mountain = "nyiragongo" | Which Country has a Prominence (m) smaller than 1540, and a Height (m) smaller than 3530, and a Range of virunga mountains, and a Mountain of nyiragongo? | <s>[INST]Which Country has a Prominence (m) smaller than 1540, and a Height (m) smaller than 3530, and a Range of virunga mountains, and a Mountain of nyiragongo? Context: CREATE TABLE table_name_12 (country VARCHAR, mountain VARCHAR, range VARCHAR, prominence__m_ VARCHAR, height__m_ VARCHAR)[/INST]SELECT country FROM table_name_12 WHERE prominence__m_ < 1540 AND height__m_ < 3530 AND range = "virunga mountains" AND mountain = "nyiragongo"</s> |
CREATE TABLE roller_coaster (Country_ID VARCHAR, Height VARCHAR); CREATE TABLE country (Name VARCHAR, population VARCHAR, Country_ID VARCHAR) | SELECT T1.Name, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1 | Show the name and population of the country that has the highest roller coaster. | <s>[INST]Show the name and population of the country that has the highest roller coaster. Context: CREATE TABLE roller_coaster (Country_ID VARCHAR, Height VARCHAR); CREATE TABLE country (Name VARCHAR, population VARCHAR, Country_ID VARCHAR)[/INST]SELECT T1.Name, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1</s> |
CREATE TABLE table_224837_4 (date_successor_seated VARCHAR, reason_for_change VARCHAR) | SELECT date_successor_seated FROM table_224837_4 WHERE reason_for_change = "Contested election; served until February 14, 1794" | Name the date successor seated for contested election; served until february 14, 1794 | <s>[INST]Name the date successor seated for contested election; served until february 14, 1794 Context: CREATE TABLE table_224837_4 (date_successor_seated VARCHAR, reason_for_change VARCHAR)[/INST]SELECT date_successor_seated FROM table_224837_4 WHERE reason_for_change = "Contested election; served until February 14, 1794"</s> |
CREATE TABLE table_1233026_4 (club VARCHAR) | SELECT 1 AS st_leg FROM table_1233026_4 WHERE club = "A.C. Libertas" | What is the 1st leg when club is a.c. libertas? | <s>[INST]What is the 1st leg when club is a.c. libertas? Context: CREATE TABLE table_1233026_4 (club VARCHAR)[/INST]SELECT 1 AS st_leg FROM table_1233026_4 WHERE club = "A.C. Libertas"</s> |
CREATE TABLE table_name_22 (player VARCHAR, nhl_team VARCHAR, pick__number VARCHAR) | SELECT player FROM table_name_22 WHERE nhl_team = "new york rangers" AND pick__number = "31" | What is the name of the Player that shows the NHL team of new york rangers, and a Pick # of 31? | <s>[INST]What is the name of the Player that shows the NHL team of new york rangers, and a Pick # of 31? Context: CREATE TABLE table_name_22 (player VARCHAR, nhl_team VARCHAR, pick__number VARCHAR)[/INST]SELECT player FROM table_name_22 WHERE nhl_team = "new york rangers" AND pick__number = "31"</s> |
CREATE TABLE table_name_72 (pick VARCHAR, draft VARCHAR, round VARCHAR, nationality VARCHAR) | SELECT pick FROM table_name_72 WHERE round = "8" AND nationality = "usa" AND draft = 2000 | What is the pick for round 8 with a USA nationality in the 2000 draft? | <s>[INST]What is the pick for round 8 with a USA nationality in the 2000 draft? Context: CREATE TABLE table_name_72 (pick VARCHAR, draft VARCHAR, round VARCHAR, nationality VARCHAR)[/INST]SELECT pick FROM table_name_72 WHERE round = "8" AND nationality = "usa" AND draft = 2000</s> |
CREATE TABLE table_name_13 (penalty VARCHAR, average VARCHAR, total VARCHAR) | SELECT penalty FROM table_name_13 WHERE average > 9.662 AND total > 9.706 | What was the penalty for the gymnast with average above 9.662 and total is more than 9.706? | <s>[INST]What was the penalty for the gymnast with average above 9.662 and total is more than 9.706? Context: CREATE TABLE table_name_13 (penalty VARCHAR, average VARCHAR, total VARCHAR)[/INST]SELECT penalty FROM table_name_13 WHERE average > 9.662 AND total > 9.706</s> |
CREATE TABLE table_2950964_1 (title VARCHAR, isbn VARCHAR) | SELECT title FROM table_2950964_1 WHERE isbn = "isbn 1-84990-243-7" | What is the title of ISBN 1-84990-243-7? | <s>[INST]What is the title of ISBN 1-84990-243-7? Context: CREATE TABLE table_2950964_1 (title VARCHAR, isbn VARCHAR)[/INST]SELECT title FROM table_2950964_1 WHERE isbn = "isbn 1-84990-243-7"</s> |
CREATE TABLE table_name_9 (tckl VARCHAR, year VARCHAR, p_ko_ret VARCHAR) | SELECT COUNT(tckl) FROM table_name_9 WHERE year = "2000" AND p_ko_ret < 14 | What is the total of TCKL in 2000 with a P/KO RET less than 14? | <s>[INST]What is the total of TCKL in 2000 with a P/KO RET less than 14? Context: CREATE TABLE table_name_9 (tckl VARCHAR, year VARCHAR, p_ko_ret VARCHAR)[/INST]SELECT COUNT(tckl) FROM table_name_9 WHERE year = "2000" AND p_ko_ret < 14</s> |
CREATE TABLE table_178242_1 (channel VARCHAR, host_s_ VARCHAR) | SELECT channel FROM table_178242_1 WHERE host_s_ = "Art Rooijakkers" | Which channel has the host Art Rooijakkers? | <s>[INST]Which channel has the host Art Rooijakkers? Context: CREATE TABLE table_178242_1 (channel VARCHAR, host_s_ VARCHAR)[/INST]SELECT channel FROM table_178242_1 WHERE host_s_ = "Art Rooijakkers"</s> |
CREATE TABLE table_name_98 (episodes VARCHAR, first_airdate VARCHAR) | SELECT episodes FROM table_name_98 WHERE first_airdate = "september 22, 1989" | How many episodes were in the season that first aired on September 22, 1989? | <s>[INST]How many episodes were in the season that first aired on September 22, 1989? Context: CREATE TABLE table_name_98 (episodes VARCHAR, first_airdate VARCHAR)[/INST]SELECT episodes FROM table_name_98 WHERE first_airdate = "september 22, 1989"</s> |
CREATE TABLE table_name_44 (to_par INTEGER, player VARCHAR, total VARCHAR) | SELECT MIN(to_par) FROM table_name_44 WHERE player = "tom watson" AND total > 144 | What was Tom Watson's lowest To par when the total was larger than 144? | <s>[INST]What was Tom Watson's lowest To par when the total was larger than 144? Context: CREATE TABLE table_name_44 (to_par INTEGER, player VARCHAR, total VARCHAR)[/INST]SELECT MIN(to_par) FROM table_name_44 WHERE player = "tom watson" AND total > 144</s> |
CREATE TABLE table_name_83 (ratt VARCHAR, long VARCHAR) | SELECT ratt FROM table_name_83 WHERE long = "73" | What is the RAtt when the long is 73? | <s>[INST]What is the RAtt when the long is 73? Context: CREATE TABLE table_name_83 (ratt VARCHAR, long VARCHAR)[/INST]SELECT ratt FROM table_name_83 WHERE long = "73"</s> |
CREATE TABLE table_name_34 (occupational_pensions VARCHAR, working_tax_credit VARCHAR, employment___salaries_ VARCHAR, _wages_ VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR) | SELECT occupational_pensions FROM table_name_34 WHERE other_income_sources = "2%" AND state_pensions = "7%" AND working_tax_credit = "2%" AND employment___salaries_ & _wages_ = "66%" | Other income sources of 2%, and a State pensions of 7%, and a Working tax credit of 2%, and a Employment ( salaries & wages) of 66% has what occupational pensions? | <s>[INST]Other income sources of 2%, and a State pensions of 7%, and a Working tax credit of 2%, and a Employment ( salaries & wages) of 66% has what occupational pensions? Context: CREATE TABLE table_name_34 (occupational_pensions VARCHAR, working_tax_credit VARCHAR, employment___salaries_ VARCHAR, _wages_ VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR)[/INST]SELECT occupational_pensions FROM table_name_34 WHERE other_income_sources = "2%" AND state_pensions = "7%" AND working_tax_credit = "2%" AND employment___salaries_ & _wages_ = "66%"</s> |
CREATE TABLE table_name_65 (israel_bowl VARCHAR, date VARCHAR) | SELECT israel_bowl FROM table_name_65 WHERE date = "march 30, 2012" | Name the Israel Bowl for march 30, 2012 | <s>[INST]Name the Israel Bowl for march 30, 2012 Context: CREATE TABLE table_name_65 (israel_bowl VARCHAR, date VARCHAR)[/INST]SELECT israel_bowl FROM table_name_65 WHERE date = "march 30, 2012"</s> |
CREATE TABLE table_11677100_4 (position VARCHAR, school VARCHAR) | SELECT COUNT(position) FROM table_11677100_4 WHERE school = "Spring High school" | How many positions did the player from Spring High School play? | <s>[INST]How many positions did the player from Spring High School play? Context: CREATE TABLE table_11677100_4 (position VARCHAR, school VARCHAR)[/INST]SELECT COUNT(position) FROM table_11677100_4 WHERE school = "Spring High school"</s> |
CREATE TABLE table_name_37 (against INTEGER, drawn VARCHAR, played VARCHAR) | SELECT AVG(against) FROM table_name_37 WHERE drawn = 2 AND played > 10 | what is the average Against has Drawn of 2, and a Played larger than 10? | <s>[INST]what is the average Against has Drawn of 2, and a Played larger than 10? Context: CREATE TABLE table_name_37 (against INTEGER, drawn VARCHAR, played VARCHAR)[/INST]SELECT AVG(against) FROM table_name_37 WHERE drawn = 2 AND played > 10</s> |
CREATE TABLE table_name_44 (years VARCHAR, player VARCHAR) | SELECT years FROM table_name_44 WHERE player = "alvin mitchell" | What years did Alvin Mitchell play? | <s>[INST]What years did Alvin Mitchell play? Context: CREATE TABLE table_name_44 (years VARCHAR, player VARCHAR)[/INST]SELECT years FROM table_name_44 WHERE player = "alvin mitchell"</s> |
CREATE TABLE table_name_60 (attendance VARCHAR, result VARCHAR, date VARCHAR) | SELECT COUNT(attendance) FROM table_name_60 WHERE result = "lost 2-4" AND date > 15 | How many people attended the game that lost 2-4 and the date was higher than 15? | <s>[INST]How many people attended the game that lost 2-4 and the date was higher than 15? Context: CREATE TABLE table_name_60 (attendance VARCHAR, result VARCHAR, date VARCHAR)[/INST]SELECT COUNT(attendance) FROM table_name_60 WHERE result = "lost 2-4" AND date > 15</s> |
CREATE TABLE table_name_16 (antiparticle_symbol VARCHAR, rest_mass___mev___c_2__ VARCHAR) | SELECT antiparticle_symbol FROM table_name_16 WHERE rest_mass___mev___c_2__ = ".47 ± .33" | What is the antiparticle symbol with a rest mess (mev/c2) of .47 ± .33? | <s>[INST]What is the antiparticle symbol with a rest mess (mev/c2) of .47 ± .33? Context: CREATE TABLE table_name_16 (antiparticle_symbol VARCHAR, rest_mass___mev___c_2__ VARCHAR)[/INST]SELECT antiparticle_symbol FROM table_name_16 WHERE rest_mass___mev___c_2__ = ".47 ± .33"</s> |
CREATE TABLE table_17516922_1 (pregame_analysts VARCHAR, sideline_reporters VARCHAR, network VARCHAR) | SELECT pregame_analysts FROM table_17516922_1 WHERE sideline_reporters = "Rob Stone and Monica Gonzalez" AND network = "TSN2" | What pregame analyst(s) had rob stone and monica gonzalez as sideline reporters and were on tsn2? | <s>[INST]What pregame analyst(s) had rob stone and monica gonzalez as sideline reporters and were on tsn2? Context: CREATE TABLE table_17516922_1 (pregame_analysts VARCHAR, sideline_reporters VARCHAR, network VARCHAR)[/INST]SELECT pregame_analysts FROM table_17516922_1 WHERE sideline_reporters = "Rob Stone and Monica Gonzalez" AND network = "TSN2"</s> |
CREATE TABLE table_2562113_1 (enrollment INTEGER, nickname VARCHAR) | SELECT MAX(enrollment) FROM table_2562113_1 WHERE nickname = "Hawks" | What is the enrollment for the hawks? | <s>[INST]What is the enrollment for the hawks? Context: CREATE TABLE table_2562113_1 (enrollment INTEGER, nickname VARCHAR)[/INST]SELECT MAX(enrollment) FROM table_2562113_1 WHERE nickname = "Hawks"</s> |
CREATE TABLE table_name_52 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_52 WHERE player = "john mahaffey" | What score did John Mahaffey have? | <s>[INST]What score did John Mahaffey have? Context: CREATE TABLE table_name_52 (score VARCHAR, player VARCHAR)[/INST]SELECT score FROM table_name_52 WHERE player = "john mahaffey"</s> |
CREATE TABLE table_name_48 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_48 WHERE date = "august 25, 2007" | Name the competition that was on august 25, 2007 | <s>[INST]Name the competition that was on august 25, 2007 Context: CREATE TABLE table_name_48 (competition VARCHAR, date VARCHAR)[/INST]SELECT competition FROM table_name_48 WHERE date = "august 25, 2007"</s> |
CREATE TABLE table_2417330_4 (successor VARCHAR, reason_for_change VARCHAR, date_successor_seated VARCHAR) | SELECT successor FROM table_2417330_4 WHERE reason_for_change = "Vacant" AND date_successor_seated = "December 3, 1862" | Name the successor for vacant and december 3, 1862 | <s>[INST]Name the successor for vacant and december 3, 1862 Context: CREATE TABLE table_2417330_4 (successor VARCHAR, reason_for_change VARCHAR, date_successor_seated VARCHAR)[/INST]SELECT successor FROM table_2417330_4 WHERE reason_for_change = "Vacant" AND date_successor_seated = "December 3, 1862"</s> |
CREATE TABLE table_name_83 (runner_s__up VARCHAR, date VARCHAR) | SELECT runner_s__up FROM table_name_83 WHERE date = "4 oct 2009" | On the Date of 4 Oct 2009, who was the Runner(s)-up? | <s>[INST]On the Date of 4 Oct 2009, who was the Runner(s)-up? Context: CREATE TABLE table_name_83 (runner_s__up VARCHAR, date VARCHAR)[/INST]SELECT runner_s__up FROM table_name_83 WHERE date = "4 oct 2009"</s> |
CREATE TABLE table_name_63 (nationality VARCHAR, position VARCHAR, years_in_orlando VARCHAR) | SELECT nationality FROM table_name_63 WHERE position = "center" AND years_in_orlando = "2010–2012" | Which Nationality has a Position of center, and a Years in Orlando of 2010–2012? | <s>[INST]Which Nationality has a Position of center, and a Years in Orlando of 2010–2012? Context: CREATE TABLE table_name_63 (nationality VARCHAR, position VARCHAR, years_in_orlando VARCHAR)[/INST]SELECT nationality FROM table_name_63 WHERE position = "center" AND years_in_orlando = "2010–2012"</s> |
CREATE TABLE table_name_68 (transfer_fee VARCHAR, transfer_window VARCHAR, moving_to VARCHAR) | SELECT transfer_fee FROM table_name_68 WHERE transfer_window = "winter" AND moving_to = "madureira" | What transfer fee has both winter as the transfer window, and Madureira as the moving to? | <s>[INST]What transfer fee has both winter as the transfer window, and Madureira as the moving to? Context: CREATE TABLE table_name_68 (transfer_fee VARCHAR, transfer_window VARCHAR, moving_to VARCHAR)[/INST]SELECT transfer_fee FROM table_name_68 WHERE transfer_window = "winter" AND moving_to = "madureira"</s> |
CREATE TABLE table_name_83 (british VARCHAR, australian VARCHAR, examples VARCHAR) | SELECT british FROM table_name_83 WHERE australian = "i, ɪ, ə" AND examples = "œsophagus" | What is British, when Australian is "i, ɪ, ə", and when Examples is "œsophagus"? | <s>[INST]What is British, when Australian is "i, ɪ, ə", and when Examples is "œsophagus"? Context: CREATE TABLE table_name_83 (british VARCHAR, australian VARCHAR, examples VARCHAR)[/INST]SELECT british FROM table_name_83 WHERE australian = "i, ɪ, ə" AND examples = "œsophagus"</s> |
CREATE TABLE table_name_29 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_29 WHERE record = "36–61" | Which Score has a Record of 36–61? | <s>[INST]Which Score has a Record of 36–61? Context: CREATE TABLE table_name_29 (score VARCHAR, record VARCHAR)[/INST]SELECT score FROM table_name_29 WHERE record = "36–61"</s> |
CREATE TABLE table_name_6 (nation VARCHAR, gold VARCHAR, total VARCHAR) | SELECT nation FROM table_name_6 WHERE gold = 1 AND total = 2 | What nation has 1 as the gold and 2 as the total? | <s>[INST]What nation has 1 as the gold and 2 as the total? Context: CREATE TABLE table_name_6 (nation VARCHAR, gold VARCHAR, total VARCHAR)[/INST]SELECT nation FROM table_name_6 WHERE gold = 1 AND total = 2</s> |
CREATE TABLE table_26352332_4 (engine_family VARCHAR, displacement_s_ VARCHAR) | SELECT engine_family FROM table_26352332_4 WHERE displacement_s_ = "466 cubic inches (7.6L)" | The displacement(s) 466 cubic inches (7.6L), has what engine family? | <s>[INST]The displacement(s) 466 cubic inches (7.6L), has what engine family? Context: CREATE TABLE table_26352332_4 (engine_family VARCHAR, displacement_s_ VARCHAR)[/INST]SELECT engine_family FROM table_26352332_4 WHERE displacement_s_ = "466 cubic inches (7.6L)"</s> |
CREATE TABLE table_name_88 (played INTEGER, losses VARCHAR, position VARCHAR) | SELECT SUM(played) FROM table_name_88 WHERE losses = 13 AND position > 11 | What is the sum of Played, when Losses is "13", and when Position is greater than 11? | <s>[INST]What is the sum of Played, when Losses is "13", and when Position is greater than 11? Context: CREATE TABLE table_name_88 (played INTEGER, losses VARCHAR, position VARCHAR)[/INST]SELECT SUM(played) FROM table_name_88 WHERE losses = 13 AND position > 11</s> |
CREATE TABLE table_name_7 (ngc_number INTEGER, right_ascension___j2000__ VARCHAR) | SELECT AVG(ngc_number) FROM table_name_7 WHERE right_ascension___j2000__ = "05h33m30s" | What is the average NGC number of everything with a Right ascension (J2000) of 05h33m30s? | <s>[INST]What is the average NGC number of everything with a Right ascension (J2000) of 05h33m30s? Context: CREATE TABLE table_name_7 (ngc_number INTEGER, right_ascension___j2000__ VARCHAR)[/INST]SELECT AVG(ngc_number) FROM table_name_7 WHERE right_ascension___j2000__ = "05h33m30s"</s> |
CREATE TABLE table_name_59 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_59 WHERE date = "march 16" | Who is the Visitor on march 16? | <s>[INST]Who is the Visitor on march 16? Context: CREATE TABLE table_name_59 (visitor VARCHAR, date VARCHAR)[/INST]SELECT visitor FROM table_name_59 WHERE date = "march 16"</s> |
CREATE TABLE table_name_78 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR) | SELECT primary_sponsor_s_ FROM table_name_78 WHERE driver_s_ = "mark martin" | What is the primary sponsor of driver Mark Martin? | <s>[INST]What is the primary sponsor of driver Mark Martin? Context: CREATE TABLE table_name_78 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR)[/INST]SELECT primary_sponsor_s_ FROM table_name_78 WHERE driver_s_ = "mark martin"</s> |
CREATE TABLE table_2453243_5 (written_by VARCHAR, no_in_series VARCHAR) | SELECT written_by FROM table_2453243_5 WHERE no_in_series = "48" | Who write episode number 48 in the series? | <s>[INST]Who write episode number 48 in the series? Context: CREATE TABLE table_2453243_5 (written_by VARCHAR, no_in_series VARCHAR)[/INST]SELECT written_by FROM table_2453243_5 WHERE no_in_series = "48"</s> |
CREATE TABLE table_19744915_18 (rank INTEGER, couple VARCHAR) | SELECT MAX(rank) FROM table_19744915_18 WHERE couple = "Roxanne and Daniel" | When roxanne and daniel are the couple what is the highest rank? | <s>[INST]When roxanne and daniel are the couple what is the highest rank? Context: CREATE TABLE table_19744915_18 (rank INTEGER, couple VARCHAR)[/INST]SELECT MAX(rank) FROM table_19744915_18 WHERE couple = "Roxanne and Daniel"</s> |
CREATE TABLE table_name_40 (club VARCHAR, venue VARCHAR) | SELECT club FROM table_name_40 WHERE venue = "champion window field" | What club team plays at the champion window field? | <s>[INST]What club team plays at the champion window field? Context: CREATE TABLE table_name_40 (club VARCHAR, venue VARCHAR)[/INST]SELECT club FROM table_name_40 WHERE venue = "champion window field"</s> |
CREATE TABLE table_name_71 (home VARCHAR, date VARCHAR) | SELECT home FROM table_name_71 WHERE date = "april 3" | Where was home on April 3? | <s>[INST]Where was home on April 3? Context: CREATE TABLE table_name_71 (home VARCHAR, date VARCHAR)[/INST]SELECT home FROM table_name_71 WHERE date = "april 3"</s> |
CREATE TABLE table_name_24 (class_a VARCHAR, school_year VARCHAR) | SELECT class_a FROM table_name_24 WHERE school_year = "1987-88" | For what Class A is the school year 1987-88? | <s>[INST]For what Class A is the school year 1987-88? Context: CREATE TABLE table_name_24 (class_a VARCHAR, school_year VARCHAR)[/INST]SELECT class_a FROM table_name_24 WHERE school_year = "1987-88"</s> |
CREATE TABLE player (Player VARCHAR, Years_Played VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR) | SELECT T1.Player, T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew" | Show the players and years played for players from team "Columbus Crew". | <s>[INST]Show the players and years played for players from team "Columbus Crew". Context: CREATE TABLE player (Player VARCHAR, Years_Played VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR)[/INST]SELECT T1.Player, T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew"</s> |
CREATE TABLE publication (Publication_Date VARCHAR, Price VARCHAR) | SELECT Publication_Date FROM publication ORDER BY Price LIMIT 3 | List the publication dates of publications with 3 lowest prices. | <s>[INST]List the publication dates of publications with 3 lowest prices. Context: CREATE TABLE publication (Publication_Date VARCHAR, Price VARCHAR)[/INST]SELECT Publication_Date FROM publication ORDER BY Price LIMIT 3</s> |
CREATE TABLE table_name_38 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_38 WHERE date = "november 18, 1990" | What are the Attendance numbers for november 18, 1990? | <s>[INST]What are the Attendance numbers for november 18, 1990? Context: CREATE TABLE table_name_38 (attendance VARCHAR, date VARCHAR)[/INST]SELECT attendance FROM table_name_38 WHERE date = "november 18, 1990"</s> |
CREATE TABLE payments (payment_type_code VARCHAR) | SELECT DISTINCT payment_type_code FROM payments | What are all the distinct payment types? | <s>[INST]What are all the distinct payment types? Context: CREATE TABLE payments (payment_type_code VARCHAR)[/INST]SELECT DISTINCT payment_type_code FROM payments</s> |
CREATE TABLE table_name_26 (location_attendance VARCHAR, game VARCHAR) | SELECT location_attendance FROM table_name_26 WHERE game = "4" | Where is the location of Game 4? | <s>[INST]Where is the location of Game 4? Context: CREATE TABLE table_name_26 (location_attendance VARCHAR, game VARCHAR)[/INST]SELECT location_attendance FROM table_name_26 WHERE game = "4"</s> |
CREATE TABLE table_3002894_4 (nupowr_167 VARCHAR, model VARCHAR) | SELECT nupowr_167 FROM table_3002894_4 WHERE model = "Maker" | When maker is the model what is the nupowr 167? | <s>[INST]When maker is the model what is the nupowr 167? Context: CREATE TABLE table_3002894_4 (nupowr_167 VARCHAR, model VARCHAR)[/INST]SELECT nupowr_167 FROM table_3002894_4 WHERE model = "Maker"</s> |
CREATE TABLE Rooms (bedType VARCHAR) | SELECT COUNT(*) FROM Rooms WHERE bedType = "King" | Find the number of rooms with a king bed. | <s>[INST]Find the number of rooms with a king bed. Context: CREATE TABLE Rooms (bedType VARCHAR)[/INST]SELECT COUNT(*) FROM Rooms WHERE bedType = "King"</s> |
CREATE TABLE table_name_88 (lane VARCHAR, time VARCHAR, rank VARCHAR) | SELECT COUNT(lane) FROM table_name_88 WHERE time = "2:01.51" AND rank < 4 | How many lanes had a rank smaller than 4 and a time of 2:01.51? | <s>[INST]How many lanes had a rank smaller than 4 and a time of 2:01.51? Context: CREATE TABLE table_name_88 (lane VARCHAR, time VARCHAR, rank VARCHAR)[/INST]SELECT COUNT(lane) FROM table_name_88 WHERE time = "2:01.51" AND rank < 4</s> |
CREATE TABLE table_name_52 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_52 WHERE away_team = "southampton" | What is the date southampton was the away team? | <s>[INST]What is the date southampton was the away team? Context: CREATE TABLE table_name_52 (date VARCHAR, away_team VARCHAR)[/INST]SELECT date FROM table_name_52 WHERE away_team = "southampton"</s> |
CREATE TABLE table_name_93 (opponent VARCHAR, game VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_93 WHERE game > 72 AND record = "39-27-9" | Who did the Rangers play in a game that was later than 72 when the team record was 39-27-9? | <s>[INST]Who did the Rangers play in a game that was later than 72 when the team record was 39-27-9? Context: CREATE TABLE table_name_93 (opponent VARCHAR, game VARCHAR, record VARCHAR)[/INST]SELECT opponent FROM table_name_93 WHERE game > 72 AND record = "39-27-9"</s> |
CREATE TABLE table_name_86 (year INTEGER, chassis VARCHAR) | SELECT SUM(year) FROM table_name_86 WHERE chassis = "kurtis kraft 500a" | What is the year with a kurtis kraft 500a chassis? | <s>[INST]What is the year with a kurtis kraft 500a chassis? Context: CREATE TABLE table_name_86 (year INTEGER, chassis VARCHAR)[/INST]SELECT SUM(year) FROM table_name_86 WHERE chassis = "kurtis kraft 500a"</s> |
CREATE TABLE table_name_32 (Id VARCHAR) | SELECT 2011 FROM table_name_32 WHERE 2010 = "1r" | What is the 2011 with 1r in 2010? | <s>[INST]What is the 2011 with 1r in 2010? Context: CREATE TABLE table_name_32 (Id VARCHAR)[/INST]SELECT 2011 FROM table_name_32 WHERE 2010 = "1r"</s> |
CREATE TABLE table_2668352_16 (party VARCHAR, result VARCHAR) | SELECT party FROM table_2668352_16 WHERE result = "Lost re-election Democratic-Republican hold" | Which party experienced a result of lost re-election democratic-republican hold? | <s>[INST]Which party experienced a result of lost re-election democratic-republican hold? Context: CREATE TABLE table_2668352_16 (party VARCHAR, result VARCHAR)[/INST]SELECT party FROM table_2668352_16 WHERE result = "Lost re-election Democratic-Republican hold"</s> |
CREATE TABLE table_name_20 (lost INTEGER, points VARCHAR, drawn VARCHAR) | SELECT SUM(lost) FROM table_name_20 WHERE points < 3 AND drawn > 0 | How many losses have points less than 3, with a drawn greater than 0? | <s>[INST]How many losses have points less than 3, with a drawn greater than 0? Context: CREATE TABLE table_name_20 (lost INTEGER, points VARCHAR, drawn VARCHAR)[/INST]SELECT SUM(lost) FROM table_name_20 WHERE points < 3 AND drawn > 0</s> |
CREATE TABLE table_22056184_1 (team VARCHAR, position VARCHAR) | SELECT COUNT(team) FROM table_22056184_1 WHERE position = "7th" | How many teams have 7th position? | <s>[INST]How many teams have 7th position? Context: CREATE TABLE table_22056184_1 (team VARCHAR, position VARCHAR)[/INST]SELECT COUNT(team) FROM table_22056184_1 WHERE position = "7th"</s> |