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 is the 2011 population if the headquarters is Chittorgarh?
### Context:
CREATE TABLE table_2168295_1 (population__2011_ VARCHAR, headquarters VARCHAR) [/INST]
### Response:
SELECT population__2011_ FROM table_2168295_1 WHERE headquarters = "Chittorgarh" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 different municipal mayors were there in the municipality with an area of 42.66 km2?
### Context:
CREATE TABLE table_216776_2 (municipal_mayor VARCHAR, area__km²_ VARCHAR) [/INST]
### Response:
SELECT COUNT(municipal_mayor) FROM table_216776_2 WHERE area__km²_ = "42.66" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What municipality had 26839 people living in it in 2010?
### Context:
CREATE TABLE table_216776_2 (municipality VARCHAR, population__2010_ VARCHAR) [/INST]
### Response:
SELECT municipality FROM table_216776_2 WHERE population__2010_ = 26839 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 municipality were there 757.5 people per km2?
### Context:
CREATE TABLE table_216776_2 (municipality VARCHAR, pop_density__per_km²_ VARCHAR) [/INST]
### Response:
SELECT municipality FROM table_216776_2 WHERE pop_density__per_km²_ = "757.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 different counts of the population in Cavinti in 2010 are there?
### Context:
CREATE TABLE table_216776_2 (population__2010_ VARCHAR, municipality VARCHAR) [/INST]
### Response:
SELECT COUNT(population__2010_) FROM table_216776_2 WHERE municipality = "Cavinti" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 per km2 are there in the municipality whose mayor is Boy Quiat?
### Context:
CREATE TABLE table_216776_2 (pop_density__per_km²_ VARCHAR, municipal_mayor VARCHAR) [/INST]
### Response:
SELECT pop_density__per_km²_ FROM table_216776_2 WHERE municipal_mayor = "Boy Quiat" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of the episode seen by 2.24 million people in the US?
### Context:
CREATE TABLE table_21696800_1 (_number VARCHAR, us_viewers__million_ VARCHAR) [/INST]
### Response:
SELECT _number FROM table_21696800_1 WHERE us_viewers__million_ = "2.24" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 different episode numbers are there for episodes directed by Wayne Rose?
### Context:
CREATE TABLE table_21696800_1 (_number VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT COUNT(_number) FROM table_21696800_1 WHERE directed_by = "Wayne Rose" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does he get when he starts at 10?
### Context:
CREATE TABLE table_2169966_1 (wins VARCHAR, starts VARCHAR) [/INST]
### Response:
SELECT wins FROM table_2169966_1 WHERE starts = 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many wins does he have?
### Context:
CREATE TABLE table_2169966_1 (wins INTEGER) [/INST]
### Response:
SELECT MAX(wins) FROM table_2169966_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 wast the percent cut for the nation with an 80% full gas storage?
### Context:
CREATE TABLE table_21690339_1 (_percentage_cut VARCHAR, gas_storage VARCHAR) [/INST]
### Response:
SELECT _percentage_cut FROM table_21690339_1 WHERE gas_storage = "80% full" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gas storage status for the nation that had "yes" for alternative fuel?
### Context:
CREATE TABLE table_21690339_1 (gas_storage VARCHAR, alternative_fuel VARCHAR) [/INST]
### Response:
SELECT gas_storage FROM table_21690339_1 WHERE alternative_fuel = "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:
What was the percent cunt for the nation that had fuel oil stocks need only for industry as their fuel alternative?
### Context:
CREATE TABLE table_21690339_1 (_percentage_cut VARCHAR, alternative_fuel VARCHAR) [/INST]
### Response:
SELECT _percentage_cut FROM table_21690339_1 WHERE alternative_fuel = "Fuel oil stocks need only for industry" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country had 20% imports from russia?
### Context:
CREATE TABLE table_21690339_1 (country VARCHAR, _percentage_of_imports_from_russia VARCHAR) [/INST]
### Response:
SELECT country FROM table_21690339_1 WHERE _percentage_of_imports_from_russia = "20%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country had a 100% cut?
### Context:
CREATE TABLE table_21690339_1 (country VARCHAR, _percentage_cut VARCHAR) [/INST]
### Response:
SELECT country FROM table_21690339_1 WHERE _percentage_cut = "100%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 network garnered 2.74 million viewers for Supernatural?
### Context:
CREATE TABLE table_2170969_2 (network VARCHAR, viewers_in_millions VARCHAR) [/INST]
### Response:
SELECT network FROM table_2170969_2 WHERE viewers_in_millions = "2.74" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What season had 2.52 million viewers?
### Context:
CREATE TABLE table_2170969_2 (tv_season VARCHAR, viewers_in_millions VARCHAR) [/INST]
### Response:
SELECT tv_season FROM table_2170969_2 WHERE viewers_in_millions = "2.52" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category for trains numbered 16609/16610?
### Context:
CREATE TABLE table_21716139_1 (category VARCHAR, train_no VARCHAR) [/INST]
### Response:
SELECT category FROM table_21716139_1 WHERE train_no = "16609/16610" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 trains have a category of express and a weekly frequency?
### Context:
CREATE TABLE table_21716139_1 (train_name VARCHAR, category VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT train_name FROM table_21716139_1 WHERE category = "Express" AND frequency = "Weekly" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 train name that has a destination of Tuticorin?
### Context:
CREATE TABLE table_21716139_1 (train_name VARCHAR, destination VARCHAR) [/INST]
### Response:
SELECT train_name FROM table_21716139_1 WHERE destination = "Tuticorin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 frequency of trains numbered 12671/12672?
### Context:
CREATE TABLE table_21716139_1 (frequency VARCHAR, train_no VARCHAR) [/INST]
### Response:
SELECT frequency FROM table_21716139_1 WHERE train_no = "12671/12672" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 destinations have a weekly frequency and are named AC Express?
### Context:
CREATE TABLE table_21716139_1 (destination VARCHAR, frequency VARCHAR, train_name VARCHAR) [/INST]
### Response:
SELECT COUNT(destination) FROM table_21716139_1 WHERE frequency = "Weekly" AND train_name = "AC Express" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 frequencies that have a destination of Jaipur?
### Context:
CREATE TABLE table_21716139_1 (frequency VARCHAR, destination VARCHAR) [/INST]
### Response:
SELECT COUNT(frequency) FROM table_21716139_1 WHERE destination = "Jaipur" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 # for player david grannis?
### Context:
CREATE TABLE table_21721351_18 (pick__number INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(pick__number) FROM table_21721351_18 WHERE player = "David Grannis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 belongs to deerfield academy (Massachusetts) college/junior/club team?
### Context:
CREATE TABLE table_21721351_18 (player VARCHAR, college_junior_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_21721351_18 WHERE college_junior_club_team = "Deerfield Academy (Massachusetts)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality is kitchener rangers (ohl) college/junior/club team?
### Context:
CREATE TABLE table_21721351_18 (nationality VARCHAR, college_junior_club_team VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_21721351_18 WHERE college_junior_club_team = "Kitchener Rangers (OHL)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality is player Brian Wilks?
### Context:
CREATE TABLE table_21721351_18 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_21721351_18 WHERE player = "Brian Wilks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 positions is player Tom Glavine?
### Context:
CREATE TABLE table_21721351_18 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(position) FROM table_21721351_18 WHERE player = "Tom Glavine" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
who directed the production code 2t5710?
### Context:
CREATE TABLE table_21726793_1 (directed_by VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_21726793_1 WHERE production_code = "2T5710" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number o production code where us viewers is 2.76?
### Context:
CREATE TABLE table_21726793_1 (production_code VARCHAR, us_viewers__million_ VARCHAR) [/INST]
### Response:
SELECT COUNT(production_code) FROM table_21726793_1 WHERE us_viewers__million_ = "2.76" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
who wrote the no 2?
### Context:
CREATE TABLE table_21726793_1 (written_by VARCHAR, no VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_21726793_1 WHERE no = 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 is the maac when the overall is 26-8?
### Context:
CREATE TABLE table_21756039_1 (maac VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT maac FROM table_21756039_1 WHERE overall = "26-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 maac are there that have 14th as the ncaa and the overall is 20-10?
### Context:
CREATE TABLE table_21756039_1 (maac VARCHAR, ncaa_seed VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT COUNT(maac) FROM table_21756039_1 WHERE ncaa_seed = "14th" AND overall = "20-10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many overall in the year 2010-2011?
### Context:
CREATE TABLE table_21756039_1 (overall VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT COUNT(overall) FROM table_21756039_1 WHERE year = "2010-2011" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year is the overall 29-4?
### Context:
CREATE TABLE table_21756039_1 (year VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT year FROM table_21756039_1 WHERE overall = "29-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 regular season results for the year 2011-2012?
### Context:
CREATE TABLE table_21756039_1 (regular_season_results VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT regular_season_results FROM table_21756039_1 WHERE year = "2011-2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many drivers had a time of 3:09:45?
### Context:
CREATE TABLE table_2175858_1 (driver VARCHAR, race_time VARCHAR) [/INST]
### Response:
SELECT COUNT(driver) FROM table_2175858_1 WHERE race_time = "3:09:45" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 drivers drove 300 laps at average speed of 103.594?
### Context:
CREATE TABLE table_2175858_1 (driver VARCHAR, laps VARCHAR, average_speed__mph_ VARCHAR) [/INST]
### Response:
SELECT COUNT(driver) FROM table_2175858_1 WHERE laps = "300" AND average_speed__mph_ = "103.594" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dates had an average speed of 102.003?
### Context:
CREATE TABLE table_2175858_1 (date VARCHAR, average_speed__mph_ VARCHAR) [/INST]
### Response:
SELECT COUNT(date) FROM table_2175858_1 WHERE average_speed__mph_ = "102.003" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps were driven in 2009?
### Context:
CREATE TABLE table_2175858_1 (laps VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT laps FROM table_2175858_1 WHERE year = 2009 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps were completed in the race with time of 3:03:50?
### Context:
CREATE TABLE table_2175858_1 (laps VARCHAR, race_time VARCHAR) [/INST]
### Response:
SELECT laps FROM table_2175858_1 WHERE race_time = "3:03:50" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 miles were driven with the average speed at 116.81?
### Context:
CREATE TABLE table_2175858_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR) [/INST]
### Response:
SELECT miles__km_ FROM table_2175858_1 WHERE average_speed__mph_ = "116.81" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season number for production code E2110?
### Context:
CREATE TABLE table_21781578_2 (season_no VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT season_no FROM table_21781578_2 WHERE production_code = "E2110" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the original air date for season number 2?
### Context:
CREATE TABLE table_21781578_2 (original_air_date VARCHAR, season_no VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_21781578_2 WHERE season_no = 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 was the season number episode directed by John David Coles?
### Context:
CREATE TABLE table_21781578_2 (season_no VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT season_no FROM table_21781578_2 WHERE directed_by = "John David Coles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the number of US Viewers in the episode directed by Steve Shill and having a production code of E2102?
### Context:
CREATE TABLE table_21781578_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT us_viewers__millions_ FROM table_21781578_2 WHERE directed_by = "Steve Shill" AND production_code = "E2102" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the number of season number entries that had US Viewers of 12.30 million?
### Context:
CREATE TABLE table_21781578_2 (season_no VARCHAR, us_viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT COUNT(season_no) FROM table_21781578_2 WHERE us_viewers__millions_ = "12.30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date of the game in week 3?
### Context:
CREATE TABLE table_21761882_4 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_21761882_4 WHERE week = 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the final score when the game was @ roughriders?
### Context:
CREATE TABLE table_21761882_4 (final_score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT final_score FROM table_21761882_4 WHERE opponent = "@ Roughriders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number of weeks where the game played Ivor Wynne Stadium?
### Context:
CREATE TABLE table_21761882_4 (week VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_21761882_4 WHERE location = "Ivor Wynne 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:
What was the location for when the opponent was @ roughriders?
### Context:
CREATE TABLE table_21761882_4 (location VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT location FROM table_21761882_4 WHERE opponent = "@ Roughriders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 final score when the attendance was 25598?
### Context:
CREATE TABLE table_21761882_4 (final_score VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT final_score FROM table_21761882_4 WHERE attendance = 25598 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What location was the game on October 6?
### Context:
CREATE TABLE table_21761882_4 (location VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location FROM table_21761882_4 WHERE date = "October 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's the lowest rating with 11.2 million viewers?
### Context:
CREATE TABLE table_217785_2 (ranking INTEGER, viewers__in_millions_of_households_ VARCHAR) [/INST]
### Response:
SELECT MIN(ranking) FROM table_217785_2 WHERE viewers__in_millions_of_households_ = "11.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:
When did the season finale ranked at 73 first air?
### Context:
CREATE TABLE table_217785_2 (season VARCHAR, ranking VARCHAR) [/INST]
### Response:
SELECT season AS finale FROM table_217785_2 WHERE ranking = 73 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season received 10.2 million viewers?
### Context:
CREATE TABLE table_217785_2 (tv_season VARCHAR, viewers__in_millions_of_households_ VARCHAR) [/INST]
### Response:
SELECT COUNT(tv_season) FROM table_217785_2 WHERE viewers__in_millions_of_households_ = "10.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:
When 19/05/2002 is the date of withdrawn what is the name?
### Context:
CREATE TABLE table_21795986_1 (name VARCHAR, withdrawn VARCHAR) [/INST]
### Response:
SELECT name FROM table_21795986_1 WHERE withdrawn = "19/05/2002" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2008 t is the original number what is the lowest year?
### Context:
CREATE TABLE table_21795986_1 (year INTEGER, original_number VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_21795986_1 WHERE original_number = "2008 T" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 9/07/1999 is the date of withdrawn what is the original number?
### Context:
CREATE TABLE table_21795986_1 (original_number VARCHAR, withdrawn VARCHAR) [/INST]
### Response:
SELECT original_number FROM table_21795986_1 WHERE withdrawn = "9/07/1999" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 STAGE WINNER IN THE STAGE WHERE MICHAEL ALBASINI WON THE METAS VOLANTES CLASSIFICATION?
### Context:
CREATE TABLE table_21804557_18 (stage__winner_ VARCHAR, metas_volantes_classification VARCHAR) [/INST]
### Response:
SELECT stage__winner_ FROM table_21804557_18 WHERE metas_volantes_classification = "Michael Albasini" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 got the mountains classification when Michael Albasini won the stage?
### Context:
CREATE TABLE table_21804557_18 (mountains_classification VARCHAR, metas_volantes_classification VARCHAR) [/INST]
### Response:
SELECT mountains_classification FROM table_21804557_18 WHERE metas_volantes_classification = "Michael Albasini" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were present at the July 10 game?
### Context:
CREATE TABLE table_21796261_4 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_21796261_4 WHERE date = "July 10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the final score of the game played on July 10?
### Context:
CREATE TABLE table_21796261_4 (final_score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT final_score FROM table_21796261_4 WHERE date = "July 10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the record achieved in the gamed played at BC Place Stadium?
### Context:
CREATE TABLE table_21796261_4 (record VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT record FROM table_21796261_4 WHERE location = "BC Place 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:
During what week was the July 10 game played?
### Context:
CREATE TABLE table_21796261_4 (week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT week FROM table_21796261_4 WHERE date = "July 10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the game on Taylor Field played?
### Context:
CREATE TABLE table_21796261_4 (date VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT date FROM table_21796261_4 WHERE location = "Taylor Field" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 placed fourth when the winner was Greg Hancock?
### Context:
CREATE TABLE table_21808535_1 (winner VARCHAR) [/INST]
### Response:
SELECT 4 AS th_placed FROM table_21808535_1 WHERE winner = "Greg Hancock" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runner-up on September 11?
### Context:
CREATE TABLE table_21808535_1 (runner_up VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_21808535_1 WHERE date = "September 11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many rounds were on July 10?
### Context:
CREATE TABLE table_21808535_1 (round VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_21808535_1 WHERE date = "July 10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the number of years for 18.5
### Context:
CREATE TABLE table_2181798_1 (year VARCHAR, avg_finish VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_2181798_1 WHERE avg_finish = "18.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 max top 5 for avg finish being 27.6
### Context:
CREATE TABLE table_2181798_1 (top_5 INTEGER, avg_finish VARCHAR) [/INST]
### Response:
SELECT MAX(top_5) FROM table_2181798_1 WHERE avg_finish = "27.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:
Name the number of wins for 30 starts
### Context:
CREATE TABLE table_2181798_1 (wins VARCHAR, starts VARCHAR) [/INST]
### Response:
SELECT COUNT(wins) FROM table_2181798_1 WHERE starts = 30 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year for donlavey racing bill davis racing
### Context:
CREATE TABLE table_2181798_1 (year VARCHAR, team_s_ VARCHAR) [/INST]
### Response:
SELECT year FROM table_2181798_1 WHERE team_s_ = "Donlavey Racing Bill Davis 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:
Name the starts for 23.7
### Context:
CREATE TABLE table_2181798_1 (starts VARCHAR, avg_start VARCHAR) [/INST]
### Response:
SELECT starts FROM table_2181798_1 WHERE avg_start = "23.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:
Name the position for 23.7 avg start
### Context:
CREATE TABLE table_2181798_1 (position VARCHAR, avg_start VARCHAR) [/INST]
### Response:
SELECT COUNT(position) FROM table_2181798_1 WHERE avg_start = "23.7" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver?
### Context:
CREATE TABLE table_2182170_1 (_number INTEGER, driver_s_ VARCHAR, car_s_ VARCHAR, listed_owner_s_ VARCHAR) [/INST]
### Response:
SELECT MIN(_number) FROM table_2182170_1 WHERE car_s_ = "Chevrolet Monte Carlo" AND listed_owner_s_ = "Teresa Earnhardt" AND driver_s_ = "Paul Menard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 type of car does Jeff Fuller drive?
### Context:
CREATE TABLE table_2182170_1 (car_s_ VARCHAR, driver_s_ VARCHAR) [/INST]
### Response:
SELECT car_s_ FROM table_2182170_1 WHERE driver_s_ = "Jeff Fuller" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 cars does Gregg Mixon own?
### Context:
CREATE TABLE table_2182170_1 (car_s_ VARCHAR, listed_owner_s_ VARCHAR) [/INST]
### Response:
SELECT COUNT(car_s_) FROM table_2182170_1 WHERE listed_owner_s_ = "Gregg Mixon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Wayne Day's crew chief?
### Context:
CREATE TABLE table_2182170_1 (crew_chief VARCHAR, listed_owner_s_ VARCHAR) [/INST]
### Response:
SELECT crew_chief FROM table_2182170_1 WHERE listed_owner_s_ = "Wayne Day" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number is on the car that Geoffrey Bodine drives?
### Context:
CREATE TABLE table_2182170_1 (_number INTEGER, driver_s_ VARCHAR) [/INST]
### Response:
SELECT MIN(_number) FROM table_2182170_1 WHERE driver_s_ = "Geoffrey Bodine" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What episode number in the season is episode 24 in the series?
### Context:
CREATE TABLE table_2182654_3 (no_in_season VARCHAR, no_in_series VARCHAR) [/INST]
### Response:
SELECT no_in_season FROM table_2182654_3 WHERE no_in_series = 24 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the season were directed by Jeremy Podeswa?
### Context:
CREATE TABLE table_2182654_3 (no_in_season VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT COUNT(no_in_season) FROM table_2182654_3 WHERE directed_by = "Jeremy Podeswa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directed by Miguel Arteta?
### Context:
CREATE TABLE table_2182654_3 (title VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT title FROM table_2182654_3 WHERE directed_by = "Miguel Arteta" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the series were directed by Alan Taylor?
### Context:
CREATE TABLE table_2182654_3 (no_in_series VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT COUNT(no_in_series) FROM table_2182654_3 WHERE directed_by = "Alan Taylor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 different teams had an average start of 12.9?
### Context:
CREATE TABLE table_2182562_2 (team_s_ VARCHAR, avg_start VARCHAR) [/INST]
### Response:
SELECT COUNT(team_s_) FROM table_2182562_2 WHERE avg_start = "12.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:
How high was the amount of winnings (in $) in the year with 15 starts?
### Context:
CREATE TABLE table_2182562_2 (winnings VARCHAR, starts VARCHAR) [/INST]
### Response:
SELECT winnings FROM table_2182562_2 WHERE starts = 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 different amounts of winnings were there for the year when the team had an average finish of 17.4?
### Context:
CREATE TABLE table_2182562_2 (winnings VARCHAR, avg_finish VARCHAR) [/INST]
### Response:
SELECT COUNT(winnings) FROM table_2182562_2 WHERE avg_finish = "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:
What was the top 5 in the year with an average finish of 8.2?
### Context:
CREATE TABLE table_2182562_2 (top_5 INTEGER, avg_finish VARCHAR) [/INST]
### Response:
SELECT MIN(top_5) FROM table_2182562_2 WHERE avg_finish = "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 was the position of the team with an average finish of 21.5?
### Context:
CREATE TABLE table_2182562_2 (position VARCHAR, avg_finish VARCHAR) [/INST]
### Response:
SELECT position FROM table_2182562_2 WHERE avg_finish = "21.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 years was the position 97th?
### Context:
CREATE TABLE table_2182562_1 (year VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_2182562_1 WHERE position = "97th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the average start is 29.0?
### Context:
CREATE TABLE table_2182562_1 (wins VARCHAR, avg_start VARCHAR) [/INST]
### Response:
SELECT COUNT(wins) FROM table_2182562_1 WHERE avg_start = "29.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:
What is the average finish when winnings equals $71,200?
### Context:
CREATE TABLE table_2182562_1 (avg_finish VARCHAR, winnings VARCHAR) [/INST]
### Response:
SELECT avg_finish FROM table_2182562_1 WHERE winnings = "$71,200" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the winnings equal $281,945?
### Context:
CREATE TABLE table_2182562_1 (year VARCHAR, winnings VARCHAR) [/INST]
### Response:
SELECT year FROM table_2182562_1 WHERE winnings = "$281,945" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 top 5 average finishes equalling 40.3?
### Context:
CREATE TABLE table_2182562_1 (top_5 VARCHAR, avg_finish VARCHAR) [/INST]
### Response:
SELECT top_5 FROM table_2182562_1 WHERE avg_finish = "40.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:
Who wrote episode 31 in the series?
### Context:
CREATE TABLE table_21831229_3 (written_by VARCHAR, no_in_series VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_21831229_3 WHERE no_in_series = 31 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date that the episode with a production code of 213 was originally aired?
### Context:
CREATE TABLE table_21831229_3 (original_us_air_date VARCHAR, prod_code VARCHAR) [/INST]
### Response:
SELECT original_us_air_date FROM table_21831229_3 WHERE prod_code = 213 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 playing when the score was 5–7, 6–7 (4–7)?
### Context:
CREATE TABLE table_2186447_1 (opponents VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponents FROM table_2186447_1 WHERE score = "5–7, 6–7 (4–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:
Who was playing when the score was 5–7, 5–7?
### Context:
CREATE TABLE table_2186447_1 (opponents VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponents FROM table_2186447_1 WHERE score = "5–7, 5–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 partners were there when the score was 7–6 (7–4) , 6–3?
### Context:
CREATE TABLE table_2186447_1 (partner VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT COUNT(partner) FROM table_2186447_1 WHERE score = "7–6 (7–4) , 6–3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was their record when they played the stampeders?
### Context:
CREATE TABLE table_21839208_4 (record VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_21839208_4 WHERE opponent = "Stampeders" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.