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:
what's the state with highest point being mount katahdin
### Context:
CREATE TABLE table_1416612_1 (state VARCHAR, highest_point VARCHAR) [/INST]
### Response:
SELECT state FROM table_1416612_1 WHERE highest_point = "Mount Katahdin" </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 language for the glam genre?
### Context:
CREATE TABLE table_14160327_4 (language VARCHAR, genre VARCHAR) [/INST]
### Response:
SELECT language FROM table_14160327_4 WHERE genre = "Glam" </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 game allow the 1980s to be exportable?
### Context:
CREATE TABLE table_14160327_4 (exportable VARCHAR, decade VARCHAR) [/INST]
### Response:
SELECT exportable FROM table_14160327_4 WHERE decade = "1980s" </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 family friendly games are in the 1990s?
### Context:
CREATE TABLE table_14160327_4 (family_friendly VARCHAR, decade VARCHAR) [/INST]
### Response:
SELECT COUNT(family_friendly) FROM table_14160327_4 WHERE decade = "1990s" </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:
When 0-1 is the aggregate what are the home (1st leg)?
### Context:
CREATE TABLE table_14219514_2 (home__1st_leg_ VARCHAR, aggregate VARCHAR) [/INST]
### Response:
SELECT home__1st_leg_ FROM table_14219514_2 WHERE aggregate = "0-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:
When belgrano is the home (1st leg) what is the home (2nd leg)?
### Context:
CREATE TABLE table_14219514_2 (home__2nd_leg_ VARCHAR, home__1st_leg_ VARCHAR) [/INST]
### Response:
SELECT home__2nd_leg_ FROM table_14219514_2 WHERE home__1st_leg_ = "Belgrano" </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:
When platense is the home (2nd leg) what is the 2nd leg?
### Context:
CREATE TABLE table_14219514_2 (home__2nd_leg_ VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_14219514_2 WHERE home__2nd_leg_ = "Platense" </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:
When altos hornos zapla is the home (1st leg) what is overall amount of 1st leg?
### Context:
CREATE TABLE table_14219514_2 (home__1st_leg_ VARCHAR) [/INST]
### Response:
SELECT COUNT(1 AS st_leg) FROM table_14219514_2 WHERE home__1st_leg_ = "Altos Hornos Zapla" </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:
When temperley is the home (2nd leg) what is the home (1st leg)?
### Context:
CREATE TABLE table_14219514_2 (home__1st_leg_ VARCHAR, home__2nd_leg_ VARCHAR) [/INST]
### Response:
SELECT home__1st_leg_ FROM table_14219514_2 WHERE home__2nd_leg_ = "Temperley" </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 2nd legs had an aggregate of 2-4?
### Context:
CREATE TABLE table_14219514_1 (aggregate VARCHAR) [/INST]
### Response:
SELECT COUNT(2 AS nd_leg) FROM table_14219514_1 WHERE aggregate = "2-4" </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 2nd legs are there where home (1st leg) is Independiente?
### Context:
CREATE TABLE table_14219514_1 (home__1st_leg_ VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_14219514_1 WHERE home__1st_leg_ = "Independiente" </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 in home (2nd leg) when Talleres was in home (1st leg)
### Context:
CREATE TABLE table_14219514_1 (home__2nd_leg_ VARCHAR, home__1st_leg_ VARCHAR) [/INST]
### Response:
SELECT home__2nd_leg_ FROM table_14219514_1 WHERE home__1st_leg_ = "Talleres" </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 in 2nd leg when Boca Juniors was in home (1st leg)?
### Context:
CREATE TABLE table_14219514_1 (home__1st_leg_ VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_14219514_1 WHERE home__1st_leg_ = "Boca Juniors" </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 playoffs for 2nd round open cup
### Context:
CREATE TABLE table_14240688_1 (playoffs VARCHAR, open_cup VARCHAR) [/INST]
### Response:
SELECT playoffs FROM table_14240688_1 WHERE open_cup = "2nd Round" </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 regular season standings for the year when the playoffs reached the conference semifinals and the team did not qualify for the US Open Cup?
### Context:
CREATE TABLE table_14225409_1 (reg_season VARCHAR, playoffs VARCHAR, us_open_cup VARCHAR) [/INST]
### Response:
SELECT reg_season FROM table_14225409_1 WHERE playoffs = "Conference Semifinals" AND us_open_cup = "Did not qualify" </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 population in 1931 for lubelskie
### Context:
CREATE TABLE table_14245_3 (population__1931__in_1 VARCHAR, voivodeship_or_city VARCHAR) [/INST]
### Response:
SELECT population__1931__in_1, 000 AS s FROM table_14245_3 WHERE voivodeship_or_city = "lubelskie" </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 population when the capital is tarnopol
### Context:
CREATE TABLE table_14245_3 (population__1931__in_1 VARCHAR, capital VARCHAR) [/INST]
### Response:
SELECT population__1931__in_1, 000 AS s FROM table_14245_3 WHERE capital = "Tarnopol" </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 bits 14-12 for output from accumulator to character bus
### Context:
CREATE TABLE table_14249278_1 (bits_14_12 INTEGER, description VARCHAR) [/INST]
### Response:
SELECT MIN(bits_14_12) FROM table_14249278_1 WHERE description = "Output from accumulator to character bus" </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 smallest number in fleet for chassis manufacturer Scania and fleet numbers is 3230?
### Context:
CREATE TABLE table_1425948_1 (number_in_fleet INTEGER, chassis_manufacturer VARCHAR, fleet_numbers VARCHAR) [/INST]
### Response:
SELECT MIN(number_in_fleet) FROM table_1425948_1 WHERE chassis_manufacturer = "Scania" AND fleet_numbers = "3230" </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 chassis manufacturer is for fleet numbers range 2530-2558
### Context:
CREATE TABLE table_1425948_1 (chassis_manufacturer VARCHAR, fleet_numbers VARCHAR) [/INST]
### Response:
SELECT chassis_manufacturer FROM table_1425948_1 WHERE fleet_numbers = "2530-2558" </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:
Chassis model Scania K360ua has what minimum number in fleet?
### Context:
CREATE TABLE table_1425948_1 (number_in_fleet INTEGER, chassis_model VARCHAR) [/INST]
### Response:
SELECT MIN(number_in_fleet) FROM table_1425948_1 WHERE chassis_model = "Scania K360UA" </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 channels when designation is pc700
### Context:
CREATE TABLE table_142573_1 (channels VARCHAR, designation VARCHAR) [/INST]
### Response:
SELECT channels FROM table_142573_1 WHERE designation = "PC700" </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 maximum clock rate mhz
### Context:
CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER) [/INST]
### Response:
SELECT MAX(clock_rate__mhz_) FROM table_142573_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:
Name the bus width bits when bandwidth mb/s is 3200
### Context:
CREATE TABLE table_142573_1 (bus_width__bits_ VARCHAR, bandwidth__mb_s_ VARCHAR) [/INST]
### Response:
SELECT bus_width__bits_ FROM table_142573_1 WHERE bandwidth__mb_s_ = 3200 </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 least clock rate mhz
### Context:
CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER) [/INST]
### Response:
SELECT MIN(clock_rate__mhz_) FROM table_142573_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:
Name the least clock rate mhz when designation is rimm 4200
### Context:
CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER, designation VARCHAR) [/INST]
### Response:
SELECT MIN(clock_rate__mhz_) FROM table_142573_1 WHERE designation = "RIMM 4200" </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 clock rate mhz when bandwidth mb/s is 2400
### Context:
CREATE TABLE table_142573_1 (clock_rate__mhz_ VARCHAR, bandwidth__mb_s_ VARCHAR) [/INST]
### Response:
SELECT COUNT(clock_rate__mhz_) FROM table_142573_1 WHERE bandwidth__mb_s_ = 2400 </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 elementary schools list Cort Monroe as the principal from 2013 to 2014?
### Context:
CREATE TABLE table_14254419_3 (elementary_schools VARCHAR, principal__2013_2014_ VARCHAR) [/INST]
### Response:
SELECT elementary_schools FROM table_14254419_3 WHERE principal__2013_2014_ = "Cort Monroe" </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 all the assistant principals that served from 2013-2014 under the principal Cort Monroe?
### Context:
CREATE TABLE table_14254419_3 (Assistant VARCHAR, principal__2013_2014_ VARCHAR) [/INST]
### Response:
SELECT Assistant AS principal__2013_2014_ FROM table_14254419_3 WHERE principal__2013_2014_ = "Cort Monroe" </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 played in the series that resulted in matches with the following scores: 0–3 0–8 0–1 0–2 0–3 1–4 0–9 0–5?
### Context:
CREATE TABLE table_14263158_3 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_14263158_3 WHERE result = "0–3 0–8 0–1 0–2 0–3 1–4 0–9 0–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:
Where was there a change of 6.5%?
### Context:
CREATE TABLE table_1425958_1 (name VARCHAR, _percentage_change VARCHAR) [/INST]
### Response:
SELECT name FROM table_1425958_1 WHERE _percentage_change = "6.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:
When the change is 8.8%, what is the density (pop/km²)?
### Context:
CREATE TABLE table_1425958_1 (density__pop_km²_ VARCHAR, _percentage_change VARCHAR) [/INST]
### Response:
SELECT density__pop_km²_ FROM table_1425958_1 WHERE _percentage_change = "8.8" </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 locations had a density (pop/km²) of 91.8 in the 2011 census?
### Context:
CREATE TABLE table_1425958_1 (density__pop_km²_ VARCHAR) [/INST]
### Response:
SELECT COUNT(2011 AS _census) FROM table_1425958_1 WHERE density__pop_km²_ = "91.8" </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:
When the % change is 8.4, what is the population rank?
### Context:
CREATE TABLE table_1425958_1 (population_rank INTEGER, _percentage_change VARCHAR) [/INST]
### Response:
SELECT MIN(population_rank) FROM table_1425958_1 WHERE _percentage_change = "8.4" </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:
When the population rank is 34, what the is % change?
### Context:
CREATE TABLE table_1425958_1 (_percentage_change VARCHAR, population_rank VARCHAR) [/INST]
### Response:
SELECT _percentage_change FROM table_1425958_1 WHERE population_rank = 34 </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 teams scored exactly 38 points
### Context:
CREATE TABLE table_14288212_1 (team VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT COUNT(team) FROM table_14288212_1 WHERE points_for = 38 </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:
In what year did Italy begin playing?
### Context:
CREATE TABLE table_14288212_1 (first_played INTEGER, team VARCHAR) [/INST]
### Response:
SELECT MIN(first_played) FROM table_14288212_1 WHERE team = "Italy" </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:
For teams that played 5 games, what was the smallest number of wins?
### Context:
CREATE TABLE table_14288212_1 (win INTEGER, played VARCHAR) [/INST]
### Response:
SELECT MIN(win) FROM table_14288212_1 WHERE played = 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:
How many games did the team that began in 2011 and scored 36 points play?
### Context:
CREATE TABLE table_14288212_1 (played VARCHAR, first_played VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT COUNT(played) FROM table_14288212_1 WHERE first_played = 2011 AND points_for = 36 </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 all the run times with 8.2 million viewers?
### Context:
CREATE TABLE table_1429629_1 (run_time VARCHAR, viewers__in_millions_ VARCHAR) [/INST]
### Response:
SELECT run_time FROM table_1429629_1 WHERE viewers__in_millions_ = "8.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:
What are all the episodes with an episode run time of 24:01?
### Context:
CREATE TABLE table_1429629_1 (episode VARCHAR, run_time VARCHAR) [/INST]
### Response:
SELECT episode FROM table_1429629_1 WHERE run_time = "24: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:
How many episodes had a broadcast date and run time of 24:43?
### Context:
CREATE TABLE table_1429629_1 (broadcast_date VARCHAR, run_time VARCHAR) [/INST]
### Response:
SELECT COUNT(broadcast_date) FROM table_1429629_1 WHERE run_time = "24:43" </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 members gained university status in 1900?
### Context:
CREATE TABLE table_142950_1 (research_funding__ VARCHAR, gained_university_status VARCHAR) [/INST]
### Response:
SELECT COUNT(research_funding__) AS £, 000 AS _ FROM table_142950_1 WHERE gained_university_status = 1900 </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 largest number of students?
### Context:
CREATE TABLE table_142950_1 (total_number_of_students INTEGER) [/INST]
### Response:
SELECT MAX(total_number_of_students) FROM table_142950_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:
How many members have professor edward acton as vice-chancellor?
### Context:
CREATE TABLE table_142950_1 (total_number_of_students VARCHAR, vice_chancellor VARCHAR) [/INST]
### Response:
SELECT COUNT(total_number_of_students) FROM table_142950_1 WHERE vice_chancellor = "Professor Edward Acton" </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 year leicester was established?
### Context:
CREATE TABLE table_142950_1 (established INTEGER, location VARCHAR) [/INST]
### Response:
SELECT MAX(established) FROM table_142950_1 WHERE location = "Leicester" </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 country has miss universe Hungary as former pageant?
### Context:
CREATE TABLE table_14308895_2 (country_territory VARCHAR, former_pageant VARCHAR) [/INST]
### Response:
SELECT country_territory FROM table_14308895_2 WHERE former_pageant = "Miss Universe Hungary" </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 is the former pageant in the country where the new pageant is miss bahamas?
### Context:
CREATE TABLE table_14308895_2 (former_pageant VARCHAR, new_pageant VARCHAR) [/INST]
### Response:
SELECT former_pageant FROM table_14308895_2 WHERE new_pageant = "Miss Bahamas" </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:
when did new zealand last compete?
### Context:
CREATE TABLE table_14308895_2 (last_competed INTEGER, country_territory VARCHAR) [/INST]
### Response:
SELECT MAX(last_competed) FROM table_14308895_2 WHERE country_territory = "New Zealand" </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 new pageants does Aruba have?
### Context:
CREATE TABLE table_14308895_2 (new_pageant VARCHAR, country_territory VARCHAR) [/INST]
### Response:
SELECT COUNT(new_pageant) FROM table_14308895_2 WHERE country_territory = "Aruba" </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 is the new pageant from spain?
### Context:
CREATE TABLE table_14308895_2 (new_pageant VARCHAR, country_territory VARCHAR) [/INST]
### Response:
SELECT new_pageant FROM table_14308895_2 WHERE country_territory = "Spain" </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 away team when Carlton was the home team?
### Context:
CREATE TABLE table_14312471_1 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_14312471_1 WHERE home_team = "Carlton" </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 number of teams where conmebol 1996 did not qualify?
### Context:
CREATE TABLE table_14310205_1 (team VARCHAR, conmebol_1996 VARCHAR) [/INST]
### Response:
SELECT COUNT(team) FROM table_14310205_1 WHERE conmebol_1996 = "did not qualify" </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 racing club where copa libertadores 1997?
### Context:
CREATE TABLE table_14310205_1 (copa_libertadores_1997 VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT copa_libertadores_1997 FROM table_14310205_1 WHERE team = "Racing Club" </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 th copa libertadores 1997 is qf?
### Context:
CREATE TABLE table_14310205_1 (copa_libertadores_1997 VARCHAR, supercopa_1996 VARCHAR) [/INST]
### Response:
SELECT copa_libertadores_1997 FROM table_14310205_1 WHERE supercopa_1996 = "QF" </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's the maximum crowd when scg is the ground?
### Context:
CREATE TABLE table_14312471_4 (crowd INTEGER, ground VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_14312471_4 WHERE ground = "SCG" </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 ground where the crowd totals 19929?
### Context:
CREATE TABLE table_14312471_4 (ground VARCHAR, crowd VARCHAR) [/INST]
### Response:
SELECT ground FROM table_14312471_4 WHERE crowd = 19929 </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 home team for manuka oval
### Context:
CREATE TABLE table_14312471_3 (home_team VARCHAR, ground VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_14312471_3 WHERE ground = "Manuka Oval" </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 away team score for richmond
### Context:
CREATE TABLE table_14312471_3 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_14312471_3 WHERE away_team = "Richmond" </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 made the report when the home team is north Melbourne?
### Context:
CREATE TABLE table_14312471_7 (report VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT report FROM table_14312471_7 WHERE home_team = "North Melbourne" </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 played Richmond at home?
### Context:
CREATE TABLE table_14312471_7 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_14312471_7 WHERE away_team = "Richmond" </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 has the home ground Aami stadium?
### Context:
CREATE TABLE table_14312471_7 (home_team VARCHAR, ground VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_14312471_7 WHERE ground = "AAMI Stadium" </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 all candidate when incumbent was D. Wyatt Aiken?
### Context:
CREATE TABLE table_1431467_4 (candidates VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT candidates FROM table_1431467_4 WHERE incumbent = "D. Wyatt Aiken" </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 incumbents for the district of South Carolina 5?
### Context:
CREATE TABLE table_1431467_4 (incumbent VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT COUNT(incumbent) FROM table_1431467_4 WHERE district = "South Carolina 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:
Who was everyone first elected when incumbent was John J. Hemphill?
### Context:
CREATE TABLE table_1431467_4 (first_elected VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_1431467_4 WHERE incumbent = "John J. Hemphill" </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:
When the girls singles is lindaweni fanetri what is the mixed doubled?
### Context:
CREATE TABLE table_14319023_2 (mixed_doubles VARCHAR, girls_singles VARCHAR) [/INST]
### Response:
SELECT mixed_doubles FROM table_14319023_2 WHERE girls_singles = "Lindaweni Fanetri" </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:
When the girls doubles is ayu pratiwi anggi widia what is the boys doubles?
### Context:
CREATE TABLE table_14319023_2 (boys_doubles VARCHAR, girls_doubles VARCHAR) [/INST]
### Response:
SELECT boys_doubles FROM table_14319023_2 WHERE girls_doubles = "Ayu Pratiwi Anggi Widia" </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:
When mixed doubles is didit juang indrianto yayu rahayu what is the most current year?
### Context:
CREATE TABLE table_14319023_2 (year INTEGER, mixed_doubles VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_14319023_2 WHERE mixed_doubles = "Didit Juang Indrianto Yayu Rahayu" </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:
When mixed doubles is danny bawa chrisnanta debby susanto what is the boys singles?
### Context:
CREATE TABLE table_14319023_2 (boys_singles VARCHAR, mixed_doubles VARCHAR) [/INST]
### Response:
SELECT boys_singles FROM table_14319023_2 WHERE mixed_doubles = "Danny Bawa Chrisnanta Debby Susanto" </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:
When girls doubles is anneke feinya agustin wenny setiawati what is the mixed doubles?
### Context:
CREATE TABLE table_14319023_2 (mixed_doubles VARCHAR, girls_doubles VARCHAR) [/INST]
### Response:
SELECT mixed_doubles FROM table_14319023_2 WHERE girls_doubles = "Anneke Feinya Agustin Wenny Setiawati" </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 total number of publishers for flushed away
### Context:
CREATE TABLE table_14325653_2 (publisher_s_ VARCHAR, video_game VARCHAR) [/INST]
### Response:
SELECT COUNT(publisher_s_) FROM table_14325653_2 WHERE video_game = "Flushed Away" </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 publisher for resident evil 4
### Context:
CREATE TABLE table_14325653_2 (publisher_s_ VARCHAR, video_game VARCHAR) [/INST]
### Response:
SELECT publisher_s_ FROM table_14325653_2 WHERE video_game = "Resident Evil 4" </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 total number?
### Context:
CREATE TABLE table_14330096_4 (total_number INTEGER) [/INST]
### Response:
SELECT MAX(total_number) FROM table_14330096_4 </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 of the episodes have Roger Goldby as the director?
### Context:
CREATE TABLE table_14330096_4 (total_number VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT total_number FROM table_14330096_4 WHERE director = "Roger Goldby" </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 episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?
### Context:
CREATE TABLE table_14330096_4 (title VARCHAR, director VARCHAR, writer VARCHAR) [/INST]
### Response:
SELECT title FROM table_14330096_4 WHERE director = "Patrick Lau" AND writer = "Lisa Holdsworth" </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 Closure date of Hunterston B
### Context:
CREATE TABLE table_143352_1 (accounting_closure_date INTEGER, agr_power_station VARCHAR) [/INST]
### Response:
SELECT MIN(accounting_closure_date) FROM table_143352_1 WHERE agr_power_station = "Hunterston B" </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 power stations are connected to grid at Heysham 2
### Context:
CREATE TABLE table_143352_1 (connected_to_grid VARCHAR, agr_power_station VARCHAR) [/INST]
### Response:
SELECT COUNT(connected_to_grid) FROM table_143352_1 WHERE agr_power_station = "Heysham 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:
What year did construction start at Heysham 1
### Context:
CREATE TABLE table_143352_1 (construction_started VARCHAR, agr_power_station VARCHAR) [/INST]
### Response:
SELECT construction_started FROM table_143352_1 WHERE agr_power_station = "Heysham 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:
When did construction start on the Power station with a net MWE of 1190
### Context:
CREATE TABLE table_143352_1 (construction_started INTEGER, net_mwe VARCHAR) [/INST]
### Response:
SELECT MIN(construction_started) FROM table_143352_1 WHERE net_mwe = 1190 </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 extra points for john heston
### Context:
CREATE TABLE table_14341967_2 (extra_points INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(extra_points) FROM table_14341967_2 WHERE player = "John Heston" </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 scored the most points?
### Context:
CREATE TABLE table_14342367_11 (points INTEGER) [/INST]
### Response:
SELECT MAX(points) FROM table_14342367_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 position did Joe Maddock play?
### Context:
CREATE TABLE table_14342367_11 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_14342367_11 WHERE player = "Joe Maddock" </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 Paul Jones score?
### Context:
CREATE TABLE table_14342367_11 (extra_points VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(extra_points) FROM table_14342367_11 WHERE player = "Paul Jones" </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 Albert Herrnstein make?
### Context:
CREATE TABLE table_14342367_7 (points VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT points FROM table_14342367_7 WHERE player = "Albert Herrnstein" </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 positions did Paul Jones play?
### Context:
CREATE TABLE table_14342367_7 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_14342367_7 WHERE player = "Paul Jones" </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 amount of field goals made by a player?
### Context:
CREATE TABLE table_14342367_7 (field_goals INTEGER) [/INST]
### Response:
SELECT MIN(field_goals) FROM table_14342367_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:
How many extra points did Paul Dickey received
### Context:
CREATE TABLE table_14342367_15 (extra_points_1_point INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(extra_points_1_point) FROM table_14342367_15 WHERE player = "Paul Dickey" </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 5 points field goals is minimum
### Context:
CREATE TABLE table_14342367_15 (field_goals__5_points_ INTEGER) [/INST]
### Response:
SELECT MIN(field_goals__5_points_) FROM table_14342367_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:
How many player with total points of 75
### Context:
CREATE TABLE table_14342367_15 (player VARCHAR, total_points VARCHAR) [/INST]
### Response:
SELECT COUNT(player) FROM table_14342367_15 WHERE total_points = 75 </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 field goals
### Context:
CREATE TABLE table_14342480_5 (field_goals INTEGER) [/INST]
### Response:
SELECT MAX(field_goals) FROM table_14342480_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 points for right halfback and starter being yes
### Context:
CREATE TABLE table_14342480_5 (points VARCHAR, position VARCHAR, starter VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_14342480_5 WHERE position = "Right halfback" AND starter = "yes" </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:
Na,e the number of field goals for right tackle
### Context:
CREATE TABLE table_14342480_5 (field_goals VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(field_goals) FROM table_14342480_5 WHERE position = "Right 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:
Name the most extra points for right halfback
### Context:
CREATE TABLE table_14342480_5 (extra_points INTEGER, position VARCHAR) [/INST]
### Response:
SELECT MAX(extra_points) FROM table_14342480_5 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:
What positions does Tom Hammond play?
### Context:
CREATE TABLE table_14342592_3 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_14342592_3 WHERE player = "Tom Hammond" </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 positions does Hal Weeks play?
### Context:
CREATE TABLE table_14342592_3 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_14342592_3 WHERE player = "Hal 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:
How many points does Clark have?
### Context:
CREATE TABLE table_14342592_3 (points VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT points FROM table_14342592_3 WHERE player = "Clark" </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 the player who was right guard score?
### Context:
CREATE TABLE table_14342592_7 (points VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_14342592_7 WHERE position = "Right 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:
Was there a starter when 3 touchdowns were scored?
### Context:
CREATE TABLE table_14342592_7 (starter VARCHAR, touchdowns VARCHAR) [/INST]
### Response:
SELECT starter FROM table_14342592_7 WHERE touchdowns = 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:
How many touchdowns were there when Heston was in play?
### Context:
CREATE TABLE table_14342592_7 (touchdowns INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(touchdowns) FROM table_14342592_7 WHERE player = "Heston" </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 were there when the left tackle was played and there were 5 extra points?
### Context:
CREATE TABLE table_14342592_7 (points INTEGER, position VARCHAR, extra_points VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_14342592_7 WHERE position = "Left tackle" AND extra_points = 5 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.