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:
How large was the crowd at the Kardinia Park venue games?
### Context:
CREATE TABLE table_name_69 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_69 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 score of the Home team that played against Carlton's Away game?
### Context:
CREATE TABLE table_name_3 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_3 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:
What was the pick number when mark hayes was drafted?
### Context:
CREATE TABLE table_name_42 (pick VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_42 WHERE player = "mark hayes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a pick of 63?
### Context:
CREATE TABLE table_name_93 (school_club_team VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_93 WHERE pick = 63 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team had a position of linebacker with a pick smaller of 288?
### Context:
CREATE TABLE table_name_44 (school_club_team VARCHAR, position VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_44 WHERE position = "linebacker" AND pick < 288 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player did louisville pick when the round was below 8?
### Context:
CREATE TABLE table_name_70 (player VARCHAR, round VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_70 WHERE round < 8 AND school_club_team = "louisville" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 outcome of the game that had a score of 3–6, 6–3, 6–0?
### Context:
CREATE TABLE table_name_81 (outcome VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_81 WHERE score = "3–6, 6–3, 6–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:
On 27 July 2003 what was the outcome of the game that resulted in a score of 7–5, 6–3?
### Context:
CREATE TABLE table_name_77 (outcome VARCHAR, score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_77 WHERE score = "7–5, 6–3" AND date = "27 july 2003" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 final score of the game against Lenka Novotná?
### Context:
CREATE TABLE table_name_29 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_29 WHERE opponent_in_the_final = "lenka novotná" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface of clay who was the opponent in the game resulting in a score of 6–4, 6–4?
### Context:
CREATE TABLE table_name_23 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent_in_the_final FROM table_name_23 WHERE surface = "clay" AND score = "6–4, 6–4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the final score of the game against opponent Ana Ivanovic?
### Context:
CREATE TABLE table_name_75 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_75 WHERE opponent_in_the_final = "ana ivanovic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grid number where the time/retired is +58.182 and the lap number is less than 67?
### Context:
CREATE TABLE table_name_12 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_12 WHERE time_retired = "+58.182" AND laps < 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 horse was induced in 2011 with a sire of cowboy p-12?
### Context:
CREATE TABLE table_name_77 (name_of_horse VARCHAR, year_inducted VARCHAR, broodmare_sire VARCHAR) [/INST]
### Response:
SELECT name_of_horse FROM table_name_77 WHERE year_inducted = 2011 AND broodmare_sire = "cowboy p-12" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team that played against hawthorn?
### Context:
CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_65 WHERE away_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team playing against collingwood?
### Context:
CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_15 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 was the biggest crowd at punt road oval?
### Context:
CREATE TABLE table_name_65 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_65 WHERE venue = "punt road 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 home team based at windy hill?
### Context:
CREATE TABLE table_name_56 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_56 WHERE venue = "windy hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 low gold total for nations with under 23 silvers, ranked beloe 5, and 6 bronzes?
### Context:
CREATE TABLE table_name_45 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(gold) FROM table_name_45 WHERE silver < 23 AND rank > 5 AND bronze = 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 high silver total for nations with 3 golds and under 5 bronzes?
### Context:
CREATE TABLE table_name_61 (silver INTEGER, gold VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MAX(silver) FROM table_name_61 WHERE gold = 3 AND bronze < 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many silvers for nations with over 3 golds and under 6 bronzes?
### Context:
CREATE TABLE table_name_60 (silver VARCHAR, bronze VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT COUNT(silver) FROM table_name_60 WHERE bronze < 6 AND gold > 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the smallest crowd in games at the corio oval?
### Context:
CREATE TABLE table_name_13 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_13 WHERE venue = "corio 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:
In the match where Melbourne was the away team, how much did they score?
### Context:
CREATE TABLE table_name_52 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_52 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:
Who had the decision when buffalo was the visitor?
### Context:
CREATE TABLE table_name_99 (decision VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT decision FROM table_name_99 WHERE visitor = "buffalo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue for north melbourne
### Context:
CREATE TABLE table_name_85 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_85 WHERE away_team = "north 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 name has a listed of 03/31/1989 in spartanburg county?
### Context:
CREATE TABLE table_name_19 (name VARCHAR, listed VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_19 WHERE listed = "03/31/1989" AND county = "spartanburg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 proposed when the listed date was 12/16/1994 in the County of beaufort?
### Context:
CREATE TABLE table_name_65 (proposed VARCHAR, listed VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT proposed FROM table_name_65 WHERE listed = "12/16/1994" AND county = "beaufort" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name was listed 02/21/1990, and a CERCLIS ID of scd980844005?
### Context:
CREATE TABLE table_name_97 (name VARCHAR, listed VARCHAR, cerclis_id VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_97 WHERE listed = "02/21/1990" AND cerclis_id = "scd980844005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 county has a CERCLIS ID of scd037405362?
### Context:
CREATE TABLE table_name_64 (county VARCHAR, cerclis_id VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_64 WHERE cerclis_id = "scd037405362" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for Charleston County with a CERCLIS ID of scd980711279?
### Context:
CREATE TABLE table_name_44 (name VARCHAR, county VARCHAR, cerclis_id VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_44 WHERE county = "charleston" AND cerclis_id = "scd980711279" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the listed date of 11/21/1989?
### Context:
CREATE TABLE table_name_42 (name VARCHAR, listed VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_42 WHERE listed = "11/21/1989" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category was Gene Barry nominated in?
### Context:
CREATE TABLE table_name_54 (category VARCHAR, result VARCHAR, nominee VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_54 WHERE result = "nominated" AND nominee = "gene barry" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Drama Desk award won by nominee George Hearn?
### Context:
CREATE TABLE table_name_44 (year VARCHAR, nominee VARCHAR, award VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_44 WHERE award = "drama desk award" AND result = "won" AND nominee = "george hearn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for grid 5?
### Context:
CREATE TABLE table_name_8 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_8 WHERE grid = 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:
When was the event that had Liberia as an opponent and resulted in a 1-0 score?
### Context:
CREATE TABLE table_name_75 (date VARCHAR, opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_75 WHERE opponent = "liberia" AND score = "1-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:
When was the 2014 World Cup Qualification in Kampala that had Angola as an opponent
### Context:
CREATE TABLE table_name_60 (date VARCHAR, opponent VARCHAR, competition VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_60 WHERE competition = "2014 world cup qualification" AND location = "kampala" AND opponent = "angola" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Europe/Africa group i's opponent?
### Context:
CREATE TABLE table_name_61 (opponent VARCHAR, zone VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_61 WHERE zone = "europe/africa group i" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 zone was the Semifinal game played against Israel with Anna Smashnova as the opponent?
### Context:
CREATE TABLE table_name_42 (zone VARCHAR, opponent VARCHAR, round VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT zone FROM table_name_42 WHERE round = "semifinal" AND against = "israel" AND opponent = "anna smashnova" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface was played on against Shahar Pe'er?
### Context:
CREATE TABLE table_name_61 (surface VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_61 WHERE opponent = "shahar pe'er" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years for marathon distance and wins of 3
### Context:
CREATE TABLE table_name_15 (years VARCHAR, distance VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_15 WHERE distance = "marathon" AND wins = 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 country for athlete of ziedonis zaļkalns
### Context:
CREATE TABLE table_name_72 (country VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_72 WHERE athlete = "ziedonis zaļkalns" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance which has a result of l 49–21
### Context:
CREATE TABLE table_name_12 (attendance VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_12 WHERE result = "l 49–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:
Tell me the attendance with a result of l 26–3
### Context:
CREATE TABLE table_name_12 (attendance VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_12 WHERE result = "l 26–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:
I want to know the lowest week with a date of december 19, 2004
### Context:
CREATE TABLE table_name_26 (week INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_26 WHERE date = "december 19, 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 attendance of the location where New Orleans's team plays?
### Context:
CREATE TABLE table_name_81 (location_attendance VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_81 WHERE team = "new orleans" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has the high points of Raymond Felton (26)?
### Context:
CREATE TABLE table_name_30 (team VARCHAR, high_points VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_30 WHERE high_points = "raymond felton (26)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the time of the driver on grid 7?
### Context:
CREATE TABLE table_name_48 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_48 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 Constructor has grid 2?
### Context:
CREATE TABLE table_name_75 (constructor VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_75 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:
What is the highest grid that has 55 laps?
### Context:
CREATE TABLE table_name_1 (grid INTEGER, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_1 WHERE laps = 55 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was Richmond's away team opponent?
### Context:
CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_53 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 was the away score at VFL Park?
### Context:
CREATE TABLE table_name_78 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_78 WHERE venue = "vfl 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:
Tell me the home team score for richmond home team
### Context:
CREATE TABLE table_name_87 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_87 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:
Tell me the venue for 8 june 1931 for st kilda away team
### Context:
CREATE TABLE table_name_6 (venue VARCHAR, date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_6 WHERE date = "8 june 1931" AND 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:
When fitzroy was the home team, how much did the away team score?
### Context:
CREATE TABLE table_name_76 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_76 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 essendon was the home team, how much did they score?
### Context:
CREATE TABLE table_name_56 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_56 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 is shintaro ishiwatari's time?
### Context:
CREATE TABLE table_name_6 (time VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_6 WHERE opponent = "shintaro ishiwatari" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rounds have an Opponent of sakae kasuya?
### Context:
CREATE TABLE table_name_90 (round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_90 WHERE opponent = "sakae kasuya" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time has a Method of decision(majority), and an Opponent of keisuke yamada?
### Context:
CREATE TABLE table_name_55 (time VARCHAR, method VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_55 WHERE method = "decision(majority)" AND opponent = "keisuke yamada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 method has an Event of shooto, a Round of 2, and an Opponent of issei tamura?
### Context:
CREATE TABLE table_name_33 (method VARCHAR, opponent VARCHAR, event VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_33 WHERE event = "shooto" AND round = 2 AND opponent = "issei tamura" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team that played at punt road oval?
### Context:
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_24 WHERE venue = "punt road 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 home team score that played at windy hill?
### Context:
CREATE TABLE table_name_81 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_81 WHERE venue = "windy hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 big was the crowd at the game the away team geelong played at?
### Context:
CREATE TABLE table_name_31 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_31 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:
Which constructor has a race called I News of the World Trophy?
### Context:
CREATE TABLE table_name_91 (constructor VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_91 WHERE race_name = "i news of the world trophy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Constructor has the goodwood circuit?
### Context:
CREATE TABLE table_name_53 (constructor VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_53 WHERE circuit = "goodwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won the VII Rand Grand Prix?
### Context:
CREATE TABLE table_name_26 (winning_driver VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_26 WHERE race_name = "vii rand 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:
What is the name of the race that has the pergusa Circuit?
### Context:
CREATE TABLE table_name_50 (race_name VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT race_name FROM table_name_50 WHERE circuit = "pergusa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scoreof the away team Collingwood?
### Context:
CREATE TABLE table_name_83 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_83 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:
Jean Alesi, drives the Acer 01A engine for which team?
### Context:
CREATE TABLE table_name_68 (team VARCHAR, driver VARCHAR, engine_† VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_68 WHERE driver = "jean alesi" AND engine_† = "acer 01a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Alex Yoong's car?
### Context:
CREATE TABLE table_name_84 (constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_84 WHERE driver = "alex yoong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 jim colbert's highest rank?
### Context:
CREATE TABLE table_name_60 (rank INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_60 WHERE player = "jim colbert" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hale irwin's average rank?
### Context:
CREATE TABLE table_name_7 (rank INTEGER, player VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_7 WHERE player = "hale irwin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of averages with a long value of 32?
### Context:
CREATE TABLE table_name_70 (avg INTEGER, long VARCHAR) [/INST]
### Response:
SELECT SUM(avg) FROM table_name_70 WHERE long = 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:
Which Track time has a Disc larger than 2, a Track smaller than 22, and an English title of younger girl?
### Context:
CREATE TABLE table_name_80 (track VARCHAR, english_title VARCHAR, disc VARCHAR) [/INST]
### Response:
SELECT track AS time FROM table_name_80 WHERE disc > 2 AND track < 22 AND english_title = "younger girl" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Japanese title has a Disc smaller than 12, and an Artist of kōzō murashita?
### Context:
CREATE TABLE table_name_44 (japanese_title VARCHAR, disc VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT japanese_title FROM table_name_44 WHERE disc < 12 AND artist = "kōzō murashita" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 track has a Japanese title of メロディー?
### Context:
CREATE TABLE table_name_12 (track INTEGER, japanese_title VARCHAR) [/INST]
### Response:
SELECT MAX(track) FROM table_name_12 WHERE japanese_title = "メロディー" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Grid has a Time/Retired of clutch?
### Context:
CREATE TABLE table_name_2 (grid INTEGER, time_retired VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_2 WHERE time_retired = "clutch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 with more Laps than 34, a Grid smaller than 15, and Driver Damon Hill?
### Context:
CREATE TABLE table_name_88 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_88 WHERE laps > 34 AND grid < 15 AND driver = "damon hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Did Driver David Coulthard have on a Grid smaller than 11?
### Context:
CREATE TABLE table_name_89 (laps VARCHAR, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_89 WHERE grid < 11 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:
What type of race took place on the course Orta San Giulio to Milan?
### Context:
CREATE TABLE table_name_14 (type VARCHAR, course VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_14 WHERE course = "orta san giulio to milan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did the course Vasto to Campitello Matese took place?
### Context:
CREATE TABLE table_name_25 (date VARCHAR, course VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_25 WHERE course = "vasto to campitello matese" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won the course Brescia?
### Context:
CREATE TABLE table_name_49 (winner VARCHAR, course VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_49 WHERE course = "brescia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 league for 1996
### Context:
CREATE TABLE table_name_90 (league VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_90 WHERE year = "1996" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 league for 1994
### Context:
CREATE TABLE table_name_16 (league VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_16 WHERE year = "1994" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the league with a regular 1st season
### Context:
CREATE TABLE table_name_2 (league VARCHAR, reg_season VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_2 WHERE reg_season = "1st" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What LNER Class has a Class of 6db?
### Context:
CREATE TABLE table_name_31 (LNER VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT LNER AS class FROM table_name_31 WHERE class = "6db" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 LNER Class has a Class of 3?
### Context:
CREATE TABLE table_name_86 (LNER VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT LNER AS class FROM table_name_86 WHERE class = "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:
Which mean pick number had a Reg GP of 0, and a Pl GP that was bigger than 0?
### Context:
CREATE TABLE table_name_95 (pick__number INTEGER, reg_gp VARCHAR, pl_gp VARCHAR) [/INST]
### Response:
SELECT AVG(pick__number) FROM table_name_95 WHERE reg_gp = 0 AND pl_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:
What is the highest Pick number that had a road number that was less than 6, featured Bob Dailey as a player, and which had a Reg GP bigger than 257?
### Context:
CREATE TABLE table_name_43 (pick__number INTEGER, reg_gp VARCHAR, rd__number VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT MAX(pick__number) FROM table_name_43 WHERE rd__number < 6 AND player = "bob dailey" AND reg_gp > 257 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of Pl GP when the Reg GP was 0, the Rd number was bigger than 8, and the pick number was bigger than 146?
### Context:
CREATE TABLE table_name_90 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR, rd__number VARCHAR) [/INST]
### Response:
SELECT COUNT(pl_gp) FROM table_name_90 WHERE reg_gp = 0 AND rd__number > 8 AND pick__number > 146 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 birth state of Charles Cotesworth Pinckney who was elected in 1808?
### Context:
CREATE TABLE table_name_74 (birth_state VARCHAR, name VARCHAR, election_year VARCHAR) [/INST]
### Response:
SELECT birth_state FROM table_name_74 WHERE name = "charles cotesworth pinckney" AND election_year = 1808 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 postseason titles has Nebraska received?
### Context:
CREATE TABLE table_name_20 (postseason VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT postseason FROM table_name_20 WHERE team = "nebraska" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lost On August 20
### Context:
CREATE TABLE table_name_3 (loss VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_3 WHERE date = "august 20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NUMBER OF Attendance WITH A RECORD 94–36
### Context:
CREATE TABLE table_name_70 (attendance INTEGER, save VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_70 WHERE save = "–" AND record = "94–36" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance that has a Loss of paniagua (3–3)?
### Context:
CREATE TABLE table_name_99 (attendance INTEGER, loss VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_99 WHERE loss = "paniagua (3–3)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points did the away team score at Arden Street Oval?
### Context:
CREATE TABLE table_name_59 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_59 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:
In what venue does Footscray play?
### Context:
CREATE TABLE table_name_16 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_16 WHERE home_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:
What position did Co-driver Jackie Oliver finish in the 24 hours of Le Mans?
### Context:
CREATE TABLE table_name_39 (pos VARCHAR, race VARCHAR, co_driver VARCHAR) [/INST]
### Response:
SELECT pos FROM table_name_39 WHERE race = "24 hours of le mans" AND co_driver = "jackie 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:
Who was the co-driver in 1970 for the race of Targa Florio?
### Context:
CREATE TABLE table_name_46 (co_driver VARCHAR, year VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT co_driver FROM table_name_46 WHERE year = 1970 AND race = "targa florio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 vehicle has a Grid of 13?
### Context:
CREATE TABLE table_name_5 (constructor VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_5 WHERE grid = 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the Time/Retired of 80 laps with a Grid larger than 2?
### Context:
CREATE TABLE table_name_51 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_51 WHERE laps = 80 AND 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:
Tell me the date for detroit and game more than 3
### Context:
CREATE TABLE table_name_53 (date VARCHAR, team VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_53 WHERE team = "detroit" AND game > 3 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.