text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the %2006 when the %2001 was more than 62.5?
### Context:
CREATE TABLE table_name_52 (_percentage_2006 INTEGER, _percentage_2001 INTEGER) [/INST]
### Response:
SELECT AVG(_percentage_2006) FROM table_name_52 WHERE _percentage_2001 > 62.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 sum of the losses by the Montreal Hockey Club, who have more than 15 Goals Against?
### Context:
CREATE TABLE table_name_56 (losses INTEGER, team VARCHAR, goals_against VARCHAR) [/INST]
### Response:
SELECT SUM(losses) FROM table_name_56 WHERE team = "montreal hockey club" AND goals_against > 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:
What is the largest Goals For by a team that has more than 0 ties?
### Context:
CREATE TABLE table_name_18 (goals_for INTEGER, ties INTEGER) [/INST]
### Response:
SELECT MAX(goals_for) FROM table_name_18 WHERE ties > 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:
How many ties do teams with 25 Goals For and more than 5 wins have?
### Context:
CREATE TABLE table_name_40 (ties INTEGER, goals_for VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT SUM(ties) FROM table_name_40 WHERE goals_for = 25 AND wins > 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 Goals Against by a team with more than 5 wins?
### Context:
CREATE TABLE table_name_18 (goals_against INTEGER, wins INTEGER) [/INST]
### Response:
SELECT MIN(goals_against) FROM table_name_18 WHERE wins > 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 total number of ties a team with less than 3 losses have?
### Context:
CREATE TABLE table_name_98 (ties VARCHAR, losses INTEGER) [/INST]
### Response:
SELECT COUNT(ties) FROM table_name_98 WHERE losses < 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:
Tell me the race name where stirling moss won on 16 april
### Context:
CREATE TABLE table_name_61 (race_name VARCHAR, winning_driver VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT race_name FROM table_name_61 WHERE winning_driver = "stirling moss" AND date = "16 april" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the report for circuit of modena
### Context:
CREATE TABLE table_name_25 (report VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_25 WHERE circuit = "modena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the race name for ferrari on 25 april
### Context:
CREATE TABLE table_name_17 (race_name VARCHAR, constructor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT race_name FROM table_name_17 WHERE constructor = "ferrari" AND date = "25 april" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructor for vii kanonloppet
### Context:
CREATE TABLE table_name_22 (constructor VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_22 WHERE race_name = "vii kanonloppet" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent on May 7?
### Context:
CREATE TABLE table_name_55 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_55 WHERE date = "may 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:
When the Home team was Carlton, what was the Away team score?
### Context:
CREATE TABLE table_name_90 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_90 WHERE home_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the constructor for a FW20 chassis?
### Context:
CREATE TABLE table_name_37 (constructor VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_37 WHERE chassis = "fw20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What engine did David Coulthard have in his mp4-13 chassis?
### Context:
CREATE TABLE table_name_86 (engine_† VARCHAR, chassis VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT engine_† FROM table_name_86 WHERE chassis = "mp4-13" AND driver = "david coulthard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date has an Outcome of runner-up, and an Opponent in the final of gilles simon?
### Context:
CREATE TABLE table_name_86 (date VARCHAR, outcome VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_86 WHERE outcome = "runner-up" AND opponent_in_the_final = "gilles simon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent on the 28 july 2013 final?
### Context:
CREATE TABLE table_name_33 (opponent_in_the_final VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent_in_the_final FROM table_name_33 WHERE date = "28 july 2013" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date has a Score in the final of 4–6, 3–6?
### Context:
CREATE TABLE table_name_11 (date VARCHAR, score_in_the_final VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_11 WHERE score_in_the_final = "4–6, 3–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 prefix for the formula of Rsor'?
### Context:
CREATE TABLE table_name_75 (prefix VARCHAR, formula VARCHAR) [/INST]
### Response:
SELECT prefix FROM table_name_75 WHERE formula = "rsor'" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 group has the RNCS formula?
### Context:
CREATE TABLE table_name_66 (group VARCHAR, formula VARCHAR) [/INST]
### Response:
SELECT group FROM table_name_66 WHERE formula = "rncs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 formula has a thial as a chemical class?
### Context:
CREATE TABLE table_name_13 (formula VARCHAR, chemical_class VARCHAR) [/INST]
### Response:
SELECT formula FROM table_name_13 WHERE chemical_class = "thial" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 suffix has the prefix of isothiocyanato- (-ncs)?
### Context:
CREATE TABLE table_name_17 (suffix VARCHAR, prefix VARCHAR) [/INST]
### Response:
SELECT suffix FROM table_name_17 WHERE prefix = "isothiocyanato- (-ncs)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 item has the suffix containing thiocyanato- (-scn) as a prefix?
### Context:
CREATE TABLE table_name_77 (suffix VARCHAR, prefix VARCHAR) [/INST]
### Response:
SELECT suffix FROM table_name_77 WHERE prefix = "thiocyanato- (-scn)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 formula has thial as a chemical class?
### Context:
CREATE TABLE table_name_7 (formula VARCHAR, chemical_class VARCHAR) [/INST]
### Response:
SELECT formula FROM table_name_7 WHERE chemical_class = "thial" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fitzroy is the Away team, what Date did they play?
### Context:
CREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_97 WHERE away_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Away team is fitzroy on the Date of 15 july 1967, what was the Home team playing?
### Context:
CREATE TABLE table_name_89 (home_team VARCHAR, date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_89 WHERE date = "15 july 1967" AND away_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Venue has an Away team of st kilda?
### Context:
CREATE TABLE table_name_5 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_5 WHERE away_team = "st kilda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place has a draw smaller than 2?
### Context:
CREATE TABLE table_name_90 (place INTEGER, draw INTEGER) [/INST]
### Response:
SELECT AVG(place) FROM table_name_90 WHERE draw < 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 launch date of the satellite with a COSPAR ID of 1995-022a?
### Context:
CREATE TABLE table_name_32 (launch_date__utc_ VARCHAR, cospar_id_satcat_№ VARCHAR) [/INST]
### Response:
SELECT launch_date__utc_ FROM table_name_32 WHERE cospar_id_satcat_№ = "1995-022a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 COSPAR ID of the satellite with a titan iv(401)a launch vehicle?
### Context:
CREATE TABLE table_name_20 (cospar_id_satcat_№ VARCHAR, launch_vehicle VARCHAR) [/INST]
### Response:
SELECT cospar_id_satcat_№ FROM table_name_20 WHERE launch_vehicle = "titan iv(401)a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the launch designation of the satellite with a 2009-001a COSPAR ID?
### Context:
CREATE TABLE table_name_53 (launch_designation VARCHAR, cospar_id_satcat_№ VARCHAR) [/INST]
### Response:
SELECT launch_designation FROM table_name_53 WHERE cospar_id_satcat_№ = "2009-001a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 launch site of the satellite with a 2003-041a COSPAR ID?
### Context:
CREATE TABLE table_name_71 (launch_site VARCHAR, cospar_id_satcat_№ VARCHAR) [/INST]
### Response:
SELECT launch_site FROM table_name_71 WHERE cospar_id_satcat_№ = "2003-041a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 construction has a CERCLIS ID of ard092916188?
### Context:
CREATE TABLE table_name_1 (construction_completed VARCHAR, cerclis_id VARCHAR) [/INST]
### Response:
SELECT construction_completed FROM table_name_1 WHERE cerclis_id = "ard092916188" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 CERCLIS ID is Deleted of 04/07/2008?
### Context:
CREATE TABLE table_name_16 (cerclis_id VARCHAR, deleted VARCHAR) [/INST]
### Response:
SELECT cerclis_id FROM table_name_16 WHERE deleted = "04/07/2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 construction has a Listed 09/08/1983, and a Deleted of –, and a Name of mid-south wood products?
### Context:
CREATE TABLE table_name_48 (construction_completed VARCHAR, name VARCHAR, listed VARCHAR, deleted VARCHAR) [/INST]
### Response:
SELECT construction_completed FROM table_name_48 WHERE listed = "09/08/1983" AND deleted = "–" AND name = "mid-south wood products" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Construction that has a Listed 09/08/1983, and a Name of cecil lindsey?
### Context:
CREATE TABLE table_name_49 (construction_completed VARCHAR, listed VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT construction_completed FROM table_name_49 WHERE listed = "09/08/1983" AND name = "cecil lindsey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance at Kardinia Park?
### Context:
CREATE TABLE table_name_63 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_63 WHERE venue = "kardinia park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Date of Week 16?
### Context:
CREATE TABLE table_name_43 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_43 WHERE week = 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Colorado the home team?
### Context:
CREATE TABLE table_name_85 (date VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_85 WHERE home = "colorado" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record for the game on November 28 when the decision was Backstrom?
### Context:
CREATE TABLE table_name_69 (record VARCHAR, decision VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_69 WHERE decision = "backstrom" AND date = "november 28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team was the home team when the record was 11–8–2?
### Context:
CREATE TABLE table_name_26 (home VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_26 WHERE record = "11–8–2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score when Edmonton was the home team?
### Context:
CREATE TABLE table_name_10 (score VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_10 WHERE home = "edmonton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the highest PI GP with pick # greater than 159 and reg GP more than 0
### Context:
CREATE TABLE table_name_97 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR) [/INST]
### Response:
SELECT MAX(pl_gp) FROM table_name_97 WHERE pick__number > 159 AND reg_gp > 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:
In the match where south melbourne was the away team, who was the home team?
### Context:
CREATE TABLE table_name_34 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_34 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Team 2 faced Team 1 from Barcelona?
### Context:
CREATE TABLE table_name_48 (team_2 VARCHAR, team_1 VARCHAR) [/INST]
### Response:
SELECT team_2 FROM table_name_48 WHERE team_1 = "barcelona" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first leg had Galatasaray as Team 1?
### Context:
CREATE TABLE table_name_34 (team_1 VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_34 WHERE team_1 = "galatasaray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name of the Event with a time of 2:19?
### Context:
CREATE TABLE table_name_8 (event VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_8 WHERE time = "2: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:
Where was match which had Joe Lauzon as an opponent?
### Context:
CREATE TABLE table_name_76 (location VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_76 WHERE opponent = "joe lauzon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the building that was the tallest from 1990–1997 in Frankfurt?
### Context:
CREATE TABLE table_name_78 (name VARCHAR, city VARCHAR, years_as_tallest VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_78 WHERE city = "frankfurt" AND years_as_tallest = "1990–1997" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a height less than 122 meters, what is the greatest height in feet?
### Context:
CREATE TABLE table_name_58 (height__ft_ INTEGER, height__m_ INTEGER) [/INST]
### Response:
SELECT MAX(height__ft_) FROM table_name_58 WHERE height__m_ < 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:
How high was the highest building in feet in the city of cologne?
### Context:
CREATE TABLE table_name_66 (height__ft_ INTEGER, city VARCHAR) [/INST]
### Response:
SELECT MAX(height__ft_) FROM table_name_66 WHERE city = "cologne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors?
### Context:
CREATE TABLE table_name_24 (height__ft_ INTEGER, floors VARCHAR, city VARCHAR, height__m_ VARCHAR) [/INST]
### Response:
SELECT MIN(height__ft_) FROM table_name_24 WHERE city = "frankfurt" AND height__m_ = 257 AND floors < 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:
What is the height in meters for a building in Frankfurt that is 850 feet tall?
### Context:
CREATE TABLE table_name_66 (height__m_ VARCHAR, city VARCHAR, height__ft_ VARCHAR) [/INST]
### Response:
SELECT height__m_ FROM table_name_66 WHERE city = "frankfurt" AND height__ft_ = 850 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95?
### Context:
CREATE TABLE table_name_76 (mintage VARCHAR, theme VARCHAR, issue_price VARCHAR) [/INST]
### Response:
SELECT mintage FROM table_name_76 WHERE theme = "toronto maple leafs" AND issue_price < 24.95 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Collingwood's score in their away game?
### Context:
CREATE TABLE table_name_39 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_39 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did Geelong play as the away team?
### Context:
CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_14 WHERE away_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 I Dessau Autobahnspinne race?
### Context:
CREATE TABLE table_name_66 (date VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_66 WHERE race_name = "i dessau autobahnspinne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the winning driver in the Sachsenring circuit?
### Context:
CREATE TABLE table_name_8 (winning_driver VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_8 WHERE circuit = "sachsenring" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Terry Mills from?
### Context:
CREATE TABLE table_name_98 (hometown VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT hometown FROM table_name_98 WHERE player = "terry mills" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Mexican grand prix?
### Context:
CREATE TABLE table_name_24 (date VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_24 WHERE race = "mexican grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 person with a Height of 6-8 went to which School?
### Context:
CREATE TABLE table_name_67 (school VARCHAR, height VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_67 WHERE height = "6-8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What College did Player Dorian Finney-Smith play for?
### Context:
CREATE TABLE table_name_68 (college VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_68 WHERE player = "dorian finney-smith" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a height of 6-10, and went to College at LSU?
### Context:
CREATE TABLE table_name_66 (player VARCHAR, height VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_66 WHERE height = "6-10" AND college = "lsu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 School did Player Tyrone Johnson attend?
### Context:
CREATE TABLE table_name_41 (school VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_41 WHERE player = "tyrone johnson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 School did Player Tyrone Johnson attend?
### Context:
CREATE TABLE table_name_42 (school VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_42 WHERE player = "tyrone johnson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the time of 1:23.32.41?
### Context:
CREATE TABLE table_name_17 (rider VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_17 WHERE time = "1:23.32.41" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time of the rider who has a rank smaller than 8 and speed of 104.567mph?
### Context:
CREATE TABLE table_name_24 (time VARCHAR, rank VARCHAR, speed VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_24 WHERE rank < 8 AND speed = "104.567mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team at the Junction Oval venue?
### Context:
CREATE TABLE table_name_14 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_14 WHERE venue = "junction oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date where the away team is Richmond?
### Context:
CREATE TABLE table_name_30 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_30 WHERE away_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit when the fastest lap was john surtees and the winning driver was john surtees.
### Context:
CREATE TABLE table_name_53 (circuit VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_53 WHERE fastest_lap = "john surtees" AND winning_driver = "john surtees" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning driver with circuit of monza
### Context:
CREATE TABLE table_name_59 (winning_driver VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_59 WHERE circuit = "monza" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pole position for 8 september
### Context:
CREATE TABLE table_name_35 (pole_position VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT pole_position FROM table_name_35 WHERE date = "8 september" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning driver for belgian grand prix
### Context:
CREATE TABLE table_name_45 (winning_driver VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_45 WHERE race = "belgian grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit for italian grand prix
### Context:
CREATE TABLE table_name_97 (circuit VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_97 WHERE race = "italian grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grid numbers were there for the driver Giancarlo Fisichella?
### Context:
CREATE TABLE table_name_3 (grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_3 WHERE driver = "giancarlo fisichella" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mean number of laps for the constructor Ferrari when the time/retired was fuel pressure?
### Context:
CREATE TABLE table_name_93 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_93 WHERE constructor = "ferrari" AND time_retired = "fuel pressure" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grid when the driver was Michael Schumacher?
### Context:
CREATE TABLE table_name_20 (grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_20 WHERE driver = "michael schumacher" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many laps had a grid number of 7?
### Context:
CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_99 WHERE grid = 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:
Which lap number had a grid number of less than 17 when the driver was Giancarlo Fisichella?
### Context:
CREATE TABLE table_name_1 (laps VARCHAR, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_1 WHERE grid < 17 AND driver = "giancarlo fisichella" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning driver for circuit of monza
### Context:
CREATE TABLE table_name_36 (winning_driver VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_36 WHERE circuit = "monza" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the date for jody scheckter being the fastest lap at the french grand prix
### Context:
CREATE TABLE table_name_14 (date VARCHAR, fastest_lap VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_14 WHERE fastest_lap = "jody scheckter" AND race = "french grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date for circuit of interlagos
### Context:
CREATE TABLE table_name_50 (date VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_50 WHERE circuit = "interlagos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 event for vinny magalhães?
### Context:
CREATE TABLE table_name_74 (event VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_74 WHERE opponent = "vinny magalhães" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date for renato ferreira?
### Context:
CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_9 WHERE opponent = "renato ferreira" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 event with leonardo chocolate in 2009?
### Context:
CREATE TABLE table_name_88 (event VARCHAR, date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_88 WHERE date = 2009 AND opponent = "leonardo chocolate" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the opponent being gerardi rinaldi in 2009?
### Context:
CREATE TABLE table_name_14 (result VARCHAR, date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_14 WHERE date = 2009 AND opponent = "gerardi rinaldi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the eastern #1 for week of 5
### Context:
CREATE TABLE table_name_23 (eastern__number1 VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT eastern__number1 FROM table_name_23 WHERE week = 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the eastern #2 for western #2 of oakland
### Context:
CREATE TABLE table_name_23 (eastern__number2 VARCHAR, western__number2 VARCHAR) [/INST]
### Response:
SELECT eastern__number2 FROM table_name_23 WHERE western__number2 = "oakland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the wekk for eastern #2 of houston
### Context:
CREATE TABLE table_name_37 (week VARCHAR, eastern__number2 VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_37 WHERE eastern__number2 = "houston" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team played against the away team Carlton?
### Context:
CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_74 WHERE away_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game played where the home team was Collingwood?
### Context:
CREATE TABLE table_name_29 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_29 WHERE home_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home score with a crowd larger than 25,603?
### Context:
CREATE TABLE table_name_44 (home_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT home_team AS score FROM table_name_44 WHERE crowd > 25 OFFSET 603 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the home team from South Melbourne?
### Context:
CREATE TABLE table_name_41 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_41 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the away team with the home team Fitzroy?
### Context:
CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_88 WHERE home_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue did the away team footscray play at?
### Context:
CREATE TABLE table_name_63 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_63 WHERE away_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 melbourne was the away team, what was the lowest crowd turnout they had?
### Context:
CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_75 WHERE away_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 plays at the venue glenferrie oval?
### Context:
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_63 WHERE venue = "glenferrie oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the lowest 2005 for 2010 less than 21 for 2009 being 19
### Context:
CREATE TABLE table_name_75 (Id VARCHAR) [/INST]
### Response:
SELECT MIN(2005) FROM table_name_75 WHERE 2009 = 19 AND 2010 < 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:
Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3
### Context:
CREATE TABLE table_name_85 (Id VARCHAR) [/INST]
### Response:
SELECT COUNT(2010) FROM table_name_85 WHERE 2009 < 14 AND 2008 < 15 AND 2005 = 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:
Name the average 2008 for beijing and 2005 more than 2
### Context:
CREATE TABLE table_name_21 (year VARCHAR) [/INST]
### Response:
SELECT AVG(2008) FROM table_name_21 WHERE year = "beijing" AND 2005 > 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:
Name the lowest 2008 for guizhou when 2005 is less than 31
### Context:
CREATE TABLE table_name_45 (year VARCHAR) [/INST]
### Response:
SELECT MIN(2008) FROM table_name_45 WHERE year = "guizhou" AND 2005 < 31 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.