text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the name of the episode seen by 9.63 millions of people in the US, whose director is Laura Innes?
### Context:
CREATE TABLE table_23799653_1 (title VARCHAR, directed_by VARCHAR, us_viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT title FROM table_23799653_1 WHERE directed_by = "Laura Innes" AND us_viewers__millions_ = "9.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 points per game have the tournament 2005 eurobasket?
### Context:
CREATE TABLE table_2387461_1 (points_per_game VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT points_per_game FROM table_2387461_1 WHERE tournament = "2005 EuroBasket" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 may assists per game have 7.7 points per game?
### Context:
CREATE TABLE table_2387461_1 (assists_per_game VARCHAR, points_per_game VARCHAR) [/INST]
### Response:
SELECT assists_per_game FROM table_2387461_1 WHERE points_per_game = "7.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 games played have 4.7 as points per game?
### Context:
CREATE TABLE table_2387461_1 (games_played VARCHAR, points_per_game VARCHAR) [/INST]
### Response:
SELECT games_played FROM table_2387461_1 WHERE points_per_game = "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:
How many assists per game have 4.2 rebounds per game?
### Context:
CREATE TABLE table_2387461_1 (assists_per_game VARCHAR, rebounds_per_game VARCHAR) [/INST]
### Response:
SELECT assists_per_game FROM table_2387461_1 WHERE rebounds_per_game = "4.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 assists per game in the tournament 2010 fiba world championship?
### Context:
CREATE TABLE table_2387461_1 (assists_per_game VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT assists_per_game FROM table_2387461_1 WHERE tournament = "2010 FIBA World Championship" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many games played have 4.7 points per game?
### Context:
CREATE TABLE table_2387461_1 (games_played VARCHAR, points_per_game VARCHAR) [/INST]
### Response:
SELECT COUNT(games_played) FROM table_2387461_1 WHERE points_per_game = "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:
What was the average finish the year Bodine finished 3rd?
### Context:
CREATE TABLE table_2387790_2 (avg_finish VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT avg_finish FROM table_2387790_2 WHERE position = "3rd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position did he finish in 1987?
### Context:
CREATE TABLE table_2387790_2 (position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT position FROM table_2387790_2 WHERE year = 1987 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was Bodine in when he had an average finish of 8.3?
### Context:
CREATE TABLE table_2387790_2 (team_s_ VARCHAR, avg_finish VARCHAR) [/INST]
### Response:
SELECT team_s_ FROM table_2387790_2 WHERE avg_finish = "8.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 years did he have an average finish of 11.7?
### Context:
CREATE TABLE table_2387790_2 (avg_start VARCHAR, avg_finish VARCHAR) [/INST]
### Response:
SELECT COUNT(avg_start) FROM table_2387790_2 WHERE avg_finish = "11.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 least value for week?
### Context:
CREATE TABLE table_23916462_3 (week INTEGER) [/INST]
### Response:
SELECT MIN(week) FROM table_23916462_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 values for attendance on the date of September 5?
### Context:
CREATE TABLE table_23916462_3 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_23916462_3 WHERE date = "September 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 dates for the week of 4?
### Context:
CREATE TABLE table_23916462_3 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT COUNT(date) FROM table_23916462_3 WHERE week = 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many values for attendance on the date of August 26?
### Context:
CREATE TABLE table_23916462_3 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_23916462_3 WHERE date = "August 26" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 07-08 gp/jgp 2nd with the name mao asada
### Context:
CREATE TABLE table_23938357_5 (name VARCHAR) [/INST]
### Response:
SELECT 07 AS _08_gp_jgp_2nd FROM table_23938357_5 WHERE name = "Mao Asada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 owners 2009 for south side indianapolis
### Context:
CREATE TABLE table_23958917_1 (owner_s___2009_ VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT owner_s___2009_ FROM table_23958917_1 WHERE location = "South Side Indianapolis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 stacks for 1 1969 2 1995
### Context:
CREATE TABLE table_23958917_1 (stacks VARCHAR, in_service_dates VARCHAR) [/INST]
### Response:
SELECT stacks FROM table_23958917_1 WHERE in_service_dates = "1 1969 2 1995" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 stacks for 1 & 2 235 mw 3 & 4 88.2 mw
### Context:
CREATE TABLE table_23958917_1 (stacks VARCHAR, unit_capacity__2009_ VARCHAR) [/INST]
### Response:
SELECT COUNT(stacks) FROM table_23958917_1 WHERE unit_capacity__2009_ = "1 & 2 235 MW 3 & 4 88.2 MW" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for service dates for hoosier energy for petersburg
### Context:
CREATE TABLE table_23958917_1 (in_service_dates VARCHAR, owner_s___2009_ VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT COUNT(in_service_dates) FROM table_23958917_1 WHERE owner_s___2009_ = "Hoosier Energy" AND location = "Petersburg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 frequency does model L34xx use?
### Context:
CREATE TABLE table_24018112_1 (frequency VARCHAR, model__list_ VARCHAR) [/INST]
### Response:
SELECT frequency FROM table_24018112_1 WHERE model__list_ = "L34xx" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 brand is model G6xxx?
### Context:
CREATE TABLE table_24018112_1 (brand_name VARCHAR, model__list_ VARCHAR) [/INST]
### Response:
SELECT brand_name FROM table_24018112_1 WHERE model__list_ = "G6xxx" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the maximum memory speed for frequencies between 2.93-3.2ghz?
### Context:
CREATE TABLE table_24018112_1 (max_memory_speed VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT max_memory_speed FROM table_24018112_1 WHERE frequency = "2.93-3.2GHz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 brand is model I7-8xx?
### Context:
CREATE TABLE table_24018112_1 (brand_name VARCHAR, model__list_ VARCHAR) [/INST]
### Response:
SELECT brand_name FROM table_24018112_1 WHERE model__list_ = "i7-8xx" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of cores for ddr3-1333 with frequencies between 2.66-2.8ghz.
### Context:
CREATE TABLE table_24018112_1 (cores_threads VARCHAR, max_memory_speed VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT cores_threads FROM table_24018112_1 WHERE max_memory_speed = "DDR3-1333" AND frequency = "2.66-2.8GHz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 frequency does the Pentium processor use?
### Context:
CREATE TABLE table_24018112_1 (frequency VARCHAR, brand_name VARCHAR) [/INST]
### Response:
SELECT frequency FROM table_24018112_1 WHERE brand_name = "Pentium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 votes for Bush are there in the county where he got 69.7% of the votes?
### Context:
CREATE TABLE table_2401326_1 (bush_number VARCHAR, bush_percentage VARCHAR) [/INST]
### Response:
SELECT COUNT(bush_number) FROM table_2401326_1 WHERE bush_percentage = "69.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 percentage of the votes in Oneida did Kerry win?
### Context:
CREATE TABLE table_2401326_1 (kerry_percentage VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT kerry_percentage FROM table_2401326_1 WHERE county = "Oneida" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people in Bonneville voted for Bush?
### Context:
CREATE TABLE table_2401326_1 (bush_percentage VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT bush_percentage FROM table_2401326_1 WHERE county = "Bonneville" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 votes were for others in the county where 462 people voted that way?
### Context:
CREATE TABLE table_2401326_1 (others_percentage VARCHAR, others_number VARCHAR) [/INST]
### Response:
SELECT others_percentage FROM table_2401326_1 WHERE others_number = 462 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 percentage voted for Busg in the county where Kerry got 37.6%?
### Context:
CREATE TABLE table_2401326_1 (bush_percentage VARCHAR, kerry_percentage VARCHAR) [/INST]
### Response:
SELECT bush_percentage FROM table_2401326_1 WHERE kerry_percentage = "37.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 people voted for Kerry in the county where 8 voted for others?
### Context:
CREATE TABLE table_2401326_1 (kerry_number INTEGER, others_number VARCHAR) [/INST]
### Response:
SELECT MIN(kerry_number) FROM table_2401326_1 WHERE others_number = 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When north american record is the world record who is the denis nizhegorodov ( rus )?
### Context:
CREATE TABLE table_24059973_3 (denis_nizhegorodov___rus__ VARCHAR, world_record VARCHAR) [/INST]
### Response:
SELECT denis_nizhegorodov___rus__ FROM table_24059973_3 WHERE world_record = "North American record" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 incoming managers were there after Roy Hodgson left the position for the Fulham team?
### Context:
CREATE TABLE table_24172157_3 (incoming_manager VARCHAR, outgoing_manager VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT COUNT(incoming_manager) FROM table_24172157_3 WHERE outgoing_manager = "Roy Hodgson" AND team = "Fulham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 table for the team Blackburn Rovers?
### Context:
CREATE TABLE table_24172157_3 (table VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT table FROM table_24172157_3 WHERE team = "Blackburn Rovers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 appointment for incoming manager Roy Hodgson and the team is Liverpool?
### Context:
CREATE TABLE table_24172157_3 (date_of_appointment VARCHAR, team VARCHAR, incoming_manager VARCHAR) [/INST]
### Response:
SELECT date_of_appointment FROM table_24172157_3 WHERE team = "Liverpool" AND incoming_manager = "Roy Hodgson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has an incoming manager named Kenny Dalglish?
### Context:
CREATE TABLE table_24172157_3 (team VARCHAR, incoming_manager VARCHAR) [/INST]
### Response:
SELECT team FROM table_24172157_3 WHERE incoming_manager = "Kenny Dalglish" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date of vacancy for the Liverpool team with a table named pre-season?
### Context:
CREATE TABLE table_24172157_3 (date_of_vacancy VARCHAR, table VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT date_of_vacancy FROM table_24172157_3 WHERE table = "Pre-season" AND team = "Liverpool" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 steve mcclaren is the replacer what is the manner of departure?
### Context:
CREATE TABLE table_24162080_3 (manner_of_departure VARCHAR, replaced_by VARCHAR) [/INST]
### Response:
SELECT manner_of_departure FROM table_24162080_3 WHERE replaced_by = "Steve McClaren" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1. fc köln is the team what is the date of appointment?
### Context:
CREATE TABLE table_24162080_3 (date_of_appointment VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT date_of_appointment FROM table_24162080_3 WHERE team = "1. FC Köln" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1999 is the year how many tournaments are there?
### Context:
CREATE TABLE table_2417741_1 (tournament VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT COUNT(tournament) FROM table_2417741_1 WHERE year = 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:
When cary middlecoff is the winner how many pars are there?
### Context:
CREATE TABLE table_2417741_1 (par VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT COUNT(par) FROM table_2417741_1 WHERE winner = "Cary Middlecoff" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hale irwin is the winner what is the margin of victory?
### Context:
CREATE TABLE table_2417741_1 (margin_of_victory VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_2417741_1 WHERE winner = "Hale Irwin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entries are there for founded when the location was springfield, ohio?
### Context:
CREATE TABLE table_24195232_1 (founded VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT COUNT(founded) FROM table_24195232_1 WHERE location = "Springfield, Ohio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the team name of patriots?
### Context:
CREATE TABLE table_24195232_1 (location VARCHAR, team_name VARCHAR) [/INST]
### Response:
SELECT location FROM table_24195232_1 WHERE team_name = "Patriots" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location when founded was 1957?
### Context:
CREATE TABLE table_24195232_1 (location VARCHAR, founded VARCHAR) [/INST]
### Response:
SELECT location FROM table_24195232_1 WHERE founded = 1957 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 affiliation when the institution was ohio christian university?
### Context:
CREATE TABLE table_24195232_1 (affiliation VARCHAR, institution VARCHAR) [/INST]
### Response:
SELECT affiliation FROM table_24195232_1 WHERE institution = "Ohio Christian 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:
What is the institution that was located is circleville, ohio?
### Context:
CREATE TABLE table_24195232_1 (institution VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT institution FROM table_24195232_1 WHERE location = "Circleville, Ohio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location for the team name of eagles?
### Context:
CREATE TABLE table_24195232_1 (location VARCHAR, team_name VARCHAR) [/INST]
### Response:
SELECT location FROM table_24195232_1 WHERE team_name = "Eagles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode that had 5.09 million total viewers (both Live and SD types) first air?
### Context:
CREATE TABLE table_24222929_3 (original_airdate VARCHAR, live VARCHAR, sd_total_viewers VARCHAR) [/INST]
### Response:
SELECT original_airdate FROM table_24222929_3 WHERE live + sd_total_viewers = "5.09 million" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total viewers (combined Live and SD) watched the episode with a share of 8?
### Context:
CREATE TABLE table_24222929_3 (live VARCHAR, share VARCHAR) [/INST]
### Response:
SELECT live + 7 AS _day_dvr_total_viewers FROM table_24222929_3 WHERE share = "8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did the fourth episode of the season (4 1-04) first air?
### Context:
CREATE TABLE table_24222929_3 (original_airdate VARCHAR, episode_number_production_number VARCHAR) [/INST]
### Response:
SELECT original_airdate FROM table_24222929_3 WHERE episode_number_production_number = "4 1-04" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did the episode that had 3.69 million total viewers (Live and SD types combined) first air?
### Context:
CREATE TABLE table_24222929_3 (original_airdate VARCHAR, live VARCHAR, sd_total_viewers VARCHAR) [/INST]
### Response:
SELECT original_airdate FROM table_24222929_3 WHERE live + sd_total_viewers = "3.69 million" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leading actor in the film with a supporting actor named Cecil Kellaway?
### Context:
CREATE TABLE table_24225238_1 (leading_actor VARCHAR, supporting_actor VARCHAR) [/INST]
### Response:
SELECT leading_actor FROM table_24225238_1 WHERE supporting_actor = "Cecil Kellaway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 supporting actress in "For Whom the Bell Tolls"?
### Context:
CREATE TABLE table_24225238_1 (supporting_actress VARCHAR, film VARCHAR) [/INST]
### Response:
SELECT supporting_actress FROM table_24225238_1 WHERE film = "For Whom the Bell Tolls" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 supporting actress in a film with Diane Keaton as the leading actress?
### Context:
CREATE TABLE table_24225238_1 (supporting_actress VARCHAR, leading_actress VARCHAR) [/INST]
### Response:
SELECT supporting_actress FROM table_24225238_1 WHERE leading_actress = "Diane Keaton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leading actress in a film with Warren Beatty as the leading actor and also at the 40th Oscars?
### Context:
CREATE TABLE table_24225238_1 (leading_actress VARCHAR, leading_actor VARCHAR, oscars VARCHAR) [/INST]
### Response:
SELECT leading_actress FROM table_24225238_1 WHERE leading_actor = "Warren Beatty" AND oscars = "40th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film had Charles Bickford as supporting actor?
### Context:
CREATE TABLE table_24225238_1 (film VARCHAR, supporting_actor VARCHAR) [/INST]
### Response:
SELECT film FROM table_24225238_1 WHERE supporting_actor = "Charles Bickford" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 supporting actress in 1943?
### Context:
CREATE TABLE table_24225238_1 (supporting_actress VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT supporting_actress FROM table_24225238_1 WHERE year = 1943 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many episodes aired in Sydney in Week 3?
### Context:
CREATE TABLE table_24291077_4 (sydney VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT COUNT(sydney) FROM table_24291077_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:
How many viewers were there in Sydney for the episode when there were 334000 in Melbourne?
### Context:
CREATE TABLE table_24291077_4 (sydney VARCHAR, melbourne VARCHAR) [/INST]
### Response:
SELECT sydney FROM table_24291077_4 WHERE melbourne = 334000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Adelaide viewers were there in Week 5?
### Context:
CREATE TABLE table_24291077_4 (adelaide VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT adelaide FROM table_24291077_4 WHERE week = 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 highest number of Brisbane viewers?
### Context:
CREATE TABLE table_24291077_4 (brisbane INTEGER) [/INST]
### Response:
SELECT MAX(brisbane) FROM table_24291077_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 rating in Brisbane the week it was 276000 in Melbourne?
### Context:
CREATE TABLE table_24291077_8 (brisbane INTEGER, melbourne VARCHAR) [/INST]
### Response:
SELECT MAX(brisbane) FROM table_24291077_8 WHERE melbourne = 276000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rating on week 3?
### Context:
CREATE TABLE table_24291077_8 (total VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT total FROM table_24291077_8 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 rating for Brisbane the week that Adelaide had 94000?
### Context:
CREATE TABLE table_24291077_8 (brisbane INTEGER, adelaide VARCHAR) [/INST]
### Response:
SELECT MIN(brisbane) FROM table_24291077_8 WHERE adelaide = 94000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 millions of people in the US watched when Kevin Bray was director?
### Context:
CREATE TABLE table_24319661_3 (us_viewers__million_ VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT us_viewers__million_ FROM table_24319661_3 WHERE directed_by = "Kevin Bray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had 3.81 million US viewers?
### Context:
CREATE TABLE table_24319661_3 (no_in_season VARCHAR, us_viewers__million_ VARCHAR) [/INST]
### Response:
SELECT COUNT(no_in_season) FROM table_24319661_3 WHERE us_viewers__million_ = "3.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 is the maximum folded value of the team whose stadium is Fraser Field?
### Context:
CREATE TABLE table_24334261_1 (folded INTEGER, stadium VARCHAR) [/INST]
### Response:
SELECT MAX(folded) FROM table_24334261_1 WHERE stadium = "Fraser 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:
What is the maximum founded year of the Worcester Tornadoes?
### Context:
CREATE TABLE table_24334261_1 (founded INTEGER, team VARCHAR) [/INST]
### Response:
SELECT MAX(founded) FROM table_24334261_1 WHERE team = "Worcester Tornadoes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were there for airdate is 22 october 2009?
### Context:
CREATE TABLE table_24399615_3 (viewers INTEGER, airdate VARCHAR) [/INST]
### Response:
SELECT MAX(viewers) FROM table_24399615_3 WHERE airdate = "22 October 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:
What is the cable rank for episode no. 4?
### Context:
CREATE TABLE table_24399615_3 (cable_rank VARCHAR, episode_no VARCHAR) [/INST]
### Response:
SELECT cable_rank FROM table_24399615_3 WHERE episode_no = 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:
Where where the bbc three weekly ranking for episode no. 5?
### Context:
CREATE TABLE table_24399615_3 (bbc_three_weekly_ranking VARCHAR, episode_no VARCHAR) [/INST]
### Response:
SELECT bbc_three_weekly_ranking FROM table_24399615_3 WHERE episode_no = 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 cable rank for bbc three weekly ranking of n/a?
### Context:
CREATE TABLE table_24399615_3 (cable_rank VARCHAR, bbc_three_weekly_ranking VARCHAR) [/INST]
### Response:
SELECT cable_rank FROM table_24399615_3 WHERE bbc_three_weekly_ranking = "N/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 is the cable rank for the airdate of 10 december 2009?
### Context:
CREATE TABLE table_24399615_3 (cable_rank VARCHAR, airdate VARCHAR) [/INST]
### Response:
SELECT cable_rank FROM table_24399615_3 WHERE airdate = "10 December 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 entries are shown for viewers when the airdate was 26 november 2009?
### Context:
CREATE TABLE table_24399615_3 (viewers VARCHAR, airdate VARCHAR) [/INST]
### Response:
SELECT COUNT(viewers) FROM table_24399615_3 WHERE airdate = "26 November 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:
What is the difficulty of the athens circuit?
### Context:
CREATE TABLE table_24463470_1 (difficulty VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT difficulty FROM table_24463470_1 WHERE circuit = "Athens" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 instances is paris the unlock?
### Context:
CREATE TABLE table_24463470_1 (unlock_order VARCHAR, unlocks VARCHAR) [/INST]
### Response:
SELECT COUNT(unlock_order) FROM table_24463470_1 WHERE unlocks = "Paris" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 instances is the unlocked n/a?
### Context:
CREATE TABLE table_24463470_1 (setting VARCHAR, unlocked_by VARCHAR) [/INST]
### Response:
SELECT COUNT(setting) FROM table_24463470_1 WHERE unlocked_by = "N/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 is the lowest unlock order for the athens circuit?
### Context:
CREATE TABLE table_24463470_1 (unlock_order INTEGER, circuit VARCHAR) [/INST]
### Response:
SELECT MIN(unlock_order) FROM table_24463470_1 WHERE circuit = "Athens" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 setting for the hard difficulty?
### Context:
CREATE TABLE table_24463470_1 (setting VARCHAR, difficulty VARCHAR) [/INST]
### Response:
SELECT setting FROM table_24463470_1 WHERE difficulty = "Hard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 conditions for the athens circuit?
### Context:
CREATE TABLE table_24463470_1 (conditions VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT conditions FROM table_24463470_1 WHERE circuit = "Athens" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was he on when he finished in 11th position?
### Context:
CREATE TABLE table_24491017_1 (team VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT team FROM table_24491017_1 WHERE position = "11th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 f/laps when he finished 8th?
### Context:
CREATE TABLE table_24491017_1 (f_laps INTEGER, position VARCHAR) [/INST]
### Response:
SELECT MAX(f_laps) FROM table_24491017_1 WHERE position = "8th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was he on when he had 10 f/laps?
### Context:
CREATE TABLE table_24491017_1 (team VARCHAR, f_laps VARCHAR) [/INST]
### Response:
SELECT team FROM table_24491017_1 WHERE f_laps = 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 podiums when he was in the british f3 national class series?
### Context:
CREATE TABLE table_24491017_1 (podiums VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT COUNT(podiums) FROM table_24491017_1 WHERE series = "British F3 National Class" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title for cuenca
### Context:
CREATE TABLE table_2454589_1 (last_title VARCHAR, home_city VARCHAR) [/INST]
### Response:
SELECT last_title FROM table_2454589_1 WHERE home_city = "Cuenca" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first season in the series for 2006
### Context:
CREATE TABLE table_2454589_1 (first_season_in_the_serie_a VARCHAR, last_title VARCHAR) [/INST]
### Response:
SELECT first_season_in_the_serie_a FROM table_2454589_1 WHERE last_title = "2006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title for 2012
### Context:
CREATE TABLE table_2454589_1 (last_title VARCHAR, first_season_in_current_spell VARCHAR) [/INST]
### Response:
SELECT last_title FROM table_2454589_1 WHERE first_season_in_current_spell = 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:
Name the club for quevedo
### Context:
CREATE TABLE table_2454589_1 (club VARCHAR, home_city VARCHAR) [/INST]
### Response:
SELECT club FROM table_2454589_1 WHERE home_city = "Quevedo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the most for first season in the serie a for 7 de octubre
### Context:
CREATE TABLE table_2454589_1 (first_season_in_the_serie_a INTEGER, stadium VARCHAR) [/INST]
### Response:
SELECT MAX(first_season_in_the_serie_a) FROM table_2454589_1 WHERE stadium = "7 de Octubre" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many games had less than 7 goals scored?
### Context:
CREATE TABLE table_24565004_15 (appearances¹ VARCHAR, goals¹ VARCHAR) [/INST]
### Response:
SELECT COUNT(appearances¹) FROM table_24565004_15 WHERE goals¹ = 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:
List the player that scored 4 times.
### Context:
CREATE TABLE table_24565004_15 (name VARCHAR, goals¹ VARCHAR) [/INST]
### Response:
SELECT name FROM table_24565004_15 WHERE goals¹ = 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many players are from the country of Brazil?
### Context:
CREATE TABLE table_24565004_15 (position VARCHAR, nationality² VARCHAR) [/INST]
### Response:
SELECT COUNT(position) FROM table_24565004_15 WHERE nationality² = "Brazil" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of active years for attaquant.
### Context:
CREATE TABLE table_24565004_15 (period VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT period FROM table_24565004_15 WHERE position = "Attaquant" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mls cup playoffs when concacaf champions cup / concacaf champions league was quarter-finals (09-10)?
### Context:
CREATE TABLE table_245695_2 (mls_cup_playoffs VARCHAR, concacaf_champions_cup___concacaf_champions_league VARCHAR) [/INST]
### Response:
SELECT mls_cup_playoffs FROM table_245695_2 WHERE concacaf_champions_cup___concacaf_champions_league = "Quarter-Finals (09-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 is the series minimum if the season number is 2.08?
### Context:
CREATE TABLE table_24639086_3 (series__number INTEGER, season__number VARCHAR) [/INST]
### Response:
SELECT MIN(series__number) FROM table_24639086_3 WHERE season__number = "2.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:
What is the amount of viewers if the series number is 14?
### Context:
CREATE TABLE table_24639086_3 (viewers__in_millions_ VARCHAR, series__number VARCHAR) [/INST]
### Response:
SELECT viewers__in_millions_ FROM table_24639086_3 WHERE series__number = 14 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the amount of viewers is 2.48 million, what is the original air date?
### Context:
CREATE TABLE table_24639086_3 (original_air_date VARCHAR, viewers__in_millions_ VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_24639086_3 WHERE viewers__in_millions_ = "2.48" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season number is 2.08, who was the episode written by?
### Context:
CREATE TABLE table_24639086_3 (written_by VARCHAR, season__number VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_24639086_3 WHERE season__number = "2.08" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.