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:
Which races have #2 podiums?
### Context:
CREATE TABLE table_name_6 (races VARCHAR, podiums VARCHAR) [/INST]
### Response:
SELECT races FROM table_name_6 WHERE podiums = "2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the 2009 final placing?
### Context:
CREATE TABLE table_name_17 (final_placing VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT final_placing FROM table_name_17 WHERE season = 2009 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the points with 7 races?
### Context:
CREATE TABLE table_name_34 (points VARCHAR, races VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_34 WHERE races = "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:
What venue had south melbourne as the home team?
### Context:
CREATE TABLE table_name_90 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_90 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What venue had collingwood as the away team?
### Context:
CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_14 WHERE away_team = "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 home team score when south melbourne was the home team?
### Context:
CREATE TABLE table_name_49 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_49 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day was south melbourne the away squad?
### Context:
CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_70 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:
What position did he finish after 1998 and a note time of 2:31:40?
### Context:
CREATE TABLE table_name_71 (position VARCHAR, year VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_71 WHERE year > 1998 AND notes = "2:31:40" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What venue featured a notes of 2:38:44?
### Context:
CREATE TABLE table_name_63 (venue VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_63 WHERE notes = "2:38:44" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did they play against in a week after 6 and the result was l 30–24?
### Context:
CREATE TABLE table_name_32 (opponent VARCHAR, week VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_32 WHERE week > 6 AND result = "l 30–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 opponent has a Result of w 31–0?
### Context:
CREATE TABLE table_name_25 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_25 WHERE result = "w 31–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:
During which round was the final cornerback drafted for the New England Patriots in 2005?
### Context:
CREATE TABLE table_name_7 (round INTEGER, position VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_7 WHERE position = "cornerback" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dance was Leeza Gibbons the worst dancer for, receiving a score lower than 15?
### Context:
CREATE TABLE table_name_9 (best_score INTEGER, worst_dancer VARCHAR, worst_score VARCHAR) [/INST]
### Response:
SELECT MIN(best_score) FROM table_name_9 WHERE worst_dancer = "leeza gibbons" AND worst_score < 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 worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30?
### Context:
CREATE TABLE table_name_23 (worst_score INTEGER, best_dancer VARCHAR, best_score VARCHAR) [/INST]
### Response:
SELECT SUM(worst_score) FROM table_name_23 WHERE best_dancer = "apolo anton ohno" AND best_score > 30 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the biggest crowd when carlton is the away squad?
### Context:
CREATE TABLE table_name_48 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_48 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 is the sum of crowd(s) when richmond is the away squad?
### Context:
CREATE TABLE table_name_44 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_44 WHERE away_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the home team's score in the game played at glenferrie oval?
### Context:
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_40 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:
What was the result of the event against Nate Mohr?
### Context:
CREATE TABLE table_name_57 (res VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT res FROM table_name_57 WHERE opponent = "nate mohr" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 VFL played Junction Oval what was the home team score?
### Context:
CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_45 WHERE venue = "junction oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was away team Geelong's crowd numbers?
### Context:
CREATE TABLE table_name_6 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_6 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 is the date they played against fitzroy?
### Context:
CREATE TABLE table_name_10 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_10 WHERE away_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How large was the crowd when they played at princes park?
### Context:
CREATE TABLE table_name_56 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_56 WHERE venue = "princes 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:
Who is the away team at junction oval?
### Context:
CREATE TABLE table_name_74 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_74 WHERE venue = "junction oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the away team's score at princes park?
### Context:
CREATE TABLE table_name_49 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_49 WHERE venue = "princes 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 highest percentage of internet users a nation with a 1622% growth in 2000-2008 had?
### Context:
CREATE TABLE table_name_51 (_percentage_internet_users INTEGER, _percentage_growth__2000_2008_ VARCHAR) [/INST]
### Response:
SELECT MAX(_percentage_internet_users) FROM table_name_51 WHERE _percentage_growth__2000_2008_ = 1622 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when Footscray was the away team?
### Context:
CREATE TABLE table_name_50 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_50 WHERE away_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day did the team play the buffalo bills?
### Context:
CREATE TABLE table_name_28 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_28 WHERE opponent = "buffalo bills" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 BB Pop for the song with RIAA of G that was in a year earlier than 1961?
### Context:
CREATE TABLE table_name_8 (bb_pop VARCHAR, riaa VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT bb_pop FROM table_name_8 WHERE riaa = "g" AND year < 1961 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player has an Other of 3 (15)?
### Context:
CREATE TABLE table_name_7 (name VARCHAR, other VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_7 WHERE other = "3 (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 Name has a Time of 01:17:01?
### Context:
CREATE TABLE table_name_14 (name VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_14 WHERE time = "01:17:01" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Magnitude on the Date May 28, 2004?
### Context:
CREATE TABLE table_name_49 (magnitude VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT magnitude FROM table_name_49 WHERE date = "may 28, 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 Name has a Time of 01:56:52?
### Context:
CREATE TABLE table_name_46 (name VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_46 WHERE time = "01:56: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 number of Fatalities did the Epicenter Māzandarān have?
### Context:
CREATE TABLE table_name_79 (fatalities VARCHAR, epicenter VARCHAR) [/INST]
### Response:
SELECT fatalities FROM table_name_79 WHERE epicenter = "māzandarān" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number of Fatalties is associated with the Time of 12:38:46?
### Context:
CREATE TABLE table_name_78 (fatalities VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT fatalities FROM table_name_78 WHERE time = "12:38: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:
What is the Time when the Epicenter was Bam?
### Context:
CREATE TABLE table_name_94 (time VARCHAR, epicenter VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_94 WHERE epicenter = "bam" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did Clinton appoint as a Chief Judge?
### Context:
CREATE TABLE table_name_2 (chief_judge VARCHAR, appointed_by VARCHAR) [/INST]
### Response:
SELECT chief_judge FROM table_name_2 WHERE appointed_by = "clinton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for a Carlton away game?
### Context:
CREATE TABLE table_name_14 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_14 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 is the result when the time is 1:13?
### Context:
CREATE TABLE table_name_11 (res VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT res FROM table_name_11 WHERE time = "1: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:
Who was the opponent when the time was 1:47?
### Context:
CREATE TABLE table_name_45 (opponent VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_45 WHERE time = "1:47" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What venue did South Melbourne play as the away team?
### Context:
CREATE TABLE table_name_61 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_61 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the away team's score in the match at Victoria Park?
### Context:
CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_77 WHERE venue = "victoria 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:
Which position has a Round of 7, and a College of kansas state?
### Context:
CREATE TABLE table_name_34 (position VARCHAR, round VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_34 WHERE round = 7 AND college = "kansas 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 rounds have an Overall larger than 17, and a Position of quarterback?
### Context:
CREATE TABLE table_name_66 (round VARCHAR, overall VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_66 WHERE overall > 17 AND position = "quarterback" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average overall has a Round of 1, and a Position of center?
### Context:
CREATE TABLE table_name_80 (overall INTEGER, round VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT AVG(overall) FROM table_name_80 WHERE round = 1 AND position = "center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did North Melbourne play as the home team?
### Context:
CREATE TABLE table_name_37 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_37 WHERE home_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 was the attendance when VFL played MCG?
### Context:
CREATE TABLE table_name_11 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_11 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:
What was the score of the away team when they played at Windy Hill?
### Context:
CREATE TABLE table_name_98 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_98 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 large was the crowd when the away team was melbourne?
### Context:
CREATE TABLE table_name_77 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_77 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:
How many people watched a Glenferrie Oval?
### Context:
CREATE TABLE table_name_58 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_58 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:
How faced Geelong at home?
### Context:
CREATE TABLE table_name_52 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_52 WHERE home_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:
How many people watch Essendon as an away team?
### Context:
CREATE TABLE table_name_77 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_77 WHERE away_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:
Where did South Melbourne go to play a team at home?
### Context:
CREATE TABLE table_name_98 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_98 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is essendon's away team score?
### Context:
CREATE TABLE table_name_1 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_1 WHERE away_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 the date with geelong as Away team?
### Context:
CREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_63 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 is the highest crowd at arden street oval?
### Context:
CREATE TABLE table_name_7 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_7 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 is geelong's aberage crowd as Away Team?
### Context:
CREATE TABLE table_name_13 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_13 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 was the date of the game when North Melbourne was the away team?
### Context:
CREATE TABLE table_name_10 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_10 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 is the team with grid 9?
### Context:
CREATE TABLE table_name_10 (team VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_10 WHERE grid = 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team features garth tander?
### Context:
CREATE TABLE table_name_14 (team VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_14 WHERE name = "garth tander" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 stages are in a distance of 2,192 km?
### Context:
CREATE TABLE table_name_11 (stages VARCHAR, distance VARCHAR) [/INST]
### Response:
SELECT stages FROM table_name_11 WHERE distance = "2,192 km" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 long was the 16 staged event in 1997?
### Context:
CREATE TABLE table_name_38 (distance VARCHAR, stages VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT distance FROM table_name_38 WHERE stages = "16" AND year = "1997" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the winning time in 1984?
### Context:
CREATE TABLE table_name_99 (time VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_99 WHERE year = "1984" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 17 staged event in 1987?
### Context:
CREATE TABLE table_name_83 (winner VARCHAR, stages VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_83 WHERE stages = "17" AND year = "1987" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which event happened in 1988?
### Context:
CREATE TABLE table_name_91 (name VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_91 WHERE year = "1988" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did Rick Mears win, after starting in Pole Position?
### Context:
CREATE TABLE table_name_70 (city_location VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT city_location FROM table_name_70 WHERE pole_position = "rick mears" AND winning_driver = "rick mears" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where is the budweiser/g. i. joe's 200?
### Context:
CREATE TABLE table_name_48 (city_location VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT city_location FROM table_name_48 WHERE race_name = "budweiser/g. i. joe's 200" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where is Emerson Fittipaldi starting in Pole position?
### Context:
CREATE TABLE table_name_60 (city_location VARCHAR, pole_position VARCHAR) [/INST]
### Response:
SELECT city_location FROM table_name_60 WHERE pole_position = "emerson fittipaldi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Circuit is on July 24?
### Context:
CREATE TABLE table_name_56 (circuit VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_56 WHERE date = "july 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 date did Delage win?
### Context:
CREATE TABLE table_name_34 (date VARCHAR, winning_constructor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_34 WHERE winning_constructor = "delage" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit did Luigi Villoresi win the Lausanne Grand Prix?
### Context:
CREATE TABLE table_name_58 (circuit VARCHAR, winning_driver VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_58 WHERE winning_driver = "luigi villoresi" AND name = "lausanne 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:
Which Grand Prix did Nello Pagani win?
### Context:
CREATE TABLE table_name_2 (name VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_2 WHERE winning_driver = "nello pagani" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team score when playing Fitzroy as the away team?
### Context:
CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_8 WHERE away_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did the home team score when playing at Western Oval?
### Context:
CREATE TABLE table_name_41 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_41 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 away team played Collingwood?
### Context:
CREATE TABLE table_name_20 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_20 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:
On what date did Collingwood play at home?
### Context:
CREATE TABLE table_name_20 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_20 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:
Name the average round where Dave Stachelski was picked smaller than 187.
### Context:
CREATE TABLE table_name_28 (round INTEGER, overall VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_28 WHERE overall < 187 AND player = "dave stachelski" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which position did David Nugent play with an overall small than 187?
### Context:
CREATE TABLE table_name_79 (position VARCHAR, overall VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_79 WHERE overall > 187 AND player = "david nugent" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college that has an overall larger than 187 and a round smaller than 7 for the defensive end position.
### Context:
CREATE TABLE table_name_46 (college VARCHAR, position VARCHAR, overall VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_46 WHERE overall > 187 AND round < 7 AND position = "defensive end" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player has less than 201 games, is ranked 2, and played between 2007-2012?
### Context:
CREATE TABLE table_name_74 (player VARCHAR, years VARCHAR, games VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_74 WHERE games < 201 AND rank = 2 AND years = "2007-2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many average games did Nick Rimando have?
### Context:
CREATE TABLE table_name_99 (games INTEGER, player VARCHAR) [/INST]
### Response:
SELECT AVG(games) FROM table_name_99 WHERE player = "nick rimando" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the party of the politician who left office on January 12, 1857
### Context:
CREATE TABLE table_name_47 (party VARCHAR, left_office VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_47 WHERE left_office = "january 12, 1857" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the party of the governor under Hugh Thomas Miller.
### Context:
CREATE TABLE table_name_4 (governor VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT governor FROM table_name_4 WHERE name = "hugh thomas miller" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 left office on January 9, 1893
### Context:
CREATE TABLE table_name_32 (name VARCHAR, left_office VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_32 WHERE left_office = "january 9, 1893" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 took office under the government of Matthew E. Welsh?
### Context:
CREATE TABLE table_name_8 (took_office VARCHAR, governor VARCHAR) [/INST]
### Response:
SELECT took_office FROM table_name_8 WHERE governor = "matthew e. welsh" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 governor took office on January 13, 1877
### Context:
CREATE TABLE table_name_4 (governor VARCHAR, took_office VARCHAR) [/INST]
### Response:
SELECT governor FROM table_name_4 WHERE took_office = "january 13, 1877" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the Geelong away team?
### Context:
CREATE TABLE table_name_18 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_18 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 is the score of the team that plays in lake oval?
### Context:
CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_85 WHERE venue = "lake 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 the date of the game of the team that plays in princes park?
### Context:
CREATE TABLE table_name_25 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_25 WHERE venue = "princes 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 of carlton?
### Context:
CREATE TABLE table_name_60 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_60 WHERE home_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people watched the away team of Geelong?
### Context:
CREATE TABLE table_name_63 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_63 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 home team has the Brunswick Street Oval venue?
### Context:
CREATE TABLE table_name_99 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_99 WHERE venue = "brunswick 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:
Which home team has the Brunswick Street Oval venue?
### Context:
CREATE TABLE table_name_8 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_8 WHERE venue = "brunswick 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:
Which is the lowest crop total with New South Wales at 42 kilotonnes and Victorian at less than 68 kilotonnes?
### Context:
CREATE TABLE table_name_26 (total INTEGER, new_south_wales VARCHAR, victoria VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_26 WHERE new_south_wales = 42 AND victoria < 68 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a qual 1 best of 1:01.704?
### Context:
CREATE TABLE table_name_43 (qual_1 VARCHAR, best VARCHAR) [/INST]
### Response:
SELECT qual_1 FROM table_name_43 WHERE best = "1:01.704" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a qual 1 of 1:02.755?
### Context:
CREATE TABLE table_name_78 (team VARCHAR, qual_1 VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_78 WHERE qual_1 = "1:02.755" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 qual 1 for rusport and had a best of 58.665?
### Context:
CREATE TABLE table_name_87 (qual_1 VARCHAR, team VARCHAR, best VARCHAR) [/INST]
### Response:
SELECT qual_1 FROM table_name_87 WHERE team = "rusport" AND best = "58.665" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a qual 1 of 59.895?
### Context:
CREATE TABLE table_name_72 (team VARCHAR, qual_1 VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_72 WHERE qual_1 = "59.895" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a qual 1 of 1:01.461?
### Context:
CREATE TABLE table_name_98 (name VARCHAR, qual_1 VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_98 WHERE qual_1 = "1:01.461" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 LFN support with 32-bit architecture on Windows Home Server?
### Context:
CREATE TABLE table_name_74 (lfn_support VARCHAR, architecture VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT lfn_support FROM table_name_74 WHERE architecture = "32-bit" AND name = "windows home server" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 LFN support on Windows NT 3.1?
### Context:
CREATE TABLE table_name_68 (lfn_support VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT lfn_support FROM table_name_68 WHERE name = "windows nt 3.1" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.