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 time/retired when the driver is toulo de graffenried?
### Context:
CREATE TABLE table_name_51 (time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_51 WHERE driver = "toulo de graffenried" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps when the driver is tony rolt and the grid is less than 10?
### Context:
CREATE TABLE table_name_99 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_99 WHERE driver = "tony rolt" AND grid < 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the time/retired when the constructor is maserati and the laps is 90?
### Context:
CREATE TABLE table_name_74 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_74 WHERE constructor = "maserati" AND laps = 90 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance at Venue A on 16 October 2004?
### Context:
CREATE TABLE table_name_57 (attendance INTEGER, venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_57 WHERE venue = "a" AND date = "16 october 2004" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance when Middlesbrough played at Venue A?
### Context:
CREATE TABLE table_name_34 (attendance INTEGER, opponent VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_34 WHERE opponent = "middlesbrough" AND venue = "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:
Who was the sponsor for the bill introduced February 28, 2005 with cosponsors less than 200?
### Context:
CREATE TABLE table_name_18 (sponsor_s_ VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR) [/INST]
### Response:
SELECT sponsor_s_ FROM table_name_18 WHERE _number_of_cosponsors < 200 AND date_introduced = "february 28, 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 year was Herself nominated at the MTV Movie Awards?
### Context:
CREATE TABLE table_name_68 (year INTEGER, nominated_work VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_68 WHERE nominated_work = "herself" AND event = "mtv movie awards" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 amount of spectators when Essendon played as the home team?
### Context:
CREATE TABLE table_name_84 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_84 WHERE home_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the away team score at MCG?
### Context:
CREATE TABLE table_name_96 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_96 WHERE venue = "mcg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when Geelong was the away team?
### Context:
CREATE TABLE table_name_28 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_28 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:
What team was the away team at Arden Street Oval?
### Context:
CREATE TABLE table_name_72 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_72 WHERE venue = "arden street 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 in Xenia's Diameter in km, with a latitude of 14 and a longitude of 249.4?
### Context:
CREATE TABLE table_name_71 (diameter__km_ VARCHAR, longitude VARCHAR, latitude VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(diameter__km_) FROM table_name_71 WHERE latitude < 14 AND name = "xenia" AND longitude > 249.4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the latitude for a crater with a diameter of 12.8 km and a longitude of 208?
### Context:
CREATE TABLE table_name_18 (latitude INTEGER, diameter__km_ VARCHAR, longitude VARCHAR) [/INST]
### Response:
SELECT AVG(latitude) FROM table_name_18 WHERE diameter__km_ < 12.8 AND longitude < 208 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the Runner(s)-up in the race with a winning score of 67-66-65-69=267?
### Context:
CREATE TABLE table_name_75 (runner_s__up VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_75 WHERE winning_score = 67 - 66 - 65 - 69 = 267 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the Masters Tournament?
### Context:
CREATE TABLE table_name_9 (date VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_9 WHERE tournament = "masters tournament" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 margin of victory in the race where Justin Rose was the runner-up?
### Context:
CREATE TABLE table_name_48 (margin_of_victory VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_48 WHERE runner_s__up = "justin rose" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What tournament took place on 7 Aug 2011?
### Context:
CREATE TABLE table_name_87 (tournament VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_87 WHERE date = "7 aug 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:
For the team that had 4:05.096, what was their day 2?
### Context:
CREATE TABLE table_name_23 (day_2 VARCHAR, day_1 VARCHAR) [/INST]
### Response:
SELECT day_2 FROM table_name_23 WHERE day_1 = "4:05.096" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had 3:18.513 on day 1?
### Context:
CREATE TABLE table_name_34 (team VARCHAR, day_1 VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_34 WHERE day_1 = "3:18.513" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For the team with a class of gt2 and 3:59.820 on day 2, what was the behind?
### Context:
CREATE TABLE table_name_26 (behind VARCHAR, class VARCHAR, day_2 VARCHAR) [/INST]
### Response:
SELECT behind FROM table_name_26 WHERE class = "gt2" AND day_2 = "3:59.820" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was 3:47.761 on day 2?
### Context:
CREATE TABLE table_name_78 (team VARCHAR, day_2 VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_78 WHERE day_2 = "3:47.761" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 class of the team that has a behind of +44.780?
### Context:
CREATE TABLE table_name_18 (class VARCHAR, behind VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_18 WHERE behind = "+44.780" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For the team with 3:42.162 on day 2, what was the behind?
### Context:
CREATE TABLE table_name_72 (behind VARCHAR, day_2 VARCHAR) [/INST]
### Response:
SELECT behind FROM table_name_72 WHERE day_2 = "3:42.162" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 one of the tournaments had a QF in 1996?
### Context:
CREATE TABLE table_name_42 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_42 WHERE 1996 = "qf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 value for the Wimbledon tournament in 1996?
### Context:
CREATE TABLE table_name_92 (tournament VARCHAR) [/INST]
### Response:
SELECT 1996 FROM table_name_92 WHERE tournament = "wimbledon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year is center Ann Wauters?
### Context:
CREATE TABLE table_name_26 (year INTEGER, position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_26 WHERE position = "center" AND player = "ann wauters" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 earliest year that includes a Seattle Storm guard?
### Context:
CREATE TABLE table_name_54 (year INTEGER, position VARCHAR, wnba_team VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_54 WHERE position = "guard" AND wnba_team = "seattle storm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Regarding players before 2000, what is the USC player's position?
### Context:
CREATE TABLE table_name_31 (position VARCHAR, year VARCHAR, college_country VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_31 WHERE year < 2000 AND college_country = "usc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 earliest year a Baylor player made the list?
### Context:
CREATE TABLE table_name_79 (year INTEGER, college_country VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_79 WHERE college_country = "baylor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Sue Bird's position?
### Context:
CREATE TABLE table_name_93 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_93 WHERE player = "sue bird" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Class of Terrier?
### Context:
CREATE TABLE table_name_52 (builder VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT builder FROM table_name_52 WHERE class = "terrier" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructor when the laps is less than 68, the grid is more than 20 and the driver is thierry boutsen?
### Context:
CREATE TABLE table_name_62 (constructor VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_62 WHERE laps < 68 AND grid > 20 AND driver = "thierry boutsen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps when the time/retired is turbo and the grid is less than 14?
### Context:
CREATE TABLE table_name_29 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_29 WHERE time_retired = "turbo" AND grid < 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:
what is the time/retired when the laps is less than 4?
### Context:
CREATE TABLE table_name_23 (time_retired VARCHAR, laps INTEGER) [/INST]
### Response:
SELECT time_retired FROM table_name_23 WHERE laps < 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the most goals for total club and apps less than 120
### Context:
CREATE TABLE table_name_34 (goals INTEGER, club VARCHAR, apps VARCHAR) [/INST]
### Response:
SELECT MAX(goals) FROM table_name_34 WHERE club = "total" AND apps < 120 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many goals are associated with 75 games?
### Context:
CREATE TABLE table_name_51 (goals INTEGER, games VARCHAR) [/INST]
### Response:
SELECT MAX(goals) FROM table_name_51 WHERE games = 75 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the Rockets years of 2004-05?
### Context:
CREATE TABLE table_name_75 (position VARCHAR, years_for_rockets VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_75 WHERE years_for_rockets = "2004-05" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of years for the Houston Rockets 2004-05?
### Context:
CREATE TABLE table_name_14 (no_s_ INTEGER, years_for_rockets VARCHAR) [/INST]
### Response:
SELECT AVG(no_s_) FROM table_name_14 WHERE years_for_rockets = "2004-05" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For the years 1992-93, what position did he play for the Houston Rockets?
### Context:
CREATE TABLE table_name_4 (position VARCHAR, years_for_rockets VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_4 WHERE years_for_rockets = "1992-93" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years did he play the forward position and what school/club/team/country of Oregon State did he play?
### Context:
CREATE TABLE table_name_92 (no_s_ INTEGER, position VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT SUM(no_s_) FROM table_name_92 WHERE position = "forward" AND school_club_team_country = "oregon state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for bruce fleisher with over 31 events?
### Context:
CREATE TABLE table_name_16 (wins INTEGER, player VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT AVG(wins) FROM table_name_16 WHERE player = "bruce fleisher" AND events > 31 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average rank for players with under 26 events and less than 2 wins?
### Context:
CREATE TABLE table_name_74 (rank INTEGER, events VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_74 WHERE events < 26 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:
What is the high earnings for players with 34 events and over 2 wins?
### Context:
CREATE TABLE table_name_90 (earnings___ INTEGER, events VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MAX(earnings___) AS $__ FROM table_name_90 WHERE events = 34 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:
Which tournament had a 2R categorization in 2009 and SF in 2010?
### Context:
CREATE TABLE table_name_83 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_83 WHERE 2009 = "2r" AND 2010 = "sf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 categorization in 2009 when it was 2R in 2008 and 2011?
### Context:
CREATE TABLE table_name_14 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_14 WHERE 2008 = "2r" AND 2011 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 categorization in 2012 when it was A in 2008 and 1R in 2011?
### Context:
CREATE TABLE table_name_13 (Id VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_13 WHERE 2008 = "a" AND 2011 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 categorization in 2010 when it was A in 2008 and 20011 while being QF in 2012?
### Context:
CREATE TABLE table_name_10 (Id VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_10 WHERE 2008 = "a" AND 2011 = "a" AND 2012 = "qf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 against home team, Richmond?
### Context:
CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_28 WHERE home_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:
What is Fitzroy's smallest crowd size?
### Context:
CREATE TABLE table_name_3 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_3 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:
When was naomi cavaday the opponent?
### Context:
CREATE TABLE table_name_19 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_19 WHERE opponent = "naomi cavaday" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was andrea gámiz the opponent?
### Context:
CREATE TABLE table_name_97 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_97 WHERE opponent = "andrea gámiz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the score was 6–4, 6–2 and the surface was clay?
### Context:
CREATE TABLE table_name_94 (opponent VARCHAR, score VARCHAR, surface VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_94 WHERE score = "6–4, 6–2" AND surface = "clay" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 smallest crowd at a home game for essendon?
### Context:
CREATE TABLE table_name_97 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_97 WHERE home_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time/retired for riccardo patrese
### Context:
CREATE TABLE table_name_70 (time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_70 WHERE driver = "riccardo patrese" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the time/retired for grid of 24
### Context:
CREATE TABLE table_name_12 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_12 WHERE grid = 24 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the driver for ferrari who made Laps less than 26 and grids more than 9
### Context:
CREATE TABLE table_name_69 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_69 WHERE grid > 9 AND laps < 26 AND constructor = "ferrari" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number of grid for laps of 52
### Context:
CREATE TABLE table_name_60 (grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_60 WHERE laps = 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's the record for january 10?
### Context:
CREATE TABLE table_name_48 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_48 WHERE date = "january 10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the score on january 5 with a hasek decision?
### Context:
CREATE TABLE table_name_28 (score VARCHAR, decision VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_28 WHERE decision = "hasek" AND date = "january 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 Club team has an average of 8, plays kaj linna, and has an overall larger than 131?
### Context:
CREATE TABLE table_name_97 (club_team VARCHAR, player VARCHAR, overall VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT club_team FROM table_name_97 WHERE overall > 131 AND round = 8 AND player = "kaj linna" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round does Bryan Berard do?
### Context:
CREATE TABLE table_name_64 (round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_64 WHERE player = "bryan berard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average gross tonnage for april 1919 entered service
### Context:
CREATE TABLE table_name_57 (gross_tonnage INTEGER, entered_service VARCHAR) [/INST]
### Response:
SELECT AVG(gross_tonnage) FROM table_name_57 WHERE entered_service = "april 1919" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the total number of gross tonnage when entered service was 1903
### Context:
CREATE TABLE table_name_51 (gross_tonnage VARCHAR, entered_service VARCHAR) [/INST]
### Response:
SELECT COUNT(gross_tonnage) FROM table_name_51 WHERE entered_service = "1903" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank when the player is henry shefflin and the matches is higher than 4?
### Context:
CREATE TABLE table_name_9 (rank INTEGER, player VARCHAR, matches VARCHAR) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_9 WHERE player = "henry shefflin" AND matches > 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the rank when the total is 39 in the county of dublin and the matches is less than 4?
### Context:
CREATE TABLE table_name_31 (rank INTEGER, matches VARCHAR, total VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_31 WHERE total = 39 AND county = "dublin" AND matches < 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent on November 12, 1972?
### Context:
CREATE TABLE table_name_19 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_19 WHERE date = "november 12, 1972" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 built the train in 1966 with over 40 produced?
### Context:
CREATE TABLE table_name_83 (builder’s_model VARCHAR, total_produced VARCHAR, build_date VARCHAR) [/INST]
### Response:
SELECT builder’s_model FROM table_name_83 WHERE total_produced > 40 AND build_date = "1966" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 PRR class of the freight train built in 1967 with a b-b wheel arrangement?
### Context:
CREATE TABLE table_name_4 (prr_class VARCHAR, build_date VARCHAR, wheel_arrangement VARCHAR, service VARCHAR) [/INST]
### Response:
SELECT prr_class FROM table_name_4 WHERE wheel_arrangement = "b-b" AND service = "freight" AND build_date = "1967" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 PRR class has a Wheel arrangement of a1a-a1a?
### Context:
CREATE TABLE table_name_33 (prr_class VARCHAR, wheel_arrangement VARCHAR) [/INST]
### Response:
SELECT prr_class FROM table_name_33 WHERE wheel_arrangement = "a1a-a1a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Zone is the lowest when Managed By Southern and has Platforms under 2?
### Context:
CREATE TABLE table_name_88 (zone INTEGER, managed_by VARCHAR, platforms VARCHAR) [/INST]
### Response:
SELECT MIN(zone) FROM table_name_88 WHERE managed_by = "southern" AND platforms < 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 would be the highest Platforms for the Centrale Tram Stop Stations?
### Context:
CREATE TABLE table_name_15 (platforms INTEGER, stations VARCHAR) [/INST]
### Response:
SELECT MAX(platforms) FROM table_name_15 WHERE stations = "centrale tram stop" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grids had more than 61 laps?
### Context:
CREATE TABLE table_name_9 (grid INTEGER, laps INTEGER) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_9 WHERE laps > 61 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 parnell dickinson was the player and the rounds were under 7, what's the highest pick?
### Context:
CREATE TABLE table_name_57 (pick INTEGER, player VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT MAX(pick) FROM table_name_57 WHERE player = "parnell dickinson" AND round < 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 school picking is utah state for the position of linebacker, what's the sum of those rounds?
### Context:
CREATE TABLE table_name_51 (round INTEGER, position VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT SUM(round) FROM table_name_51 WHERE position = "linebacker" AND school = "utah state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps when the grid is less than 2?
### Context:
CREATE TABLE table_name_38 (laps VARCHAR, grid INTEGER) [/INST]
### Response:
SELECT laps FROM table_name_38 WHERE grid < 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:
who is the constructor when the grid is more than 23 and the driver is piercarlo ghinzani?
### Context:
CREATE TABLE table_name_66 (constructor VARCHAR, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_66 WHERE grid > 23 AND driver = "piercarlo ghinzani" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 latest year the venue is in gothenburg, sweden?
### Context:
CREATE TABLE table_name_36 (year INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_36 WHERE venue = "gothenburg, sweden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 earliest year the venue is in gothenburg, sweden?
### Context:
CREATE TABLE table_name_69 (year INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_69 WHERE venue = "gothenburg, sweden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result of the european indoor championships after 1974?
### Context:
CREATE TABLE table_name_41 (result VARCHAR, tournament VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_41 WHERE tournament = "european indoor championships" AND year > 1974 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Western Oval, what was the away team score?
### Context:
CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_33 WHERE venue = "western 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 place number for adrian vasile with less than 127.74 points?
### Context:
CREATE TABLE table_name_14 (places INTEGER, name VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT SUM(places) FROM table_name_14 WHERE name = "adrian vasile" AND points < 127.74 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest SP+FS that has 131.02 Points, and a Rank larger than 15?
### Context:
CREATE TABLE table_name_84 (fs VARCHAR, sp INTEGER, points VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(sp) + fs FROM table_name_84 WHERE points = 131.02 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:
What is the highest evening gown score of the contestant from Tennessee with an interview score larger than 9.36 and an average larger than 9.75 have?
### Context:
CREATE TABLE table_name_31 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT MAX(evening_gown) FROM table_name_31 WHERE interview > 9.36 AND country = "tennessee" AND average > 9.75 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the contestant with a swimsuit less than 9.32?
### Context:
CREATE TABLE table_name_86 (average INTEGER, swimsuit INTEGER) [/INST]
### Response:
SELECT SUM(average) FROM table_name_86 WHERE swimsuit < 9.32 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 swimsuit score of the contestant with a higher than 9.55 interview score, and evening gown of 9.75, and an average higher than 9.67?
### Context:
CREATE TABLE table_name_63 (swimsuit INTEGER, average VARCHAR, interview VARCHAR, evening_gown VARCHAR) [/INST]
### Response:
SELECT MAX(swimsuit) FROM table_name_63 WHERE interview > 9.55 AND evening_gown = 9.75 AND average > 9.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:
What is the country of the contestant with a swimsuit of 9.46?
### Context:
CREATE TABLE table_name_19 (country VARCHAR, swimsuit VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_19 WHERE swimsuit = 9.46 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did Goal 24 take place?
### Context:
CREATE TABLE table_name_76 (date VARCHAR, goal VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_76 WHERE goal = 24 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the team 2 for team 1 of Valletta?
### Context:
CREATE TABLE table_name_60 (team_2 VARCHAR, team_1 VARCHAR) [/INST]
### Response:
SELECT team_2 FROM table_name_60 WHERE team_1 = "valletta" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played defensive when the rookie Craig Point was playing during week 6?
### Context:
CREATE TABLE table_name_97 (defensive VARCHAR, rookie VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT defensive FROM table_name_97 WHERE rookie = "craig point" AND week = 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 was the first week that had a transition with Pat Mccready?
### Context:
CREATE TABLE table_name_6 (week INTEGER, transition VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_6 WHERE transition = "pat mccready" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rookie who played when Matt Vinc was defensive and Pat Maddalena was offensive?
### Context:
CREATE TABLE table_name_6 (rookie VARCHAR, defensive VARCHAR, offensive VARCHAR) [/INST]
### Response:
SELECT rookie FROM table_name_6 WHERE defensive = "matt vinc" AND offensive = "pat maddalena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played as overall when Josh Sims was transition?
### Context:
CREATE TABLE table_name_16 (overall VARCHAR, transition VARCHAR) [/INST]
### Response:
SELECT overall FROM table_name_16 WHERE transition = "josh 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:
How large was the crowd at Glenferrie Oval?
### Context:
CREATE TABLE table_name_98 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_98 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:
who is the actor of the character ariadne oliver?
### Context:
CREATE TABLE table_name_62 (actor VARCHAR, character VARCHAR) [/INST]
### Response:
SELECT actor FROM table_name_62 WHERE character = "ariadne oliver" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grid with a Driver of ralph firman, and a Lap smaller than 18?
### Context:
CREATE TABLE table_name_15 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_15 WHERE driver = "ralph firman" AND laps < 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:
What time/retired has a Grid larger than 3, and a Driver of kimi räikkönen?
### Context:
CREATE TABLE table_name_65 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_65 WHERE grid > 3 AND driver = "kimi räikkönen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on December 31?
### Context:
CREATE TABLE table_name_13 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_13 WHERE date = "december 31" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the lowest team 1 number that had asolo fonte (veneto b) as the Agg.?
### Context:
CREATE TABLE table_name_89 (team_1 INTEGER, agg VARCHAR) [/INST]
### Response:
SELECT MIN(team_1) FROM table_name_89 WHERE agg = "asolo fonte (veneto b)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total for kazuyoshi hoshino with under 71 laps?
### Context:
CREATE TABLE table_name_22 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_22 WHERE driver = "kazuyoshi hoshino" AND laps < 71 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver has grid 2 and over 72 laps?
### Context:
CREATE TABLE table_name_35 (driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_35 WHERE laps > 72 AND grid = 2 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.