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:
How big is the Venue of Brunswick Street Oval?
### Context:
CREATE TABLE table_name_47 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_47 WHERE venue = "brunswick street oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Away Team score of North Melbourne?
### Context:
CREATE TABLE table_name_24 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_24 WHERE away_team = "north melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the number of Personal Staff Units Killed?
### Context:
CREATE TABLE table_name_55 (killed VARCHAR, unit VARCHAR) [/INST]
### Response:
SELECT killed FROM table_name_55 WHERE unit = "personal staff" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Complement of Artillery Corps Units that had 0 off 0 men Killed or Wounded?
### Context:
CREATE TABLE table_name_53 (complement VARCHAR, unit VARCHAR, killed VARCHAR, wounded VARCHAR) [/INST]
### Response:
SELECT complement FROM table_name_53 WHERE killed = "0 off 0 men" AND wounded = "0 off 0 men" AND unit = "artillery corps" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were Wounded while in a Unit with a Complement of 83 off 9 Men?
### Context:
CREATE TABLE table_name_79 (wounded VARCHAR, complement VARCHAR) [/INST]
### Response:
SELECT wounded FROM table_name_79 WHERE complement = "83 off 9 men" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0 men and a Wounded of 0 off 0 men?
### Context:
CREATE TABLE table_name_89 (missing VARCHAR, unit VARCHAR, killed VARCHAR, wounded VARCHAR) [/INST]
### Response:
SELECT missing FROM table_name_89 WHERE killed = "0 off 0 men" AND wounded = "0 off 0 men" AND unit = "royal waggon train" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were Wounded in the Artillery Corps unit while having 0 off 0 men Killed?
### Context:
CREATE TABLE table_name_24 (wounded VARCHAR, killed VARCHAR, unit VARCHAR) [/INST]
### Response:
SELECT wounded FROM table_name_24 WHERE killed = "0 off 0 men" AND unit = "artillery corps" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 suface during the game that had Yevgeny Kafelnikov as an opponent?
### Context:
CREATE TABLE table_name_38 (surface VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_38 WHERE opponent = "yevgeny kafelnikov" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 earliest week that the Storm played the San Jose Sabercats?
### Context:
CREATE TABLE table_name_63 (week INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_63 WHERE opponent = "san jose sabercats" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were in attendance when the score was † 4–4 †?
### Context:
CREATE TABLE table_name_33 (attendance VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_33 WHERE score = "† 4–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 people were watching when Livingston was the runner-up?
### Context:
CREATE TABLE table_name_95 (attendance VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_95 WHERE runner_up = "livingston" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average grid has laps larger than 52 and contains the driver of andrea de adamich?
### Context:
CREATE TABLE table_name_36 (grid INTEGER, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_36 WHERE laps > 52 AND driver = "andrea de adamich" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest lap that contains the driver of graham hill and a grid that is larger than 18?
### Context:
CREATE TABLE table_name_34 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_34 WHERE driver = "graham hill" AND grid > 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's the average grid that has a time/retired piston and laps smaller than 15?
### Context:
CREATE TABLE table_name_81 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_81 WHERE time_retired = "piston" AND laps < 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:
Who is the tuner after season 2004 with Gaurav Gill as the driver, Team MRF, and Mai governing body?
### Context:
CREATE TABLE table_name_86 (tuner VARCHAR, governing_body VARCHAR, team VARCHAR, season VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT tuner FROM table_name_86 WHERE season > 2004 AND driver = "gaurav gill" AND team = "team mrf" AND governing_body = "mai" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver in season 2003 with a tuner of N. Leelakrishnan and a Mai governing body?
### Context:
CREATE TABLE table_name_37 (driver VARCHAR, season VARCHAR, tuner VARCHAR, governing_body VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_37 WHERE tuner = "n. leelakrishnan" AND governing_body = "mai" AND season = 2003 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 turner on Team MRF?
### Context:
CREATE TABLE table_name_23 (tuner VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT tuner FROM table_name_23 WHERE team = "mrf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the earliest season with driver Farad Bathena?
### Context:
CREATE TABLE table_name_34 (season INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT MIN(season) FROM table_name_34 WHERE driver = "farad bathena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Major League Soccer team for the 2005 season has the lowest goals?
### Context:
CREATE TABLE table_name_63 (goals INTEGER, league VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT MIN(goals) FROM table_name_63 WHERE league = "major league soccer" AND season = "2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 are the average apps for the Major League Soccer team club for the Seattle Sounders FC that has goals less than 0?
### Context:
CREATE TABLE table_name_43 (apps INTEGER, goals VARCHAR, league VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT AVG(apps) FROM table_name_43 WHERE league = "major league soccer" AND club = "seattle sounders fc" AND goals < 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 Icelandic has a Danish of blåt/blå?
### Context:
CREATE TABLE table_name_59 (icelandic VARCHAR, danish VARCHAR) [/INST]
### Response:
SELECT icelandic FROM table_name_59 WHERE danish = "blåt/blå" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Icelandic has a Norwegian (nynorsk) of kvitt/kvit?
### Context:
CREATE TABLE table_name_47 (icelandic VARCHAR, norwegian__nynorsk_ VARCHAR) [/INST]
### Response:
SELECT icelandic FROM table_name_47 WHERE norwegian__nynorsk_ = "kvitt/kvit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Faroese has an English of white?
### Context:
CREATE TABLE table_name_83 (faroese VARCHAR, english VARCHAR) [/INST]
### Response:
SELECT faroese FROM table_name_83 WHERE english = "white" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Norwegian (nynorsk) has a Danish of farvel?
### Context:
CREATE TABLE table_name_12 (norwegian__nynorsk_ VARCHAR, danish VARCHAR) [/INST]
### Response:
SELECT norwegian__nynorsk_ FROM table_name_12 WHERE danish = "farvel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 English has a Danish of rødt/rød?
### Context:
CREATE TABLE table_name_69 (english VARCHAR, danish VARCHAR) [/INST]
### Response:
SELECT english FROM table_name_69 WHERE danish = "rødt/rød" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number of Congress has 44 cosponsors?
### Context:
CREATE TABLE table_name_97 (congress VARCHAR, _number_of_cosponsors VARCHAR) [/INST]
### Response:
SELECT congress FROM table_name_97 WHERE _number_of_cosponsors = 44 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the sponsor on April 22, 2004?
### Context:
CREATE TABLE table_name_43 (sponsor VARCHAR, date_introduced VARCHAR) [/INST]
### Response:
SELECT sponsor FROM table_name_43 WHERE date_introduced = "april 22, 2004" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the game when the New York Rangers were the home team?
### Context:
CREATE TABLE table_name_98 (score VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_98 WHERE home = "new york rangers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result on 8 October 1961?
### Context:
CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_26 WHERE date = "8 october 1961" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the venue of the game on 27 April 1964?
### Context:
CREATE TABLE table_name_33 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_33 WHERE date = "27 april 1964" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the home team score when the away team was Hawthorn?
### Context:
CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_1 WHERE away_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the game against Divij Sharan?
### Context:
CREATE TABLE table_name_56 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_56 WHERE opponent_in_the_final = "divij sharan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 match that was a played on a hard surface against Peter Gojowczyk?
### Context:
CREATE TABLE table_name_85 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_85 WHERE surface = "hard" AND opponent_in_the_final = "peter gojowczyk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attended the game with a record of 43-34?
### Context:
CREATE TABLE table_name_59 (attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_59 WHERE record = "43-34" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Manuela Maleeva opponent when she played a match partnered with michelle strebel?
### Context:
CREATE TABLE table_name_81 (opponents VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT opponents FROM table_name_81 WHERE partner = "michelle strebel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the percent is larger than 0.685, what is the average number of points scored?
### Context:
CREATE TABLE table_name_61 (points INTEGER, pct__percentage INTEGER) [/INST]
### Response:
SELECT AVG(points) FROM table_name_61 WHERE pct__percentage > 0.685 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 less than 37 points are scored, what's the lowest Pct % found?
### Context:
CREATE TABLE table_name_90 (pct__percentage INTEGER, points INTEGER) [/INST]
### Response:
SELECT MIN(pct__percentage) FROM table_name_90 WHERE points < 37 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many rounds did the event rings: king of kings 2000 block a have with a record of 6-1?
### Context:
CREATE TABLE table_name_82 (round VARCHAR, event VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_82 WHERE event = "rings: king of kings 2000 block a" AND record = "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:
How long was the fight 'adrenaline mma 3'?
### Context:
CREATE TABLE table_name_72 (time VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_72 WHERE event = "adrenaline mma 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 was roberto travern's record when he fought against john salter?
### Context:
CREATE TABLE table_name_60 (record VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_60 WHERE opponent = "john salter" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the away team at the MCG?
### Context:
CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_16 WHERE venue = "mcg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who constructed the car with a grid larger than 20 that got in an accident?
### Context:
CREATE TABLE table_name_1 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_1 WHERE grid > 20 AND time_retired = "accident" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 CFL Team of montreal alouettes (via edmonton)?
### Context:
CREATE TABLE table_name_6 (position VARCHAR, cfl_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_6 WHERE cfl_team = "montreal alouettes (via edmonton)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Player has a CFL Team of montreal alouettes (via hamilton via winnipeg)?
### Context:
CREATE TABLE table_name_23 (player VARCHAR, cfl_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_23 WHERE cfl_team = "montreal alouettes (via hamilton via 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:
Which Position has a Player of patrick macdonald?
### Context:
CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_35 WHERE player = "patrick macdonald" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series had Joan Tena in sixth place?
### Context:
CREATE TABLE table_name_54 (series INTEGER, sixth_place VARCHAR) [/INST]
### Response:
SELECT SUM(series) FROM table_name_54 WHERE sixth_place = "joan tena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in sixth place in series 7?
### Context:
CREATE TABLE table_name_34 (sixth_place VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT sixth_place FROM table_name_34 WHERE series = 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:
Who was sixth place when Hugo Salazar was fifth place?
### Context:
CREATE TABLE table_name_19 (sixth_place VARCHAR, fifth_place VARCHAR) [/INST]
### Response:
SELECT sixth_place FROM table_name_19 WHERE fifth_place = "hugo salazar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 third place when Fran Dieli was fifth place?
### Context:
CREATE TABLE table_name_78 (third_place VARCHAR, fifth_place VARCHAR) [/INST]
### Response:
SELECT third_place FROM table_name_78 WHERE fifth_place = "fran dieli" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Order and Title with an Elevated with 1261, december 17, and a Faction with angevin?
### Context:
CREATE TABLE table_name_88 (order_and_title VARCHAR, elevated VARCHAR, faction VARCHAR) [/INST]
### Response:
SELECT order_and_title FROM table_name_88 WHERE elevated = "1261, december 17" AND faction = "angevin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Elector with a Nationality with roman, and an Elevator of urban iv, and an Elevated with 1261, december 17?
### Context:
CREATE TABLE table_name_5 (elector VARCHAR, elevated VARCHAR, nationality VARCHAR, elevator VARCHAR) [/INST]
### Response:
SELECT elector FROM table_name_5 WHERE nationality = "roman" AND elevator = "urban iv" AND elevated = "1261, december 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:
What is the Nationality with an Elector with bertrand de saint-martin?
### Context:
CREATE TABLE table_name_36 (nationality VARCHAR, elector VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_36 WHERE elector = "bertrand de saint-martin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Order and Title with a Nationality with roman, and an Elector with matteo orsini rosso?
### Context:
CREATE TABLE table_name_6 (order_and_title VARCHAR, nationality VARCHAR, elector VARCHAR) [/INST]
### Response:
SELECT order_and_title FROM table_name_6 WHERE nationality = "roman" AND elector = "matteo orsini rosso" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Elector with a Faction of roman, and an Elevated with 1244, may 28?
### Context:
CREATE TABLE table_name_56 (elector VARCHAR, faction VARCHAR, elevated VARCHAR) [/INST]
### Response:
SELECT elector FROM table_name_56 WHERE faction = "roman" AND elevated = "1244, may 28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the mult value of the microprocessor with a release date q4 2007 and model number pentium dual-core t2310?
### Context:
CREATE TABLE table_name_73 (mult VARCHAR, release_date VARCHAR, model_number VARCHAR) [/INST]
### Response:
SELECT mult FROM table_name_73 WHERE release_date = "q4 2007" AND model_number = "pentium dual-core t2310" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 L2 cache of the microprocessor with model number pentium dual-core t3400?
### Context:
CREATE TABLE table_name_91 (l2_cache VARCHAR, model_number VARCHAR) [/INST]
### Response:
SELECT l2_cache FROM table_name_91 WHERE model_number = "pentium dual-core t3400" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 release price (USD) of the microprocessor with a model number pentium dual-core t2330?
### Context:
CREATE TABLE table_name_32 (release_price___usd__ VARCHAR, model_number VARCHAR) [/INST]
### Response:
SELECT release_price___usd__ FROM table_name_32 WHERE model_number = "pentium dual-core t2330" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Patrick Tambay have the fastest lap?
### Context:
CREATE TABLE table_name_35 (date VARCHAR, fastest_lap VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_35 WHERE fastest_lap = "patrick tambay" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 held the pole position in SPA-Francorchamps?
### Context:
CREATE TABLE table_name_41 (pole_position VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT pole_position FROM table_name_41 WHERE location = "spa-francorchamps" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Long Beach constructor?
### Context:
CREATE TABLE table_name_24 (constructor VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_24 WHERE location = "long beach" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 St Kilda score when they were the home team?
### Context:
CREATE TABLE table_name_53 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_53 WHERE home_team = "st kilda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did the home team score when South Melbourne was the away team?
### Context:
CREATE TABLE table_name_6 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_6 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the leading scorer for april 12, 2008
### Context:
CREATE TABLE table_name_13 (leading_scorer VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_13 WHERE date = "april 12, 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score for the home team that played at Brunswick Street Oval?
### Context:
CREATE TABLE table_name_52 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_52 WHERE venue = "brunswick street oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the name for seasons 1981 and an order more than 807?
### Context:
CREATE TABLE table_name_49 (name VARCHAR, seasons VARCHAR, order VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_49 WHERE seasons = "1981" AND order > 807 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What away team played in Lake Oval?
### Context:
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_63 WHERE venue = "lake oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which tournament was on 2009 with 11?
### Context:
CREATE TABLE table_name_30 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_30 WHERE 2009 = "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 driver went 59 laps on grid 11?
### Context:
CREATE TABLE table_name_57 (driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_57 WHERE laps = 59 AND grid = 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:
Which driver has a grid value of 22?
### Context:
CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_38 WHERE grid = "22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 value of time/retired for Jean Alesi?
### Context:
CREATE TABLE table_name_29 (time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_29 WHERE driver = "jean alesi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the time/retired is electrical how many laps did Rubens Barrichello have?
### Context:
CREATE TABLE table_name_53 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_53 WHERE time_retired = "electrical" AND driver = "rubens barrichello" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps did Eddie Irvine have?
### Context:
CREATE TABLE table_name_73 (laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_73 WHERE driver = "eddie irvine" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In the game where the Hornets were the home team and Clippers the visiting team, what is the score?
### Context:
CREATE TABLE table_name_9 (score VARCHAR, home VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_9 WHERE home = "hornets" AND visitor = "clippers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 finish has a 99.550 Qual?
### Context:
CREATE TABLE table_name_13 (finish VARCHAR, qual VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_13 WHERE qual = "99.550" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Qual with laps less than 200 and an 11 start?
### Context:
CREATE TABLE table_name_4 (qual VARCHAR, laps VARCHAR, start VARCHAR) [/INST]
### Response:
SELECT qual FROM table_name_4 WHERE laps < 200 AND start = "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:
Which rank is the start of totals?
### Context:
CREATE TABLE table_name_78 (rank VARCHAR, start VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_78 WHERE start = "totals" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year has 112 laps?
### Context:
CREATE TABLE table_name_31 (year VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_31 WHERE laps = 112 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what surface was the score in the final 0–6, 4–6?
### Context:
CREATE TABLE table_name_47 (surface VARCHAR, score_in_the_final VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_47 WHERE score_in_the_final = "0–6, 4–6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score in the final had a tournament of $25,000 Glasgow, Great Britain?
### Context:
CREATE TABLE table_name_82 (score_in_the_final VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT score_in_the_final FROM table_name_82 WHERE tournament = "$25,000 glasgow, great britain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface has a score in the final of 4–6, 3–6?
### Context:
CREATE TABLE table_name_77 (surface VARCHAR, score_in_the_final VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_77 WHERE score_in_the_final = "4–6, 3–6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
how many times is the nation listed as united states with the total more than 1?
### Context:
CREATE TABLE table_name_44 (silver VARCHAR, nation VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT COUNT(silver) FROM table_name_44 WHERE nation = "united states" AND total > 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:
what is the lowest total when the rank is less than 2 and bronze is more than 0?
### Context:
CREATE TABLE table_name_30 (total INTEGER, rank VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_30 WHERE rank < 2 AND bronze > 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 nation with a total of 1, bronze smaller than 1 and a rank of 3?
### Context:
CREATE TABLE table_name_62 (nation VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_62 WHERE total = 1 AND bronze < 1 AND rank = 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 rank when silver is less than 0?
### Context:
CREATE TABLE table_name_6 (rank INTEGER, silver INTEGER) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_6 WHERE silver < 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 amount of silver when gold is 2 and the rank is more than 1?
### Context:
CREATE TABLE table_name_6 (silver INTEGER, gold VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT AVG(silver) FROM table_name_6 WHERE gold = 2 AND rank > 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:
Which home has a Decision of kolzig, and a Date of november 5?
### Context:
CREATE TABLE table_name_9 (home VARCHAR, decision VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_9 WHERE decision = "kolzig" AND date = "november 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:
Which score has a Decision of johnson?
### Context:
CREATE TABLE table_name_29 (score VARCHAR, decision VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_29 WHERE decision = "johnson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date has a Home of washington, a Visitor of florida, and a Record of 8-15-2?
### Context:
CREATE TABLE table_name_78 (date VARCHAR, record VARCHAR, home VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_78 WHERE home = "washington" AND visitor = "florida" AND record = "8-15-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 total of attendance with a Record of 5-9-0?
### Context:
CREATE TABLE table_name_69 (attendance INTEGER, record VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_69 WHERE record = "5-9-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 score has a Date of november 2?
### Context:
CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_2 WHERE date = "november 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's the length of route FM 2895 with junctions sh 359 us 59?
### Context:
CREATE TABLE table_name_29 (length VARCHAR, junctions VARCHAR, route_name VARCHAR) [/INST]
### Response:
SELECT length FROM table_name_29 WHERE junctions = "sh 359 us 59" AND route_name = "fm 2895" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 termini of the route with junctions of i-35 fm 3338 sh 255?
### Context:
CREATE TABLE table_name_2 (termini VARCHAR, junctions VARCHAR) [/INST]
### Response:
SELECT termini FROM table_name_2 WHERE junctions = "i-35 fm 3338 sh 255" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 are the junctions of the route with termini aguilares, texas us 59?
### Context:
CREATE TABLE table_name_98 (junctions VARCHAR, termini VARCHAR) [/INST]
### Response:
SELECT junctions FROM table_name_98 WHERE termini = "aguilares, texas us 59" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 route has termini of fm 1472 sh 255?
### Context:
CREATE TABLE table_name_49 (route_name VARCHAR, termini VARCHAR) [/INST]
### Response:
SELECT route_name FROM table_name_49 WHERE termini = "fm 1472 sh 255" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 termini does the route with a population Area of aguilares have?
### Context:
CREATE TABLE table_name_40 (termini VARCHAR, population_area VARCHAR) [/INST]
### Response:
SELECT termini FROM table_name_40 WHERE population_area = "aguilares" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 length of the route with junctions of ur 1472 sh 255?
### Context:
CREATE TABLE table_name_99 (length VARCHAR, junctions VARCHAR) [/INST]
### Response:
SELECT length FROM table_name_99 WHERE junctions = "ur 1472 sh 255" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 champion was from the location of Morrisville, NC, and whose SemiFinalist #2 of Clemson?
### Context:
CREATE TABLE table_name_47 (champion VARCHAR, location VARCHAR, semi_finalist__number2 VARCHAR) [/INST]
### Response:
SELECT champion FROM table_name_47 WHERE location = "morrisville, nc" AND semi_finalist__number2 = "clemson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 champion got a score of 12-1?
### Context:
CREATE TABLE table_name_78 (champion VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT champion FROM table_name_78 WHERE score = "12-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:
Who was champion in 2005 where the semi-finalist was #1 in western Carolina?
### Context:
CREATE TABLE table_name_36 (champion VARCHAR, year VARCHAR, semi_finalist__number1 VARCHAR) [/INST]
### Response:
SELECT champion FROM table_name_36 WHERE year = 2005 AND semi_finalist__number1 = "western carolina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runner-up placed in a year prior to 2006 and whose Champion was Elon?
### Context:
CREATE TABLE table_name_66 (runner_up VARCHAR, year VARCHAR, champion VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_66 WHERE year < 2006 AND champion = "elon" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.