text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the mountains classification when borut božič was the winner?
### Context:
CREATE TABLE table_25655781_17 (mountains_classification VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT mountains_classification FROM table_25655781_17 WHERE winner = "Borut Božič" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the team classification where andré greipel was the winner and had the points classification?
### Context:
CREATE TABLE table_25655781_17 (team_classification VARCHAR, winner VARCHAR, points_classification VARCHAR) [/INST]
### Response:
SELECT team_classification FROM table_25655781_17 WHERE winner = "André Greipel" AND points_classification = "André Greipel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many stages are there?
### Context:
CREATE TABLE table_25655781_17 (stage INTEGER) [/INST]
### Response:
SELECT MAX(stage) FROM table_25655781_17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many sprint classifications are there where marco frapporti is the winner?
### Context:
CREATE TABLE table_25655781_17 (sprint_classification VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT COUNT(sprint_classification) FROM table_25655781_17 WHERE winner = "Marco Frapporti" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the second couple for the episode having an ITV1 ranking of 29?
### Context:
CREATE TABLE table_25664518_3 (second_couple VARCHAR, itv1_weekly_ranking VARCHAR) [/INST]
### Response:
SELECT second_couple FROM table_25664518_3 WHERE itv1_weekly_ranking = 29 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the maximum ITV1 weekly ranking?
### Context:
CREATE TABLE table_25664518_3 (itv1_weekly_ranking INTEGER) [/INST]
### Response:
SELECT MAX(itv1_weekly_ranking) FROM table_25664518_3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the number of viewers for the episode having a fourth couple of Tony and Jamie?
### Context:
CREATE TABLE table_25664518_3 (viewers__millions_ VARCHAR, fourth_couple VARCHAR) [/INST]
### Response:
SELECT viewers__millions_ FROM table_25664518_3 WHERE fourth_couple = "Tony and Jamie" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the first couple in the episode having a fourth couple of Sammy and Nat?
### Context:
CREATE TABLE table_25664518_3 (first_couple VARCHAR, fourth_couple VARCHAR) [/INST]
### Response:
SELECT first_couple FROM table_25664518_3 WHERE fourth_couple = "Sammy and Nat" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the minimum ITV1 ranking for the episode having viewership of 5.42 million?
### Context:
CREATE TABLE table_25664518_3 (itv1_weekly_ranking INTEGER, viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT MIN(itv1_weekly_ranking) FROM table_25664518_3 WHERE viewers__millions_ = "5.42" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What episode number in the series was viewed by 13.66 million people in the U.S.?
### Context:
CREATE TABLE table_25668962_1 (no_in_series INTEGER, us_viewers__million_ VARCHAR) [/INST]
### Response:
SELECT MAX(no_in_series) FROM table_25668962_1 WHERE us_viewers__million_ = "13.66" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many million U.S. viewers watched the epiode with a production code of 1arc12?
### Context:
CREATE TABLE table_25668962_1 (us_viewers__million_ VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT us_viewers__million_ FROM table_25668962_1 WHERE production_code = "1ARC12" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many million U.S. viewers watched the episode with a production code of 1arc03?
### Context:
CREATE TABLE table_25668962_1 (us_viewers__million_ VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT us_viewers__million_ FROM table_25668962_1 WHERE production_code = "1ARC03" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many million U.S. viewers watched episode number 6 in the series?
### Context:
CREATE TABLE table_25668962_1 (us_viewers__million_ VARCHAR, no_in_series VARCHAR) [/INST]
### Response:
SELECT us_viewers__million_ FROM table_25668962_1 WHERE no_in_series = 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who directed episode number 18 in the series?
### Context:
CREATE TABLE table_25668962_1 (directed_by VARCHAR, no_in_series VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_25668962_1 WHERE no_in_series = 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who were the 3rd couple that were viewed by 4.89 million viewers?
### Context:
CREATE TABLE table_25664518_4 (viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT 3 AS rd_couple FROM table_25664518_4 WHERE viewers__millions_ = "4.89" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What location(s) did patrick mckenna lead the most laps?
### Context:
CREATE TABLE table_25668203_2 (location VARCHAR, most_laps_led VARCHAR) [/INST]
### Response:
SELECT location FROM table_25668203_2 WHERE most_laps_led = "Patrick McKenna" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many races went for 10 rounds?
### Context:
CREATE TABLE table_25668203_2 (fastest_lap VARCHAR, rnd VARCHAR) [/INST]
### Response:
SELECT COUNT(fastest_lap) FROM table_25668203_2 WHERE rnd = "10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the most laps led in monterey, california when scott rarick won the race?
### Context:
CREATE TABLE table_25668203_2 (most_laps_led VARCHAR, location VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT most_laps_led FROM table_25668203_2 WHERE location = "Monterey, California" AND winning_driver = "Scott Rarick" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the winning team when mikhail goikhberg was the winning driver?
### Context:
CREATE TABLE table_25668203_2 (winning_team VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT winning_team FROM table_25668203_2 WHERE winning_driver = "Mikhail Goikhberg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who directed the episode with the production code 10?
### Context:
CREATE TABLE table_25679312_2 (directed_by VARCHAR, prod_code VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_25679312_2 WHERE prod_code = 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who wrote the episode with production code 2?
### Context:
CREATE TABLE table_25679312_2 (written_by VARCHAR, prod_code VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_25679312_2 WHERE prod_code = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who wrote the episode with production code 5?
### Context:
CREATE TABLE table_25679312_2 (written_by VARCHAR, prod_code VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_25679312_2 WHERE prod_code = 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the number of finishes for 15 entries 15 and l'esprit d'equipe
### Context:
CREATE TABLE table_256862_1 (finish VARCHAR, entries VARCHAR, winning_yacht VARCHAR) [/INST]
### Response:
SELECT COUNT(finish) FROM table_256862_1 WHERE entries = "15" AND winning_yacht = "L'Esprit d'Equipe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the most legs for steinlager 2
### Context:
CREATE TABLE table_256862_1 (legs INTEGER, winning_yacht VARCHAR) [/INST]
### Response:
SELECT MAX(legs) FROM table_256862_1 WHERE winning_yacht = "Steinlager 2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the wininng yacht for 14 entries
### Context:
CREATE TABLE table_256862_1 (winning_yacht VARCHAR, entries VARCHAR) [/INST]
### Response:
SELECT winning_yacht FROM table_256862_1 WHERE entries = "14" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the word for the episode that aired February 11?
### Context:
CREATE TABLE table_25691838_2 (the_wørd VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT the_wørd FROM table_25691838_2 WHERE original_airdate = "February 11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the introductory phrase for the episode with the production bode 6026?
### Context:
CREATE TABLE table_25691838_2 (introductory_phrase VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT introductory_phrase FROM table_25691838_2 WHERE production_code = 6026 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the word on episode number 673?
### Context:
CREATE TABLE table_25691838_2 (the_wørd VARCHAR, episode__number VARCHAR) [/INST]
### Response:
SELECT the_wørd FROM table_25691838_2 WHERE episode__number = 673 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who were the guests in the episode with production code 6021?
### Context:
CREATE TABLE table_25691838_2 (guest VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT guest FROM table_25691838_2 WHERE production_code = 6021 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who were the guests on a show where the production code is 6152?
### Context:
CREATE TABLE table_25691838_12 (guest VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT guest FROM table_25691838_12 WHERE production_code = 6152 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who were the guests for the episode with an original airdate of december 07?
### Context:
CREATE TABLE table_25691838_12 (guest VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT guest FROM table_25691838_12 WHERE original_airdate = "December 07" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is "the wørd" when guests were daniel ellsberg , william wegman , julie taymor?
### Context:
CREATE TABLE table_25691838_12 (the_wørd VARCHAR, guest VARCHAR) [/INST]
### Response:
SELECT the_wørd FROM table_25691838_12 WHERE guest = "Daniel Ellsberg , William Wegman , Julie Taymor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the production code of the episode with an original airdate of december 01?
### Context:
CREATE TABLE table_25691838_12 (production_code VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT production_code FROM table_25691838_12 WHERE original_airdate = "December 01" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the episode # when the guests were julie nixon eisenhower and david eisenhower?
### Context:
CREATE TABLE table_25691838_12 (episode__number INTEGER, guest VARCHAR) [/INST]
### Response:
SELECT MIN(episode__number) FROM table_25691838_12 WHERE guest = "Julie Nixon Eisenhower and David Eisenhower" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who were the guests on the episode that first aired August 16?
### Context:
CREATE TABLE table_25691838_8 (guest VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT guest FROM table_25691838_8 WHERE original_airdate = "August 16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the introductory phrase on the episode production code 6101?
### Context:
CREATE TABLE table_25691838_8 (introductory_phrase VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT introductory_phrase FROM table_25691838_8 WHERE production_code = 6101 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the smallest production code for August 11's original episode?
### Context:
CREATE TABLE table_25691838_8 (production_code INTEGER, original_airdate VARCHAR) [/INST]
### Response:
SELECT MIN(production_code) FROM table_25691838_8 WHERE original_airdate = "August 11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many introductory phrases were there on David Finkel's guest episode?
### Context:
CREATE TABLE table_25691838_8 (introductory_phrase VARCHAR, guest VARCHAR) [/INST]
### Response:
SELECT COUNT(introductory_phrase) FROM table_25691838_8 WHERE guest = "David Finkel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the minimum number of the episode that first aired August 11?
### Context:
CREATE TABLE table_25691838_8 (episode__number INTEGER, original_airdate VARCHAR) [/INST]
### Response:
SELECT MIN(episode__number) FROM table_25691838_8 WHERE original_airdate = "August 11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the introductory phrase for episode 794?
### Context:
CREATE TABLE table_25691838_11 (introductory_phrase VARCHAR, episode__number VARCHAR) [/INST]
### Response:
SELECT introductory_phrase FROM table_25691838_11 WHERE episode__number = 794 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date did the episode originally air on with salvatore giunta as a guest?
### Context:
CREATE TABLE table_25691838_11 (original_airdate VARCHAR, guest VARCHAR) [/INST]
### Response:
SELECT original_airdate FROM table_25691838_11 WHERE guest = "Salvatore Giunta" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many production codes were there for the episode that aired on November 15?
### Context:
CREATE TABLE table_25691838_11 (production_code VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT COUNT(production_code) FROM table_25691838_11 WHERE original_airdate = "November 15" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the cylinder size of this engine that was made with only 88 pieces?
### Context:
CREATE TABLE table_25695027_1 (cylinder_size VARCHAR, number_built VARCHAR) [/INST]
### Response:
SELECT cylinder_size FROM table_25695027_1 WHERE number_built = "88" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the engine class that was built on 1906-08?
### Context:
CREATE TABLE table_25695027_1 (class VARCHAR, years_built VARCHAR) [/INST]
### Response:
SELECT class FROM table_25695027_1 WHERE years_built = "1906-08" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many engines were built with a cylinder size of 20 ½” x 26”, firebox is belpaire and valve gear is from Stephenson?
### Context:
CREATE TABLE table_25695027_1 (number_built VARCHAR, valve_gear VARCHAR, cylinder_size VARCHAR, firebox VARCHAR) [/INST]
### Response:
SELECT number_built FROM table_25695027_1 WHERE cylinder_size = "20 ½” x 26”" AND firebox = "Belpaire" AND valve_gear = "Stephenson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
This engine with a cylinder size of 20 ½” x 26” and a firebox of radial-stay was built when?
### Context:
CREATE TABLE table_25695027_1 (years_built VARCHAR, cylinder_size VARCHAR, firebox VARCHAR) [/INST]
### Response:
SELECT years_built FROM table_25695027_1 WHERE cylinder_size = "20 ½” x 26”" AND firebox = "Radial-stay" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many types of valves were used on this engine that was built on 1902-05?
### Context:
CREATE TABLE table_25695027_1 (valves VARCHAR, years_built VARCHAR) [/INST]
### Response:
SELECT COUNT(valves) FROM table_25695027_1 WHERE years_built = "1902-05" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the agency for santa rosa avenue
### Context:
CREATE TABLE table_25692955_1 (agency VARCHAR, south_west_terminal VARCHAR) [/INST]
### Response:
SELECT agency FROM table_25692955_1 WHERE south_west_terminal = "Santa Rosa Avenue" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the route number for rincon valley
### Context:
CREATE TABLE table_25692955_1 (route_number VARCHAR, south_west_terminal VARCHAR) [/INST]
### Response:
SELECT route_number FROM table_25692955_1 WHERE south_west_terminal = "Rincon Valley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the route number for santa rosa avenue
### Context:
CREATE TABLE table_25692955_1 (route_number VARCHAR, north_east_terminal VARCHAR) [/INST]
### Response:
SELECT route_number FROM table_25692955_1 WHERE north_east_terminal = "Santa Rosa Avenue" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the original air date of the episode "Another Happy Day"?
### Context:
CREATE TABLE table_2570269_3 (original_air_date__uk_ VARCHAR, episode_title VARCHAR) [/INST]
### Response:
SELECT original_air_date__uk_ FROM table_2570269_3 WHERE episode_title = "Another Happy Day" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the title of the episode that aired on 13 august 1981?
### Context:
CREATE TABLE table_2570269_3 (episode_title VARCHAR, original_air_date__uk_ VARCHAR) [/INST]
### Response:
SELECT episode_title FROM table_2570269_3 WHERE original_air_date__uk_ = "13 August 1981" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the original air date of episode 3-02?
### Context:
CREATE TABLE table_2570269_3 (original_air_date__uk_ VARCHAR, episode__number VARCHAR) [/INST]
### Response:
SELECT original_air_date__uk_ FROM table_2570269_3 WHERE episode__number = "3-02" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who are the cast members of episode 3-04?
### Context:
CREATE TABLE table_2570269_3 (cast VARCHAR, episode__number VARCHAR) [/INST]
### Response:
SELECT cast FROM table_2570269_3 WHERE episode__number = "3-04" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest birth/2013 when the death/2012 is 14,1?
### Context:
CREATE TABLE table_25703_1 (birth_2013 INTEGER, death_2012 VARCHAR) [/INST]
### Response:
SELECT MAX(birth_2013) FROM table_25703_1 WHERE death_2012 = "14,1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest death/2013 when the death/2012 is 12,7?
### Context:
CREATE TABLE table_25703_1 (death_2013 INTEGER, death_2012 VARCHAR) [/INST]
### Response:
SELECT MAX(death_2013) FROM table_25703_1 WHERE death_2012 = "12,7" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the death/2012 number when death/2013 is 140 and January–September 2013 is Moscow Oblast?
### Context:
CREATE TABLE table_25703_1 (death_2012 VARCHAR, death_2013 VARCHAR, january_september_2013 VARCHAR) [/INST]
### Response:
SELECT death_2012 FROM table_25703_1 WHERE death_2013 = 140 AND january_september_2013 = "Moscow Oblast" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many figures for birth/2013 when January-September is Oryol Oblast?
### Context:
CREATE TABLE table_25703_1 (birth_2013 VARCHAR, january_september_2013 VARCHAR) [/INST]
### Response:
SELECT COUNT(birth_2013) FROM table_25703_1 WHERE january_september_2013 = "Oryol Oblast" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many touchdowns did the player took which gained 25 points?
### Context:
CREATE TABLE table_25711913_2 (touchdowns VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT touchdowns FROM table_25711913_2 WHERE points = 25 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many maximum points did Curtis scored?
### Context:
CREATE TABLE table_25711913_2 (points INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_25711913_2 WHERE player = "Curtis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many touchdowns did the left guard took?
### Context:
CREATE TABLE table_25711913_2 (touchdowns INTEGER, position VARCHAR) [/INST]
### Response:
SELECT MAX(touchdowns) FROM table_25711913_2 WHERE position = "Left guard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many numbers were recorded on the fields goals of the Left End player?
### Context:
CREATE TABLE table_25711913_2 (field_goals VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(field_goals) FROM table_25711913_2 WHERE position = "Left end" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the minimum touchdowns of the Fullback player?
### Context:
CREATE TABLE table_25711913_2 (touchdowns INTEGER, position VARCHAR) [/INST]
### Response:
SELECT MIN(touchdowns) FROM table_25711913_2 WHERE position = "Fullback" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many touchdowns did the fullback score?
### Context:
CREATE TABLE table_25711913_8 (touchdowns INTEGER, position VARCHAR) [/INST]
### Response:
SELECT MIN(touchdowns) FROM table_25711913_8 WHERE position = "Fullback" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many figures are provided for Weeks' field goals?
### Context:
CREATE TABLE table_25711913_8 (field_goals VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(field_goals) FROM table_25711913_8 WHERE player = "Weeks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the most points recorded for a right halfback?
### Context:
CREATE TABLE table_25711913_8 (points INTEGER, position VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_25711913_8 WHERE position = "Right halfback" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Was Magoffin a starting player?
### Context:
CREATE TABLE table_25711913_8 (starter VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT starter FROM table_25711913_8 WHERE player = "Magoffin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player was at position left tackle?
### Context:
CREATE TABLE table_25711913_8 (player VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_25711913_8 WHERE position = "Left tackle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the original air date for the episode written by daniel dratch?
### Context:
CREATE TABLE table_25716399_1 (original_air_date VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_25716399_1 WHERE written_by = "Daniel Dratch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What season was an episode directed by wendey stanzler?
### Context:
CREATE TABLE table_25716399_1 (no_in_season INTEGER, directed_by VARCHAR) [/INST]
### Response:
SELECT MAX(no_in_season) FROM table_25716399_1 WHERE directed_by = "Wendey Stanzler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the original air date where there were u.s. viewers (millions) is 5.60?
### Context:
CREATE TABLE table_25716399_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_25716399_1 WHERE us_viewers__millions_ = "5.60" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the writer for season 14?
### Context:
CREATE TABLE table_25716399_1 (written_by VARCHAR, no_in_season VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_25716399_1 WHERE no_in_season = 14 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who wrote the episode where the original air date is july20,2007?
### Context:
CREATE TABLE table_25716399_1 (written_by VARCHAR, original_air_date VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_25716399_1 WHERE original_air_date = "July20,2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what season was written by jonathan collier?
### Context:
CREATE TABLE table_25716399_1 (no_in_season INTEGER, written_by VARCHAR) [/INST]
### Response:
SELECT MAX(no_in_season) FROM table_25716399_1 WHERE written_by = "Jonathan Collier" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many episodes were written by Tom Scharpling and Daniel Dratch?
### Context:
CREATE TABLE table_25716397_1 (no_in_season VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT COUNT(no_in_season) FROM table_25716397_1 WHERE written_by = "Tom Scharpling and Daniel Dratch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people directed the episode that Joe Toplyn wrote?
### Context:
CREATE TABLE table_25716397_1 (directed_by VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT COUNT(directed_by) FROM table_25716397_1 WHERE written_by = "Joe Toplyn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many titles does the episode written by Joe Toplyn have?
### Context:
CREATE TABLE table_25716397_1 (title VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT COUNT(title) FROM table_25716397_1 WHERE written_by = "Joe Toplyn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many directors of episode 55?
### Context:
CREATE TABLE table_25716397_1 (directed_by VARCHAR, series_no VARCHAR) [/INST]
### Response:
SELECT COUNT(directed_by) FROM table_25716397_1 WHERE series_no = 55 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many titles are there for the episode written by Tom Scharpling?
### Context:
CREATE TABLE table_25716401_1 (title VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT COUNT(title) FROM table_25716401_1 WHERE written_by = "Tom Scharpling" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which episode number aired on 18 october 2012?
### Context:
CREATE TABLE table_25721_3 (episode_no INTEGER, airdate VARCHAR) [/INST]
### Response:
SELECT MIN(episode_no) FROM table_25721_3 WHERE airdate = "18 October 2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest cable rank of an episode with 1464000 viewers?
### Context:
CREATE TABLE table_25721_3 (rank__cable_ INTEGER, total_viewers VARCHAR) [/INST]
### Response:
SELECT MIN(rank__cable_) FROM table_25721_3 WHERE total_viewers = 1464000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers?
### Context:
CREATE TABLE table_25721_3 (dave_viewers INTEGER, dave_ja_vu_viewers VARCHAR) [/INST]
### Response:
SELECT MAX(dave_viewers) FROM table_25721_3 WHERE dave_ja_vu_viewers = 119000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many episodes aired on 25 october 2012?
### Context:
CREATE TABLE table_25721_3 (total_viewers VARCHAR, airdate VARCHAR) [/INST]
### Response:
SELECT COUNT(total_viewers) FROM table_25721_3 WHERE airdate = "25 October 2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the airdate of the episode with 106000 dave ja vu viewers?
### Context:
CREATE TABLE table_25721_3 (airdate VARCHAR, dave_ja_vu_viewers VARCHAR) [/INST]
### Response:
SELECT airdate FROM table_25721_3 WHERE dave_ja_vu_viewers = 106000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many DVDs where were in the complete collection series 1-8 with extras?
### Context:
CREATE TABLE table_25721_4 (_number_of_discs VARCHAR, release VARCHAR) [/INST]
### Response:
SELECT _number_of_discs FROM table_25721_4 WHERE release = "The Complete Collection Series 1-8 with extras" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which release had 6 DVDs?
### Context:
CREATE TABLE table_25721_4 (release VARCHAR, _number_of_discs VARCHAR) [/INST]
### Response:
SELECT release FROM table_25721_4 WHERE _number_of_discs = 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many region 1's did back to earth have?
### Context:
CREATE TABLE table_25721_4 (region_1 VARCHAR, release VARCHAR) [/INST]
### Response:
SELECT COUNT(region_1) FROM table_25721_4 WHERE release = "Back to Earth" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many field goals did Walter Rheinschild have?
### Context:
CREATE TABLE table_25724294_2 (field_goals INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(field_goals) FROM table_25724294_2 WHERE player = "Walter Rheinschild" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Jack Loell had how many extra points?
### Context:
CREATE TABLE table_25724294_2 (extra_points VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT extra_points FROM table_25724294_2 WHERE player = "Jack Loell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points did Donald Green score?
### Context:
CREATE TABLE table_25730209_2 (points VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_25730209_2 WHERE player = "Donald Green" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many field goals did Donald Green score?
### Context:
CREATE TABLE table_25730209_2 (field_goals VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(field_goals) FROM table_25730209_2 WHERE player = "Donald Green" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the least amount of points scored?
### Context:
CREATE TABLE table_25730209_2 (extra_points INTEGER) [/INST]
### Response:
SELECT MIN(extra_points) FROM table_25730209_2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many extra points did Stanfield Wells make?
### Context:
CREATE TABLE table_25730209_2 (extra_points VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(extra_points) FROM table_25730209_2 WHERE player = "Stanfield Wells" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the most points listed?
### Context:
CREATE TABLE table_25730123_2 (points INTEGER) [/INST]
### Response:
SELECT MAX(points) FROM table_25730123_2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many touchdowns were the when there was more than 1.0 extra point?
### Context:
CREATE TABLE table_25730123_2 (touchdowns VARCHAR, extra_points INTEGER) [/INST]
### Response:
SELECT touchdowns FROM table_25730123_2 WHERE extra_points > 1.0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the player/s when there were 20 points with less than 1.0 extra point .
### Context:
CREATE TABLE table_25730123_2 (player VARCHAR, extra_points VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT player FROM table_25730123_2 WHERE extra_points < 1.0 AND points = 20 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the least amount of field goals when Frederick L. Conklin played?
### Context:
CREATE TABLE table_25730123_2 (field_goals INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(field_goals) FROM table_25730123_2 WHERE player = "Frederick L. Conklin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the least number of extra points?
### Context:
CREATE TABLE table_25730326_2 (extra_points INTEGER) [/INST]
### Response:
SELECT MIN(extra_points) FROM table_25730326_2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points did William Wasmund have?
### Context:
CREATE TABLE table_25730326_2 (points VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT points FROM table_25730326_2 WHERE player = "William Wasmund" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many touchdowns did the player with 10 points have?
### Context:
CREATE TABLE table_25730326_2 (touchdowns INTEGER, points VARCHAR) [/INST]
### Response:
SELECT MIN(touchdowns) FROM table_25730326_2 WHERE points = 10 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.