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:
Name the result for barney frank
### Context:
CREATE TABLE table_25030512_24 (result VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT result FROM table_25030512_24 WHERE incumbent = "Barney Frank" </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 candidates for first elected being 1976
### Context:
CREATE TABLE table_25030512_24 (candidates VARCHAR, first_elected VARCHAR) [/INST]
### Response:
SELECT candidates FROM table_25030512_24 WHERE first_elected = "1976" </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 districts for first elected being 1998
### Context:
CREATE TABLE table_25030512_24 (district VARCHAR, first_elected VARCHAR) [/INST]
### Response:
SELECT COUNT(district) FROM table_25030512_24 WHERE first_elected = "1998" </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 result for 1998
### Context:
CREATE TABLE table_25030512_24 (result VARCHAR, first_elected VARCHAR) [/INST]
### Response:
SELECT result FROM table_25030512_24 WHERE first_elected = "1998" </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 candidates for 1998
### Context:
CREATE TABLE table_25030512_24 (candidates VARCHAR, first_elected VARCHAR) [/INST]
### Response:
SELECT candidates FROM table_25030512_24 WHERE first_elected = "1998" </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 is the driver of the Chevrolet engine that is sponsored by godaddy.com?
### Context:
CREATE TABLE table_2503102_1 (driver_s_ VARCHAR, engine VARCHAR, car_sponsor_s_ VARCHAR) [/INST]
### Response:
SELECT driver_s_ FROM table_2503102_1 WHERE engine = "Chevrolet" AND car_sponsor_s_ = "GoDaddy.com" </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 engine does the Fuzzy's Ultra Premium Vodka sponsored car use?
### Context:
CREATE TABLE table_2503102_1 (engine VARCHAR, car_sponsor_s_ VARCHAR) [/INST]
### Response:
SELECT engine FROM table_2503102_1 WHERE car_sponsor_s_ = "Fuzzy's Ultra Premium Vodka" </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 engine doe the Ed Carpenter Racing team use?
### Context:
CREATE TABLE table_2503102_1 (engine VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT engine FROM table_2503102_1 WHERE team = "Ed Carpenter Racing" </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 team is sponsored by hydroxycut?
### Context:
CREATE TABLE table_2503102_1 (team VARCHAR, car_sponsor_s_ VARCHAR) [/INST]
### Response:
SELECT team FROM table_2503102_1 WHERE car_sponsor_s_ = "HydroxyCut" </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 percentage of the population is below 50% of the median income in the region where 10.4% of the population earns below 40% of the median income?
### Context:
CREATE TABLE table_25042332_16 (below_50_percentage_of_median_income VARCHAR, below_40_percentage_of_median_income VARCHAR) [/INST]
### Response:
SELECT COUNT(below_50_percentage_of_median_income) FROM table_25042332_16 WHERE below_40_percentage_of_median_income = "10.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 median income for the region where 24.4% pf people make below 60% of the median income?
### Context:
CREATE TABLE table_25042332_16 (median_income___intl INTEGER, below_60_percentage_of_median_income VARCHAR) [/INST]
### Response:
SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE below_60_percentage_of_median_income = "24.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 median income of Maule?
### Context:
CREATE TABLE table_25042332_16 (median_income___intl INTEGER, region VARCHAR) [/INST]
### Response:
SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE region = "Maule" </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 region does 17.4% of the population make below 50% of the median income?
### Context:
CREATE TABLE table_25042332_16 (region VARCHAR, below_50_percentage_of_median_income VARCHAR) [/INST]
### Response:
SELECT region FROM table_25042332_16 WHERE below_50_percentage_of_median_income = "17.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:
In what region do 18.6% of the people make less than 50% of the median income?
### Context:
CREATE TABLE table_25042332_16 (region VARCHAR, below_50_percentage_of_median_income VARCHAR) [/INST]
### Response:
SELECT region FROM table_25042332_16 WHERE below_50_percentage_of_median_income = "18.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:
What is the gdp per capita in 2008 for the region that had a combined gross enrollment ration of 89.0?
### Context:
CREATE TABLE table_25042332_33 (gdp__ppp__per_capita__2008_ INTEGER, combined_gross_enrollment_ratio__2009_ VARCHAR) [/INST]
### Response:
SELECT MIN(gdp__ppp__per_capita__2008_) FROM table_25042332_33 WHERE combined_gross_enrollment_ratio__2009_ = "89.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:
Which region had a life expectancy at birth of 77.9 from 2001-2002?
### Context:
CREATE TABLE table_25042332_33 (region VARCHAR, life_expectancy_at_birth__2001_2002_ VARCHAR) [/INST]
### Response:
SELECT region FROM table_25042332_33 WHERE life_expectancy_at_birth__2001_2002_ = "77.9" </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 gdp per capita in 2008 for the region with a combined gross enrollment ratio of 86.6 in 2009?
### Context:
CREATE TABLE table_25042332_33 (gdp__ppp__per_capita__2008_ INTEGER, combined_gross_enrollment_ratio__2009_ VARCHAR) [/INST]
### Response:
SELECT MAX(gdp__ppp__per_capita__2008_) FROM table_25042332_33 WHERE combined_gross_enrollment_ratio__2009_ = "86.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 regions had an hdi of 0.896?
### Context:
CREATE TABLE table_25042332_33 (combined_gross_enrollment_ratio__2009_ VARCHAR, hdi VARCHAR) [/INST]
### Response:
SELECT COUNT(combined_gross_enrollment_ratio__2009_) FROM table_25042332_33 WHERE hdi = "0.896" </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 regions had a life expectancy at birth in 2001-2002 of 75.9?
### Context:
CREATE TABLE table_25042332_33 (hdi VARCHAR, life_expectancy_at_birth__2001_2002_ VARCHAR) [/INST]
### Response:
SELECT COUNT(hdi) FROM table_25042332_33 WHERE life_expectancy_at_birth__2001_2002_ = "75.9" </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 which season is the runner-up Lase-R/Riga?
### Context:
CREATE TABLE table_25058269_1 (season VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT season FROM table_25058269_1 WHERE runner_up = "Lase-R/Riga" </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 season 2007–08 who is the runner-up?
### Context:
CREATE TABLE table_25058269_1 (runner_up VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_25058269_1 WHERE season = "2007–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:
Who is the runner-up for season 2011–12?
### Context:
CREATE TABLE table_25058269_1 (runner_up VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_25058269_1 WHERE season = "2011–12" </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 season 2005–06, who is 3rd place?
### Context:
CREATE TABLE table_25058269_1 (season VARCHAR) [/INST]
### Response:
SELECT 3 AS rd_place FROM table_25058269_1 WHERE season = "2005–06" </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 draft pick number did Kentucky get?
### Context:
CREATE TABLE table_25085059_1 (pick__number INTEGER, college VARCHAR) [/INST]
### Response:
SELECT MIN(pick__number) FROM table_25085059_1 WHERE college = "Kentucky" </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 was the number 6 draft pick?
### Context:
CREATE TABLE table_25085059_1 (position VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT position FROM table_25085059_1 WHERE pick__number = 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:
What CFL team obtained a draft pick from North Dakota who plays OL position?
### Context:
CREATE TABLE table_25085059_1 (cfl_team VARCHAR, position VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT cfl_team FROM table_25085059_1 WHERE position = "OL" AND college = "North Dakota" </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 college did the Toronto Argonauts draft pick come from?
### Context:
CREATE TABLE table_25085059_1 (college VARCHAR, cfl_team VARCHAR) [/INST]
### Response:
SELECT college FROM table_25085059_1 WHERE cfl_team = "Toronto Argonauts" </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 player was the number 1 draft pick?
### Context:
CREATE TABLE table_25085059_1 (player VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT player FROM table_25085059_1 WHERE pick__number = 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 CFL team got their draft pick from North Dakota?
### Context:
CREATE TABLE table_25085059_1 (cfl_team VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT cfl_team FROM table_25085059_1 WHERE college = "North Dakota" </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 went to college at Tennessee?
### Context:
CREATE TABLE table_2508633_3 (player VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT player FROM table_2508633_3 WHERE college = "Tennessee" </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 drafted by the Kansas City Chiefs?
### Context:
CREATE TABLE table_2508633_3 (player VARCHAR, nfl_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_2508633_3 WHERE nfl_team = "Kansas City Chiefs" </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 drafted by the Baltimore Colts?
### Context:
CREATE TABLE table_2508633_3 (player VARCHAR, nfl_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_2508633_3 WHERE nfl_team = "Baltimore Colts" </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:
If the NFL team is the Minnesota Vikings, what is the position?
### Context:
CREATE TABLE table_2508633_8 (position VARCHAR, nfl_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_2508633_8 WHERE nfl_team = "Minnesota Vikings" </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 pick number if the player is Gary Kubiak?
### Context:
CREATE TABLE table_2508633_8 (pick__number VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT pick__number FROM table_2508633_8 WHERE player = "Gary Kubiak" </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 pick number minimum if the player is Mark Bortz?
### Context:
CREATE TABLE table_2508633_8 (pick__number INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(pick__number) FROM table_2508633_8 WHERE player = "Mark Bortz" </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 pick number minimum if the NFL team is the San Diego Chargers?
### Context:
CREATE TABLE table_2508633_8 (pick__number INTEGER, nfl_team VARCHAR) [/INST]
### Response:
SELECT MIN(pick__number) FROM table_2508633_8 WHERE nfl_team = "San Diego Chargers" </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 season# for the writer Daegan Fryklind?
### Context:
CREATE TABLE table_25131572_3 (season__number INTEGER, written_by VARCHAR) [/INST]
### Response:
SELECT MAX(season__number) FROM table_25131572_3 WHERE written_by = "Daegan Fryklind" </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 voiced Drizella in the English version?
### Context:
CREATE TABLE table_25173505_15 (english_version VARCHAR, character VARCHAR) [/INST]
### Response:
SELECT english_version FROM table_25173505_15 WHERE character = "Drizella" </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 name of bowl for 2006 season
### Context:
CREATE TABLE table_2517159_1 (name_of_bowl VARCHAR, last_appearance VARCHAR) [/INST]
### Response:
SELECT COUNT(name_of_bowl) FROM table_2517159_1 WHERE last_appearance = "2006 Season" </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 last appearance for music city bowl
### Context:
CREATE TABLE table_2517159_1 (last_appearance VARCHAR, name_of_bowl VARCHAR) [/INST]
### Response:
SELECT last_appearance FROM table_2517159_1 WHERE name_of_bowl = "Music City Bowl" </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 record for cotton bowl classic
### Context:
CREATE TABLE table_2517159_1 (record VARCHAR, name_of_bowl VARCHAR) [/INST]
### Response:
SELECT record FROM table_2517159_1 WHERE name_of_bowl = "Cotton Bowl Classic" </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 appearance for independence bowl
### Context:
CREATE TABLE table_2517159_1 (appearances VARCHAR, name_of_bowl VARCHAR) [/INST]
### Response:
SELECT COUNT(appearances) FROM table_2517159_1 WHERE name_of_bowl = "Independence Bowl" </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:
On the Circuit Zolder who was the winning team?
### Context:
CREATE TABLE table_25213146_2 (winning_team VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT winning_team FROM table_25213146_2 WHERE circuit = "circuit Zolder" </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 circuit was Bruno Spengler the winning driver?
### Context:
CREATE TABLE table_25213146_2 (circuit VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_25213146_2 WHERE winning_driver = "Bruno Spengler" </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 Pole Positions were there on 30 March?
### Context:
CREATE TABLE table_25213146_2 (pole_position VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(pole_position) FROM table_25213146_2 WHERE date = "30 March" </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 the circuit for round 4?
### Context:
CREATE TABLE table_25213146_2 (circuit VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_25213146_2 WHERE round = 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:
On what date(s) was the winning team Prema Powerteam?
### Context:
CREATE TABLE table_25213146_2 (date VARCHAR, winning_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_25213146_2 WHERE winning_team = "Prema Powerteam" </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 bed 2010 for 6.5%
### Context:
CREATE TABLE table_25256368_1 (february_2010 VARCHAR, june_2010 VARCHAR) [/INST]
### Response:
SELECT february_2010 FROM table_25256368_1 WHERE june_2010 = "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:
Name the feb 2010 for january 2010 for 6.2%
### Context:
CREATE TABLE table_25256368_1 (february_2010 VARCHAR, january_2010 VARCHAR) [/INST]
### Response:
SELECT february_2010 FROM table_25256368_1 WHERE january_2010 = "6.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 people directed episode 3 in the season?
### Context:
CREATE TABLE table_25277262_2 (directed_by VARCHAR, no_in_season VARCHAR) [/INST]
### Response:
SELECT COUNT(directed_by) FROM table_25277262_2 WHERE no_in_season = 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:
If the writer is Mark Fink, who is the director?
### Context:
CREATE TABLE table_25277262_2 (directed_by VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_25277262_2 WHERE written_by = "Mark Fink" </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 name of the episode # 11 in the season?
### Context:
CREATE TABLE table_25277262_2 (title VARCHAR, no_in_season VARCHAR) [/INST]
### Response:
SELECT title FROM table_25277262_2 WHERE no_in_season = 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:
Who was the director of episode 11 based on season?
### Context:
CREATE TABLE table_25277296_2 (directed_by VARCHAR, no_in_season VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_25277296_2 WHERE no_in_season = 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:
Name the reidsville for enrollment
### Context:
CREATE TABLE table_25330991_3 (reidsville VARCHAR, information VARCHAR) [/INST]
### Response:
SELECT reidsville FROM table_25330991_3 WHERE information = "Enrollment" </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 james e. holmes for erselle young
### Context:
CREATE TABLE table_25330991_3 (james_e_holmes VARCHAR, reidsville VARCHAR) [/INST]
### Response:
SELECT james_e_holmes FROM table_25330991_3 WHERE reidsville = "Erselle Young" </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 james e. holmes for duane hensley
### Context:
CREATE TABLE table_25330991_3 (james_e_holmes VARCHAR, western_rockingham_middle_school VARCHAR) [/INST]
### Response:
SELECT james_e_holmes FROM table_25330991_3 WHERE western_rockingham_middle_school = "Duane Hensley" </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 james e. holmes for joe baez
### Context:
CREATE TABLE table_25330991_3 (james_e_holmes VARCHAR, rockingham_county VARCHAR) [/INST]
### Response:
SELECT james_e_holmes FROM table_25330991_3 WHERE rockingham_county = "Joe Baez" </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 time for entries being 907
### Context:
CREATE TABLE table_2534387_10 (time__et_ VARCHAR, entries VARCHAR) [/INST]
### Response:
SELECT time__et_ FROM table_2534387_10 WHERE entries = "907" </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 entries for 6 h 23 min elapsed time
### Context:
CREATE TABLE table_2534387_10 (entries VARCHAR, elapsed_time VARCHAR) [/INST]
### Response:
SELECT entries FROM table_2534387_10 WHERE elapsed_time = "6 h 23 min" </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 prize pool for 706 (481 r, 346 a)
### Context:
CREATE TABLE table_2534387_10 (prize VARCHAR, entries VARCHAR) [/INST]
### Response:
SELECT prize AS Pool FROM table_2534387_10 WHERE entries = "706 (481 R, 346 A)" </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 dates of death of those politicians whose date of birth 1938-08-30 30 august 1938?
### Context:
CREATE TABLE table_25345002_1 (date_of_death VARCHAR, date_of_birth VARCHAR) [/INST]
### Response:
SELECT COUNT(date_of_death) FROM table_25345002_1 WHERE date_of_birth = "1938-08-30 30 August 1938" </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:
If the event number is 5, what is the winner total number?
### Context:
CREATE TABLE table_2534387_11 (winner VARCHAR, event__number VARCHAR) [/INST]
### Response:
SELECT COUNT(winner) FROM table_2534387_11 WHERE event__number = 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:
What is the prize pool if the entries is 1,132?
### Context:
CREATE TABLE table_2534387_11 (prize VARCHAR, entries VARCHAR) [/INST]
### Response:
SELECT prize AS Pool FROM table_2534387_11 WHERE entries = "1,132" </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 season # for the first time
### Context:
CREATE TABLE table_25363904_2 (season__number INTEGER, title_english VARCHAR) [/INST]
### Response:
SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = "The first time" </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 season number for two marriage proposals
### Context:
CREATE TABLE table_25363904_2 (season__number INTEGER, title_english VARCHAR) [/INST]
### Response:
SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = "Two marriage proposals" </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 number episode was Week 4, Part 1?
### Context:
CREATE TABLE table_25391981_20 (episode_number VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT episode_number FROM table_25391981_20 WHERE episode = "Week 4, Part 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:
For what episode was the rating/share for 18-49 at 2.8/8
### Context:
CREATE TABLE table_25391981_20 (episode VARCHAR, rating VARCHAR) [/INST]
### Response:
SELECT episode FROM table_25391981_20 WHERE rating / SHARE(18 AS –49) = 2.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:
What number episode was Week 4, Part 2?
### Context:
CREATE TABLE table_25391981_20 (episode_number VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT episode_number FROM table_25391981_20 WHERE episode = "Week 4, Part 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 viewers in millions watched the episode with the number 10.18?
### Context:
CREATE TABLE table_25391981_20 (viewers__millions_ VARCHAR, episode_number VARCHAR) [/INST]
### Response:
SELECT viewers__millions_ FROM table_25391981_20 WHERE episode_number = "10.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:
What is the rating/share for 18-49 for Week 6, Part 1?
### Context:
CREATE TABLE table_25391981_20 (rating VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT rating / SHARE(18 AS –49) FROM table_25391981_20 WHERE episode = "Week 6, Part 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 weekly rank of the episode with a 14 share whose original airdate was April 20, 2010?
### Context:
CREATE TABLE table_25391981_20 (weekly_rank VARCHAR, share VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT weekly_rank FROM table_25391981_20 WHERE share = "14" AND original_airdate = "April 20, 2010" </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 form ("to sing") when brazilian portuguese is [kɐ̃ˈtẽmus]?
### Context:
CREATE TABLE table_25401_2 (form__to_sing_ VARCHAR, brazilian_portuguese VARCHAR) [/INST]
### Response:
SELECT form__to_sing_ FROM table_25401_2 WHERE brazilian_portuguese = "[kɐ̃ˈtẽmus]" </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 romanian when nuorese sardinian is [ˈkantata]?
### Context:
CREATE TABLE table_25401_2 (romanian VARCHAR, nuorese_sardinian VARCHAR) [/INST]
### Response:
SELECT romanian FROM table_25401_2 WHERE nuorese_sardinian = "[ˈkantata]" </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 romanian when nuorese sardinian is [ˈkantaza]?
### Context:
CREATE TABLE table_25401_2 (romanian VARCHAR, nuorese_sardinian VARCHAR) [/INST]
### Response:
SELECT romanian FROM table_25401_2 WHERE nuorese_sardinian = "[ˈkantaza]" </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 results when Hanne Skak Jensen faced Andreja Klepač as opponent?
### Context:
CREATE TABLE table_25505246_7 (result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_25505246_7 WHERE opponent = "Andreja Klepač" </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 Hanne Skak Jensen's opponent when facing Belarus?
### Context:
CREATE TABLE table_25505246_7 (opponent VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_25505246_7 WHERE against = "Belarus" </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 kind of round was played when Hanne Skak Jensen faced Austria?
### Context:
CREATE TABLE table_25505246_7 (round VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT round FROM table_25505246_7 WHERE against = "Austria" </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 round results when Hanne Skak Jensen faced Austria?
### Context:
CREATE TABLE table_25505246_7 (result VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT result FROM table_25505246_7 WHERE against = "Austria" </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 does Boggs have?
### Context:
CREATE TABLE table_25517718_3 (touchdowns INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(touchdowns) FROM table_25517718_3 WHERE player = "Boggs" </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:
Is the right halfback player a starter?
### Context:
CREATE TABLE table_25517718_3 (starter VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT starter FROM table_25517718_3 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 position does Boggs play?
### Context:
CREATE TABLE table_25517718_3 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_25517718_3 WHERE player = "Boggs" </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 smallest number of extra points for a left halfback?
### Context:
CREATE TABLE table_25517718_3 (extra_points INTEGER, position VARCHAR) [/INST]
### Response:
SELECT MIN(extra_points) FROM table_25517718_3 WHERE position = "Left 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 is the smallest number of extra points?
### Context:
CREATE TABLE table_25517718_3 (extra_points INTEGER) [/INST]
### Response:
SELECT MIN(extra_points) FROM table_25517718_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 starters are there at right tackle?
### Context:
CREATE TABLE table_25517718_3 (starter VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(starter) FROM table_25517718_3 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:
How many mls teams had player jamel wallace?
### Context:
CREATE TABLE table_25518547_4 (mls_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(mls_team) FROM table_25518547_4 WHERE player = "Jamel Wallace" </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 university is kwaku nyamekye affiliated with?
### Context:
CREATE TABLE table_25518547_4 (affiliation VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT affiliation FROM table_25518547_4 WHERE player = "Kwaku Nyamekye" </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 university is houston dynamo affiliated with?
### Context:
CREATE TABLE table_25518547_4 (affiliation VARCHAR, mls_team VARCHAR) [/INST]
### Response:
SELECT affiliation FROM table_25518547_4 WHERE mls_team = "Houston Dynamo" </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 position of pick # 63?
### Context:
CREATE TABLE table_25518547_4 (position VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT position FROM table_25518547_4 WHERE pick__number = 63 </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 players are affiliated with indiana university?
### Context:
CREATE TABLE table_25518547_4 (player VARCHAR, affiliation VARCHAR) [/INST]
### Response:
SELECT COUNT(player) FROM table_25518547_4 WHERE affiliation = "Indiana University" </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 was the earliest season of Juncadella's career?
### Context:
CREATE TABLE table_25538763_1 (season INTEGER) [/INST]
### Response:
SELECT MIN(season) FROM table_25538763_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 pole data were given on season 2012 with 252 points?
### Context:
CREATE TABLE table_25538763_1 (poles VARCHAR, season VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(poles) FROM table_25538763_1 WHERE season = 2012 AND points = "252" </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 wins did Prema Powerteam won with 240 points?
### Context:
CREATE TABLE table_25538763_1 (wins VARCHAR, team VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT wins FROM table_25538763_1 WHERE team = "Prema Powerteam" AND points = "240" </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 latest season where he had 1 podium?
### Context:
CREATE TABLE table_25539502_1 (season INTEGER, podiums VARCHAR) [/INST]
### Response:
SELECT MAX(season) FROM table_25539502_1 WHERE podiums = 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 was his position when the team was FMS International?
### Context:
CREATE TABLE table_25539502_1 (position VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT position FROM table_25539502_1 WHERE team = "FMS International" </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 smallest number of races competed in with 11 podiums?
### Context:
CREATE TABLE table_25539502_1 (races INTEGER, podiums VARCHAR) [/INST]
### Response:
SELECT MIN(races) FROM table_25539502_1 WHERE podiums = 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:
List the total points for the 1st place team.
### Context:
CREATE TABLE table_25561038_1 (points VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT points FROM table_25561038_1 WHERE position = "1st" </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:
List the year in which the driver was in 1st place.
### Context:
CREATE TABLE table_25561038_1 (season VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT season FROM table_25561038_1 WHERE position = "1st" </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 series awarded 15 points?
### Context:
CREATE TABLE table_25561038_1 (races VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(races) FROM table_25561038_1 WHERE points = "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:
List the highest number of laps.
### Context:
CREATE TABLE table_25561038_1 (f_laps INTEGER) [/INST]
### Response:
SELECT MAX(f_laps) FROM table_25561038_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:
List the team with 12 points.
### Context:
CREATE TABLE table_25561038_1 (team VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT team FROM table_25561038_1 WHERE points = "12" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.