instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
Who is riding the Ducati 999 RS in Round 7?
|
CREATE TABLE table_name_31 (rider VARCHAR, rounds VARCHAR, motorcycle VARCHAR)
|
SELECT rider FROM table_name_31 WHERE rounds = "7" AND motorcycle = "ducati 999 rs"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (rider VARCHAR, rounds VARCHAR, motorcycle VARCHAR) Question: Who is riding the Ducati 999 RS in Round 7? [/INST] SELECT rider FROM table_name_31 WHERE rounds = "7" AND motorcycle = "ducati 999 rs" </s>
|
Who is the Constructor for the Trac Racing Team?
|
CREATE TABLE table_name_56 (constructor VARCHAR, team VARCHAR)
|
SELECT constructor FROM table_name_56 WHERE team = "trac racing team"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (constructor VARCHAR, team VARCHAR) Question: Who is the Constructor for the Trac Racing Team? [/INST] SELECT constructor FROM table_name_56 WHERE team = "trac racing team" </s>
|
What was the away team score when Richmond was the home team?
|
CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR)
|
SELECT away_team AS score FROM table_name_80 WHERE home_team = "richmond"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR) Question: What was the away team score when Richmond was the home team? [/INST] SELECT away_team AS score FROM table_name_80 WHERE home_team = "richmond" </s>
|
What was the away team score for the game played at the Brunswick Street Oval?
|
CREATE TABLE table_name_15 (away_team VARCHAR, venue VARCHAR)
|
SELECT away_team AS score FROM table_name_15 WHERE venue = "brunswick street oval"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (away_team VARCHAR, venue VARCHAR) Question: What was the away team score for the game played at the Brunswick Street Oval? [/INST] SELECT away_team AS score FROM table_name_15 WHERE venue = "brunswick street oval" </s>
|
Where did Hawthorn play as the away team?
|
CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR)
|
SELECT venue FROM table_name_89 WHERE away_team = "hawthorn"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR) Question: Where did Hawthorn play as the away team? [/INST] SELECT venue FROM table_name_89 WHERE away_team = "hawthorn" </s>
|
What rank did Poland receive with a time of 1:50.12?
|
CREATE TABLE table_name_43 (rank VARCHAR, nationality VARCHAR, time VARCHAR)
|
SELECT rank FROM table_name_43 WHERE nationality = "poland" AND time = "1:50.12"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (rank VARCHAR, nationality VARCHAR, time VARCHAR) Question: What rank did Poland receive with a time of 1:50.12? [/INST] SELECT rank FROM table_name_43 WHERE nationality = "poland" AND time = "1:50.12" </s>
|
What is arizona state overall lowest?
|
CREATE TABLE table_name_58 (overall INTEGER, school_club_team VARCHAR)
|
SELECT MIN(overall) FROM table_name_58 WHERE school_club_team = "arizona state"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (overall INTEGER, school_club_team VARCHAR) Question: What is arizona state overall lowest? [/INST] SELECT MIN(overall) FROM table_name_58 WHERE school_club_team = "arizona state" </s>
|
What are the fewest losses for a player lower than 3, with wins fewer than 75%, 0 draws and 56 points?
|
CREATE TABLE table_name_76 (lost INTEGER, points VARCHAR, drawn VARCHAR, played VARCHAR, _percentage_won VARCHAR)
|
SELECT MIN(lost) FROM table_name_76 WHERE played > 3 AND _percentage_won < 75 AND drawn = 0 AND points = 56
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (lost INTEGER, points VARCHAR, drawn VARCHAR, played VARCHAR, _percentage_won VARCHAR) Question: What are the fewest losses for a player lower than 3, with wins fewer than 75%, 0 draws and 56 points? [/INST] SELECT MIN(lost) FROM table_name_76 WHERE played > 3 AND _percentage_won < 75 AND drawn = 0 AND points = 56 </s>
|
How many tries for the player whose number is greater than 2 and losses are smaller than 0?
|
CREATE TABLE table_name_73 (tries VARCHAR, played VARCHAR, lost VARCHAR)
|
SELECT COUNT(tries) FROM table_name_73 WHERE played > 2 AND lost < 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (tries VARCHAR, played VARCHAR, lost VARCHAR) Question: How many tries for the player whose number is greater than 2 and losses are smaller than 0? [/INST] SELECT COUNT(tries) FROM table_name_73 WHERE played > 2 AND lost < 0 </s>
|
What is the number of tries for the player who is larger than 16?
|
CREATE TABLE table_name_81 (tries INTEGER, played INTEGER)
|
SELECT SUM(tries) FROM table_name_81 WHERE played > 16
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (tries INTEGER, played INTEGER) Question: What is the number of tries for the player who is larger than 16? [/INST] SELECT SUM(tries) FROM table_name_81 WHERE played > 16 </s>
|
What is the smallest draws for a player larger than 2 with a 100% wins?
|
CREATE TABLE table_name_83 (drawn INTEGER, played VARCHAR, _percentage_won VARCHAR)
|
SELECT MIN(drawn) FROM table_name_83 WHERE played > 2 AND _percentage_won > 100
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (drawn INTEGER, played VARCHAR, _percentage_won VARCHAR) Question: What is the smallest draws for a player larger than 2 with a 100% wins? [/INST] SELECT MIN(drawn) FROM table_name_83 WHERE played > 2 AND _percentage_won > 100 </s>
|
What is the average draws for a player larger than 16 with more than 1 tries and a win percentage smaller than 56.15%?
|
CREATE TABLE table_name_86 (drawn INTEGER, played VARCHAR, tries VARCHAR, _percentage_won VARCHAR)
|
SELECT AVG(drawn) FROM table_name_86 WHERE tries > 1 AND _percentage_won < 56.15 AND played > 16
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (drawn INTEGER, played VARCHAR, tries VARCHAR, _percentage_won VARCHAR) Question: What is the average draws for a player larger than 16 with more than 1 tries and a win percentage smaller than 56.15%? [/INST] SELECT AVG(drawn) FROM table_name_86 WHERE tries > 1 AND _percentage_won < 56.15 AND played > 16 </s>
|
What was the 2011 Wimbledon result?
|
CREATE TABLE table_name_22 (tournament VARCHAR)
|
SELECT 2011 FROM table_name_22 WHERE tournament = "wimbledon"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (tournament VARCHAR) Question: What was the 2011 Wimbledon result? [/INST] SELECT 2011 FROM table_name_22 WHERE tournament = "wimbledon" </s>
|
What was the result of the 2011 US Open when the 2007 was F?
|
CREATE TABLE table_name_59 (tournament VARCHAR)
|
SELECT 2011 FROM table_name_59 WHERE 2007 = "f" AND tournament = "us open"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (tournament VARCHAR) Question: What was the result of the 2011 US Open when the 2007 was F? [/INST] SELECT 2011 FROM table_name_59 WHERE 2007 = "f" AND tournament = "us open" </s>
|
What was the result in 2007 when the 2011 was F and 2009 was W?
|
CREATE TABLE table_name_16 (Id VARCHAR)
|
SELECT 2007 FROM table_name_16 WHERE 2011 = "f" AND 2009 = "w"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (Id VARCHAR) Question: What was the result in 2007 when the 2011 was F and 2009 was W? [/INST] SELECT 2007 FROM table_name_16 WHERE 2011 = "f" AND 2009 = "w" </s>
|
Which tournament had the result of a W in 2009?
|
CREATE TABLE table_name_67 (tournament VARCHAR)
|
SELECT tournament FROM table_name_67 WHERE 2009 = "w"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (tournament VARCHAR) Question: Which tournament had the result of a W in 2009? [/INST] SELECT tournament FROM table_name_67 WHERE 2009 = "w" </s>
|
Which 2009 tournament had Grand Slams?
|
CREATE TABLE table_name_58 (tournament VARCHAR)
|
SELECT tournament FROM table_name_58 WHERE 2009 = "grand slams"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (tournament VARCHAR) Question: Which 2009 tournament had Grand Slams? [/INST] SELECT tournament FROM table_name_58 WHERE 2009 = "grand slams" </s>
|
Which tournament had the result with 2009 was F and 2010 was F?
|
CREATE TABLE table_name_61 (tournament VARCHAR)
|
SELECT tournament FROM table_name_61 WHERE 2009 = "f" AND 2010 = "f"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (tournament VARCHAR) Question: Which tournament had the result with 2009 was F and 2010 was F? [/INST] SELECT tournament FROM table_name_61 WHERE 2009 = "f" AND 2010 = "f" </s>
|
What was the date of the game when Hawthorn was the home team?
|
CREATE TABLE table_name_54 (date VARCHAR, home_team VARCHAR)
|
SELECT date FROM table_name_54 WHERE home_team = "hawthorn"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (date VARCHAR, home_team VARCHAR) Question: What was the date of the game when Hawthorn was the home team? [/INST] SELECT date FROM table_name_54 WHERE home_team = "hawthorn" </s>
|
Which season had a margin of 10?
|
CREATE TABLE table_name_48 (season VARCHAR, margin VARCHAR)
|
SELECT season FROM table_name_48 WHERE margin = 10
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (season VARCHAR, margin VARCHAR) Question: Which season had a margin of 10? [/INST] SELECT season FROM table_name_48 WHERE margin = 10 </s>
|
What did the Tournament of Australian Championships, with an A in 1969, get in 1954?
|
CREATE TABLE table_name_28 (tournament VARCHAR)
|
SELECT 1954 FROM table_name_28 WHERE 1969 = "a" AND tournament = "australian championships"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (tournament VARCHAR) Question: What did the Tournament of Australian Championships, with an A in 1969, get in 1954? [/INST] SELECT 1954 FROM table_name_28 WHERE 1969 = "a" AND tournament = "australian championships" </s>
|
What did the Tournament of SR get in 1951?
|
CREATE TABLE table_name_25 (tournament VARCHAR)
|
SELECT 1951 FROM table_name_25 WHERE tournament = "sr"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (tournament VARCHAR) Question: What did the Tournament of SR get in 1951? [/INST] SELECT 1951 FROM table_name_25 WHERE tournament = "sr" </s>
|
What did the tournament with a QF in 1969 get in 1956-1968?
|
CREATE TABLE table_name_31 (Id VARCHAR)
|
SELECT 1956 AS _1968 FROM table_name_31 WHERE 1969 = "qf"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (Id VARCHAR) Question: What did the tournament with a QF in 1969 get in 1956-1968? [/INST] SELECT 1956 AS _1968 FROM table_name_31 WHERE 1969 = "qf" </s>
|
What did the tournament that got an A in 1945 get in 1949?
|
CREATE TABLE table_name_22 (Id VARCHAR)
|
SELECT 1949 FROM table_name_22 WHERE 1945 = "a"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (Id VARCHAR) Question: What did the tournament that got an A in 1945 get in 1949? [/INST] SELECT 1949 FROM table_name_22 WHERE 1945 = "a" </s>
|
When did Geelong play as the home team?
|
CREATE TABLE table_name_65 (date VARCHAR, home_team VARCHAR)
|
SELECT date FROM table_name_65 WHERE home_team = "geelong"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (date VARCHAR, home_team VARCHAR) Question: When did Geelong play as the home team? [/INST] SELECT date FROM table_name_65 WHERE home_team = "geelong" </s>
|
When North Melbourne played as the away team, what was the crowd numbers?
|
CREATE TABLE table_name_56 (crowd VARCHAR, away_team VARCHAR)
|
SELECT crowd FROM table_name_56 WHERE away_team = "north melbourne"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (crowd VARCHAR, away_team VARCHAR) Question: When North Melbourne played as the away team, what was the crowd numbers? [/INST] SELECT crowd FROM table_name_56 WHERE away_team = "north melbourne" </s>
|
How many rounds did Honester Davidson play?
|
CREATE TABLE table_name_95 (round VARCHAR, player VARCHAR)
|
SELECT COUNT(round) FROM table_name_95 WHERE player = "honester davidson"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (round VARCHAR, player VARCHAR) Question: How many rounds did Honester Davidson play? [/INST] SELECT COUNT(round) FROM table_name_95 WHERE player = "honester davidson" </s>
|
What School or Club team has an overall score of 21?
|
CREATE TABLE table_name_15 (school_club_team VARCHAR, overall VARCHAR)
|
SELECT school_club_team FROM table_name_15 WHERE overall = 21
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (school_club_team VARCHAR, overall VARCHAR) Question: What School or Club team has an overall score of 21? [/INST] SELECT school_club_team FROM table_name_15 WHERE overall = 21 </s>
|
What total number of Overalls has a round that was smaller than 1?
|
CREATE TABLE table_name_86 (overall VARCHAR, round INTEGER)
|
SELECT COUNT(overall) FROM table_name_86 WHERE round < 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (overall VARCHAR, round INTEGER) Question: What total number of Overalls has a round that was smaller than 1? [/INST] SELECT COUNT(overall) FROM table_name_86 WHERE round < 1 </s>
|
What player is a kicker?
|
CREATE TABLE table_name_33 (player VARCHAR, position VARCHAR)
|
SELECT player FROM table_name_33 WHERE position = "kicker"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (player VARCHAR, position VARCHAR) Question: What player is a kicker? [/INST] SELECT player FROM table_name_33 WHERE position = "kicker" </s>
|
What position and school/club team of Oklahoma state has an overall less than 410 and a round smaller than 5?
|
CREATE TABLE table_name_17 (position VARCHAR, school_club_team VARCHAR, overall VARCHAR, round VARCHAR)
|
SELECT position FROM table_name_17 WHERE overall < 410 AND round < 5 AND school_club_team = "oklahoma state"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (position VARCHAR, school_club_team VARCHAR, overall VARCHAR, round VARCHAR) Question: What position and school/club team of Oklahoma state has an overall less than 410 and a round smaller than 5? [/INST] SELECT position FROM table_name_17 WHERE overall < 410 AND round < 5 AND school_club_team = "oklahoma state" </s>
|
Which player plays forward and is from Kentucky?
|
CREATE TABLE table_name_43 (player VARCHAR, position VARCHAR, school_country VARCHAR)
|
SELECT player FROM table_name_43 WHERE position = "forward" AND school_country = "kentucky"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (player VARCHAR, position VARCHAR, school_country VARCHAR) Question: Which player plays forward and is from Kentucky? [/INST] SELECT player FROM table_name_43 WHERE position = "forward" AND school_country = "kentucky" </s>
|
What team was the away team for the venue punt road oval?
|
CREATE TABLE table_name_4 (away_team VARCHAR, venue VARCHAR)
|
SELECT away_team FROM table_name_4 WHERE venue = "punt road oval"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (away_team VARCHAR, venue VARCHAR) Question: What team was the away team for the venue punt road oval? [/INST] SELECT away_team FROM table_name_4 WHERE venue = "punt road oval" </s>
|
What is the highest ranked player who opposed Westmeath?
|
CREATE TABLE table_name_3 (rank INTEGER, opposition VARCHAR)
|
SELECT MAX(rank) FROM table_name_3 WHERE opposition = "westmeath"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (rank INTEGER, opposition VARCHAR) Question: What is the highest ranked player who opposed Westmeath? [/INST] SELECT MAX(rank) FROM table_name_3 WHERE opposition = "westmeath" </s>
|
What is Tony O'Sullivan's county?
|
CREATE TABLE table_name_67 (county VARCHAR, player VARCHAR)
|
SELECT county FROM table_name_67 WHERE player = "tony o'sullivan"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (county VARCHAR, player VARCHAR) Question: What is Tony O'Sullivan's county? [/INST] SELECT county FROM table_name_67 WHERE player = "tony o'sullivan" </s>
|
What Network has Punjabi as the Language?
|
CREATE TABLE table_name_71 (network VARCHAR, language VARCHAR)
|
SELECT network FROM table_name_71 WHERE language = "punjabi"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (network VARCHAR, language VARCHAR) Question: What Network has Punjabi as the Language? [/INST] SELECT network FROM table_name_71 WHERE language = "punjabi" </s>
|
What Genre has Hindi as the Language and Star Gold as the Network?
|
CREATE TABLE table_name_16 (genre VARCHAR, language VARCHAR, network VARCHAR)
|
SELECT genre FROM table_name_16 WHERE language = "hindi" AND network = "star gold"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (genre VARCHAR, language VARCHAR, network VARCHAR) Question: What Genre has Hindi as the Language and Star Gold as the Network? [/INST] SELECT genre FROM table_name_16 WHERE language = "hindi" AND network = "star gold" </s>
|
What is the Origin of Programming for the Network NDTV India?
|
CREATE TABLE table_name_98 (origin_of_programming VARCHAR, network VARCHAR)
|
SELECT origin_of_programming FROM table_name_98 WHERE network = "ndtv india"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (origin_of_programming VARCHAR, network VARCHAR) Question: What is the Origin of Programming for the Network NDTV India? [/INST] SELECT origin_of_programming FROM table_name_98 WHERE network = "ndtv india" </s>
|
What is the Origin of Programming for the Network MTV India?
|
CREATE TABLE table_name_43 (origin_of_programming VARCHAR, network VARCHAR)
|
SELECT origin_of_programming FROM table_name_43 WHERE network = "mtv india"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (origin_of_programming VARCHAR, network VARCHAR) Question: What is the Origin of Programming for the Network MTV India? [/INST] SELECT origin_of_programming FROM table_name_43 WHERE network = "mtv india" </s>
|
What is the Language for Network PTC Punjabi?
|
CREATE TABLE table_name_28 (language VARCHAR, network VARCHAR)
|
SELECT language FROM table_name_28 WHERE network = "ptc punjabi"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (language VARCHAR, network VARCHAR) Question: What is the Language for Network PTC Punjabi? [/INST] SELECT language FROM table_name_28 WHERE network = "ptc punjabi" </s>
|
What Genre has the Network Zee TV?
|
CREATE TABLE table_name_93 (genre VARCHAR, network VARCHAR)
|
SELECT genre FROM table_name_93 WHERE network = "zee tv"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (genre VARCHAR, network VARCHAR) Question: What Genre has the Network Zee TV? [/INST] SELECT genre FROM table_name_93 WHERE network = "zee tv" </s>
|
What team was the home team at the venue junction oval?
|
CREATE TABLE table_name_74 (home_team VARCHAR, venue VARCHAR)
|
SELECT home_team FROM table_name_74 WHERE venue = "junction oval"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (home_team VARCHAR, venue VARCHAR) Question: What team was the home team at the venue junction oval? [/INST] SELECT home_team FROM table_name_74 WHERE venue = "junction oval" </s>
|
What away team played when the home team was south melbourne?
|
CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR)
|
SELECT away_team FROM table_name_33 WHERE home_team = "south melbourne"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR) Question: What away team played when the home team was south melbourne? [/INST] SELECT away_team FROM table_name_33 WHERE home_team = "south melbourne" </s>
|
What team was the home team when Richmond was the away team?
|
CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR)
|
SELECT home_team FROM table_name_36 WHERE away_team = "richmond"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR) Question: What team was the home team when Richmond was the away team? [/INST] SELECT home_team FROM table_name_36 WHERE away_team = "richmond" </s>
|
What was the score when geelong was the away team?
|
CREATE TABLE table_name_45 (home_team VARCHAR)
|
SELECT home_team AS score FROM table_name_45 WHERE home_team = "geelong"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (home_team VARCHAR) Question: What was the score when geelong was the away team? [/INST] SELECT home_team AS score FROM table_name_45 WHERE home_team = "geelong" </s>
|
What was the CB CW for the year of 1982?
|
CREATE TABLE table_name_89 (cb_cw VARCHAR, year VARCHAR)
|
SELECT cb_cw FROM table_name_89 WHERE year = 1982
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (cb_cw VARCHAR, year VARCHAR) Question: What was the CB CW for the year of 1982? [/INST] SELECT cb_cw FROM table_name_89 WHERE year = 1982 </s>
|
What is the most current year that had a BB CW of 78?
|
CREATE TABLE table_name_8 (year INTEGER, bb_cw VARCHAR)
|
SELECT MAX(year) FROM table_name_8 WHERE bb_cw = "78"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (year INTEGER, bb_cw VARCHAR) Question: What is the most current year that had a BB CW of 78? [/INST] SELECT MAX(year) FROM table_name_8 WHERE bb_cw = "78" </s>
|
What was the North Melbourne's score when they played as the home team?
|
CREATE TABLE table_name_52 (home_team VARCHAR)
|
SELECT home_team AS score FROM table_name_52 WHERE home_team = "north melbourne"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (home_team VARCHAR) Question: What was the North Melbourne's score when they played as the home team? [/INST] SELECT home_team AS score FROM table_name_52 WHERE home_team = "north melbourne" </s>
|
What was the attendance at the St Kilda home game?
|
CREATE TABLE table_name_54 (crowd INTEGER, home_team VARCHAR)
|
SELECT AVG(crowd) FROM table_name_54 WHERE home_team = "st kilda"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (crowd INTEGER, home_team VARCHAR) Question: What was the attendance at the St Kilda home game? [/INST] SELECT AVG(crowd) FROM table_name_54 WHERE home_team = "st kilda" </s>
|
What was the attendance when the VFL played Junction Oval?
|
CREATE TABLE table_name_58 (crowd VARCHAR, venue VARCHAR)
|
SELECT COUNT(crowd) FROM table_name_58 WHERE venue = "junction oval"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (crowd VARCHAR, venue VARCHAR) Question: What was the attendance when the VFL played Junction Oval? [/INST] SELECT COUNT(crowd) FROM table_name_58 WHERE venue = "junction oval" </s>
|
Where did Melbourne play as the away team?
|
CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR)
|
SELECT venue FROM table_name_95 WHERE away_team = "melbourne"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR) Question: Where did Melbourne play as the away team? [/INST] SELECT venue FROM table_name_95 WHERE away_team = "melbourne" </s>
|
What is Fitzroy's home field?
|
CREATE TABLE table_name_82 (venue VARCHAR, home_team VARCHAR)
|
SELECT venue FROM table_name_82 WHERE home_team = "fitzroy"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (venue VARCHAR, home_team VARCHAR) Question: What is Fitzroy's home field? [/INST] SELECT venue FROM table_name_82 WHERE home_team = "fitzroy" </s>
|
Who was the away team at punt road oval?
|
CREATE TABLE table_name_5 (away_team VARCHAR, venue VARCHAR)
|
SELECT away_team FROM table_name_5 WHERE venue = "punt road oval"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (away_team VARCHAR, venue VARCHAR) Question: Who was the away team at punt road oval? [/INST] SELECT away_team FROM table_name_5 WHERE venue = "punt road oval" </s>
|
What was the away team score at victoria park?
|
CREATE TABLE table_name_62 (away_team VARCHAR, venue VARCHAR)
|
SELECT away_team AS score FROM table_name_62 WHERE venue = "victoria park"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (away_team VARCHAR, venue VARCHAR) Question: What was the away team score at victoria park? [/INST] SELECT away_team AS score FROM table_name_62 WHERE venue = "victoria park" </s>
|
Who was the home team in the game played at arden street oval?
|
CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR)
|
SELECT home_team AS score FROM table_name_42 WHERE venue = "arden street oval"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR) Question: Who was the home team in the game played at arden street oval? [/INST] SELECT home_team AS score FROM table_name_42 WHERE venue = "arden street oval" </s>
|
What was St Kilda's away team score?
|
CREATE TABLE table_name_21 (away_team VARCHAR)
|
SELECT away_team AS score FROM table_name_21 WHERE away_team = "st kilda"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (away_team VARCHAR) Question: What was St Kilda's away team score? [/INST] SELECT away_team AS score FROM table_name_21 WHERE away_team = "st kilda" </s>
|
Who was home team South Melbourne's opponent?
|
CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR)
|
SELECT away_team FROM table_name_13 WHERE home_team = "south melbourne"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR) Question: Who was home team South Melbourne's opponent? [/INST] SELECT away_team FROM table_name_13 WHERE home_team = "south melbourne" </s>
|
What was the music for the team who earned a score of 13 (5, 4, 4)?
|
CREATE TABLE table_name_99 (music VARCHAR, score VARCHAR)
|
SELECT music FROM table_name_99 WHERE score = "13 (5, 4, 4)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (music VARCHAR, score VARCHAR) Question: What was the music for the team who earned a score of 13 (5, 4, 4)? [/INST] SELECT music FROM table_name_99 WHERE score = "13 (5, 4, 4)" </s>
|
What was the music of the team that was eliminated?
|
CREATE TABLE table_name_7 (music VARCHAR, result VARCHAR)
|
SELECT music FROM table_name_7 WHERE result = "eliminated"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (music VARCHAR, result VARCHAR) Question: What was the music of the team that was eliminated? [/INST] SELECT music FROM table_name_7 WHERE result = "eliminated" </s>
|
Which couple danced a jive and received a score of 21 (6, 7, 8)?
|
CREATE TABLE table_name_98 (couple VARCHAR, dance VARCHAR, score VARCHAR)
|
SELECT couple FROM table_name_98 WHERE dance = "jive" AND score = "21 (6, 7, 8)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (couple VARCHAR, dance VARCHAR, score VARCHAR) Question: Which couple danced a jive and received a score of 21 (6, 7, 8)? [/INST] SELECT couple FROM table_name_98 WHERE dance = "jive" AND score = "21 (6, 7, 8)" </s>
|
What was the score of the team that danced a jive and was safe?
|
CREATE TABLE table_name_65 (score VARCHAR, dance VARCHAR, result VARCHAR)
|
SELECT score FROM table_name_65 WHERE dance = "jive" AND result = "safe"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (score VARCHAR, dance VARCHAR, result VARCHAR) Question: What was the score of the team that danced a jive and was safe? [/INST] SELECT score FROM table_name_65 WHERE dance = "jive" AND result = "safe" </s>
|
What engine did Dick Simon Racing use?
|
CREATE TABLE table_name_21 (engine VARCHAR, team VARCHAR)
|
SELECT engine FROM table_name_21 WHERE team = "dick simon racing"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (engine VARCHAR, team VARCHAR) Question: What engine did Dick Simon Racing use? [/INST] SELECT engine FROM table_name_21 WHERE team = "dick simon racing" </s>
|
Who drove for Arciero Racing?
|
CREATE TABLE table_name_31 (drivers VARCHAR, team VARCHAR)
|
SELECT drivers FROM table_name_31 WHERE team = "arciero racing"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (drivers VARCHAR, team VARCHAR) Question: Who drove for Arciero Racing? [/INST] SELECT drivers FROM table_name_31 WHERE team = "arciero racing" </s>
|
What Chassis did Rich Vogler use?
|
CREATE TABLE table_name_94 (chassis VARCHAR, drivers VARCHAR)
|
SELECT chassis FROM table_name_94 WHERE drivers = "rich vogler"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (chassis VARCHAR, drivers VARCHAR) Question: What Chassis did Rich Vogler use? [/INST] SELECT chassis FROM table_name_94 WHERE drivers = "rich vogler" </s>
|
What tires did Johnny Parsons use?
|
CREATE TABLE table_name_46 (tires VARCHAR, drivers VARCHAR)
|
SELECT tires FROM table_name_46 WHERE drivers = "johnny parsons"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (tires VARCHAR, drivers VARCHAR) Question: What tires did Johnny Parsons use? [/INST] SELECT tires FROM table_name_46 WHERE drivers = "johnny parsons" </s>
|
What race did Bobby Unser win?
|
CREATE TABLE table_name_72 (name VARCHAR, winning_driver VARCHAR)
|
SELECT name FROM table_name_72 WHERE winning_driver = "bobby unser"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (name VARCHAR, winning_driver VARCHAR) Question: What race did Bobby Unser win? [/INST] SELECT name FROM table_name_72 WHERE winning_driver = "bobby unser" </s>
|
Which driver won the Indianapolis 500 the year the Chaparral team also won it?
|
CREATE TABLE table_name_67 (winning_driver VARCHAR, winning_team VARCHAR, name VARCHAR)
|
SELECT winning_driver FROM table_name_67 WHERE winning_team = "chaparral" AND name = "indianapolis 500"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (winning_driver VARCHAR, winning_team VARCHAR, name VARCHAR) Question: Which driver won the Indianapolis 500 the year the Chaparral team also won it? [/INST] SELECT winning_driver FROM table_name_67 WHERE winning_team = "chaparral" AND name = "indianapolis 500" </s>
|
Which report includes Bobby Unser as the Pole Position and Rick Mears as the Winning driver?
|
CREATE TABLE table_name_33 (report VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)
|
SELECT report FROM table_name_33 WHERE pole_position = "bobby unser" AND winning_driver = "rick mears"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (report VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) Question: Which report includes Bobby Unser as the Pole Position and Rick Mears as the Winning driver? [/INST] SELECT report FROM table_name_33 WHERE pole_position = "bobby unser" AND winning_driver = "rick mears" </s>
|
Which race has a winning team of Penske Racing, and a winning driver of Bobby Unser?
|
CREATE TABLE table_name_62 (name VARCHAR, winning_team VARCHAR, winning_driver VARCHAR)
|
SELECT name FROM table_name_62 WHERE winning_team = "penske racing" AND winning_driver = "bobby unser"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (name VARCHAR, winning_team VARCHAR, winning_driver VARCHAR) Question: Which race has a winning team of Penske Racing, and a winning driver of Bobby Unser? [/INST] SELECT name FROM table_name_62 WHERE winning_team = "penske racing" AND winning_driver = "bobby unser" </s>
|
On what day is geelong the home team?
|
CREATE TABLE table_name_37 (date VARCHAR, home_team VARCHAR)
|
SELECT date FROM table_name_37 WHERE home_team = "geelong"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (date VARCHAR, home_team VARCHAR) Question: On what day is geelong the home team? [/INST] SELECT date FROM table_name_37 WHERE home_team = "geelong" </s>
|
What venue featured collingwood as the away side?
|
CREATE TABLE table_name_11 (venue VARCHAR, away_team VARCHAR)
|
SELECT venue FROM table_name_11 WHERE away_team = "collingwood"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (venue VARCHAR, away_team VARCHAR) Question: What venue featured collingwood as the away side? [/INST] SELECT venue FROM table_name_11 WHERE away_team = "collingwood" </s>
|
What is the home team score at windy hill?
|
CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR)
|
SELECT home_team AS score FROM table_name_16 WHERE venue = "windy hill"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR) Question: What is the home team score at windy hill? [/INST] SELECT home_team AS score FROM table_name_16 WHERE venue = "windy hill" </s>
|
What season has races larger than 18 and 36 points?
|
CREATE TABLE table_name_35 (season VARCHAR, races VARCHAR, points VARCHAR)
|
SELECT season FROM table_name_35 WHERE races > 18 AND points = 36
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (season VARCHAR, races VARCHAR, points VARCHAR) Question: What season has races larger than 18 and 36 points? [/INST] SELECT season FROM table_name_35 WHERE races > 18 AND points = 36 </s>
|
The venue of Brunswick Street Oval was used on what date?
|
CREATE TABLE table_name_53 (date VARCHAR, venue VARCHAR)
|
SELECT date FROM table_name_53 WHERE venue = "brunswick street oval"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (date VARCHAR, venue VARCHAR) Question: The venue of Brunswick Street Oval was used on what date? [/INST] SELECT date FROM table_name_53 WHERE venue = "brunswick street oval" </s>
|
What is the smallest crowd with the away team of North Melbourne?
|
CREATE TABLE table_name_61 (crowd INTEGER, away_team VARCHAR)
|
SELECT MIN(crowd) FROM table_name_61 WHERE away_team = "north melbourne"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (crowd INTEGER, away_team VARCHAR) Question: What is the smallest crowd with the away team of North Melbourne? [/INST] SELECT MIN(crowd) FROM table_name_61 WHERE away_team = "north melbourne" </s>
|
On which date was Essendon the home team?
|
CREATE TABLE table_name_91 (date VARCHAR, home_team VARCHAR)
|
SELECT date FROM table_name_91 WHERE home_team = "essendon"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (date VARCHAR, home_team VARCHAR) Question: On which date was Essendon the home team? [/INST] SELECT date FROM table_name_91 WHERE home_team = "essendon" </s>
|
What is the name of the airport with IATA code DAC?
|
CREATE TABLE table_name_10 (airport VARCHAR, iata VARCHAR)
|
SELECT airport FROM table_name_10 WHERE iata = "dac"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (airport VARCHAR, iata VARCHAR) Question: What is the name of the airport with IATA code DAC? [/INST] SELECT airport FROM table_name_10 WHERE iata = "dac" </s>
|
What is the IATA code for Delhi?
|
CREATE TABLE table_name_56 (iata VARCHAR, city VARCHAR)
|
SELECT iata FROM table_name_56 WHERE city = "delhi"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (iata VARCHAR, city VARCHAR) Question: What is the IATA code for Delhi? [/INST] SELECT iata FROM table_name_56 WHERE city = "delhi" </s>
|
What is the IATA code for the city with ICAO code of RCMQ?
|
CREATE TABLE table_name_98 (iata VARCHAR, icao VARCHAR)
|
SELECT iata FROM table_name_98 WHERE icao = "rcmq"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (iata VARCHAR, icao VARCHAR) Question: What is the IATA code for the city with ICAO code of RCMQ? [/INST] SELECT iata FROM table_name_98 WHERE icao = "rcmq" </s>
|
What is the airport with ICAO code of WMKP?
|
CREATE TABLE table_name_39 (airport VARCHAR, icao VARCHAR)
|
SELECT airport FROM table_name_39 WHERE icao = "wmkp"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (airport VARCHAR, icao VARCHAR) Question: What is the airport with ICAO code of WMKP? [/INST] SELECT airport FROM table_name_39 WHERE icao = "wmkp" </s>
|
What is the IATA code for SHahjalal International Airport?
|
CREATE TABLE table_name_7 (iata VARCHAR, airport VARCHAR)
|
SELECT iata FROM table_name_7 WHERE airport = "shahjalal international airport"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (iata VARCHAR, airport VARCHAR) Question: What is the IATA code for SHahjalal International Airport? [/INST] SELECT iata FROM table_name_7 WHERE airport = "shahjalal international airport" </s>
|
What is the ICAO for the airport in Ningbo?
|
CREATE TABLE table_name_54 (icao VARCHAR, city VARCHAR)
|
SELECT icao FROM table_name_54 WHERE city = "ningbo"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (icao VARCHAR, city VARCHAR) Question: What is the ICAO for the airport in Ningbo? [/INST] SELECT icao FROM table_name_54 WHERE city = "ningbo" </s>
|
What is the BB pop of the song with a CB CW of 1, RIAA of P and was released more recently than 1976?
|
CREATE TABLE table_name_93 (bb_pop VARCHAR, riaa VARCHAR, cb_cw VARCHAR, year VARCHAR)
|
SELECT bb_pop FROM table_name_93 WHERE cb_cw = "1" AND year > 1976 AND riaa = "p"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (bb_pop VARCHAR, riaa VARCHAR, cb_cw VARCHAR, year VARCHAR) Question: What is the BB pop of the song with a CB CW of 1, RIAA of P and was released more recently than 1976? [/INST] SELECT bb_pop FROM table_name_93 WHERE cb_cw = "1" AND year > 1976 AND riaa = "p" </s>
|
What is the CB CW of the song which has a BB Pop of 11?
|
CREATE TABLE table_name_73 (cb_cw VARCHAR, bb_pop VARCHAR)
|
SELECT cb_cw FROM table_name_73 WHERE bb_pop = "11"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (cb_cw VARCHAR, bb_pop VARCHAR) Question: What is the CB CW of the song which has a BB Pop of 11? [/INST] SELECT cb_cw FROM table_name_73 WHERE bb_pop = "11" </s>
|
What was the crowd numbers when the VFL played Victoria Park?
|
CREATE TABLE table_name_50 (crowd INTEGER, venue VARCHAR)
|
SELECT SUM(crowd) FROM table_name_50 WHERE venue = "victoria park"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (crowd INTEGER, venue VARCHAR) Question: What was the crowd numbers when the VFL played Victoria Park? [/INST] SELECT SUM(crowd) FROM table_name_50 WHERE venue = "victoria park" </s>
|
When the VFL played at Junction Oval what was the away score?
|
CREATE TABLE table_name_15 (away_team VARCHAR, venue VARCHAR)
|
SELECT away_team AS score FROM table_name_15 WHERE venue = "junction oval"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (away_team VARCHAR, venue VARCHAR) Question: When the VFL played at Junction Oval what was the away score? [/INST] SELECT away_team AS score FROM table_name_15 WHERE venue = "junction oval" </s>
|
Who was the away team for the game played in front of more than 41,402 fans?
|
CREATE TABLE table_name_46 (away_team VARCHAR, crowd INTEGER)
|
SELECT away_team FROM table_name_46 WHERE crowd > 41 OFFSET 402 ROWS
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (away_team VARCHAR, crowd INTEGER) Question: Who was the away team for the game played in front of more than 41,402 fans? [/INST] SELECT away_team FROM table_name_46 WHERE crowd > 41 OFFSET 402 ROWS </s>
|
What Home team played Richmond?
|
CREATE TABLE table_name_22 (home_team VARCHAR, away_team VARCHAR)
|
SELECT home_team FROM table_name_22 WHERE away_team = "richmond"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (home_team VARCHAR, away_team VARCHAR) Question: What Home team played Richmond? [/INST] SELECT home_team FROM table_name_22 WHERE away_team = "richmond" </s>
|
What is Melbourne's home venue?
|
CREATE TABLE table_name_32 (venue VARCHAR, home_team VARCHAR)
|
SELECT venue FROM table_name_32 WHERE home_team = "melbourne"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (venue VARCHAR, home_team VARCHAR) Question: What is Melbourne's home venue? [/INST] SELECT venue FROM table_name_32 WHERE home_team = "melbourne" </s>
|
Was the game home or away when the record is 6-12?
|
CREATE TABLE table_name_23 (home___away VARCHAR, record VARCHAR)
|
SELECT home___away FROM table_name_23 WHERE record = "6-12"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (home___away VARCHAR, record VARCHAR) Question: Was the game home or away when the record is 6-12? [/INST] SELECT home___away FROM table_name_23 WHERE record = "6-12" </s>
|
What is the date of the away game at the Blue Cross Arena?
|
CREATE TABLE table_name_78 (date VARCHAR, home___away VARCHAR, location_attendance VARCHAR)
|
SELECT date FROM table_name_78 WHERE home___away = "away" AND location_attendance = "blue cross arena"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (date VARCHAR, home___away VARCHAR, location_attendance VARCHAR) Question: What is the date of the away game at the Blue Cross Arena? [/INST] SELECT date FROM table_name_78 WHERE home___away = "away" AND location_attendance = "blue cross arena" </s>
|
What is the week for the stadium that had an attendance of 22,286?
|
CREATE TABLE table_name_26 (week INTEGER, attendance VARCHAR)
|
SELECT AVG(week) FROM table_name_26 WHERE attendance = "22,286"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (week INTEGER, attendance VARCHAR) Question: What is the week for the stadium that had an attendance of 22,286? [/INST] SELECT AVG(week) FROM table_name_26 WHERE attendance = "22,286" </s>
|
How many assists for player(s) with over 107 games and ranked less than 2?
|
CREATE TABLE table_name_20 (total_assists VARCHAR, games VARCHAR, rank VARCHAR)
|
SELECT COUNT(total_assists) FROM table_name_20 WHERE games > 107 AND rank < 2
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (total_assists VARCHAR, games VARCHAR, rank VARCHAR) Question: How many assists for player(s) with over 107 games and ranked less than 2? [/INST] SELECT COUNT(total_assists) FROM table_name_20 WHERE games > 107 AND rank < 2 </s>
|
What is the total number of assists for players with under 55 games and over 6 assists per game average?
|
CREATE TABLE table_name_11 (total_assists INTEGER, ast_avg VARCHAR, games VARCHAR)
|
SELECT SUM(total_assists) FROM table_name_11 WHERE ast_avg > 6 AND games < 55
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (total_assists INTEGER, ast_avg VARCHAR, games VARCHAR) Question: What is the total number of assists for players with under 55 games and over 6 assists per game average? [/INST] SELECT SUM(total_assists) FROM table_name_11 WHERE ast_avg > 6 AND games < 55 </s>
|
What is the average rank for players with less than 2.9 Assists per game?
|
CREATE TABLE table_name_35 (rank INTEGER, ast_avg INTEGER)
|
SELECT AVG(rank) FROM table_name_35 WHERE ast_avg < 2.9
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (rank INTEGER, ast_avg INTEGER) Question: What is the average rank for players with less than 2.9 Assists per game? [/INST] SELECT AVG(rank) FROM table_name_35 WHERE ast_avg < 2.9 </s>
|
What circuit had an ensign n180 as the winning car in round 5?
|
CREATE TABLE table_name_79 (circuit VARCHAR, winning_car VARCHAR, round VARCHAR)
|
SELECT circuit FROM table_name_79 WHERE winning_car = "ensign n180" AND round = 5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (circuit VARCHAR, winning_car VARCHAR, round VARCHAR) Question: What circuit had an ensign n180 as the winning car in round 5? [/INST] SELECT circuit FROM table_name_79 WHERE winning_car = "ensign n180" AND round = 5 </s>
|
How many rounds total were there on may 31?
|
CREATE TABLE table_name_79 (round VARCHAR, date VARCHAR)
|
SELECT COUNT(round) FROM table_name_79 WHERE date = "may 31"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (round VARCHAR, date VARCHAR) Question: How many rounds total were there on may 31? [/INST] SELECT COUNT(round) FROM table_name_79 WHERE date = "may 31" </s>
|
What was the average round for the oulton park circuit?
|
CREATE TABLE table_name_56 (round INTEGER, circuit VARCHAR)
|
SELECT AVG(round) FROM table_name_56 WHERE circuit = "oulton park"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (round INTEGER, circuit VARCHAR) Question: What was the average round for the oulton park circuit? [/INST] SELECT AVG(round) FROM table_name_56 WHERE circuit = "oulton park" </s>
|
Who was the opposing team at the match played at the Arden Street Oval?
|
CREATE TABLE table_name_64 (away_team VARCHAR, venue VARCHAR)
|
SELECT away_team FROM table_name_64 WHERE venue = "arden street oval"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (away_team VARCHAR, venue VARCHAR) Question: Who was the opposing team at the match played at the Arden Street Oval? [/INST] SELECT away_team FROM table_name_64 WHERE venue = "arden street oval" </s>
|
What was the opposing team's score at the match that was played at Victoria Park?
|
CREATE TABLE table_name_31 (away_team VARCHAR, venue VARCHAR)
|
SELECT away_team AS score FROM table_name_31 WHERE venue = "victoria park"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (away_team VARCHAR, venue VARCHAR) Question: What was the opposing team's score at the match that was played at Victoria Park? [/INST] SELECT away_team AS score FROM table_name_31 WHERE venue = "victoria park" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.