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 safari has 2012 q4 as the period?
### Context:
CREATE TABLE table_name_58 (safari VARCHAR, period VARCHAR) [/INST]
### Response:
SELECT safari FROM table_name_58 WHERE period = "2012 q4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 period has 53.52% as the internet explorer?
### Context:
CREATE TABLE table_name_36 (period VARCHAR, internet_explorer VARCHAR) [/INST]
### Response:
SELECT period FROM table_name_36 WHERE internet_explorer = "53.52%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the other that has 20.80% as the firefox?
### Context:
CREATE TABLE table_name_85 (other VARCHAR, firefox VARCHAR) [/INST]
### Response:
SELECT other FROM table_name_85 WHERE firefox = "20.80%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opera has 19.87% as the firefox?
### Context:
CREATE TABLE table_name_48 (opera VARCHAR, firefox VARCHAR) [/INST]
### Response:
SELECT opera FROM table_name_48 WHERE firefox = "19.87%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Time listings have a 0.209 React entry and a Rank that is greater than 7?
### Context:
CREATE TABLE table_name_76 (time VARCHAR, react VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(time) FROM table_name_76 WHERE react = 0.209 AND rank > 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 total Rank listings have Liu Xiaosheng listed as the athlete with a react entry that is smaller than 0.245?
### Context:
CREATE TABLE table_name_16 (rank VARCHAR, athlete VARCHAR, react VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_16 WHERE athlete = "liu xiaosheng" AND react < 0.245 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average for Rank entries where the Lane listed is smaller than 4 and the Nationality listed is San Marino?
### Context:
CREATE TABLE table_name_7 (rank INTEGER, lane VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_7 WHERE lane < 4 AND nationality = "san marino" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lane has a 0.209 React entered with a Rank entry that is larger than 6?
### Context:
CREATE TABLE table_name_84 (lane VARCHAR, react VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT lane FROM table_name_84 WHERE react > 0.209 AND rank > 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:
Which Notes have a Competition of world championships, and a Position of 2nd?
### Context:
CREATE TABLE table_name_74 (notes VARCHAR, competition VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_74 WHERE competition = "world championships" AND position = "2nd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue after 2012?
### Context:
CREATE TABLE table_name_4 (venue VARCHAR, year INTEGER) [/INST]
### Response:
SELECT venue FROM table_name_4 WHERE year > 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:
What were the notes in 2011?
### Context:
CREATE TABLE table_name_89 (notes VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_89 WHERE year = 2011 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Year has a Position of 9th?
### Context:
CREATE TABLE table_name_63 (year INTEGER, position VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_63 WHERE position = "9th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 CSA/CMA Population in IA-IL?
### Context:
CREATE TABLE table_name_89 (csa_cma_2009_population INTEGER, state__province VARCHAR) [/INST]
### Response:
SELECT MAX(csa_cma_2009_population) FROM table_name_89 WHERE state__province = "ia-il" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 projected population of IN-MI?
### Context:
CREATE TABLE table_name_68 (projected_2025_population VARCHAR, state__province VARCHAR) [/INST]
### Response:
SELECT projected_2025_population FROM table_name_68 WHERE state__province = "in-mi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the Rank that has the Lane of 6, and the Heat of 2?
### Context:
CREATE TABLE table_name_90 (rank VARCHAR, lane VARCHAR, heat VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_90 WHERE lane = 6 AND heat = 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:
Can you tell me the Time that has the Heat of 1, and the Lane of 2?
### Context:
CREATE TABLE table_name_72 (time VARCHAR, heat VARCHAR, lane VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_72 WHERE heat = 1 AND lane = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Game # that scored 87-92?
### Context:
CREATE TABLE table_name_46 (game INTEGER, score VARCHAR) [/INST]
### Response:
SELECT SUM(game) FROM table_name_46 WHERE score = "87-92" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank that spain got?
### Context:
CREATE TABLE table_name_7 (rank INTEGER, nation VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_7 WHERE nation = "spain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result from the 2000 asian cup qualification?
### Context:
CREATE TABLE table_name_58 (result VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_58 WHERE competition = "2000 asian cup qualification" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date was the game that had a score of 7–0?
### Context:
CREATE TABLE table_name_91 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_91 WHERE score = "7–0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the game that was played on february 27, 2000?
### Context:
CREATE TABLE table_name_38 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_38 WHERE date = "february 27, 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:
During what competition was a game played with a score of 3–1?
### Context:
CREATE TABLE table_name_95 (competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_95 WHERE score = "3–1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score from the king's cup 2000?
### Context:
CREATE TABLE table_name_31 (score VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_31 WHERE competition = "king's cup 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:
What is the tie number when the home team is Port Vale?
### Context:
CREATE TABLE table_name_72 (tie_no VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_72 WHERE home_team = "port vale" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score in the Liverpool home game?
### Context:
CREATE TABLE table_name_67 (score VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_67 WHERE home_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:
Which away team has a tie number of 3?
### Context:
CREATE TABLE table_name_28 (away_team VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_28 WHERE tie_no = "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 murder (2012) rate per 100,00 also has a 1.616 as the peace (2012) GPI?
### Context:
CREATE TABLE table_name_26 (murder__2012__rate_per_100 VARCHAR, peace__2012__gpi VARCHAR) [/INST]
### Response:
SELECT murder__2012__rate_per_100, 000 FROM table_name_26 WHERE peace__2012__gpi = 1.616 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sum of poverty (2009) HPI-1 % when the GDP (PPP) (2012) US$ per capita of 11,284?
### Context:
CREATE TABLE table_name_69 (poverty__2009__hpi_1__percentage VARCHAR, gdp__ppp___2012__us$_per_capita VARCHAR) [/INST]
### Response:
SELECT COUNT(poverty__2009__hpi_1__percentage) FROM table_name_69 WHERE gdp__ppp___2012__us$_per_capita = "11,284" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 notes with the time 6:24.21?
### Context:
CREATE TABLE table_name_94 (notes VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_94 WHERE time = "6:24.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:
What country is ranked #2?
### Context:
CREATE TABLE table_name_68 (country VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_68 WHERE rank = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the time of Rank 3?
### Context:
CREATE TABLE table_name_78 (time VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_78 WHERE rank = 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 titles for the nation with less than 3 fastest laps and 22 podiums?
### Context:
CREATE TABLE table_name_83 (championship_titles VARCHAR, fastest_laps VARCHAR, podiums VARCHAR) [/INST]
### Response:
SELECT championship_titles FROM table_name_83 WHERE fastest_laps < 3 AND podiums = 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 fastest laps for the nation with 32 (30) entries and starts and fewer than 2 podiums?
### Context:
CREATE TABLE table_name_74 (fastest_laps INTEGER, race_entries__starts_ VARCHAR, podiums VARCHAR) [/INST]
### Response:
SELECT MIN(fastest_laps) FROM table_name_74 WHERE race_entries__starts_ = "32 (30)" AND podiums < 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:
Kostas Bigalis & Mirella Fragkopoulou the singer had what has the jury?
### Context:
CREATE TABLE table_name_51 (jury VARCHAR, singer VARCHAR) [/INST]
### Response:
SELECT jury FROM table_name_51 WHERE singer = "kostas bigalis & mirella fragkopoulou" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 greatest draw that has 4th for place?
### Context:
CREATE TABLE table_name_62 (draw INTEGER, place VARCHAR) [/INST]
### Response:
SELECT MAX(draw) FROM table_name_62 WHERE place = "4th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Singer Maria-Louiza & Not 4 Sale had what jury?
### Context:
CREATE TABLE table_name_6 (jury VARCHAR, singer VARCHAR) [/INST]
### Response:
SELECT jury FROM table_name_6 WHERE singer = "maria-louiza & not 4 sale" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 song was 2nd (25,517) in televoting (votes)?
### Context:
CREATE TABLE table_name_73 (song VARCHAR, televoting__votes_ VARCHAR) [/INST]
### Response:
SELECT song FROM table_name_73 WHERE televoting__votes_ = "2nd (25,517)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average rank for Group A athlete Yanina Karolchyk, and a result higher than 18?
### Context:
CREATE TABLE table_name_59 (rank INTEGER, result VARCHAR, group VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_59 WHERE group = "a" AND athlete = "yanina karolchyk" AND result > 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which athlete, has an 18.55 result
### Context:
CREATE TABLE table_name_43 (athlete VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT athlete FROM table_name_43 WHERE result = 18.55 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who has a Result of 54.67?
### Context:
CREATE TABLE table_name_12 (name VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_12 WHERE result = 54.67 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Nationality has a Heat smaller than 2, and a Rank of 15?
### Context:
CREATE TABLE table_name_16 (nationality VARCHAR, heat VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_16 WHERE heat < 2 AND rank = 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Rank has a Name of tsvetelina kirilova, and a Result smaller than 55.97?
### Context:
CREATE TABLE table_name_73 (rank INTEGER, name VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_73 WHERE name = "tsvetelina kirilova" AND result < 55.97 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Heat has a Nationality of bulgaria, and a Result larger than 55.97?
### Context:
CREATE TABLE table_name_30 (heat INTEGER, nationality VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT MIN(heat) FROM table_name_30 WHERE nationality = "bulgaria" AND result > 55.97 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 notes for Ford when the total is 5?
### Context:
CREATE TABLE table_name_23 (notes VARCHAR, builder VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_23 WHERE builder = "ford" AND total = "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:
Which builder has a fleet series of s057-s061?
### Context:
CREATE TABLE table_name_30 (builder VARCHAR, fleet_series VARCHAR) [/INST]
### Response:
SELECT builder FROM table_name_30 WHERE fleet_series = "s057-s061" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 international builders are there?
### Context:
CREATE TABLE table_name_84 (total VARCHAR, builder VARCHAR) [/INST]
### Response:
SELECT total FROM table_name_84 WHERE builder = "international" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which model with a fleet series of s410-s434?
### Context:
CREATE TABLE table_name_60 (model VARCHAR, fleet_series VARCHAR) [/INST]
### Response:
SELECT model FROM table_name_60 WHERE fleet_series = "s410-s434" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total for those receiving less than 18 but more than 14?
### Context:
CREATE TABLE table_name_31 (total INTEGER, silver VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_31 WHERE silver < 18 AND rank = "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:
How many draws did Mortlake have when the losses were more than 5?
### Context:
CREATE TABLE table_name_94 (draws VARCHAR, losses VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT COUNT(draws) FROM table_name_94 WHERE losses > 5 AND club = "mortlake" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 draw when the losses were more than 8 and less than 2 wins?
### Context:
CREATE TABLE table_name_73 (draws INTEGER, losses VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MAX(draws) FROM table_name_73 WHERE losses > 8 AND wins < 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 wins did Cobden have when draws were more than 0?
### Context:
CREATE TABLE table_name_90 (wins VARCHAR, club VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT COUNT(wins) FROM table_name_90 WHERE club = "cobden" AND draws > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the number of losses when the wins were more than 11 and had 0 draws?
### Context:
CREATE TABLE table_name_35 (losses VARCHAR, draws VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_35 WHERE draws = 0 AND wins > 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score for the date of 16 december 1978, with a tie no of 9?
### Context:
CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_98 WHERE date = "16 december 1978" AND tie_no = "9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the tie no for the home team swansea city?
### Context:
CREATE TABLE table_name_26 (tie_no VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_26 WHERE home_team = "swansea city" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a tie no of replay, and an away team of watford?
### Context:
CREATE TABLE table_name_57 (date VARCHAR, tie_no VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_57 WHERE tie_no = "replay" AND away_team = "watford" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Waht was the away team when the home team is colchester united?
### Context:
CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_95 WHERE home_team = "colchester united" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tie no for the away team altrincham?
### Context:
CREATE TABLE table_name_59 (tie_no VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_59 WHERE away_team = "altrincham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position did Michael Lee play?
### Context:
CREATE TABLE table_name_25 (pos VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT pos FROM table_name_25 WHERE name = "michael lee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weight of Serhiy Alfyorov?
### Context:
CREATE TABLE table_name_50 (weight VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT weight FROM table_name_50 WHERE name = "serhiy alfyorov" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weight of the person born in 1980?
### Context:
CREATE TABLE table_name_63 (weight VARCHAR, born VARCHAR) [/INST]
### Response:
SELECT weight FROM table_name_63 WHERE born = "1980" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the position of the player born in 1984 with a height of 1.80m?
### Context:
CREATE TABLE table_name_20 (pos VARCHAR, born VARCHAR, height VARCHAR) [/INST]
### Response:
SELECT pos FROM table_name_20 WHERE born = "1984" AND height = "1.80" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weight of the player with a height of 2.00m?
### Context:
CREATE TABLE table_name_58 (weight VARCHAR, height VARCHAR) [/INST]
### Response:
SELECT weight FROM table_name_58 WHERE height = "2.00" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round has a School/Club Team of arizona, and a Pick smaller than 298?
### Context:
CREATE TABLE table_name_68 (round INTEGER, school_club_team VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_68 WHERE school_club_team = "arizona" AND pick < 298 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 plays linebacker?
### Context:
CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_99 WHERE position = "linebacker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player's pick is 160?
### Context:
CREATE TABLE table_name_48 (player VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_48 WHERE pick = 160 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had 0 total votes in the purple team?
### Context:
CREATE TABLE table_name_18 (status VARCHAR, total_votes VARCHAR, couples_team VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_18 WHERE total_votes = "0" AND couples_team = "purple team" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Holly Scouler's total votes?
### Context:
CREATE TABLE table_name_27 (total_votes VARCHAR, members VARCHAR) [/INST]
### Response:
SELECT total_votes FROM table_name_27 WHERE members = "holly scouler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Holly Scouler's total votes
### Context:
CREATE TABLE table_name_62 (total_votes VARCHAR, members VARCHAR) [/INST]
### Response:
SELECT total_votes FROM table_name_62 WHERE members = "holly scouler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 aperture of the lens(es) with a focal length of 20mm?
### Context:
CREATE TABLE table_name_77 (max_aperture VARCHAR, focal_length VARCHAR) [/INST]
### Response:
SELECT max_aperture FROM table_name_77 WHERE focal_length = "20mm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 35mm EFL and the equivalent aperture of the lens(es) with a maximum aperture of f /2.5?
### Context:
CREATE TABLE table_name_67 (max_aperture VARCHAR) [/INST]
### Response:
SELECT 35 AS mm_efl_and_equivalent_aperture FROM table_name_67 WHERE max_aperture = "f /2.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 lowest rank for Andre Vonarburg, when the notes are FB?
### Context:
CREATE TABLE table_name_54 (rank INTEGER, notes VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_54 WHERE notes = "fb" AND athlete = "andre vonarburg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 athlete is from Norway?
### Context:
CREATE TABLE table_name_44 (athlete VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT athlete FROM table_name_44 WHERE country = "norway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 listed in notes for the athlete, lassi karonen?
### Context:
CREATE TABLE table_name_46 (notes VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_46 WHERE athlete = "lassi karonen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank for the team that raced a time of 6:50.40?
### Context:
CREATE TABLE table_name_10 (rank INTEGER, time VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_10 WHERE time = "6:50.40" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sum of the ranks for india?
### Context:
CREATE TABLE table_name_59 (rank INTEGER, country VARCHAR) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_59 WHERE country = "india" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nation ran a time of 9.69 seconds?
### Context:
CREATE TABLE table_name_84 (nation VARCHAR, performance VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_84 WHERE performance = "9.69" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 associated with Cuba?
### Context:
CREATE TABLE table_name_49 (place VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_49 WHERE nation = "cuba" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a performance of 19.30 seconds by Jamaica?
### Context:
CREATE TABLE table_name_50 (place VARCHAR, nation VARCHAR, performance VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_50 WHERE nation = "jamaica" AND performance = "19.30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What game was in 2005?
### Context:
CREATE TABLE table_name_85 (game VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_85 WHERE year = 2005 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What game was in 2001?
### Context:
CREATE TABLE table_name_66 (game VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_66 WHERE year = 2001 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What game was in 2011?
### Context:
CREATE TABLE table_name_7 (game VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_7 WHERE year = 2011 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the platform that has Rockstar Games as the developer?
### Context:
CREATE TABLE table_name_33 (platform_s_ VARCHAR, developer_s_ VARCHAR) [/INST]
### Response:
SELECT platform_s_ FROM table_name_33 WHERE developer_s_ = "rockstar games" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 genre of The Sims before 2002?
### Context:
CREATE TABLE table_name_23 (genre VARCHAR, year VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT genre FROM table_name_23 WHERE year < 2002 AND game = "the sims" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 actor plays Marie-Rose De Putter?
### Context:
CREATE TABLE table_name_73 (actor VARCHAR, character VARCHAR) [/INST]
### Response:
SELECT actor FROM table_name_73 WHERE character = "marie-rose de putter" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 character did Vicky Versavel play for 13 years?
### Context:
CREATE TABLE table_name_93 (character VARCHAR, duration VARCHAR, actor VARCHAR) [/INST]
### Response:
SELECT character FROM table_name_93 WHERE duration = "13 years" AND actor = "vicky versavel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years did the sdrive16d model have a Torque of n·m (lb·ft)@1750-3000?
### Context:
CREATE TABLE table_name_74 (years VARCHAR, torque VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_74 WHERE torque = "n·m (lb·ft)@1750-3000" AND model = "sdrive16d" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 torque of the xdrive20d model, which has a power of ps (kw; hp)@4000?
### Context:
CREATE TABLE table_name_60 (torque VARCHAR, power VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT torque FROM table_name_60 WHERE power = "ps (kw; hp)@4000" AND model = "xdrive20d" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine code of the xdrive23d model?
### Context:
CREATE TABLE table_name_11 (engine_code VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT engine_code FROM table_name_11 WHERE model = "xdrive23d" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 model is the n·m (lb·ft)@1500-2500 torque?
### Context:
CREATE TABLE table_name_60 (model VARCHAR, torque VARCHAR) [/INST]
### Response:
SELECT model FROM table_name_60 WHERE torque = "n·m (lb·ft)@1500-2500" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 IHSAA Football Class in Decatur with an AAA IHSAA class?
### Context:
CREATE TABLE table_name_78 (ihsaa_football_class VARCHAR, ihsaa_class VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT ihsaa_football_class FROM table_name_78 WHERE ihsaa_class = "aaa" AND location = "decatur" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 enrollment for Kendallville?
### Context:
CREATE TABLE table_name_73 (enrollment INTEGER, location VARCHAR) [/INST]
### Response:
SELECT MAX(enrollment) FROM table_name_73 WHERE location = "kendallville" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a silver medal in the boxing, heavyweight event?
### Context:
CREATE TABLE table_name_77 (country VARCHAR, medal VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_77 WHERE medal = "silver" AND event = "boxing, heavyweight" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 event in the 2000 summer olympics with a bronze medal?
### Context:
CREATE TABLE table_name_68 (event VARCHAR, medal VARCHAR, olympics VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_68 WHERE medal = "bronze" AND olympics = "2000 summer olympics" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 event is in the 1952 summer olympics?
### Context:
CREATE TABLE table_name_57 (event VARCHAR, olympics VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_57 WHERE olympics = "1952 summer olympics" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country in the 2008 summer olympics is vadim devyatovskiy from?
### Context:
CREATE TABLE table_name_16 (country VARCHAR, olympics VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_16 WHERE olympics = "2008 summer olympics" AND name = "vadim devyatovskiy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Gold entry for the Netherlands that also has a Bronze entry that is greater than 0?
### Context:
CREATE TABLE table_name_19 (gold INTEGER, nation VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT AVG(gold) FROM table_name_19 WHERE nation = "netherlands" AND bronze > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Nation has a Gold entry that is greater than 0, a Total that is greater than 2, a Silver entry that is larger than 1, and 0 Bronze?
### Context:
CREATE TABLE table_name_28 (nation VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_28 WHERE gold > 0 AND total > 2 AND bronze = 0 AND silver > 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 Turkey's average Gold entry that also has a Bronze entry that is smaller than 2 and the Total is greater than 1?
### Context:
CREATE TABLE table_name_90 (gold INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT AVG(gold) FROM table_name_90 WHERE bronze < 2 AND nation = "turkey" AND total > 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 were the losses when the byes were less than 0?
### Context:
CREATE TABLE table_name_41 (losses INTEGER, byes INTEGER) [/INST]
### Response:
SELECT MIN(losses) FROM table_name_41 WHERE byes < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the play when the company is national theatre of greece?
### Context:
CREATE TABLE table_name_11 (play VARCHAR, company VARCHAR) [/INST]
### Response:
SELECT play FROM table_name_11 WHERE company = "national theatre of greece" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.