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 of the private colleges is the oldest, and whose nickname is the Mountaineers?
### Context:
CREATE TABLE table_name_83 (founded INTEGER, type VARCHAR, nickname VARCHAR) [/INST]
### Response:
SELECT MIN(founded) FROM table_name_83 WHERE type = "private" AND nickname = "mountaineers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college's enrollment is less than 1,000?
### Context:
CREATE TABLE table_name_85 (institution VARCHAR, enrollment INTEGER) [/INST]
### Response:
SELECT institution FROM table_name_85 WHERE enrollment < 1 OFFSET 000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does Essendon play as the away team?
### Context:
CREATE TABLE table_name_19 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_19 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 team with a Game smaller than 18 has the lowest Goal Gain?
### Context:
CREATE TABLE table_name_31 (goal_gain INTEGER, game INTEGER) [/INST]
### Response:
SELECT MIN(goal_gain) FROM table_name_31 WHERE game < 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the nationality of every player that attended Baylor?
### Context:
CREATE TABLE table_name_55 (nationality VARCHAR, school_country VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_55 WHERE school_country = "baylor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team was the away team when the game was at punt road oval?
### Context:
CREATE TABLE table_name_6 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_6 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 was the score for the away team when the home team was Fitzroy?
### Context:
CREATE TABLE table_name_38 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_38 WHERE home_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the game when the away team was south melbourne?
### Context:
CREATE TABLE table_name_77 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_77 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 the percentage of Glendale when Pasadena is 14%?
### Context:
CREATE TABLE table_name_87 (glendale VARCHAR, pasadena VARCHAR) [/INST]
### Response:
SELECT glendale FROM table_name_87 WHERE pasadena = "14%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the percentage of Tujunja when Pasadena is 33%?
### Context:
CREATE TABLE table_name_37 (tujunga VARCHAR, pasadena VARCHAR) [/INST]
### Response:
SELECT tujunga FROM table_name_37 WHERE pasadena = "33%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage of Tukunga when La Crescenta-Montrose is 28%?
### Context:
CREATE TABLE table_name_33 (tujunga VARCHAR, la_crescenta__montrose VARCHAR) [/INST]
### Response:
SELECT tujunga FROM table_name_33 WHERE la_crescenta__montrose = "28%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the figure for Pasadena when Tujunga is 36?
### Context:
CREATE TABLE table_name_11 (pasadena VARCHAR, tujunga VARCHAR) [/INST]
### Response:
SELECT pasadena FROM table_name_11 WHERE tujunga = "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:
What is the percentage of Glendale when La Canada Flintridge is 5%?
### Context:
CREATE TABLE table_name_20 (glendale VARCHAR, la_cañada_flintridge VARCHAR) [/INST]
### Response:
SELECT glendale FROM table_name_20 WHERE la_cañada_flintridge = "5%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the figure for La Crescenta-Montrose when Gelndale is $57,112?
### Context:
CREATE TABLE table_name_64 (la_crescenta__montrose VARCHAR, glendale VARCHAR) [/INST]
### Response:
SELECT la_crescenta__montrose FROM table_name_64 WHERE glendale = "$57,112" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 conversions had 0 pens and 0 tries?
### Context:
CREATE TABLE table_name_39 (conv VARCHAR, pens VARCHAR, tries VARCHAR) [/INST]
### Response:
SELECT conv FROM table_name_39 WHERE pens = "0" AND tries = "0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many conversions did Severo Koroduadua Waqanibau have when he has 0 pens?
### Context:
CREATE TABLE table_name_49 (conv VARCHAR, pens VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT conv FROM table_name_49 WHERE pens = "0" AND player = "severo koroduadua waqanibau" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at mcg?
### Context:
CREATE TABLE table_name_54 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_54 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 day is the venue the western oval?
### Context:
CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_33 WHERE venue = "western oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Bullet diameter has a Name of 11.4mm werndl m/73?
### Context:
CREATE TABLE table_name_22 (bullet_diameter VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT bullet_diameter FROM table_name_22 WHERE name = "11.4mm werndl m/73" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Case length has a Rim diameter of 13.20 (.518)?
### Context:
CREATE TABLE table_name_90 (case_length VARCHAR, rim_diameter VARCHAR) [/INST]
### Response:
SELECT case_length FROM table_name_90 WHERE rim_diameter = "13.20 (.518)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Bullet diameter has a Neck diameter of 12.17 (.479)?
### Context:
CREATE TABLE table_name_32 (bullet_diameter VARCHAR, neck_diameter VARCHAR) [/INST]
### Response:
SELECT bullet_diameter FROM table_name_32 WHERE neck_diameter = "12.17 (.479)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rim diameter has a Neck diameter of 11.84 (.466)?
### Context:
CREATE TABLE table_name_27 (rim_diameter VARCHAR, neck_diameter VARCHAR) [/INST]
### Response:
SELECT rim_diameter FROM table_name_27 WHERE neck_diameter = "11.84 (.466)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Case type has a Cartridge length of 64.77 (2.550)?
### Context:
CREATE TABLE table_name_57 (case_type VARCHAR, cartridge_length VARCHAR) [/INST]
### Response:
SELECT case_type FROM table_name_57 WHERE cartridge_length = "64.77 (2.550)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Case type has a Base diameter of 13.03 (.513), and a Case length of 63.5 (2.5)?
### Context:
CREATE TABLE table_name_29 (case_type VARCHAR, base_diameter VARCHAR, case_length VARCHAR) [/INST]
### Response:
SELECT case_type FROM table_name_29 WHERE base_diameter = "13.03 (.513)" AND case_length = "63.5 (2.5)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day had 37,500 attending?
### Context:
CREATE TABLE table_name_56 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_56 WHERE attendance = "37,500" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 they play at candlestick park?
### Context:
CREATE TABLE table_name_77 (date VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_77 WHERE game_site = "candlestick 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 is the crowd size of the game when Fitzroy is the away team?
### Context:
CREATE TABLE table_name_96 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_96 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 is the venue when Geelong is the away team?
### Context:
CREATE TABLE table_name_27 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_27 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:
How many Dwellings does Beverly Heights have that have a change percent larger than -5.2?
### Context:
CREATE TABLE table_name_37 (dwellings INTEGER, neighbourhood VARCHAR, change___percentage_ VARCHAR) [/INST]
### Response:
SELECT SUM(dwellings) FROM table_name_37 WHERE neighbourhood = "beverly heights" AND change___percentage_ > -5.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 density of an area that is 1.38km and has a population more than 12924?
### Context:
CREATE TABLE table_name_95 (density__people_km_2__ VARCHAR, area__km_2__ VARCHAR, population__2012_ VARCHAR) [/INST]
### Response:
SELECT COUNT(density__people_km_2__) FROM table_name_95 WHERE area__km_2__ > 1.38 AND population__2012_ > 12924 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average week number of all the matches where less than 22,604 people attended?
### Context:
CREATE TABLE table_name_75 (week INTEGER, attendance INTEGER) [/INST]
### Response:
SELECT AVG(week) FROM table_name_75 WHERE attendance < 22 OFFSET 604 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest crowd size at a match against the Chicago Cardinals after Week 10 of the season?
### Context:
CREATE TABLE table_name_20 (attendance INTEGER, opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_20 WHERE opponent = "chicago cardinals" AND week > 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average crowd size when North Melbourne is the away team?
### Context:
CREATE TABLE table_name_33 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_33 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 average crowd to watch Hawthorn as the away team?
### Context:
CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_29 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:
What away team played Footscray?
### Context:
CREATE TABLE table_name_92 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_92 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 was the size of the largest crowd that Essendon played in front of as the away team?
### Context:
CREATE TABLE table_name_41 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_41 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 was the average crowd at Western Oval?
### Context:
CREATE TABLE table_name_9 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_9 WHERE venue = "western oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of all the crowds that watched North Melbourne at home?
### Context:
CREATE TABLE table_name_74 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_74 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 crowd size at Victoria Park?
### Context:
CREATE TABLE table_name_18 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_18 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:
What was the winning score when there were 9 strokes advantage?
### Context:
CREATE TABLE table_name_82 (winning_score VARCHAR, margin_of_victory VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_82 WHERE margin_of_victory = "9 strokes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin of victory on Apr 23, 1967?
### Context:
CREATE TABLE table_name_56 (margin_of_victory VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_56 WHERE date = "apr 23, 1967" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What make of car did Brian Vickers drive?
### Context:
CREATE TABLE table_name_32 (make VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT make FROM table_name_32 WHERE driver = "brian vickers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average car number of all the drivers with 109 points?
### Context:
CREATE TABLE table_name_12 (car__number INTEGER, points VARCHAR) [/INST]
### Response:
SELECT AVG(car__number) FROM table_name_12 WHERE points = "109" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average car number of all the drivers who have won $111,683?
### Context:
CREATE TABLE table_name_21 (car__number INTEGER, winnings VARCHAR) [/INST]
### Response:
SELECT AVG(car__number) FROM table_name_21 WHERE winnings = "$111,683" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were in the crowd when Essendon was the home team?
### Context:
CREATE TABLE table_name_78 (crowd VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_78 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:
Which home team competed against the away team Geelong?
### Context:
CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_16 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:
How many people were present in a total of every crowd at the MCG venue?
### Context:
CREATE TABLE table_name_32 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_32 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 for the home team of Essendon?
### Context:
CREATE TABLE table_name_71 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_71 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 the sum of all crowds present at the Glenferrie Oval venue?
### Context:
CREATE TABLE table_name_35 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_35 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 party was achille variati afilliated with?
### Context:
CREATE TABLE table_name_28 (party VARCHAR, mayor VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_28 WHERE mayor = "achille variati" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 election earlier than 2012 how many Inhabitants had a Party of five star movement?
### Context:
CREATE TABLE table_name_57 (inhabitants INTEGER, party VARCHAR, election VARCHAR) [/INST]
### Response:
SELECT SUM(inhabitants) FROM table_name_57 WHERE party = "five star movement" AND election < 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 Inhabitants were in the democratic party for an election before 2009 for Mayor of stefano cimatti?
### Context:
CREATE TABLE table_name_3 (inhabitants VARCHAR, election VARCHAR, party VARCHAR, mayor VARCHAR) [/INST]
### Response:
SELECT COUNT(inhabitants) FROM table_name_3 WHERE party = "democratic party" AND mayor = "stefano cimatti" AND election < 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:
At 96.76mph speed, what is the Time?
### Context:
CREATE TABLE table_name_76 (time VARCHAR, speed VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_76 WHERE speed = "96.76mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rider has a 1:06.02.0 Time?
### Context:
CREATE TABLE table_name_92 (rider VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_92 WHERE time = "1:06.02.0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Ranks have ray pickrell as a Rider?
### Context:
CREATE TABLE table_name_8 (rank VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_8 WHERE rider = "ray pickrell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest crowd when the away team is Hawthorn?
### Context:
CREATE TABLE table_name_49 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_49 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:
What date was the game when the away team was carlton?
### Context:
CREATE TABLE table_name_45 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_45 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 score of the away team when the crowd was larger than 8,000?
### Context:
CREATE TABLE table_name_83 (away_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT away_team AS score FROM table_name_83 WHERE crowd > 8 OFFSET 000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the game was at corio oval?
### Context:
CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_53 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:
What is the location in 2007?
### Context:
CREATE TABLE table_name_61 (location VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_61 WHERE year = 2007 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a theme of fate or fortune?
### Context:
CREATE TABLE table_name_21 (date VARCHAR, theme VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_21 WHERE theme = "fate or fortune" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the earliest year it was located in gelredome, arnhem, and a Anthem of technoboy - next dimensional world?
### Context:
CREATE TABLE table_name_74 (year INTEGER, location VARCHAR, anthem VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_74 WHERE location = "gelredome, arnhem" AND anthem = "technoboy - next dimensional world" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Sweet Sixteen team is in the Colonial conference?
### Context:
CREATE TABLE table_name_95 (sweet_sixteen VARCHAR, conference VARCHAR) [/INST]
### Response:
SELECT sweet_sixteen FROM table_name_95 WHERE conference = "colonial" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is associated with the Spunk label?
### Context:
CREATE TABLE table_name_76 (date VARCHAR, label VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_76 WHERE label = "spunk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What label has a catalog of chem036cd?
### Context:
CREATE TABLE table_name_2 (label VARCHAR, catalog VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_2 WHERE catalog = "chem036cd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What label is associated with the United Kingdom and the chem036 catalog?
### Context:
CREATE TABLE table_name_86 (label VARCHAR, region VARCHAR, catalog VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_86 WHERE region = "united kingdom" AND catalog = "chem036" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed crowd when essendon is the away squad?
### Context:
CREATE TABLE table_name_68 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_68 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 venue featured a crowd of over 30,000?
### Context:
CREATE TABLE table_name_98 (venue VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT venue FROM table_name_98 WHERE crowd > 30 OFFSET 000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed crowd at junction oval?
### Context:
CREATE TABLE table_name_28 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_28 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 date was the 1500 m freestyle competition?
### Context:
CREATE TABLE table_name_97 (date VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_97 WHERE event = "1500 m freestyle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the 2008 championships with a time of 7:56.90 held?
### Context:
CREATE TABLE table_name_3 (location VARCHAR, meet VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_3 WHERE meet = "2008 championships" AND time = "7:56.90" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the home team score for Footscray?
### Context:
CREATE TABLE table_name_22 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_22 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 home team played at western oval?
### Context:
CREATE TABLE table_name_9 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_9 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 was the score of the Browns week 4 game?
### Context:
CREATE TABLE table_name_48 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_48 WHERE week = 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 year has the wild side of soccer! as the slogan?
### Context:
CREATE TABLE table_name_89 (year VARCHAR, slogan VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_89 WHERE slogan = "the wild side of soccer!" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 LNER 1946 number is from 1892 and has an LNER number of 7347–7356?
### Context:
CREATE TABLE table_name_20 (lner_1946_no VARCHAR, year VARCHAR, lner_no VARCHAR) [/INST]
### Response:
SELECT lner_1946_no FROM table_name_20 WHERE year = "1892" AND lner_no = "7347–7356" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 order S24's LNER 1946 number?
### Context:
CREATE TABLE table_name_88 (lner_1946_no VARCHAR, order_no VARCHAR) [/INST]
### Response:
SELECT lner_1946_no FROM table_name_88 WHERE order_no = "s24" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 side at corio oval?
### Context:
CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_85 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:
Who is the home team when melbourne is the away team?
### Context:
CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_47 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 is the venue when fitzroy was the away team?
### Context:
CREATE TABLE table_name_80 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_80 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 day does the team play at punt road oval?
### Context:
CREATE TABLE table_name_51 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_51 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:
How many weeks had an attendance larger than 84,816?
### Context:
CREATE TABLE table_name_30 (week VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_30 WHERE attendance > 84 OFFSET 816 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of week 4?
### Context:
CREATE TABLE table_name_57 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_57 WHERE week = 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest attendance on September 3, 1972?
### Context:
CREATE TABLE table_name_52 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_52 WHERE date = "september 3, 1972" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the away team at the game at Victoria Park?
### Context:
CREATE TABLE table_name_65 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_65 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:
When was the game when Footscray was the away team?
### Context:
CREATE TABLE table_name_38 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_38 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 is the highest number of laps for the driver with 5 points?
### Context:
CREATE TABLE table_name_41 (laps INTEGER, points VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_41 WHERE points = "5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team does jan heylen race for?
### Context:
CREATE TABLE table_name_35 (team VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_35 WHERE driver = "jan heylen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the game after Week 13 on December 8, 1991?
### Context:
CREATE TABLE table_name_14 (result VARCHAR, week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_14 WHERE week > 13 AND date = "december 8, 1991" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Patriots play in week 4?
### Context:
CREATE TABLE table_name_43 (opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_43 WHERE week = 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 result of the game on December 22, 1991?
### Context:
CREATE TABLE table_name_37 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_37 WHERE date = "december 22, 1991" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fewest number of silver medals a nation who ranked below 8 received?
### Context:
CREATE TABLE table_name_99 (silver INTEGER, rank INTEGER) [/INST]
### Response:
SELECT MIN(silver) FROM table_name_99 WHERE rank > 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which place has points larger than 1, a bmw machine, and a time of 1:18.47.6?
### Context:
CREATE TABLE table_name_44 (place INTEGER, time VARCHAR, points VARCHAR, machine VARCHAR) [/INST]
### Response:
SELECT MIN(place) FROM table_name_44 WHERE points > 1 AND machine = "bmw" AND time = "1:18.47.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:
How many total laps did the Chevrolet that won $97,508 make?
### Context:
CREATE TABLE table_name_53 (laps VARCHAR, make VARCHAR, winnings VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_53 WHERE make = "chevrolet" AND winnings = "$97,508" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at Brunswick Street Oval?
### Context:
CREATE TABLE table_name_23 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_23 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:
What is the average attendance after week 16?
### Context:
CREATE TABLE table_name_10 (attendance INTEGER, week INTEGER) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_10 WHERE week > 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people were injured in total in East Champaran, Bihar with more than 2 people killed?
### Context:
CREATE TABLE table_name_83 (injured VARCHAR, place VARCHAR, killed VARCHAR) [/INST]
### Response:
SELECT COUNT(injured) FROM table_name_83 WHERE place = "east champaran, bihar" AND killed > 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 least amount of injuries in Dantewada, Chhattisgarh when 8 people were killed?
### Context:
CREATE TABLE table_name_83 (injured INTEGER, place VARCHAR, killed VARCHAR) [/INST]
### Response:
SELECT MIN(injured) FROM table_name_83 WHERE place = "dantewada, chhattisgarh" AND killed = 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team plays home at Princes Park?
### Context:
CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_45 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:
Which match where Hawthorn was the away team had the largest crowd?
### Context:
CREATE TABLE table_name_58 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_58 WHERE away_team = "hawthorn" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.