text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day did North Melbourne play as the home team?
### Context:
CREATE TABLE table_name_52 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_52 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:
Who was the away team at Arden Street Oval?
### Context:
CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_20 WHERE venue = "arden street oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the ordinary income rate when short-term capital gain rate is 28%?
### Context:
CREATE TABLE table_name_42 (ordinary_income_rate VARCHAR, short_term_capital_gain_rate VARCHAR) [/INST]
### Response:
SELECT ordinary_income_rate FROM table_name_42 WHERE short_term_capital_gain_rate = "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 short-term capital gain rate with long-term gain on collectibles at 15%?
### Context:
CREATE TABLE table_name_29 (short_term_capital_gain_rate VARCHAR, long_term_gain_on_collectibles VARCHAR) [/INST]
### Response:
SELECT short_term_capital_gain_rate FROM table_name_29 WHERE long_term_gain_on_collectibles = "15%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What long-term gain for collectibles coincides with ordinary income rate 15%?
### Context:
CREATE TABLE table_name_48 (long_term_gain_on_collectibles VARCHAR, ordinary_income_rate VARCHAR) [/INST]
### Response:
SELECT long_term_gain_on_collectibles FROM table_name_48 WHERE ordinary_income_rate = "15%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Decile with a State Authority and a roll of 120?
### Context:
CREATE TABLE table_name_99 (decile INTEGER, authority VARCHAR, roll VARCHAR) [/INST]
### Response:
SELECT SUM(decile) FROM table_name_99 WHERE authority = "state" AND roll = 120 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Roll of Orere School with a Decile less than 8 with a State Authority?
### Context:
CREATE TABLE table_name_98 (roll INTEGER, name VARCHAR, decile VARCHAR, authority VARCHAR) [/INST]
### Response:
SELECT MAX(roll) FROM table_name_98 WHERE decile < 8 AND authority = "state" AND name = "orere school" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score has a Away team of melbourne?
### Context:
CREATE TABLE table_name_63 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_63 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 away team is the home team richmond?
### Context:
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_16 WHERE home_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When Giancarlo Fisichella was the Driver and there were less than 52 Laps, what was the highest Grid?
### Context:
CREATE TABLE table_name_4 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_4 WHERE driver = "giancarlo fisichella" AND laps < 52 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Constructor has a Grid less than 17, Laps under 52, and Olivier Panis as the Driver?
### Context:
CREATE TABLE table_name_11 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_11 WHERE grid < 17 AND laps < 52 AND driver = "olivier panis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2006 cfl draft pick played college ball at Idaho state?
### Context:
CREATE TABLE table_name_91 (pick__number VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT pick__number FROM table_name_91 WHERE college = "idaho state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position did the CFL player drafted out of college of toronto in 2007 play?
### Context:
CREATE TABLE table_name_22 (position VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_22 WHERE college = "toronto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Death of the person whose Date of Birth was 28 May 1371?
### Context:
CREATE TABLE table_name_97 (date_of_death VARCHAR, date_of_birth VARCHAR) [/INST]
### Response:
SELECT date_of_death FROM table_name_97 WHERE date_of_birth = "28 may 1371" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Reign of the person whose Date of Birth was 22 March 1459?
### Context:
CREATE TABLE table_name_25 (reign VARCHAR, date_of_birth VARCHAR) [/INST]
### Response:
SELECT reign FROM table_name_25 WHERE date_of_birth = "22 march 1459" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the average year with a record of 33-33
### Context:
CREATE TABLE table_name_23 (year INTEGER, record VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_23 WHERE record = "33-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:
Name the total number of years for a 39-31 record
### Context:
CREATE TABLE table_name_18 (year VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_18 WHERE record = "39-31" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least year for gene hassell manager and 6th finish
### Context:
CREATE TABLE table_name_98 (year INTEGER, manager VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_98 WHERE manager = "gene hassell" AND finish = "6th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the finish for a 39-31 record
### Context:
CREATE TABLE table_name_64 (finish VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_64 WHERE record = "39-31" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest goal difference for the club ud alzira, with a played larger than 38?
### Context:
CREATE TABLE table_name_59 (goal_difference INTEGER, club VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT MIN(goal_difference) FROM table_name_59 WHERE club = "ud alzira" AND played > 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goal difference sum that has goals against smaller than 33, draws larger than 13?
### Context:
CREATE TABLE table_name_27 (goal_difference INTEGER, goals_against VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT SUM(goal_difference) FROM table_name_27 WHERE goals_against < 33 AND draws > 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the transfer fee for damia
### Context:
CREATE TABLE table_name_27 (transfer_fee VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT transfer_fee FROM table_name_27 WHERE name = "damia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the moving to with a transfer fee of free with a transfer status for rodri
### Context:
CREATE TABLE table_name_24 (moving_to VARCHAR, name VARCHAR, transfer_fee VARCHAR, status VARCHAR) [/INST]
### Response:
SELECT moving_to FROM table_name_24 WHERE transfer_fee = "free" AND status = "transfer" AND name = "rodri" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played at the Western Oval venue?
### Context:
CREATE TABLE table_name_23 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_23 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 livery of the locomotive with a serial number 83-1010?
### Context:
CREATE TABLE table_name_33 (livery VARCHAR, serial_no VARCHAR) [/INST]
### Response:
SELECT livery FROM table_name_33 WHERE serial_no = "83-1010" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 livery on the locomotive with a serial number 83-1011?
### Context:
CREATE TABLE table_name_86 (livery VARCHAR, serial_no VARCHAR) [/INST]
### Response:
SELECT livery FROM table_name_86 WHERE serial_no = "83-1011" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 locomotive with a standard gauge and a serial number of 83-1015?
### Context:
CREATE TABLE table_name_74 (locomotive VARCHAR, gauge VARCHAR, serial_no VARCHAR) [/INST]
### Response:
SELECT locomotive FROM table_name_74 WHERE gauge = "standard" AND serial_no = "83-1015" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entered service for the locomotive with a broad gauge and a serial no of 83-1018?
### Context:
CREATE TABLE table_name_76 (entered_service VARCHAR, gauge VARCHAR, serial_no VARCHAR) [/INST]
### Response:
SELECT entered_service FROM table_name_76 WHERE gauge = "broad" AND serial_no = "83-1018" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue on October 16, 1996?
### Context:
CREATE TABLE table_name_13 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_13 WHERE date = "october 16, 1996" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the score at the October 30, 1996 1998 fifa world cup qualification with a result of win?
### Context:
CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR, result VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_58 WHERE result = "win" AND competition = "1998 fifa world cup qualification" AND date = "october 30, 1996" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the friendship cup?
### Context:
CREATE TABLE table_name_37 (date VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_37 WHERE competition = "friendship cup" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 smallest number for Cars per Set built in 1977-1979 larger than 32?
### Context:
CREATE TABLE table_name_88 (cars_per_set INTEGER, year_built VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT MIN(cars_per_set) FROM table_name_88 WHERE year_built = "1977-1979" AND number > 32 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest number of cars per set that is less than 9?
### Context:
CREATE TABLE table_name_30 (number INTEGER, cars_per_set INTEGER) [/INST]
### Response:
SELECT MAX(number) FROM table_name_30 WHERE cars_per_set < 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year was the class 253 larger than 18 built?
### Context:
CREATE TABLE table_name_10 (year_built VARCHAR, class VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT year_built FROM table_name_10 WHERE class = "class 253" AND number > 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 is the margin for the Masters Tournament (2) championship?
### Context:
CREATE TABLE table_name_34 (margin VARCHAR, championship VARCHAR) [/INST]
### Response:
SELECT margin FROM table_name_34 WHERE championship = "masters tournament (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 round of 54 holes in which Phil Mickelson was the runner-up?
### Context:
CREATE TABLE table_name_33 (runner_s__up VARCHAR) [/INST]
### Response:
SELECT 54 AS _holes FROM table_name_33 WHERE runner_s__up = "phil mickelson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the April 14 game?
### Context:
CREATE TABLE table_name_27 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_27 WHERE date = "april 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 date of the game with Detroit as the visitor team?
### Context:
CREATE TABLE table_name_23 (date VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_23 WHERE visitor = "detroit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 vieweres for the episode with a share of 1, a Rating larger than 0.7000000000000001, and a Rank (#) of 100/102?
### Context:
CREATE TABLE table_name_73 (viewers__m_ VARCHAR, rank___number_ VARCHAR, share VARCHAR, rating VARCHAR) [/INST]
### Response:
SELECT viewers__m_ FROM table_name_73 WHERE share = 1 AND rating > 0.7000000000000001 AND rank___number_ = "100/102" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the lead tpt for bass of kevin tomanka and alto 1 of alan moffett
### Context:
CREATE TABLE table_name_68 (lead_tpt VARCHAR, bass VARCHAR, alto_1 VARCHAR) [/INST]
### Response:
SELECT lead_tpt FROM table_name_68 WHERE bass = "kevin tomanka" AND alto_1 = "alan moffett" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the moorabbin oval venue?
### Context:
CREATE TABLE table_name_86 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_86 WHERE venue = "moorabbin 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 did the home team score against the away team collingwood?
### Context:
CREATE TABLE table_name_28 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_28 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the 1-letter for the amino acid asparagine?
### Context:
CREATE TABLE table_name_10 (amino_acid VARCHAR) [/INST]
### Response:
SELECT 1 AS _letter FROM table_name_10 WHERE amino_acid = "asparagine" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team North Melbourne's opponents score?
### Context:
CREATE TABLE table_name_40 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_40 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 Melbourne's score as the home team?
### Context:
CREATE TABLE table_name_16 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_16 WHERE home_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the away team at Junction Oval?
### Context:
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_63 WHERE venue = "junction oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the USCA that's Total is smaller than 14, with 1 Joint Music Award, MRHMA of 2, and RTHK of 3?
### Context:
CREATE TABLE table_name_67 (usca VARCHAR, rthk VARCHAR, mrhma VARCHAR, total VARCHAR, joint_music_award VARCHAR) [/INST]
### Response:
SELECT usca FROM table_name_67 WHERE total < 14 AND joint_music_award = "1" AND mrhma = "2" AND rthk = "3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Total with a Joint Music Award of 1, RTHK of 4, and USCA of 4?
### Context:
CREATE TABLE table_name_99 (total VARCHAR, usca VARCHAR, joint_music_award VARCHAR, rthk VARCHAR) [/INST]
### Response:
SELECT total FROM table_name_99 WHERE joint_music_award = "1" AND rthk = "4" AND usca = "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:
How many Joint Music Awards were there with a RTHK of 1, in a Year before 2006?
### Context:
CREATE TABLE table_name_81 (joint_music_award VARCHAR, year VARCHAR, rthk VARCHAR) [/INST]
### Response:
SELECT joint_music_award FROM table_name_81 WHERE year < 2006 AND rthk = "1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Joint Music Awards are there when the Total is larger than 18, in a Year after 2007?
### Context:
CREATE TABLE table_name_32 (joint_music_award VARCHAR, total VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT joint_music_award FROM table_name_32 WHERE total > 18 AND 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:
Which lane did the athlete swim in who had a semi-final time of 49.19?
### Context:
CREATE TABLE table_name_47 (lane INTEGER, semi VARCHAR) [/INST]
### Response:
SELECT MIN(lane) FROM table_name_47 WHERE semi = 49.19 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 species is male?
### Context:
CREATE TABLE table_name_70 (species VARCHAR, gender VARCHAR) [/INST]
### Response:
SELECT species FROM table_name_70 WHERE gender = "male" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the home teams score at Junction Oval?
### Context:
CREATE TABLE table_name_71 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_71 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 President has a Presidency greater than 7?
### Context:
CREATE TABLE table_name_6 (president VARCHAR, presidency INTEGER) [/INST]
### Response:
SELECT president FROM table_name_6 WHERE presidency > 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Presidency that Took Office after 1974 and Left Office in 1998?
### Context:
CREATE TABLE table_name_8 (presidency INTEGER, left_office VARCHAR, took_office VARCHAR) [/INST]
### Response:
SELECT MAX(presidency) FROM table_name_8 WHERE left_office = "1998" AND took_office > 1974 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Took Office Date of the Presidency that Left Office Incumbent?
### Context:
CREATE TABLE table_name_42 (took_office INTEGER, left_office VARCHAR) [/INST]
### Response:
SELECT SUM(took_office) FROM table_name_42 WHERE left_office = "incumbent" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 greatest Took Office dates that Left Office in 1998?
### Context:
CREATE TABLE table_name_22 (took_office INTEGER, left_office VARCHAR) [/INST]
### Response:
SELECT MAX(took_office) FROM table_name_22 WHERE left_office = "1998" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Laps for andrea de cesaris?
### Context:
CREATE TABLE table_name_76 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_76 WHERE driver = "andrea de cesaris" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Grid for jj lehto with over 51 laps?
### Context:
CREATE TABLE table_name_81 (grid INTEGER, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_81 WHERE laps > 51 AND driver = "jj lehto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Grid that has a Time/Retired of +2 laps, and under 51 laps?
### Context:
CREATE TABLE table_name_83 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_83 WHERE time_retired = "+2 laps" AND laps < 51 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the Home teams Venue near Victoria Park?
### Context:
CREATE TABLE table_name_48 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_48 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 is the Home team with a crowd relevant to footscray?
### Context:
CREATE TABLE table_name_33 (crowd VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_33 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 is the team's record when they play nashville at home?
### Context:
CREATE TABLE table_name_91 (record VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_91 WHERE home = "nashville" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 decision when they're at phoenix?
### Context:
CREATE TABLE table_name_22 (decision VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT decision FROM table_name_22 WHERE visitor = "phoenix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the Tournament of Frankfurt?
### Context:
CREATE TABLE table_name_66 (score VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_66 WHERE tournament = "frankfurt" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner in the Tournament of Graz-Seiersberg?
### Context:
CREATE TABLE table_name_56 (winner VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_56 WHERE tournament = "graz-seiersberg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 earned third place when the winner was Paul Haarhuis?
### Context:
CREATE TABLE table_name_68 (third_place VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT third_place FROM table_name_68 WHERE winner = "paul haarhuis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 most laps with the time/retired is differential and the grid is more than 2?
### Context:
CREATE TABLE table_name_35 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_35 WHERE time_retired = "differential" AND grid > 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the least laps when the grid is 5?
### Context:
CREATE TABLE table_name_94 (laps INTEGER, grid VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_94 WHERE grid = 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date was Anniston Army Depot (SE Industrial Area) deleted?
### Context:
CREATE TABLE table_name_8 (deleted VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT deleted FROM table_name_8 WHERE name = "anniston army depot (se industrial area)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what county is the entry that has a Construction Completed date of 07/19/2000 and a Listed date of 09/21/1984 located?
### Context:
CREATE TABLE table_name_68 (county VARCHAR, listed VARCHAR, construction_completed VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_68 WHERE listed = "09/21/1984" AND construction_completed = "07/19/2000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was Stauffer Chemical Company (Lemoyne Plant), which was listed on 09/21/1984, deleted?
### Context:
CREATE TABLE table_name_35 (deleted VARCHAR, listed VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT deleted FROM table_name_35 WHERE listed = "09/21/1984" AND name = "stauffer chemical company (lemoyne plant)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Proposed date of the entry that has a CERCLIS ID of al0001058056?
### Context:
CREATE TABLE table_name_56 (proposed VARCHAR, cerclis_id VARCHAR) [/INST]
### Response:
SELECT proposed FROM table_name_56 WHERE cerclis_id = "al0001058056" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first appeared in 1966 in the comic X-2-Y?
### Context:
CREATE TABLE table_name_60 (first_appearance VARCHAR, year VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT first_appearance FROM table_name_60 WHERE year = 1966 AND name = "x-2-y" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 baseball team is class AAA?
### Context:
CREATE TABLE table_name_75 (team VARCHAR, sport VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_75 WHERE sport = "baseball" AND class = "aaa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does Collingwood play their games?
### Context:
CREATE TABLE table_name_55 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_55 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which position does Robert Nkemdiche play?
### Context:
CREATE TABLE table_name_20 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_20 WHERE player = "robert nkemdiche" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Reuben Foster's college?
### Context:
CREATE TABLE table_name_59 (college VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_59 WHERE player = "reuben foster" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which position does the player from Muscle Shoals, Alabama play?
### Context:
CREATE TABLE table_name_68 (position VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_68 WHERE hometown = "muscle shoals, alabama" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player is attending college at Virginia?
### Context:
CREATE TABLE table_name_43 (player VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_43 WHERE college = "virginia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player attended Hoover High School?
### Context:
CREATE TABLE table_name_94 (player VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_94 WHERE school = "hoover high school" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the team's record on may 12 when they play the giants?
### Context:
CREATE TABLE table_name_58 (record VARCHAR, opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_58 WHERE opponent = "giants" AND date = "may 12" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the attendance at the game where San Jose was the visitor on May 4?
### Context:
CREATE TABLE table_name_32 (attendance VARCHAR, visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_32 WHERE visitor = "san jose" AND date = "may 4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team on the May 2 game?
### Context:
CREATE TABLE table_name_30 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_30 WHERE date = "may 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 date is the crowd larger than 20,000?
### Context:
CREATE TABLE table_name_56 (date VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT date FROM table_name_56 WHERE crowd > 20 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 record when the score was 11-10?
### Context:
CREATE TABLE table_name_85 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_85 WHERE score = "11-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 was the record when the attendance was 22,713?
### Context:
CREATE TABLE table_name_9 (record VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_9 WHERE attendance = "22,713" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance at the game when the record was 49-61?
### Context:
CREATE TABLE table_name_14 (attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_14 WHERE record = "49-61" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date was there a game in which the opponent was the Detroit Tigers, and the attendance was 38,639?
### Context:
CREATE TABLE table_name_24 (date VARCHAR, opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_24 WHERE opponent = "detroit tigers" AND attendance = "38,639" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 free sotware with the latest stable date version of 1.1?
### Context:
CREATE TABLE table_name_78 (software VARCHAR, cost___usd__ VARCHAR, latest_stable_date__version_ VARCHAR) [/INST]
### Response:
SELECT software FROM table_name_78 WHERE cost___usd__ = "free" AND latest_stable_date__version_ = "1.1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the software with the latest stable date of 0.6.1
### Context:
CREATE TABLE table_name_87 (software VARCHAR, latest_stable_date__version_ VARCHAR) [/INST]
### Response:
SELECT software FROM table_name_87 WHERE latest_stable_date__version_ = "0.6.1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the cost for latest stable date of online
### Context:
CREATE TABLE table_name_48 (cost___usd__ VARCHAR, latest_stable_date__version_ VARCHAR) [/INST]
### Response:
SELECT cost___usd__ FROM table_name_48 WHERE latest_stable_date__version_ = "online" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 birth place of the prime minister who served George V and entered office on 23 October 1922?
### Context:
CREATE TABLE table_name_83 (birth_place VARCHAR, monarchs_served VARCHAR, entered_office VARCHAR) [/INST]
### Response:
SELECT birth_place FROM table_name_83 WHERE monarchs_served = "george v" AND entered_office = "23 october 1922" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
To which political party did the prime minister who served under George V and was born in Manchester belong?
### Context:
CREATE TABLE table_name_5 (political_party VARCHAR, monarchs_served VARCHAR, birth_place VARCHAR) [/INST]
### Response:
SELECT political_party FROM table_name_5 WHERE monarchs_served = "george v" AND birth_place = "manchester" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date did the prime minister who entered office on 7 December 1916 leave office?
### Context:
CREATE TABLE table_name_49 (left_office VARCHAR, entered_office VARCHAR) [/INST]
### Response:
SELECT left_office FROM table_name_49 WHERE entered_office = "7 december 1916" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 monarch(s) did Stanley Baldwin (1st ministry) serve?
### Context:
CREATE TABLE table_name_18 (monarchs_served VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT monarchs_served FROM table_name_18 WHERE name = "stanley baldwin (1st ministry)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the game played at rich stadium?
### Context:
CREATE TABLE table_name_60 (date VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_60 WHERE game_site = "rich stadium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college has Chito Victolero?
### Context:
CREATE TABLE table_name_38 (college VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_38 WHERE player = "chito victolero" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college has Jojo Manalo?
### Context:
CREATE TABLE table_name_43 (college VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_43 WHERE player = "jojo manalo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pick number for the College of Perpetual help with the Coca-Cola Tigers as a PBA team?
### Context:
CREATE TABLE table_name_52 (pick VARCHAR, college VARCHAR, pba_team VARCHAR) [/INST]
### Response:
SELECT COUNT(pick) FROM table_name_52 WHERE college = "perpetual help" AND pba_team = "coca-cola tigers" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.