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 is listed under the Years as tallest, that has Floors of 31?
### Context:
CREATE TABLE table_name_83 (years_as_tallest VARCHAR, floors VARCHAR) [/INST]
### Response:
SELECT years_as_tallest FROM table_name_83 WHERE floors = 31 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the lowest Floors with Feet that's larger htan 262, has a Name of Standard Bank Building, and Metres that's larger htan 138.8?
### Context:
CREATE TABLE table_name_29 (floors INTEGER, metres VARCHAR, feet VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT MIN(floors) FROM table_name_29 WHERE feet > 262 AND name = "standard bank building" AND metres > 138.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 is the sum of Metres wiht a Feet that's smaller than 196?
### Context:
CREATE TABLE table_name_51 (metres VARCHAR, feet INTEGER) [/INST]
### Response:
SELECT COUNT(metres) FROM table_name_51 WHERE feet < 196 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weight of the position scrum half?
### Context:
CREATE TABLE table_name_24 (weight__kg_ INTEGER, position VARCHAR) [/INST]
### Response:
SELECT MAX(weight__kg_) FROM table_name_24 WHERE position = "scrum half" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 power of the engine with a torque of n·m (lb·ft) at1,500rpm?
### Context:
CREATE TABLE table_name_15 (power VARCHAR, torque VARCHAR) [/INST]
### Response:
SELECT power FROM table_name_15 WHERE torque = "n·m (lb·ft) at1,500rpm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 torque value is associated with the 1.3 16V multijet engine?
### Context:
CREATE TABLE table_name_86 (torque VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT torque FROM table_name_86 WHERE engine = "1.3 16v multijet" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 against value with less than 2 draws, 10 points, and less than 4 lost?
### Context:
CREATE TABLE table_name_17 (against INTEGER, lost VARCHAR, drawn VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MIN(against) FROM table_name_17 WHERE drawn < 2 AND points = 10 AND lost < 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 average position with an against value less than 11?
### Context:
CREATE TABLE table_name_76 (position INTEGER, against INTEGER) [/INST]
### Response:
SELECT AVG(position) FROM table_name_76 WHERE against < 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest value for lost with a position greater than 10?
### Context:
CREATE TABLE table_name_89 (lost INTEGER, position INTEGER) [/INST]
### Response:
SELECT MAX(lost) FROM table_name_89 WHERE position > 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total of all against values for the Corinthians with less than 3 lost?
### Context:
CREATE TABLE table_name_4 (against VARCHAR, team VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT COUNT(against) FROM table_name_4 WHERE team = "corinthians" AND lost < 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 lowest against value with less than 9 points and more than 6 lost?
### Context:
CREATE TABLE table_name_29 (against INTEGER, points VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT MIN(against) FROM table_name_29 WHERE points < 9 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 tournament located is mississippi was nov 5
### Context:
CREATE TABLE table_name_83 (tournament VARCHAR, date VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_83 WHERE date = "nov 5" AND location = "mississippi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1st prize for may 21
### Context:
CREATE TABLE table_name_19 (date VARCHAR) [/INST]
### Response:
SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_19 WHERE date = "may 21" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director of the game with HIroshi Sato as the producer on the GBA platform?
### Context:
CREATE TABLE table_name_41 (director VARCHAR, producer VARCHAR, platform_s_ VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_41 WHERE producer = "hiroshi sato" AND platform_s_ = "gba" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director of Last Window: The Secret of Cape West 3?
### Context:
CREATE TABLE table_name_93 (director VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_93 WHERE title = "last window: the secret of cape west 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 platform of the 2010 game with Shuichiro Nishiya as director?
### Context:
CREATE TABLE table_name_5 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT platform_s_ FROM table_name_5 WHERE year = 2010 AND director = "shuichiro nishiya" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is on October of 29?
### Context:
CREATE TABLE table_name_66 (opponent VARCHAR, october VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_66 WHERE october = 29 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 October has a Record of 1–0–0?
### Context:
CREATE TABLE table_name_50 (october INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MIN(october) FROM table_name_50 WHERE record = "1–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 Opponent has a October larger than 20 with a Score of 2–2?
### Context:
CREATE TABLE table_name_42 (opponent VARCHAR, october VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_42 WHERE october > 20 AND score = "2–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 score 269?
### Context:
CREATE TABLE table_name_34 (year VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_34 WHERE score = 269 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the 250cc class with fewer than 0 wins?
### Context:
CREATE TABLE table_name_96 (points INTEGER, class VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_96 WHERE class = "250cc" AND wins < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest number of points for a 1981 team?
### Context:
CREATE TABLE table_name_15 (points INTEGER, year VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_15 WHERE year = 1981 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fewest number of wins for a team ranked 8th with fewer than 32 points in the 350cc class?
### Context:
CREATE TABLE table_name_75 (wins INTEGER, rank VARCHAR, points VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_75 WHERE points < 32 AND class = "350cc" AND rank = "8th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank of the 1983 team in the 250cc class?
### Context:
CREATE TABLE table_name_51 (rank VARCHAR, class VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_51 WHERE class = "250cc" AND year = 1983 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 district has joseph t. johnson as an incumbent?
### Context:
CREATE TABLE table_name_61 (district VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT district FROM table_name_61 WHERE incumbent = "joseph t. 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:
What was the result for james o'h. patterson when first elected in 1904?
### Context:
CREATE TABLE table_name_40 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_40 WHERE first_elected = "1904" AND incumbent = "james o'h. patterson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party was re-elected in south carolina 5 district?
### Context:
CREATE TABLE table_name_2 (party VARCHAR, result VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_2 WHERE result = "re-elected" AND district = "south carolina 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 party was joseph t. johnson in?
### Context:
CREATE TABLE table_name_86 (party VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_86 WHERE incumbent = "joseph t. 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 party was first elected in 1898?
### Context:
CREATE TABLE table_name_19 (party VARCHAR, first_elected VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_19 WHERE first_elected = "1898" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 earnings made by Greg Norman?
### Context:
CREATE TABLE table_name_49 (earnings___ INTEGER, player VARCHAR) [/INST]
### Response:
SELECT AVG(earnings___) AS $__ FROM table_name_49 WHERE player = "greg norman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city has a game of friendly and an opponent of tunisia?
### Context:
CREATE TABLE table_name_42 (city VARCHAR, type_of_game VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_42 WHERE type_of_game = "friendly" AND opponent = "tunisia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 results of the opponent of spain?
### Context:
CREATE TABLE table_name_78 (results¹ VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT results¹ FROM table_name_78 WHERE opponent = "spain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what results are dated december 19?
### Context:
CREATE TABLE table_name_49 (results¹ VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT results¹ FROM table_name_49 WHERE date = "december 19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what city has the results of 4:2?
### Context:
CREATE TABLE table_name_41 (city VARCHAR, results¹ VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_41 WHERE results¹ = "4: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 type of game has the resuts of 1:0?
### Context:
CREATE TABLE table_name_78 (type_of_game VARCHAR, results¹ VARCHAR) [/INST]
### Response:
SELECT type_of_game FROM table_name_78 WHERE results¹ = "1: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 average Games for 1965–1981, and a Ranking larger than 4?
### Context:
CREATE TABLE table_name_52 (games INTEGER, years VARCHAR, ranking VARCHAR) [/INST]
### Response:
SELECT AVG(games) FROM table_name_52 WHERE years = "1965–1981" AND ranking > 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 Years when games shows 550?
### Context:
CREATE TABLE table_name_93 (years VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_93 WHERE games = 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:
What is the Nationality that shows 4 as the ranking?
### Context:
CREATE TABLE table_name_57 (nationality VARCHAR, ranking VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_57 WHERE ranking = 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:
Which location has a copies per particle of 0 and a protein of nsp3?
### Context:
CREATE TABLE table_name_68 (location VARCHAR, copies_per_particle VARCHAR, protein VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_68 WHERE copies_per_particle = "0" AND protein = "nsp3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 copies per particle does the protein nsp2 have?
### Context:
CREATE TABLE table_name_46 (copies_per_particle VARCHAR, protein VARCHAR) [/INST]
### Response:
SELECT copies_per_particle FROM table_name_46 WHERE protein = "nsp2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 RNA segment having a protein of vp2 and a base pair size over 2690?
### Context:
CREATE TABLE table_name_20 (rna_segment__gene_ INTEGER, protein VARCHAR, size___s_base_pair__ VARCHAR) [/INST]
### Response:
SELECT MAX(rna_segment__gene_) FROM table_name_20 WHERE protein = "vp2" AND size___s_base_pair__ > 2690 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 copies per particle having a nonstructural location, an RNA segment over 5 and a base pair size under 751?
### Context:
CREATE TABLE table_name_88 (copies_per_particle VARCHAR, size___s_base_pair__ VARCHAR, location VARCHAR, rna_segment__gene_ VARCHAR) [/INST]
### Response:
SELECT copies_per_particle FROM table_name_88 WHERE location = "nonstructural" AND rna_segment__gene_ > 5 AND size___s_base_pair__ < 751 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won the bronze medal in Hiroshima?
### Context:
CREATE TABLE table_name_90 (bronze VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_90 WHERE location = "hiroshima" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won the silver medal in the games where Hong Chia-yuh took home bronze?
### Context:
CREATE TABLE table_name_5 (silver VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT silver FROM table_name_5 WHERE bronze = "hong chia-yuh" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did Michael Eric Bibat win bronze?
### Context:
CREATE TABLE table_name_29 (location VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_29 WHERE bronze = "michael eric bibat" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won gold in the games where Pan Cheng-Tsung won silver?
### Context:
CREATE TABLE table_name_76 (gold VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT gold FROM table_name_76 WHERE silver = "pan cheng-tsung" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Bronzes that has a Silver of 0, and a Gold of 0, and a Nation of denmark, and a Total larger than 1?
### Context:
CREATE TABLE table_name_22 (bronze INTEGER, total VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT SUM(bronze) FROM table_name_22 WHERE silver = 0 AND gold = 0 AND nation = "denmark" 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:
How many Bronzes that has a Nation of italy?
### Context:
CREATE TABLE table_name_75 (bronze INTEGER, nation VARCHAR) [/INST]
### Response:
SELECT MAX(bronze) FROM table_name_75 WHERE nation = "italy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Silvers that has a Gold smaller than 1, and a Rank of 9, and a Total smaller than 1?
### Context:
CREATE TABLE table_name_70 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_70 WHERE gold < 1 AND rank = "9" 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:
Which Bronze has a Nation of spain?
### Context:
CREATE TABLE table_name_99 (bronze INTEGER, nation VARCHAR) [/INST]
### Response:
SELECT MAX(bronze) FROM table_name_99 WHERE nation = "spain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent at the competition held at Jeonju?
### Context:
CREATE TABLE table_name_20 (opponent VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_20 WHERE venue = "jeonju" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Januarys had records of 22-15-6?
### Context:
CREATE TABLE table_name_14 (january VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT COUNT(january) FROM table_name_14 WHERE record = "22-15-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 date of barbagallo raceway?
### Context:
CREATE TABLE table_name_69 (date VARCHAR, event_circuit VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_69 WHERE event_circuit = "barbagallo raceway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city is the hidden valley raceway in?
### Context:
CREATE TABLE table_name_79 (city___state VARCHAR, event_circuit VARCHAR) [/INST]
### Response:
SELECT city___state FROM table_name_79 WHERE event_circuit = "hidden valley raceway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score in game 81?
### Context:
CREATE TABLE table_name_60 (score VARCHAR, game__number VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_60 WHERE game__number = 81 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record after game 79?
### Context:
CREATE TABLE table_name_27 (record VARCHAR, game__number VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_27 WHERE game__number = 79 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team on April 15?
### Context:
CREATE TABLE table_name_91 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_91 WHERE date = "april 15" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Pinyin for 依兰县?
### Context:
CREATE TABLE table_name_53 (hanyu_pinyin VARCHAR, hanzi VARCHAR) [/INST]
### Response:
SELECT hanyu_pinyin FROM table_name_53 WHERE hanzi = "依兰县" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pinyin for the item that has a density of 77?
### Context:
CREATE TABLE table_name_65 (hanyu_pinyin VARCHAR, density___km²_ VARCHAR) [/INST]
### Response:
SELECT hanyu_pinyin FROM table_name_65 WHERE density___km²_ = "77" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 population for the area that has a Hanzi of 延寿县?
### Context:
CREATE TABLE table_name_30 (population__2010_11_01_ VARCHAR, hanzi VARCHAR) [/INST]
### Response:
SELECT population__2010_11_01_ FROM table_name_30 WHERE hanzi = "延寿县" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 population as of 11-01-2010 for Bayan County?
### Context:
CREATE TABLE table_name_50 (population__2010_11_01_ VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT population__2010_11_01_ FROM table_name_50 WHERE name = "bayan county" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Hanzi for píngfáng qū?
### Context:
CREATE TABLE table_name_4 (hanzi VARCHAR, hanyu_pinyin VARCHAR) [/INST]
### Response:
SELECT hanzi FROM table_name_4 WHERE hanyu_pinyin = "píngfáng qū" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Slalom has an overall of 25 in the 2009 season?
### Context:
CREATE TABLE table_name_32 (slalom VARCHAR, overall VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT slalom FROM table_name_32 WHERE overall = "25" AND season = 2009 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which combined score has an overall of 8?
### Context:
CREATE TABLE table_name_80 (combined VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT combined FROM table_name_80 WHERE overall = "8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Super Ghas a missed season due to injury?
### Context:
CREATE TABLE table_name_50 (super_g VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT super_g FROM table_name_50 WHERE overall = "missed season due to injury" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 events with cuts made more than 6 and top 25 more than 30
### Context:
CREATE TABLE table_name_92 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR) [/INST]
### Response:
SELECT MAX(events) FROM table_name_92 WHERE cuts_made > 6 AND top_25 > 30 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 top-10 with top-5 less than 1
### Context:
CREATE TABLE table_name_53 (top_10 VARCHAR, top_5 INTEGER) [/INST]
### Response:
SELECT top_10 FROM table_name_53 WHERE top_5 < 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the averae top 25 with events less than 0
### Context:
CREATE TABLE table_name_31 (top_25 INTEGER, events INTEGER) [/INST]
### Response:
SELECT AVG(top_25) FROM table_name_31 WHERE events < 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:
Name the total number of top 10 with top 25 less than 2 and top 5 more than 0
### Context:
CREATE TABLE table_name_75 (top_10 VARCHAR, top_25 VARCHAR, top_5 VARCHAR) [/INST]
### Response:
SELECT COUNT(top_10) FROM table_name_75 WHERE top_25 < 2 AND top_5 > 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:
In what Year is the Gauge 2 ft 6 in?
### Context:
CREATE TABLE table_name_22 (year VARCHAR, gauge VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_22 WHERE gauge = "2 ft 6 in" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what Year is the Works No. 2040-2049?
### Context:
CREATE TABLE table_name_80 (year VARCHAR, works_no VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_80 WHERE works_no = "2040-2049" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what Year is the Works no. 2040-2049?
### Context:
CREATE TABLE table_name_86 (year VARCHAR, works_no VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_86 WHERE works_no = "2040-2049" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Gauge of Builder Beyer, Peacock?
### Context:
CREATE TABLE table_name_9 (gauge VARCHAR, builder VARCHAR) [/INST]
### Response:
SELECT gauge FROM table_name_9 WHERE builder = "beyer, peacock" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round has the record of 5-0?
### Context:
CREATE TABLE table_name_18 (round VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_18 WHERE record = "5-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 method has the record of 11-1?
### Context:
CREATE TABLE table_name_4 (method VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_4 WHERE record = "11-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:
The UFC 44 event has what method?
### Context:
CREATE TABLE table_name_98 (method VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_98 WHERE event = "ufc 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:
Which event has 12-1 as a record?
### Context:
CREATE TABLE table_name_43 (event VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_43 WHERE record = "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:
What round was a loss with a record of 12-3?
### Context:
CREATE TABLE table_name_22 (round VARCHAR, res VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_22 WHERE res = "loss" AND record = "12-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:
The record of 11-1 used what method?
### Context:
CREATE TABLE table_name_35 (method VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_35 WHERE record = "11-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 surface was the match on November 6, 1982 played on?
### Context:
CREATE TABLE table_name_82 (surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_82 WHERE date = "november 6, 1982" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place did russia finish in?
### Context:
CREATE TABLE table_name_26 (placing VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT COUNT(placing) FROM table_name_26 WHERE team = "russia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 WChmp of the race greater than 42 and pole greater than 11?
### Context:
CREATE TABLE table_name_35 (wchmp VARCHAR, race VARCHAR, pole VARCHAR) [/INST]
### Response:
SELECT COUNT(wchmp) FROM table_name_35 WHERE race > 42 AND pole > 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:
If podiums are 26, what's the lowest WChmp?
### Context:
CREATE TABLE table_name_49 (wchmp INTEGER, podiums VARCHAR) [/INST]
### Response:
SELECT MIN(wchmp) FROM table_name_49 WHERE podiums = 26 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the class is total, what is the total number of podiums?
### Context:
CREATE TABLE table_name_93 (podiums VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT COUNT(podiums) FROM table_name_93 WHERE class = "total" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
During race 14, what's the podiums?
### Context:
CREATE TABLE table_name_78 (podiums INTEGER, race VARCHAR) [/INST]
### Response:
SELECT MAX(podiums) FROM table_name_78 WHERE race = 14 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Call sign has a City of license of higgston, ga?
### Context:
CREATE TABLE table_name_95 (call_sign VARCHAR, city_of_license VARCHAR) [/INST]
### Response:
SELECT call_sign FROM table_name_95 WHERE city_of_license = "higgston, ga" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 City of license has a ERP W of 2,000?
### Context:
CREATE TABLE table_name_67 (city_of_license VARCHAR, erp_w VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_67 WHERE erp_w = "2,000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Class where City of license is lake oconee, ga?
### Context:
CREATE TABLE table_name_84 (class VARCHAR, city_of_license VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_84 WHERE city_of_license = "lake oconee, ga" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has 2012 as the year?
### Context:
CREATE TABLE table_name_3 (chassis VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_3 WHERE year = 2012 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a start less than 7, and 23 as a finish?
### Context:
CREATE TABLE table_name_19 (engine VARCHAR, start VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_19 WHERE start < 7 AND finish = 23 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 finish that has a start greater than 3, with honda as the engine, and 2011 as the year?
### Context:
CREATE TABLE table_name_35 (finish INTEGER, year VARCHAR, start VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT AVG(finish) FROM table_name_35 WHERE start > 3 AND engine = "honda" AND year = 2011 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 starts have a year prior to 2012, and team penske as the team, with a finish greater than 27?
### Context:
CREATE TABLE table_name_35 (start INTEGER, finish VARCHAR, year VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT SUM(start) FROM table_name_35 WHERE year < 2012 AND team = "team penske" AND finish > 27 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What start has a year later than 2010, and chip ganassi racing as the team?
### Context:
CREATE TABLE table_name_17 (start VARCHAR, year VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT start FROM table_name_17 WHERE year > 2010 AND team = "chip ganassi racing" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent at the Football League Trophy competition?
### Context:
CREATE TABLE table_name_84 (opponents VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT opponents FROM table_name_84 WHERE competition = "football league trophy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the opponent at the League Play Offs at home?
### Context:
CREATE TABLE table_name_8 (opponents VARCHAR, venue VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT opponents FROM table_name_8 WHERE venue = "home" AND competition = "league play offs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue held that game against the Queens Park Rangers?
### Context:
CREATE TABLE table_name_32 (venue VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_32 WHERE opponents = "queens park 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:
Who was the opponent at the away game with a score of 5-4?
### Context:
CREATE TABLE table_name_67 (opponents VARCHAR, venue VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponents FROM table_name_67 WHERE venue = "away" AND score = "5-4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent at the League Cup competition with a score of 3-1?
### Context:
CREATE TABLE table_name_91 (opponents VARCHAR, competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponents FROM table_name_91 WHERE competition = "league cup" AND score = "3-1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the team classification for stage of 20
### Context:
CREATE TABLE table_name_92 (team_classification VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT team_classification FROM table_name_92 WHERE stage = "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:
Name the winner with mountains classification of franco pellizotti and combativity award of martijn maaskant
### Context:
CREATE TABLE table_name_5 (winner VARCHAR, mountains_classification VARCHAR, combativity_award VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_5 WHERE mountains_classification = "franco pellizotti" AND combativity_award = "martijn maaskant" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.