text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date is associated with the label Village Records?
### Context:
CREATE TABLE table_name_88 (date VARCHAR, label VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_88 WHERE label = "village records" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round for southampton opponents
### Context:
CREATE TABLE table_name_43 (round VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_43 WHERE opponents = "southampton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 most attendance for 19 february 2005
### Context:
CREATE TABLE table_name_62 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_62 WHERE date = "19 february 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:
Name the sum of attendance for round 3
### Context:
CREATE TABLE table_name_22 (attendance INTEGER, round VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_22 WHERE round = "round 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 team is owned by Mark Smith and has Paul Clapprood as a crew chief?
### Context:
CREATE TABLE table_name_8 (team VARCHAR, owner_s_ VARCHAR, crew_chief VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_8 WHERE owner_s_ = "mark smith" AND crew_chief = "paul clapprood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Mike Wallace's primary Sponsor(s)?
### Context:
CREATE TABLE table_name_45 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR) [/INST]
### Response:
SELECT primary_sponsor_s_ FROM table_name_45 WHERE driver_s_ = "mike wallace" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has Scott Zipadelli as a crew chief?
### Context:
CREATE TABLE table_name_44 (driver_s_ VARCHAR, crew_chief VARCHAR) [/INST]
### Response:
SELECT driver_s_ FROM table_name_44 WHERE crew_chief = "scott zipadelli" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team does Reed Sorenson drive for?
### Context:
CREATE TABLE table_name_22 (team VARCHAR, driver_s_ VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_22 WHERE driver_s_ = "reed sorenson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Austin Dillon's primary sponsor(s)?
### Context:
CREATE TABLE table_name_55 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR) [/INST]
### Response:
SELECT primary_sponsor_s_ FROM table_name_55 WHERE driver_s_ = "austin dillon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Eric McClure's and Tristar Motorsports' crew chief?
### Context:
CREATE TABLE table_name_36 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR) [/INST]
### Response:
SELECT crew_chief FROM table_name_36 WHERE team = "tristar motorsports" AND driver_s_ = "eric mcclure" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank from Lane 4?
### Context:
CREATE TABLE table_name_44 (rank INTEGER, lane VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_44 WHERE lane = 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 ranks are higher than lane 4 from Great Britain, raced by Margaretha Pedder?
### Context:
CREATE TABLE table_name_83 (rank VARCHAR, name VARCHAR, lane VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_83 WHERE lane > 4 AND nationality = "great britain" AND name = "margaretha pedder" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank from Great Britain with a time of 2:10.33?
### Context:
CREATE TABLE table_name_40 (rank INTEGER, nationality VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_40 WHERE nationality = "great britain" AND time = "2:10.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:
How many Lanes have a rank higher than 3 with a time of 2:08.11?
### Context:
CREATE TABLE table_name_72 (lane VARCHAR, time VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(lane) FROM table_name_72 WHERE time = "2:08.11" 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:
Tkkm o te ara rima has a decile less than 4 in what years?
### Context:
CREATE TABLE table_name_36 (years VARCHAR, decile VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_36 WHERE decile < 4 AND name = "tkkm o te ara rima" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 authority does the rototuna area have?
### Context:
CREATE TABLE table_name_35 (authority VARCHAR, area VARCHAR) [/INST]
### Response:
SELECT authority FROM table_name_35 WHERE area = "rototuna" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 award was Hannah Gal the recipient of?
### Context:
CREATE TABLE table_name_23 (award VARCHAR, recipient VARCHAR) [/INST]
### Response:
SELECT award FROM table_name_23 WHERE recipient = "hannah gal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the recipient when the director was Susan Jacobson?
### Context:
CREATE TABLE table_name_31 (recipient VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT recipient FROM table_name_31 WHERE director_s_ = "susan jacobson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film where Hannah Gal was the director?
### Context:
CREATE TABLE table_name_67 (film VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_67 WHERE director_s_ = "hannah gal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film dated 22/3/06 and redhouse lane / perfect world was the recipient?
### Context:
CREATE TABLE table_name_35 (film VARCHAR, date VARCHAR, recipient VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_35 WHERE date = "22/3/06" AND recipient = "redhouse lane / perfect world" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the film with an award of £5,380?
### Context:
CREATE TABLE table_name_18 (film VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_18 WHERE award = "£5,380" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis was paired with climax straight-4?
### Context:
CREATE TABLE table_name_32 (chassis VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_32 WHERE engine = "climax straight-4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year did Cooper Car Company enter?
### Context:
CREATE TABLE table_name_35 (year INTEGER, entrant VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_35 WHERE entrant = "cooper car company" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year has more than 0 points?
### Context:
CREATE TABLE table_name_56 (year VARCHAR, points INTEGER) [/INST]
### Response:
SELECT year FROM table_name_56 WHERE points > 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 total points before 1963?
### Context:
CREATE TABLE table_name_47 (points INTEGER, year INTEGER) [/INST]
### Response:
SELECT SUM(points) FROM table_name_47 WHERE year < 1963 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 genre of Queen (an artist from the United Kingdom)?
### Context:
CREATE TABLE table_name_47 (genre VARCHAR, country_of_origin VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT genre FROM table_name_47 WHERE country_of_origin = "united kingdom" AND artist = "queen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of claimed sales in the rock genre?
### Context:
CREATE TABLE table_name_85 (claimed_sales VARCHAR, genre VARCHAR) [/INST]
### Response:
SELECT claimed_sales FROM table_name_85 WHERE genre = "rock" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 release-year of the first charted record of Abba?
### Context:
CREATE TABLE table_name_88 (release_year_of_first_charted_record INTEGER, artist VARCHAR) [/INST]
### Response:
SELECT MIN(release_year_of_first_charted_record) FROM table_name_88 WHERE artist = "abba" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 active period for the pop genre?
### Context:
CREATE TABLE table_name_87 (period_active VARCHAR, genre VARCHAR) [/INST]
### Response:
SELECT period_active FROM table_name_87 WHERE genre = "pop" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 point had team Lotus whit the lotus 33 chassis in 1964?
### Context:
CREATE TABLE table_name_66 (points VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_66 WHERE chassis = "lotus 33" AND entrant = "team lotus" AND year = 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:
Which entrant before 1965 scored more than 0 point with the lotus 25 chassis?
### Context:
CREATE TABLE table_name_23 (entrant VARCHAR, chassis VARCHAR, year VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_23 WHERE year < 1965 AND points > 0 AND chassis = "lotus 25" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scored 9 points?
### Context:
CREATE TABLE table_name_85 (engine VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_85 WHERE points = 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 chassis did team lotus use after 1964?
### Context:
CREATE TABLE table_name_59 (chassis VARCHAR, entrant VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_59 WHERE entrant = "team lotus" AND year > 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 value Others% when the value Others# is greater than 147 and the value Kerry% is 39.6%?
### Context:
CREATE TABLE table_name_83 (others_percentage VARCHAR, others_number VARCHAR, kerry_percentage VARCHAR) [/INST]
### Response:
SELECT others_percentage FROM table_name_83 WHERE others_number > 147 AND kerry_percentage = "39.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 is the total number of the value Others#, when the county is Langlade, and when the value Bush# is greater than 6,235?
### Context:
CREATE TABLE table_name_94 (others_number VARCHAR, county VARCHAR, bush_number VARCHAR) [/INST]
### Response:
SELECT COUNT(others_number) FROM table_name_94 WHERE county = "langlade" AND bush_number > 6 OFFSET 235 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 value of Bush# when the value for Others# is greater than 57, and the value for Bush% is 49.2%?
### Context:
CREATE TABLE table_name_70 (bush_number INTEGER, others_number VARCHAR, bush_percentage VARCHAR) [/INST]
### Response:
SELECT AVG(bush_number) FROM table_name_70 WHERE others_number > 57 AND bush_percentage = "49.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 date the Fubuki ship laid down?
### Context:
CREATE TABLE table_name_76 (laid_down VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT laid_down FROM table_name_76 WHERE name = "fubuki" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 launched date for the Harusame ship?
### Context:
CREATE TABLE table_name_18 (launched VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT launched FROM table_name_18 WHERE name = "harusame" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The game taking place in Lille had what as a score?
### Context:
CREATE TABLE table_name_96 (score VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_96 WHERE location = "lille" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
A competition of test taking place on 23 Apr 1988 had what as a score?
### Context:
CREATE TABLE table_name_51 (score VARCHAR, competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_51 WHERE competition = "test" AND date = "23 apr 1988" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 11 Feb 1990, the competition is listed as what?
### Context:
CREATE TABLE table_name_23 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_23 WHERE date = "11 feb 1990" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The competition that took place on 4 Apr 1997 ended with what as the score?
### Context:
CREATE TABLE table_name_42 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_42 WHERE date = "4 apr 1997" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The competition located in Northampton had a resulting score of what?
### Context:
CREATE TABLE table_name_75 (score VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_75 WHERE location = "northampton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category did MCG get a nominee in?
### Context:
CREATE TABLE table_name_62 (category VARCHAR, label VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_62 WHERE label = "mcg" AND result = "nominee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 genre was Music in the Air?
### Context:
CREATE TABLE table_name_7 (genre VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT genre FROM table_name_7 WHERE title = "music in the air" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent has a record of 52-52?
### Context:
CREATE TABLE table_name_63 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_63 WHERE record = "52-52" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the record as of July 22?
### Context:
CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_11 WHERE date = "july 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 was the highest number played when there were 21 goals conceded and a draw greater than 3?
### Context:
CREATE TABLE table_name_47 (played INTEGER, goals_conceded VARCHAR, draw VARCHAR) [/INST]
### Response:
SELECT MAX(played) FROM table_name_47 WHERE goals_conceded = 21 AND draw > 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 were the total number of points when the amount of goals scored was less than 20?
### Context:
CREATE TABLE table_name_39 (points VARCHAR, goals_scored INTEGER) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_39 WHERE goals_scored < 20 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the total number of points when there was a lost larger than 6, when the team was Once Municipal, and when the number of goals scored was less than 8?
### Context:
CREATE TABLE table_name_45 (points VARCHAR, goals_scored VARCHAR, lost VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_45 WHERE lost > 6 AND team = "once municipal" AND goals_scored < 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:
What was the highest number of points scored when there was a draw of 2 and when the amount played was 18?
### Context:
CREATE TABLE table_name_83 (points INTEGER, draw VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_83 WHERE draw = 2 AND played < 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the total number of places in which the draw was less than 4 and the amount lost was less than 6?
### Context:
CREATE TABLE table_name_73 (place VARCHAR, draw VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT COUNT(place) FROM table_name_73 WHERE draw < 4 AND lost < 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 is the lowest rank with poland as the nationality and a time greater than 55.34?
### Context:
CREATE TABLE table_name_73 (rank INTEGER, nationality VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_73 WHERE nationality = "poland" AND time > 55.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:
Which name has a lane smaller than 7, and a time greater than 54.32 with germany as the nationality and a rank less than 5?
### Context:
CREATE TABLE table_name_8 (name VARCHAR, rank VARCHAR, nationality VARCHAR, lane VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_8 WHERE lane < 7 AND time > 54.32 AND nationality = "germany" AND rank < 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 average lane has 54.95 as a time?
### Context:
CREATE TABLE table_name_99 (lane INTEGER, time VARCHAR) [/INST]
### Response:
SELECT AVG(lane) FROM table_name_99 WHERE time = 54.95 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average time has eithan urbach as a name with a lane bigger than 2?
### Context:
CREATE TABLE table_name_99 (time INTEGER, name VARCHAR, lane VARCHAR) [/INST]
### Response:
SELECT AVG(time) FROM table_name_99 WHERE name = "eithan urbach" AND lane > 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 year was the brabham bt46 bt48 bt49 Chassis common?
### Context:
CREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_89 WHERE chassis = "brabham bt46 bt48 bt49" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 high did Arnold Palmer score in 1962?
### Context:
CREATE TABLE table_name_69 (score INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(score) FROM table_name_69 WHERE player = "arnold palmer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result has a Venue of ulsan?
### Context:
CREATE TABLE table_name_27 (result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_27 WHERE venue = "ulsan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition has a Date of 2007-08-22?
### Context:
CREATE TABLE table_name_55 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_55 WHERE date = "2007-08-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:
Which result has a Date of 2007-08-22?
### Context:
CREATE TABLE table_name_31 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_31 WHERE date = "2007-08-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's the 2004 tournament that has a 2R in 2000?
### Context:
CREATE TABLE table_name_24 (Id VARCHAR) [/INST]
### Response:
SELECT 2004 FROM table_name_24 WHERE 2000 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1999 tournament that has a Q1 in 2003 and a Q3 in 2002?
### Context:
CREATE TABLE table_name_2 (Id VARCHAR) [/INST]
### Response:
SELECT 1999 FROM table_name_2 WHERE 2003 = "q1" AND 2002 = "q3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2004 tournament that has a Q1 of 2011?
### Context:
CREATE TABLE table_name_10 (Id VARCHAR) [/INST]
### Response:
SELECT 2004 FROM table_name_10 WHERE 2011 = "q1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hometown of the contestant who was a professional mixologist?
### Context:
CREATE TABLE table_name_13 (hometown VARCHAR, profession VARCHAR) [/INST]
### Response:
SELECT hometown FROM table_name_13 WHERE profession = "mixologist" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when there was a cosworth straight-4 engine, and the Entrant was ron harris / team lotus?
### Context:
CREATE TABLE table_name_17 (year INTEGER, engine VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_17 WHERE engine = "cosworth straight-4" AND entrant = "ron harris / team lotus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the Entrant that has a Chassis of lotus 25
### Context:
CREATE TABLE table_name_39 (entrant VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_39 WHERE chassis = "lotus 25" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine when the chassis was a porsche 718??
### Context:
CREATE TABLE table_name_87 (engine VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_87 WHERE chassis = "porsche 718" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of points when there was a BMW 269 F2 chassis earlier than 1969?
### Context:
CREATE TABLE table_name_63 (points VARCHAR, chassis VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_63 WHERE chassis = "bmw 269 f2" AND year < 1969 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine was in the lotus 44 f2 Chassis?
### Context:
CREATE TABLE table_name_27 (engine VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_27 WHERE chassis = "lotus 44 f2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 there a lotus 25 Chassis?
### Context:
CREATE TABLE table_name_47 (year VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_47 WHERE chassis = "lotus 25" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank for the netherlands in lane less than 4?
### Context:
CREATE TABLE table_name_92 (rank INTEGER, nationality VARCHAR, lane VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_92 WHERE nationality = "netherlands" AND lane < 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 height of the delegate whose hometown is Renton, WA?
### Context:
CREATE TABLE table_name_69 (height VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT height FROM table_name_69 WHERE hometown = "renton, wa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Is there a Position for Notes 53.96?
### Context:
CREATE TABLE table_name_82 (position VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_82 WHERE notes = "53.96" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Is there a Venus that's a year later than 2002, with an Event of 4x400m relay in 4th Position?
### Context:
CREATE TABLE table_name_82 (venue VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_82 WHERE event = "4x400m relay" AND year > 2002 AND position = "4th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Event goes with Notes 53.76?
### Context:
CREATE TABLE table_name_76 (event VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_76 WHERE notes = "53.76" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date did they have a record of 12-17?
### Context:
CREATE TABLE table_name_68 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_68 WHERE record = "12-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 engine did the Team Lotus have after 1965?
### Context:
CREATE TABLE table_name_63 (engine VARCHAR, entrant VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_63 WHERE entrant = "team lotus" AND year > 1965 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis did the BRM V8 engine have?
### Context:
CREATE TABLE table_name_92 (chassis VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_92 WHERE engine = "brm v8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest number of points in 1966?
### Context:
CREATE TABLE table_name_99 (points INTEGER, year VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_99 WHERE year = 1966 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 greatest number of losses a team that played fewer than 25 games in 2010 had?
### Context:
CREATE TABLE table_name_87 (losses INTEGER, games VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT MAX(losses) FROM table_name_87 WHERE games < 25 AND season = "2010" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of points for a team that played 17 games and had more than 15 losses?
### Context:
CREATE TABLE table_name_37 (points INTEGER, games VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_37 WHERE games = 17 AND losses > 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:
How many laps did gunnar nilsson drive?
### Context:
CREATE TABLE table_name_69 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_69 WHERE driver = "gunnar nilsson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 built james hunt's car that went 79 laps?
### Context:
CREATE TABLE table_name_74 (constructor VARCHAR, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_74 WHERE laps = 79 AND driver = "james hunt" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 much did the Modern Pentathlon III Series coin weigh?
### Context:
CREATE TABLE table_name_65 (weight VARCHAR, series VARCHAR, reverse VARCHAR) [/INST]
### Response:
SELECT weight FROM table_name_65 WHERE series = "iii series" AND reverse = "modern pentathlon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 obverse of the archery coin?
### Context:
CREATE TABLE table_name_45 (obverse VARCHAR, reverse VARCHAR) [/INST]
### Response:
SELECT obverse FROM table_name_45 WHERE reverse = "archery" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 denomination of the III Series?
### Context:
CREATE TABLE table_name_8 (denomination VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT denomination FROM table_name_8 WHERE series = "iii series" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 diameter of the Archery Reverse coin?
### Context:
CREATE TABLE table_name_46 (diameter VARCHAR, reverse VARCHAR) [/INST]
### Response:
SELECT diameter FROM table_name_46 WHERE reverse = "archery" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wrote the episode with a production code greater than 1.4 direcyed by rick wallace?
### Context:
CREATE TABLE table_name_5 (written_by VARCHAR, prod_code VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_name_5 WHERE prod_code > 1.4 AND directed_by = "rick wallace" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wrote the episode that was directed by dan lerner?
### Context:
CREATE TABLE table_name_12 (written_by VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_name_12 WHERE directed_by = "dan lerner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total of player Simon Donnelly, with a Scottish Cup greater than 0?
### Context:
CREATE TABLE table_name_2 (total INTEGER, player VARCHAR, scottish_cup VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_2 WHERE player = "simon donnelly" AND scottish_cup > 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 Challenge Cup total with a League of 1, Player Simon Storey, and a Total greater than 1?
### Context:
CREATE TABLE table_name_90 (challenge_cup INTEGER, total VARCHAR, league VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT SUM(challenge_cup) FROM table_name_90 WHERE league = 1 AND player = "simon storey" 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 highest total of Player Damon Gray, with a Challenge Cup less than 0?
### Context:
CREATE TABLE table_name_25 (total INTEGER, player VARCHAR, challenge_cup VARCHAR) [/INST]
### Response:
SELECT MAX(total) FROM table_name_25 WHERE player = "damon gray" AND challenge_cup < 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 result has a Venue of away, and an Opponent of marbella?
### Context:
CREATE TABLE table_name_35 (result VARCHAR, venue VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_35 WHERE venue = "away" AND opponent = "marbella" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue has a Date of 28 july 2007?
### Context:
CREATE TABLE table_name_68 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_68 WHERE date = "28 july 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result with a home venue?
### Context:
CREATE TABLE table_name_26 (result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_26 WHERE venue = "home" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result of 0–0?
### Context:
CREATE TABLE table_name_42 (date VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_42 WHERE result = "0–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 date has a Result of 5–0, and an Opponent of tooting & mitcham?
### Context:
CREATE TABLE table_name_90 (date VARCHAR, result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_90 WHERE result = "5–0" AND opponent = "tooting & mitcham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the total number of goals which have played more than 44
### Context:
CREATE TABLE table_name_13 (goals_for VARCHAR, played INTEGER) [/INST]
### Response:
SELECT COUNT(goals_for) FROM table_name_13 WHERE played > 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:
Name the most draws when goals against is more than 56 and wins is more than 14
### Context:
CREATE TABLE table_name_89 (draws INTEGER, goals_against VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MAX(draws) FROM table_name_89 WHERE goals_against > 56 AND wins > 14 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.