text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Position has a DOB of 13 may 1987?
### Context:
CREATE TABLE table_name_21 (position VARCHAR, dob VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_21 WHERE dob = "13 may 1987" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Bats have Throws of r, and a DOB of 22 may 1973?
### Context:
CREATE TABLE table_name_49 (bats VARCHAR, throws VARCHAR, dob VARCHAR) [/INST]
### Response:
SELECT bats FROM table_name_49 WHERE throws = "r" AND dob = "22 may 1973" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Croatia has a Friendly of world cup 2006 qualifier, and a 149 of 152?
### Context:
CREATE TABLE table_name_53 (croatia VARCHAR, friendly VARCHAR) [/INST]
### Response:
SELECT croatia FROM table_name_53 WHERE friendly = "world cup 2006 qualifier" AND 149 = 152 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For which production company did Sam Mccarthy produce?
### Context:
CREATE TABLE table_name_61 (production_company VARCHAR, producer_s_ VARCHAR) [/INST]
### Response:
SELECT production_company FROM table_name_61 WHERE producer_s_ = "sam mccarthy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director that worked with Dana Dorian as the writer?
### Context:
CREATE TABLE table_name_44 (director_s_ VARCHAR, writer_s_ VARCHAR) [/INST]
### Response:
SELECT director_s_ FROM table_name_44 WHERE writer_s_ = "dana dorian" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film, directed by Dana Dorian, was nominated?
### Context:
CREATE TABLE table_name_40 (film VARCHAR, rank VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_40 WHERE rank = "nominated" AND director_s_ = "dana dorian" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum for December against the vancouver canucks earlier than game 33?
### Context:
CREATE TABLE table_name_59 (december INTEGER, opponent VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT SUM(december) FROM table_name_59 WHERE opponent = "vancouver canucks" AND game < 33 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum for December when the record was 22-12-5?
### Context:
CREATE TABLE table_name_56 (december INTEGER, record VARCHAR) [/INST]
### Response:
SELECT SUM(december) FROM table_name_56 WHERE record = "22-12-5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When is the earliest year associated with team norton and 0 wins?
### Context:
CREATE TABLE table_name_12 (year INTEGER, team VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_12 WHERE team = "norton" AND wins < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the year that there were 0 wins, team AJS, and under 12 points?
### Context:
CREATE TABLE table_name_42 (year VARCHAR, points VARCHAR, wins VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_42 WHERE wins = 0 AND team = "ajs" AND points < 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 year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical?
### Context:
CREATE TABLE table_name_96 (year INTEGER, award_ceremony VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_96 WHERE award_ceremony = "drama desk award" AND category = "outstanding featured actress in a musical" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Loss for the long of more than 12 with a name of opponents with a Gain larger than 1751?
### Context:
CREATE TABLE table_name_26 (loss INTEGER, gain VARCHAR, long VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT AVG(loss) FROM table_name_26 WHERE long > 12 AND name = "opponents" AND gain > 1751 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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/2nd place finisher in the Caulfield Guineas?
### Context:
CREATE TABLE table_name_18 (winner_2nd VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT winner_2nd FROM table_name_18 WHERE race = "caulfield guineas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 jockey had a group of G3?
### Context:
CREATE TABLE table_name_76 (jockey VARCHAR, group VARCHAR) [/INST]
### Response:
SELECT jockey FROM table_name_76 WHERE group = "g3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time for the G2 group at the Hobartville Stakes?
### Context:
CREATE TABLE table_name_62 (time VARCHAR, group VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_62 WHERE group = "g2" AND race = "hobartville stakes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 airport has perth as the city?
### Context:
CREATE TABLE table_name_39 (airport VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_39 WHERE city = "perth" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city has tasmania as the state/territory and a ICAO of ymhb?
### Context:
CREATE TABLE table_name_24 (city VARCHAR, state_territory VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_24 WHERE state_territory = "tasmania" AND icao = "ymhb" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 airport has an ICAO of ybcg?
### Context:
CREATE TABLE table_name_11 (airport VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_11 WHERE icao = "ybcg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 IATA that has new south wales as the state/territory beginning on july 2009?
### Context:
CREATE TABLE table_name_1 (iata VARCHAR, state_territory VARCHAR, begin VARCHAR) [/INST]
### Response:
SELECT iata FROM table_name_1 WHERE state_territory = "new south wales" AND begin = "july 2009" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What IATA has queensland as the state/territory and an ICAO of ybrk?
### Context:
CREATE TABLE table_name_30 (iata VARCHAR, state_territory VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT iata FROM table_name_30 WHERE state_territory = "queensland" AND icao = "ybrk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 begin has victoria as the state/territory and a ICA0 of ymml?
### Context:
CREATE TABLE table_name_18 (begin VARCHAR, state_territory VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT begin FROM table_name_18 WHERE state_territory = "victoria" AND icao = "ymml" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visitor on March 27?
### Context:
CREATE TABLE table_name_59 (visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_59 WHERE date = "march 27" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on March 14?
### Context:
CREATE TABLE table_name_30 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_30 WHERE date = "march 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 format is at frequency 99.5 FM?
### Context:
CREATE TABLE table_name_14 (format VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_14 WHERE frequency = "99.5 fm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 format has the call sign DZFE?
### Context:
CREATE TABLE table_name_42 (format VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_42 WHERE call_sign = "dzfe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 covered location has a frequency of 90.7 FM
### Context:
CREATE TABLE table_name_32 (covered_location VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT covered_location FROM table_name_32 WHERE frequency = "90.7 fm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 frequency of 104.3 business radio?
### Context:
CREATE TABLE table_name_95 (frequency VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT frequency FROM table_name_95 WHERE name = "104.3 business radio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What name has the call sign DWYS?
### Context:
CREATE TABLE table_name_40 (name VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_40 WHERE call_sign = "dwys" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a DCSF number of 3373?
### Context:
CREATE TABLE table_name_19 (name VARCHAR, dcsf_number VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_19 WHERE dcsf_number = 3373 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 primary intake with an Ofsted number of 117433 and a DCSF number greater than 3335?
### Context:
CREATE TABLE table_name_62 (intake INTEGER, dcsf_number VARCHAR, type VARCHAR, ofsted_number VARCHAR) [/INST]
### Response:
SELECT AVG(intake) FROM table_name_62 WHERE type = "primary" AND ofsted_number = 117433 AND dcsf_number > 3335 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349?
### Context:
CREATE TABLE table_name_72 (ofsted_number INTEGER, dcsf_number VARCHAR, intake VARCHAR, type VARCHAR, faith VARCHAR) [/INST]
### Response:
SELECT MIN(ofsted_number) FROM table_name_72 WHERE type = "primary" AND faith = "ce" AND intake = 30 AND dcsf_number < 3349 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the Opponent that has the Result of w 37-14?
### Context:
CREATE TABLE table_name_25 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_25 WHERE result = "w 37-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:
Can you tell me the Opponent that has the Date of october 11, 1953?
### Context:
CREATE TABLE table_name_62 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_62 WHERE date = "october 11, 1953" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 West Coast League established than the championships are greater than 0?
### Context:
CREATE TABLE table_name_32 (established VARCHAR, championships VARCHAR, league VARCHAR) [/INST]
### Response:
SELECT established FROM table_name_32 WHERE championships > 0 AND league = "west coast league" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
During the Apple Bowl having 0 championships, what was the established year?
### Context:
CREATE TABLE table_name_65 (established INTEGER, championships VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT MAX(established) FROM table_name_65 WHERE championships = 0 AND venue = "apple bowl" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sport happened at Wildcat Stadium?
### Context:
CREATE TABLE table_name_3 (sport VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT sport FROM table_name_3 WHERE venue = "wildcat 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:
How many championships does Evergreen Premier League have?
### Context:
CREATE TABLE table_name_48 (championships INTEGER, league VARCHAR) [/INST]
### Response:
SELECT MAX(championships) FROM table_name_48 WHERE league = "evergreen premier league" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Position has a Round larger than 10, and a Name of shawn mccarthy?
### Context:
CREATE TABLE table_name_36 (position VARCHAR, round VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_36 WHERE round > 10 AND name = "shawn mccarthy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pick #s have a Name of tory epps, and a Round larger than 8?
### Context:
CREATE TABLE table_name_96 (pick__number VARCHAR, name VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT COUNT(pick__number) FROM table_name_96 WHERE name = "tory epps" AND round > 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team was the visitor with a record of 5-2-0?
### Context:
CREATE TABLE table_name_41 (visitor VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_41 WHERE record = "5-2-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score for the November 3 game?
### Context:
CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_10 WHERE date = "november 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 percent of others did ogm/news count when MARTIN had 9%?
### Context:
CREATE TABLE table_name_33 (others VARCHAR, martin VARCHAR, source VARCHAR) [/INST]
### Response:
SELECT others FROM table_name_33 WHERE martin = "9%" AND source = "ogm/news" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Undecided the others was 4%?
### Context:
CREATE TABLE table_name_70 (undecided VARCHAR, others VARCHAR) [/INST]
### Response:
SELECT undecided FROM table_name_70 WHERE others = "4%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Undecided on 2009-05-24?
### Context:
CREATE TABLE table_name_66 (undecided VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT undecided FROM table_name_66 WHERE date = "2009-05-24" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Date that has MARTIN of 7–9% and no Undecided?
### Context:
CREATE TABLE table_name_93 (date VARCHAR, undecided VARCHAR, martin VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_93 WHERE undecided = "–" AND martin = "7–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 is the Date when MARTIN had 8%?
### Context:
CREATE TABLE table_name_21 (date VARCHAR, martin VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_21 WHERE martin = "8%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Attendance has a Game smaller than 3, and a Date of october 31?
### Context:
CREATE TABLE table_name_49 (attendance VARCHAR, game VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_49 WHERE game < 3 AND date = "october 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 rank of player Charles Eady and a Bowling of 12/63?
### Context:
CREATE TABLE table_name_2 (rank VARCHAR, player VARCHAR, bowling VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_2 WHERE player = "charles eady" AND bowling = "12/63" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the Opponent partnering with Jordan Kerr, on a hard surface that was the winner?
### Context:
CREATE TABLE table_name_18 (opponent VARCHAR, partnering VARCHAR, surface VARCHAR, outcome VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_18 WHERE surface = "hard" AND outcome = "winner" AND partnering = "jordan kerr" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Year Average that has a Power of BHP (KW) and Trim of LS/2LT?
### Context:
CREATE TABLE table_name_25 (year INTEGER, power VARCHAR, trim VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_25 WHERE power = "bhp (kw)" AND trim = "ls/2lt" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Engine has a Year that's Larger than 2006 and Power of BHP (KW)?
### Context:
CREATE TABLE table_name_8 (engine VARCHAR, year VARCHAR, power VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_8 WHERE year > 2006 AND power = "bhp (kw)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Torque has a Power of HP (KW)?
### Context:
CREATE TABLE table_name_21 (torque VARCHAR, power VARCHAR) [/INST]
### Response:
SELECT torque FROM table_name_21 WHERE power = "hp (kw)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Year average that's got Trim of LS/LT and Power of HP (KW)?
### Context:
CREATE TABLE table_name_51 (year INTEGER, trim VARCHAR, power VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_51 WHERE trim = "ls/lt" AND power = "hp (kw)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the college with overall of 17
### Context:
CREATE TABLE table_name_65 (college VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_65 WHERE overall = 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 overall for tony baker
### Context:
CREATE TABLE table_name_15 (overall INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MIN(overall) FROM table_name_15 WHERE name = "tony baker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visiting team when Winnipeg was the home team?
### Context:
CREATE TABLE table_name_33 (visitor VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_33 WHERE home = "winnipeg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the game with a decision of Peeters and a record of 29–3–11?
### Context:
CREATE TABLE table_name_25 (score VARCHAR, decision VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_25 WHERE decision = "peeters" AND record = "29–3–11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Label of Catalogue # HVNLP26CD from United Kingdom?
### Context:
CREATE TABLE table_name_14 (label VARCHAR, country VARCHAR, catalogue__number VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_14 WHERE country = "united kingdom" AND catalogue__number = "hvnlp26cd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Country is Catalogue # ASW 50248 (724385024825) from?
### Context:
CREATE TABLE table_name_77 (country VARCHAR, catalogue__number VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_77 WHERE catalogue__number = "asw 50248 (724385024825)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the winning team of the South Pacific Trophy?
### Context:
CREATE TABLE table_name_22 (winning_team VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT winning_team FROM table_name_22 WHERE name = "south pacific trophy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Loss of gonzález (0–3) had what attendance?
### Context:
CREATE TABLE table_name_32 (attendance VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_32 WHERE loss = "gonzález (0–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:
Record of 92–70 had what date?
### Context:
CREATE TABLE table_name_70 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_70 WHERE record = "92–70" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Loss of kendrick (11–8) had what record?
### Context:
CREATE TABLE table_name_54 (record VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_54 WHERE loss = "kendrick (11–8)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Date of september 28 had what record?
### Context:
CREATE TABLE table_name_12 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_12 WHERE date = "september 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:
Attendance of 23,150 had what opponent?
### Context:
CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_49 WHERE attendance = "23,150" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Attendance of 36,796 had what score?
### Context:
CREATE TABLE table_name_46 (score VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_46 WHERE attendance = "36,796" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Long for derrick locke?
### Context:
CREATE TABLE table_name_30 (long INTEGER, name VARCHAR) [/INST]
### Response:
SELECT SUM(long) FROM table_name_30 WHERE name = "derrick locke" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Loss with Gain larger than 319 for derrick locke?
### Context:
CREATE TABLE table_name_10 (loss INTEGER, name VARCHAR, gain VARCHAR) [/INST]
### Response:
SELECT MIN(loss) FROM table_name_10 WHERE name = "derrick locke" AND gain > 319 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Head Coach of wojciech kamiński is what club?
### Context:
CREATE TABLE table_name_96 (club VARCHAR, head_coach VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_96 WHERE head_coach = "wojciech kamiński" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Sport of football, and a Venue of stadion polonii is what league?
### Context:
CREATE TABLE table_name_20 (league VARCHAR, sport VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_20 WHERE sport = "football" AND venue = "stadion polonii" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Sport of gaelic football and hurling is what league?
### Context:
CREATE TABLE table_name_8 (league VARCHAR, sport VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_8 WHERE sport = "gaelic football and hurling" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Venue of Pepsi arena involved what club?
### Context:
CREATE TABLE table_name_34 (club VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_34 WHERE venue = "pepsi arena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 earnings for Tom watson who had a ranking larger than 2?
### Context:
CREATE TABLE table_name_26 (earnings___ INTEGER, player VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(earnings___) AS $__ FROM table_name_26 WHERE player = "tom watson" AND rank > 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest earnings for curtis strange?
### Context:
CREATE TABLE table_name_60 (earnings___ INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(earnings___) AS $__ FROM table_name_60 WHERE player = "curtis strange" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year with an average start smaller than 6.3 and fewer than 0 wins?
### Context:
CREATE TABLE table_name_89 (year INTEGER, avg_start VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_89 WHERE avg_start < 6.3 AND wins < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Second has a Skip of barbora vojtusova?
### Context:
CREATE TABLE table_name_27 (second VARCHAR, skip VARCHAR) [/INST]
### Response:
SELECT second FROM table_name_27 WHERE skip = "barbora vojtusova" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Skip did marju velga lead?
### Context:
CREATE TABLE table_name_22 (skip VARCHAR, lead VARCHAR) [/INST]
### Response:
SELECT skip FROM table_name_22 WHERE lead = "marju velga" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lead has a Second of katrin kuusk?
### Context:
CREATE TABLE table_name_23 (lead VARCHAR, second VARCHAR) [/INST]
### Response:
SELECT lead FROM table_name_23 WHERE second = "katrin kuusk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Third has a Skip of ellen vogt?
### Context:
CREATE TABLE table_name_58 (third VARCHAR, skip VARCHAR) [/INST]
### Response:
SELECT third FROM table_name_58 WHERE skip = "ellen vogt" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Third has a Second of agnieszka ogrodniczek?
### Context:
CREATE TABLE table_name_11 (third VARCHAR, second VARCHAR) [/INST]
### Response:
SELECT third FROM table_name_11 WHERE second = "agnieszka ogrodniczek" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Spain's skip?
### Context:
CREATE TABLE table_name_92 (skip VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT skip FROM table_name_92 WHERE nation = "spain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Per capita income associated with a Median household income of $55,800?
### Context:
CREATE TABLE table_name_49 (per_capita_income VARCHAR, median_household_income VARCHAR) [/INST]
### Response:
SELECT per_capita_income FROM table_name_49 WHERE median_household_income = "$55,800" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the margin of victory at the Texas International Open?
### Context:
CREATE TABLE table_name_44 (margin_of_victory VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_44 WHERE tournament = "texas international open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the margin of victory in the tournament with a winning score of −3 (74-68-72-71=285)?
### Context:
CREATE TABLE table_name_60 (margin_of_victory VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_60 WHERE winning_score = −3(74 - 68 - 72 - 71 = 285) </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Avg/G has an Effic larger than 129.73, and a Cmp-Att-Int of 333-500-13?
### Context:
CREATE TABLE table_name_63 (avg_g INTEGER, effic VARCHAR, cmp_att_int VARCHAR) [/INST]
### Response:
SELECT SUM(avg_g) FROM table_name_63 WHERE effic > 129.73 AND cmp_att_int = "333-500-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:
Which Effic is the highest one that has an Avg/G smaller than 305.6, and a GP-GS of 13-13?
### Context:
CREATE TABLE table_name_56 (effic INTEGER, avg_g VARCHAR, gp_gs VARCHAR) [/INST]
### Response:
SELECT MAX(effic) FROM table_name_56 WHERE avg_g < 305.6 AND gp_gs = "13-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:
Which Avg/G that has a Name of opponents, and an Effic smaller than 129.73?
### Context:
CREATE TABLE table_name_69 (avg_g INTEGER, name VARCHAR, effic VARCHAR) [/INST]
### Response:
SELECT SUM(avg_g) FROM table_name_69 WHERE name = "opponents" AND effic < 129.73 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Cmp-Att-Int has a GP-GS of 3-0?
### Context:
CREATE TABLE table_name_61 (cmp_att_int VARCHAR, gp_gs VARCHAR) [/INST]
### Response:
SELECT cmp_att_int FROM table_name_61 WHERE gp_gs = "3-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Effic is the average one that has an Avg/G larger than 3.7, and a GP-GS of 13, and a Cmp-Att-Int of 318-521-15?
### Context:
CREATE TABLE table_name_9 (effic INTEGER, cmp_att_int VARCHAR, avg_g VARCHAR, gp_gs VARCHAR) [/INST]
### Response:
SELECT AVG(effic) FROM table_name_9 WHERE avg_g > 3.7 AND gp_gs = "13" AND cmp_att_int = "318-521-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:
Which home team was playing on January 13?
### Context:
CREATE TABLE table_name_87 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_87 WHERE date = "january 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:
How many runs were there when the high score was 55 and there were more than 12 innings?
### Context:
CREATE TABLE table_name_34 (runs INTEGER, high_score VARCHAR, innings VARCHAR) [/INST]
### Response:
SELECT SUM(runs) FROM table_name_34 WHERE high_score = 55 AND innings > 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:
How many runs were there when there was 1 match and les than 86 average?
### Context:
CREATE TABLE table_name_1 (runs INTEGER, matches VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT SUM(runs) FROM table_name_1 WHERE matches = 1 AND average < 86 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 station has programming of Me-TV?
### Context:
CREATE TABLE table_name_78 (station VARCHAR, programming VARCHAR) [/INST]
### Response:
SELECT station FROM table_name_78 WHERE programming = "me-tv" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 station has programming of Me-TV?
### Context:
CREATE TABLE table_name_33 (station VARCHAR, programming VARCHAR) [/INST]
### Response:
SELECT station FROM table_name_33 WHERE programming = "me-tv" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 short name having video of 720p and programming of Main KSTC-TV programming?
### Context:
CREATE TABLE table_name_19 (psip_short_name VARCHAR, video VARCHAR, programming VARCHAR) [/INST]
### Response:
SELECT psip_short_name FROM table_name_19 WHERE video = "720p" AND programming = "main kstc-tv programming" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 video associated with a short name of KSTCDT2?
### Context:
CREATE TABLE table_name_36 (video VARCHAR, psip_short_name VARCHAR) [/INST]
### Response:
SELECT video FROM table_name_36 WHERE psip_short_name = "kstcdt2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 short name of channel 5.5, KSTC-TV?
### Context:
CREATE TABLE table_name_95 (psip_short_name VARCHAR, station VARCHAR, channel VARCHAR) [/INST]
### Response:
SELECT psip_short_name FROM table_name_95 WHERE station = "kstc-tv" AND channel = 5.5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the short name of the channel under 5.2?
### Context:
CREATE TABLE table_name_2 (psip_short_name VARCHAR, channel INTEGER) [/INST]
### Response:
SELECT psip_short_name FROM table_name_2 WHERE channel < 5.2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which prefecture is in Hubei province and Enshi county?
### Context:
CREATE TABLE table_name_94 (prefecture VARCHAR, province VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT prefecture FROM table_name_94 WHERE province = "hubei" AND county = "enshi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Tujia population with the Zhangjiajie prefecture in Sangzhi county?
### Context:
CREATE TABLE table_name_20 (tujia_population INTEGER, prefecture VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT SUM(tujia_population) FROM table_name_20 WHERE prefecture = "zhangjiajie" AND county = "sangzhi" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.