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:
If the home is Atlético Tucumán, what is the name of the first leg?
### Context:
CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = "Atlético Tucumán" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 second leg is Newell's Old Boys, what name is first leg?
### Context:
CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = "Newell's Old Boys" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chinese name for whom chan chi-yuen, paul is listed as the romanised name?
### Context:
CREATE TABLE table_17964087_2 (chinese_name VARCHAR, romanised_name VARCHAR) [/INST]
### Response:
SELECT chinese_name FROM table_17964087_2 WHERE romanised_name = "Chan Chi-yuen, Paul" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The name cheung, raymond man-to is listed as a romanised name is cheung, raymond man-to?
### Context:
CREATE TABLE table_17964087_2 (foreign_nationality VARCHAR, romanised_name VARCHAR) [/INST]
### Response:
SELECT foreign_nationality FROM table_17964087_2 WHERE romanised_name = "Cheung, Raymond Man-to" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For the chinese name 盧奕基 how many in total is the govt salary?
### Context:
CREATE TABLE table_17964087_2 (govt_salary VARCHAR, chinese_name VARCHAR) [/INST]
### Response:
SELECT COUNT(govt_salary) FROM table_17964087_2 WHERE chinese_name = "盧奕基" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For the name romanised name is lo yik-kee, victor what is the total number foreign nationality that is listed?
### Context:
CREATE TABLE table_17964087_2 (foreign_nationality VARCHAR, romanised_name VARCHAR) [/INST]
### Response:
SELECT COUNT(foreign_nationality) FROM table_17964087_2 WHERE romanised_name = "Lo Yik-kee, Victor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For the prior occupation listed as assistant police commissioner (ret'd) what are the entire list of romanised name.
### Context:
CREATE TABLE table_17964087_2 (romanised_name VARCHAR, prior_occupation VARCHAR) [/INST]
### Response:
SELECT romanised_name FROM table_17964087_2 WHERE prior_occupation = "Assistant Police Commissioner (ret'd)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played when points is 105
### Context:
CREATE TABLE table_17968282_1 (played INTEGER, points VARCHAR) [/INST]
### Response:
SELECT MAX(played) FROM table_17968282_1 WHERE points = 105 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the total number of points for newell's old boys
### Context:
CREATE TABLE table_17968282_1 (points VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_17968282_1 WHERE team = "Newell's Old Boys" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 aggregate is 3-4, what is the first leg?
### Context:
CREATE TABLE table_17968233_2 (home__1st_leg_ VARCHAR, aggregate VARCHAR) [/INST]
### Response:
SELECT home__1st_leg_ FROM table_17968233_2 WHERE aggregate = "3-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:
If the second leg is Instituto, what is the total number of aggregate?
### Context:
CREATE TABLE table_17968233_2 (aggregate VARCHAR, home__2nd_leg_ VARCHAR) [/INST]
### Response:
SELECT COUNT(aggregate) FROM table_17968233_2 WHERE home__2nd_leg_ = "Instituto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were played by the Vélez Sársfield team from 1989-90?
### Context:
CREATE TABLE table_17968274_2 (team VARCHAR) [/INST]
### Response:
SELECT 1989 AS _90 FROM table_17968274_2 WHERE team = "Vélez Sársfield" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the team that scored 122 points?
### Context:
CREATE TABLE table_17968274_2 (team VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT team FROM table_17968274_2 WHERE points = 122 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent played on October 4?
### Context:
CREATE TABLE table_17972136_1 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_17972136_1 WHERE date = "October 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 is riverfront stadium the game site for the week?
### Context:
CREATE TABLE table_17972136_1 (week INTEGER, game_site VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_17972136_1 WHERE game_site = "Riverfront 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:
How many number of lakes are there in the Valdez-Cordova (CA) area?
### Context:
CREATE TABLE table_17978052_2 (_number_s_lake_and_gnis_query_link INTEGER, borough_or_census_area VARCHAR) [/INST]
### Response:
SELECT MIN(_number_s_lake_and_gnis_query_link) FROM table_17978052_2 WHERE borough_or_census_area = "Valdez-Cordova (CA)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 comment on the Denali area?
### Context:
CREATE TABLE table_17978052_2 (comment VARCHAR, borough_or_census_area VARCHAR) [/INST]
### Response:
SELECT comment FROM table_17978052_2 WHERE borough_or_census_area = "Denali" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dams are there in the Lake and Peninsula area?
### Context:
CREATE TABLE table_17978052_2 (_number_s_dam_and_gnis_query_link INTEGER, borough_or_census_area VARCHAR) [/INST]
### Response:
SELECT MAX(_number_s_dam_and_gnis_query_link) FROM table_17978052_2 WHERE borough_or_census_area = "Lake and Peninsula" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dams are there in the Nome (CA) area?
### Context:
CREATE TABLE table_17978052_2 (_number_s_dam_and_gnis_query_link INTEGER, borough_or_census_area VARCHAR) [/INST]
### Response:
SELECT MIN(_number_s_dam_and_gnis_query_link) FROM table_17978052_2 WHERE borough_or_census_area = "Nome (CA)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 comments are there in the Bethel (CA) Borough area?
### Context:
CREATE TABLE table_17978052_2 (comment VARCHAR, borough_or_census_area VARCHAR) [/INST]
### Response:
SELECT COUNT(comment) FROM table_17978052_2 WHERE borough_or_census_area = "Bethel (CA)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 numbers of attendance are there during the game in October 27?
### Context:
CREATE TABLE table_17972193_1 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_17972193_1 WHERE date = "October 27" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game record when the opponent was 'at Los Angeles Raiders'?
### Context:
CREATE TABLE table_17972193_1 (record VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_17972193_1 WHERE opponent = "at Los Angeles Raiders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played when the opponent was 'at Los Angeles Rams'?
### Context:
CREATE TABLE table_17972193_1 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_17972193_1 WHERE opponent = "at Los Angeles Rams" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of attendance were there when the game was held in Anaheim Stadium?
### Context:
CREATE TABLE table_17972193_1 (attendance VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_17972193_1 WHERE game_site = "Anaheim 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:
How many were in attendance when the game was held in Arrowhead Stadium?
### Context:
CREATE TABLE table_17972193_1 (attendance INTEGER, game_site VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_17972193_1 WHERE game_site = "Arrowhead 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 is the highest position a team with 7 draws earned?
### Context:
CREATE TABLE table_18018214_1 (position INTEGER, draws VARCHAR) [/INST]
### Response:
SELECT MAX(position) FROM table_18018214_1 WHERE draws = 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 original air date for ai% for 83
### Context:
CREATE TABLE table_18012738_1 (original_air_date VARCHAR, ai___percentage_ VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_18012738_1 WHERE ai___percentage_ = 83 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 story number for paul cornell
### Context:
CREATE TABLE table_18012738_1 (story_no VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT story_no FROM table_18012738_1 WHERE written_by = "Paul Cornell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the total number directed by for uk viewers being 6.86
### Context:
CREATE TABLE table_18012738_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR) [/INST]
### Response:
SELECT COUNT(directed_by) FROM table_18012738_1 WHERE uk_viewers__million_ = "6.86" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least ai %
### Context:
CREATE TABLE table_18012738_1 (ai___percentage_ INTEGER) [/INST]
### Response:
SELECT MIN(ai___percentage_) FROM table_18012738_1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of games played?
### Context:
CREATE TABLE table_18018214_4 (games_played INTEGER) [/INST]
### Response:
SELECT MAX(games_played) FROM table_18018214_4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In the game with 31 points, how many goals were conceded?
### Context:
CREATE TABLE table_18018214_4 (goals_conceded VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(goals_conceded) FROM table_18018214_4 WHERE points = 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:
How many games had 22 points?
### Context:
CREATE TABLE table_18018214_4 (games_played VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(games_played) FROM table_18018214_4 WHERE points = 22 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had 58 goals scored?
### Context:
CREATE TABLE table_18018248_2 (wins VARCHAR, goals_scored VARCHAR) [/INST]
### Response:
SELECT wins FROM table_18018248_2 WHERE goals_scored = 58 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 clubs had 29 points?
### Context:
CREATE TABLE table_18018248_2 (club VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(club) FROM table_18018248_2 WHERE points = 29 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which clubs had draws of 9?
### Context:
CREATE TABLE table_18018248_2 (club VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT club FROM table_18018248_2 WHERE draws = 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 many draws were there when the conceded goals was numbered at 45?
### Context:
CREATE TABLE table_18018248_2 (draws VARCHAR, goals_conceded VARCHAR) [/INST]
### Response:
SELECT COUNT(draws) FROM table_18018248_2 WHERE goals_conceded = 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:
What is the least amount of games played with 21 losses?
### Context:
CREATE TABLE table_18018248_2 (games_played INTEGER, loses VARCHAR) [/INST]
### Response:
SELECT MIN(games_played) FROM table_18018248_2 WHERE loses = 21 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many games did each team played?
### Context:
CREATE TABLE table_18018214_3 (games_played INTEGER) [/INST]
### Response:
SELECT MIN(games_played) FROM table_18018214_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 points where there when the number of goals scored was 47?
### Context:
CREATE TABLE table_18018214_3 (points INTEGER, goals_scored VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_18018214_3 WHERE goals_scored = 47 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals were scored by club team fm (losc) vilnius
### Context:
CREATE TABLE table_18018214_3 (goals_scored VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT goals_scored FROM table_18018214_3 WHERE club = "FM (LOSC) Vilnius" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 losses occurred when the club team was ekranas-2 panevėžys
### Context:
CREATE TABLE table_18018214_3 (loses INTEGER, club VARCHAR) [/INST]
### Response:
SELECT MAX(loses) FROM table_18018214_3 WHERE club = "Ekranas-2 Panevėžys" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest number of wins for any team?
### Context:
CREATE TABLE table_18018214_3 (wins INTEGER) [/INST]
### Response:
SELECT MAX(wins) FROM table_18018214_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 is the June 22 ncaat baseball record for Fresno State Bulldogs?
### Context:
CREATE TABLE table_18025024_7 (ncaat_record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT ncaat_record FROM table_18025024_7 WHERE date = "June 22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 saves were in the Georgia game, versus the Bulldogs, with a score of 7-6?
### Context:
CREATE TABLE table_18025024_7 (save VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT save FROM table_18025024_7 WHERE score = "7-6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the June 21 ncaat baseball record for Fresno State Bulldogs?
### Context:
CREATE TABLE table_18025024_7 (ncaat_record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT ncaat_record FROM table_18025024_7 WHERE date = "June 21" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 times did estudiantes de la plata participate in 2008 suruga bank championship
### Context:
CREATE TABLE table_18027411_1 (team___competition VARCHAR) [/INST]
### Response:
SELECT COUNT(2008 AS _suruga_bank_championship) FROM table_18027411_1 WHERE team___competition = "Estudiantes de La Plata" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was the match against Morocco played?
### Context:
CREATE TABLE table_18042031_16 (date VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT date FROM table_18042031_16 WHERE against = "Morocco" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did Gil play against on 21–23 september 2007?
### Context:
CREATE TABLE table_18042031_16 (against VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT against FROM table_18042031_16 WHERE date = "21–23 September 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was Gil's partner on 10–12 july 2009
### Context:
CREATE TABLE table_18042031_16 (partnering VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT partnering FROM table_18042031_16 WHERE date = "10–12 July 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:
Where was the successor formally installed on December 3, 1858?
### Context:
CREATE TABLE table_1802760_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR) [/INST]
### Response:
SELECT state__class_ FROM table_1802760_3 WHERE date_of_successors_formal_installation = "December 3, 1858" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Why did the change happen in the state where the formal installation happen on February 14, 1859?
### Context:
CREATE TABLE table_1802760_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR) [/INST]
### Response:
SELECT reason_for_change FROM table_1802760_3 WHERE date_of_successors_formal_installation = "February 14, 1859" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 vacator for tennessee 1st
### Context:
CREATE TABLE table_1802522_4 (vacator VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT vacator FROM table_1802522_4 WHERE district = "Tennessee 1st" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the passengers are 15,505,566, what is the iata code?
### Context:
CREATE TABLE table_18047346_4 (iata_code VARCHAR, passengers VARCHAR) [/INST]
### Response:
SELECT iata_code FROM table_18047346_4 WHERE passengers = "15,505,566" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location is Chicago, Illinois, what is the airport name?
### Context:
CREATE TABLE table_18047346_4 (airport_name VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT airport_name FROM table_18047346_4 WHERE location = "Chicago, Illinois" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 passengers is 15,505,566, what is the %/chg. for 2009/10?
### Context:
CREATE TABLE table_18047346_4 (_percentage_chg_2009_10 VARCHAR, passengers VARCHAR) [/INST]
### Response:
SELECT _percentage_chg_2009_10 FROM table_18047346_4 WHERE passengers = "15,505,566" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What university did Steve Hoar attend.
### Context:
CREATE TABLE table_18042409_1 (alma_mater VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT alma_mater FROM table_18042409_1 WHERE player = "Steve Hoar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 plats that attended Wilfrid Laurier University.
### Context:
CREATE TABLE table_18042409_1 (player VARCHAR, alma_mater VARCHAR) [/INST]
### Response:
SELECT player FROM table_18042409_1 WHERE alma_mater = "Wilfrid Laurier 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:
List all the international lacrosse league competitions for Toronto Rock.
### Context:
CREATE TABLE table_18042409_1 (international_competition VARCHAR, national_lacrosse_league VARCHAR) [/INST]
### Response:
SELECT international_competition FROM table_18042409_1 WHERE national_lacrosse_league = "Toronto Rock" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 all of the NLL Toronto Rock players.
### Context:
CREATE TABLE table_18042409_1 (player VARCHAR, national_lacrosse_league VARCHAR) [/INST]
### Response:
SELECT player FROM table_18042409_1 WHERE national_lacrosse_league = "Toronto Rock" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank is the airport whose IATA Code is JFK?
### Context:
CREATE TABLE table_18047346_5 (rank VARCHAR, iata_code VARCHAR) [/INST]
### Response:
SELECT rank FROM table_18047346_5 WHERE iata_code = "JFK" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 airport has an IATA Code of ORD?
### Context:
CREATE TABLE table_18047346_5 (airport_name VARCHAR, iata_code VARCHAR) [/INST]
### Response:
SELECT airport_name FROM table_18047346_5 WHERE iata_code = "ORD" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Louisville International Airport had how many tonnes of cargo in 2011?
### Context:
CREATE TABLE table_18047346_5 (tonnes VARCHAR, airport_name VARCHAR) [/INST]
### Response:
SELECT tonnes FROM table_18047346_5 WHERE airport_name = "Louisville International Airport" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tonnes of cargo did the airport have with the IATA Code IND?
### Context:
CREATE TABLE table_18047346_5 (tonnes VARCHAR, iata_code VARCHAR) [/INST]
### Response:
SELECT tonnes FROM table_18047346_5 WHERE iata_code = "IND" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the incumbent democratic party in district florida 11?
### Context:
CREATE TABLE table_1805191_10 (incumbent VARCHAR, party VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT incumbent FROM table_1805191_10 WHERE party = "Democratic" AND district = "Florida 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:
In which district is the first elected 2000?
### Context:
CREATE TABLE table_1805191_10 (district VARCHAR, first_elected VARCHAR) [/INST]
### Response:
SELECT district FROM table_1805191_10 WHERE first_elected = 2000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the first elected in the Florida 19 district?
### Context:
CREATE TABLE table_1805191_10 (first_elected VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_1805191_10 WHERE district = "Florida 19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 results of incumbent dave weldon?
### Context:
CREATE TABLE table_1805191_10 (results VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT COUNT(results) FROM table_1805191_10 WHERE incumbent = "Dave Weldon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 districts have the incumbent, Charles Rangel?
### Context:
CREATE TABLE table_1805191_33 (district VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT COUNT(district) FROM table_1805191_33 WHERE incumbent = "Charles Rangel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party affiliation of New York 26?
### Context:
CREATE TABLE table_1805191_33 (party VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT party FROM table_1805191_33 WHERE district = "New York 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:
In the district of Pennsylvania 1, what is the total number of political parties?
### Context:
CREATE TABLE table_1805191_39 (party VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT COUNT(party) FROM table_1805191_39 WHERE district = "Pennsylvania 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 year was Tim Holden first elected?
### Context:
CREATE TABLE table_1805191_39 (first_elected INTEGER, incumbent VARCHAR) [/INST]
### Response:
SELECT MIN(first_elected) FROM table_1805191_39 WHERE incumbent = "Tim Holden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 parties were first elected in 1994?
### Context:
CREATE TABLE table_1805191_39 (party VARCHAR, first_elected VARCHAR) [/INST]
### Response:
SELECT COUNT(party) FROM table_1805191_39 WHERE first_elected = 1994 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 district Pennsylvania 11, what was the total numbers of results?
### Context:
CREATE TABLE table_1805191_39 (results VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT COUNT(results) FROM table_1805191_39 WHERE district = "Pennsylvania 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:
During what year was Representative Spencer Bachus first elected?
### Context:
CREATE TABLE table_1805191_2 (first_elected VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT COUNT(first_elected) FROM table_1805191_2 WHERE incumbent = "Spencer Bachus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party affiliation of the incumbent Robert Cramer?
### Context:
CREATE TABLE table_1805191_2 (party VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT party FROM table_1805191_2 WHERE incumbent = "Robert Cramer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the incumbent in the Washington 1 district?
### Context:
CREATE TABLE table_1805191_48 (incumbent VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT incumbent FROM table_1805191_48 WHERE district = "Washington 1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many categories of first elected are in Washington 4 district?
### Context:
CREATE TABLE table_1805191_48 (first_elected VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT COUNT(first_elected) FROM table_1805191_48 WHERE district = "Washington 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 result in the election where the date of first elected was 2000?
### Context:
CREATE TABLE table_1805191_48 (results VARCHAR, first_elected VARCHAR) [/INST]
### Response:
SELECT results FROM table_1805191_48 WHERE first_elected = 2000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title, directed by David Kendall, had 3.7 million viewers?
### Context:
CREATE TABLE table_18054886_1 (title VARCHAR, viewers__millions_ VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT title FROM table_18054886_1 WHERE viewers__millions_ = "3.7" AND directed_by = "David Kendall" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first elected with an incument of diane watson?
### Context:
CREATE TABLE table_1805191_6 (first_elected VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT COUNT(first_elected) FROM table_1805191_6 WHERE incumbent = "Diane Watson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party did hilda solis represent?
### Context:
CREATE TABLE table_1805191_6 (party VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT party FROM table_1805191_6 WHERE incumbent = "Hilda Solis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the result(s) of the election featuring grace napolitano as the incumbent?
### Context:
CREATE TABLE table_1805191_6 (results VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT results FROM table_1805191_6 WHERE incumbent = "Grace Napolitano" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place in the order is the Pinyin transcription She Jiang?
### Context:
CREATE TABLE table_1805919_1 (standard_order INTEGER, transcription__based_on_pinyin_ VARCHAR) [/INST]
### Response:
SELECT MIN(standard_order) FROM table_1805919_1 WHERE transcription__based_on_pinyin_ = "She Jiang" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place of "A Lament for Ying"?
### Context:
CREATE TABLE table_1805919_1 (standard_order INTEGER, english_translation VARCHAR) [/INST]
### Response:
SELECT MAX(standard_order) FROM table_1805919_1 WHERE english_translation = "A Lament for Ying" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 traditional Chinese for the translation of "Crossing the River"?
### Context:
CREATE TABLE table_1805919_1 (traditional_chinese VARCHAR, english_translation VARCHAR) [/INST]
### Response:
SELECT COUNT(traditional_chinese) FROM table_1805919_1 WHERE english_translation = "Crossing the River" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place of the Pinyin transcription Xi Wangri?
### Context:
CREATE TABLE table_1805919_1 (standard_order INTEGER, transcription__based_on_pinyin_ VARCHAR) [/INST]
### Response:
SELECT MAX(standard_order) FROM table_1805919_1 WHERE transcription__based_on_pinyin_ = "Xi Wangri" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 English translation of 哀郢?
### Context:
CREATE TABLE table_1805919_1 (english_translation VARCHAR, traditional_chinese VARCHAR) [/INST]
### Response:
SELECT english_translation FROM table_1805919_1 WHERE traditional_chinese = "哀郢" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pinyin transcription for "Alas for the Days Gone By"?
### Context:
CREATE TABLE table_1805919_1 (transcription__based_on_pinyin_ VARCHAR, english_translation VARCHAR) [/INST]
### Response:
SELECT transcription__based_on_pinyin_ FROM table_1805919_1 WHERE english_translation = "Alas for the Days Gone By" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 English name for the month with พ.ย. abbreviation?
### Context:
CREATE TABLE table_180802_2 (english_name VARCHAR, abbr VARCHAR) [/INST]
### Response:
SELECT english_name FROM table_180802_2 WHERE abbr = "พ.ย." </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 zodiac sing for the month abbreviated as มี.ค.?
### Context:
CREATE TABLE table_180802_2 (zodiac_sign VARCHAR, abbr VARCHAR) [/INST]
### Response:
SELECT zodiac_sign FROM table_180802_2 WHERE abbr = "มี.ค." </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 transcription of the thai name of the month พฤษภาคม?
### Context:
CREATE TABLE table_180802_2 (transcription VARCHAR, thai_name VARCHAR) [/INST]
### Response:
SELECT transcription FROM table_180802_2 WHERE thai_name = "พฤษภาคม" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 zodiac signs does the month by the Thai name of กันยายน belong to?
### Context:
CREATE TABLE table_180802_2 (zodiac_sign VARCHAR, thai_name VARCHAR) [/INST]
### Response:
SELECT COUNT(zodiac_sign) FROM table_180802_2 WHERE thai_name = "กันยายน" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 English name of the month abbreviated as มิ.ย.?
### Context:
CREATE TABLE table_180802_2 (english_name VARCHAR, abbr VARCHAR) [/INST]
### Response:
SELECT english_name FROM table_180802_2 WHERE abbr = "มิ.ย." </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 abbreviation of the month in the zodiac sign scorpio?
### Context:
CREATE TABLE table_180802_2 (abbr VARCHAR, zodiac_sign VARCHAR) [/INST]
### Response:
SELECT abbr FROM table_180802_2 WHERE zodiac_sign = "Scorpio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year was the original title გაღმა ნაპირი
### Context:
CREATE TABLE table_18069789_1 (year_ VARCHAR, e_ VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT year_[e_] AS __ceremony_ FROM table_18069789_1 WHERE original_title = "გაღმა ნაპირი" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 times was 27 missing kisses used in nomination
### Context:
CREATE TABLE table_18069789_1 (e_ VARCHAR, film_title_used_in_nomination VARCHAR, year_ VARCHAR) [/INST]
### Response:
SELECT COUNT(year_)[e_] AS __ceremony_ FROM table_18069789_1 WHERE film_title_used_in_nomination = "27 Missing Kisses" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 otar iosseliani's film selected
### Context:
CREATE TABLE table_18069789_1 (year_ VARCHAR, e_ VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT year_[e_] AS __ceremony_ FROM table_18069789_1 WHERE director = "Otar Iosseliani" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 thai name of the transcription wan chan?
### Context:
CREATE TABLE table_180802_3 (thai_name VARCHAR, transcription VARCHAR) [/INST]
### Response:
SELECT thai_name FROM table_180802_3 WHERE transcription = "wan chan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sanskrit word for the color red?
### Context:
CREATE TABLE table_180802_3 (sanskrit_word VARCHAR, color VARCHAR) [/INST]
### Response:
SELECT sanskrit_word FROM table_180802_3 WHERE color = "red" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.