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 country that has LP as a format?
### Context:
CREATE TABLE table_name_55 (country VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_55 WHERE format = "lp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the person drafted to Position F from Kentucky State?
### Context:
CREATE TABLE table_name_7 (nationality VARCHAR, position VARCHAR, college_high_school_club VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_7 WHERE position = "f" AND college_high_school_club = "kentucky state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In which round was Position G from the United States drafted as Pick 13 in 1971-1 1971?
### Context:
CREATE TABLE table_name_73 (round VARCHAR, draft VARCHAR, pick VARCHAR, nationality VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_73 WHERE nationality = "united states" AND position = "g" AND pick = "13" AND draft = "1971-1 1971" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick number for the person from the United States who as drafted to the SF position from North Carolina?
### Context:
CREATE TABLE table_name_78 (pick VARCHAR, position VARCHAR, nationality VARCHAR, college_high_school_club VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_78 WHERE nationality = "united states" AND college_high_school_club = "north carolina" AND position = "sf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which year was the Pick #46?
### Context:
CREATE TABLE table_name_9 (draft VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT draft FROM table_name_9 WHERE pick = "46" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week 1 had a week 2 of Mandy Lynn?
### Context:
CREATE TABLE table_name_64 (week_1 VARCHAR, week_2 VARCHAR) [/INST]
### Response:
SELECT week_1 FROM table_name_64 WHERE week_2 = "mandy lynn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week 1 had a week 2 of Claudia Nathalia?
### Context:
CREATE TABLE table_name_1 (week_1 VARCHAR, week_2 VARCHAR) [/INST]
### Response:
SELECT week_1 FROM table_name_1 WHERE week_2 = "claudia nathalia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week 3 had a week 1 of Kristy Dwyer?
### Context:
CREATE TABLE table_name_30 (week_3 VARCHAR, week_1 VARCHAR) [/INST]
### Response:
SELECT week_3 FROM table_name_30 WHERE week_1 = "kristy dwyer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week 4 had a week 3 of Cidney Carson?
### Context:
CREATE TABLE table_name_80 (week_4 VARCHAR, week_3 VARCHAR) [/INST]
### Response:
SELECT week_4 FROM table_name_80 WHERE week_3 = "cidney carson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week 2 had a week 3 of Cidney Carson?
### Context:
CREATE TABLE table_name_74 (week_2 VARCHAR, week_3 VARCHAR) [/INST]
### Response:
SELECT week_2 FROM table_name_74 WHERE week_3 = "cidney carson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 EL places have a Rank 2013 of 15?
### Context:
CREATE TABLE table_name_4 (el_places INTEGER, rank_2013 VARCHAR) [/INST]
### Response:
SELECT MAX(el_places) FROM table_name_4 WHERE rank_2013 = "15" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which 2009–10 has a Rank 2013 of 18?
### Context:
CREATE TABLE table_name_87 (rank_2013 VARCHAR) [/INST]
### Response:
SELECT 2009 AS _10 FROM table_name_87 WHERE rank_2013 = "18" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total for the year (s) won in 1977?
### Context:
CREATE TABLE table_name_99 (total VARCHAR, year_s__won VARCHAR) [/INST]
### Response:
SELECT total FROM table_name_99 WHERE year_s__won = "1977" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par with a total of 163?
### Context:
CREATE TABLE table_name_16 (to_par VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT COUNT(to_par) FROM table_name_16 WHERE total = 163 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for a to par bigger than 7 and a player of al geiberger?
### Context:
CREATE TABLE table_name_58 (total VARCHAR, player VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_58 WHERE player = "al geiberger" AND to_par > 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the 2 vs 3 when total is bigger than 38?
### Context:
CREATE TABLE table_name_52 (total INTEGER) [/INST]
### Response:
SELECT AVG(2 AS _vs_3) FROM table_name_52 WHERE total > 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Year(s) won has a Total smaller than 276? Question 1
### Context:
CREATE TABLE table_name_71 (year_s__won VARCHAR, total INTEGER) [/INST]
### Response:
SELECT year_s__won FROM table_name_71 WHERE total < 276 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Player has a Finish of 74?
### Context:
CREATE TABLE table_name_68 (player VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_68 WHERE finish = "74" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 To par has a Player of tom watson?
### Context:
CREATE TABLE table_name_77 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_77 WHERE player = "tom watson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the Finish which has a Total of 287?
### Context:
CREATE TABLE table_name_20 (finish VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_20 WHERE total = 287 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the round where there was a KO (punch)?
### Context:
CREATE TABLE table_name_64 (round VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_64 WHERE method = "ko (punch)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was a loss in 5:00?
### Context:
CREATE TABLE table_name_52 (event VARCHAR, res VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_52 WHERE res = "loss" AND time = "5:00" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the Conquista Fight 1?
### Context:
CREATE TABLE table_name_11 (location VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_11 WHERE event = "conquista fight 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 time where the record is 10-1?
### Context:
CREATE TABLE table_name_66 (time VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_66 WHERE record = "10-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 record when the time is 1:11?
### Context:
CREATE TABLE table_name_91 (record VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_91 WHERE time = "1: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's the total loss for a GP-GS of 8-8 and a gain less than 416?
### Context:
CREATE TABLE table_name_43 (loss INTEGER, gp_gs VARCHAR, gain VARCHAR) [/INST]
### Response:
SELECT SUM(loss) FROM table_name_43 WHERE gp_gs = "8-8" AND gain < 416 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total long for more than 24 loss, a gain over 273, and an avg/g of 207.8?
### Context:
CREATE TABLE table_name_19 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR) [/INST]
### Response:
SELECT SUM(long) FROM table_name_19 WHERE loss > 24 AND gain > 273 AND avg_g = 207.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's the total long for an avg/g over 0.2, fewer than 2 loss, and a gain less than 8?
### Context:
CREATE TABLE table_name_30 (long VARCHAR, gain VARCHAR, avg_g VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT COUNT(long) FROM table_name_30 WHERE avg_g > 0.2 AND loss < 2 AND gain < 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's cameron dantley's total avg/g for loss less than 35?
### Context:
CREATE TABLE table_name_69 (avg_g VARCHAR, name VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT COUNT(avg_g) FROM table_name_69 WHERE name = "cameron dantley" AND loss < 35 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 avg/g for a GP-GS of 12-12 and a gain less than 16?
### Context:
CREATE TABLE table_name_10 (avg_g INTEGER, gp_gs VARCHAR, gain VARCHAR) [/INST]
### Response:
SELECT MIN(avg_g) FROM table_name_10 WHERE gp_gs = "12-12" AND gain < 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player has 1 as the place?
### Context:
CREATE TABLE table_name_71 (player VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_71 WHERE place = "1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest score that has t10 as the place, with Ireland as the country?
### Context:
CREATE TABLE table_name_79 (score INTEGER, place VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT MIN(score) FROM table_name_79 WHERE place = "t10" AND country = "ireland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Record, when Date is "April 24"?
### Context:
CREATE TABLE table_name_16 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_16 WHERE date = "april 24" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Visitor, when Date is "April 24"?
### Context:
CREATE TABLE table_name_24 (visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_24 WHERE date = "april 24" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Date, when Record is "1-1"?
### Context:
CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_25 WHERE record = "1-1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Record, when Home is "New York Rangers", and when Date is "April 17"?
### Context:
CREATE TABLE table_name_4 (record VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_4 WHERE home = "new york rangers" AND date = "april 17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Record, when Visitor is "Chicago Black Hawks", and when Date is "April 17"?
### Context:
CREATE TABLE table_name_32 (record VARCHAR, visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_32 WHERE visitor = "chicago black hawks" AND date = "april 17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Score, when Record is "4-1"?
### Context:
CREATE TABLE table_name_79 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_79 WHERE record = "4-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 player won 1985?
### Context:
CREATE TABLE table_name_65 (player VARCHAR, year_s__won VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_65 WHERE year_s__won = "1985" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 spain's highest total?
### Context:
CREATE TABLE table_name_34 (total INTEGER, country VARCHAR) [/INST]
### Response:
SELECT MAX(total) FROM table_name_34 WHERE country = "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's the average to par for lee trevino?
### Context:
CREATE TABLE table_name_13 (to_par INTEGER, player VARCHAR) [/INST]
### Response:
SELECT AVG(to_par) FROM table_name_13 WHERE player = "lee trevino" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Jury has an Artist of chalice & maagiline kuues, and a Draw smaller than 5?
### Context:
CREATE TABLE table_name_66 (jury VARCHAR, artist VARCHAR, draw VARCHAR) [/INST]
### Response:
SELECT COUNT(jury) FROM table_name_66 WHERE artist = "chalice & maagiline kuues" AND draw < 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the pre-release when the developer is no?
### Context:
CREATE TABLE table_name_45 (kinka_pre_release VARCHAR, kinka_developer VARCHAR) [/INST]
### Response:
SELECT kinka_pre_release FROM table_name_45 WHERE kinka_developer = "no" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 developer when the 1.2 is 341s0297 thru 300?
### Context:
CREATE TABLE table_name_70 (kinka_developer VARCHAR, kinka_12 VARCHAR) [/INST]
### Response:
SELECT kinka_developer FROM table_name_70 WHERE kinka_12 = "341s0297 thru 300" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 developer when the pre-release is no*?
### Context:
CREATE TABLE table_name_70 (kinka_developer VARCHAR, kinka_pre_release VARCHAR) [/INST]
### Response:
SELECT kinka_developer FROM table_name_70 WHERE kinka_pre_release = "no*" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 KINKA 1.2 when the pre-release is no and the developer is yes?
### Context:
CREATE TABLE table_name_35 (kinka_12 VARCHAR, kinka_pre_release VARCHAR, kinka_developer VARCHAR) [/INST]
### Response:
SELECT kinka_12 FROM table_name_35 WHERE kinka_pre_release = "no" AND kinka_developer = "yes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 KINKA 1.3 when the developer is yes and the support version is support mo 230?
### Context:
CREATE TABLE table_name_11 (kinka_13 VARCHAR, kinka_developer VARCHAR, version VARCHAR) [/INST]
### Response:
SELECT kinka_13 FROM table_name_11 WHERE kinka_developer = "yes" AND version = "support mo 230" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 version has a KINKA pre-release of no*?
### Context:
CREATE TABLE table_name_42 (version VARCHAR, kinka_pre_release VARCHAR) [/INST]
### Response:
SELECT version FROM table_name_42 WHERE kinka_pre_release = "no*" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 NANQUAN WITH A RANK BIGGER THAN 2, TOTAL LESS THAN 18.36 AND SMALLER THAN 8.85?
### Context:
CREATE TABLE table_name_40 (nanquan INTEGER, nangun VARCHAR, rank VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(nanquan) FROM table_name_40 WHERE rank > 2 AND total < 18.36 AND nangun < 8.85 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 NANGUN WITH A RANK LARGER THAN 2, TOTAL OF 17.85?
### Context:
CREATE TABLE table_name_80 (nangun INTEGER, rank VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT AVG(nangun) FROM table_name_80 WHERE rank > 2 AND total = 17.85 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT IS THE TOTAL WITH A NANQUAN OF 9.72, RANK BIGGER THAN 3, NANGUN SMALLER THAN 9.5?
### Context:
CREATE TABLE table_name_50 (total INTEGER, nangun VARCHAR, nanquan VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_50 WHERE nanquan = 9.72 AND rank > 3 AND nangun < 9.5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the ship with a tonnage greater than 8,017?
### Context:
CREATE TABLE table_name_10 (date VARCHAR, tonnage INTEGER) [/INST]
### Response:
SELECT date FROM table_name_10 WHERE tonnage > 8 OFFSET 017 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What ship has a norway nationality?
### Context:
CREATE TABLE table_name_18 (ship VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT ship FROM table_name_18 WHERE nationality = "norway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fate of the ship on 26 April 1942?
### Context:
CREATE TABLE table_name_20 (fate VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT fate FROM table_name_20 WHERE date = "26 april 1942" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tonnage of the ship from norway?
### Context:
CREATE TABLE table_name_71 (tonnage INTEGER, nationality VARCHAR) [/INST]
### Response:
SELECT MAX(tonnage) FROM table_name_71 WHERE nationality = "norway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 households have a Median household income of $43,889?
### Context:
CREATE TABLE table_name_71 (number_of_households INTEGER, median_household_income VARCHAR) [/INST]
### Response:
SELECT AVG(number_of_households) FROM table_name_71 WHERE median_household_income = "$43,889" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Population has a Median family income of $53,946?
### Context:
CREATE TABLE table_name_41 (population INTEGER, median_family_income VARCHAR) [/INST]
### Response:
SELECT MAX(population) FROM table_name_41 WHERE median_family_income = "$53,946" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Circuit has an Event of international procar meeting?
### Context:
CREATE TABLE table_name_10 (circuit VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_10 WHERE event = "international procar meeting" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Circuit has a Winning Driver of hans-joachim stuck, and a Round of 3?
### Context:
CREATE TABLE table_name_74 (circuit VARCHAR, winning_driver VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_74 WHERE winning_driver = "hans-joachim stuck" AND 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:
Which Winning Driver has a Circuit of circuit zandvoort?
### Context:
CREATE TABLE table_name_43 (winning_driver VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_43 WHERE circuit = "circuit zandvoort" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winning Driver has a Round of 9?
### Context:
CREATE TABLE table_name_45 (winning_driver VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_45 WHERE round = 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:
Which Round has an Event of 200 miles of norisring?
### Context:
CREATE TABLE table_name_25 (round VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_25 WHERE event = "200 miles of norisring" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winning Driver has an Event of 200 miles of norisring?
### Context:
CREATE TABLE table_name_82 (winning_driver VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_82 WHERE event = "200 miles of norisring" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick in 1983?
### Context:
CREATE TABLE table_name_26 (pick INTEGER, year VARCHAR) [/INST]
### Response:
SELECT AVG(pick) FROM table_name_26 WHERE 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:
What is the average year of the montreal expos?
### Context:
CREATE TABLE table_name_14 (year INTEGER, team VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_14 WHERE team = "montreal expos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick number of the los angeles dodgers, which has a lhp position before 1979?
### Context:
CREATE TABLE table_name_36 (pick VARCHAR, year VARCHAR, team VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(pick) FROM table_name_36 WHERE team = "los angeles dodgers" AND position = "lhp" AND year < 1979 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What ship was built in 2012?
### Context:
CREATE TABLE table_name_79 (ship VARCHAR, built VARCHAR) [/INST]
### Response:
SELECT ship FROM table_name_79 WHERE built = 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 ship was built in 2012?
### Context:
CREATE TABLE table_name_91 (ship VARCHAR, built VARCHAR) [/INST]
### Response:
SELECT ship FROM table_name_91 WHERE built = 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 is the total of built with a flag of panama?
### Context:
CREATE TABLE table_name_21 (built VARCHAR, flag VARCHAR) [/INST]
### Response:
SELECT COUNT(built) FROM table_name_21 WHERE flag = "panama" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What tonnage was built in 2007?
### Context:
CREATE TABLE table_name_75 (tonnage VARCHAR, built VARCHAR) [/INST]
### Response:
SELECT tonnage FROM table_name_75 WHERE built = 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 operator has a ship costa pacifica?
### Context:
CREATE TABLE table_name_8 (operator VARCHAR, ship VARCHAR) [/INST]
### Response:
SELECT operator FROM table_name_8 WHERE ship = "costa pacifica" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent on November 1?
### Context:
CREATE TABLE table_name_38 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_38 WHERE date = "november 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 pick for round 8 with a USA nationality in the 2000 draft?
### Context:
CREATE TABLE table_name_72 (pick VARCHAR, draft VARCHAR, round VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_72 WHERE round = "8" AND nationality = "usa" AND draft = 2000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the round of player brad winton with a draft before 1983 and a pick less than 132?
### Context:
CREATE TABLE table_name_48 (round VARCHAR, player VARCHAR, draft VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_48 WHERE draft < 1983 AND pick < 132 AND player = "brad winton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the pick of player don waddell from round 7?
### Context:
CREATE TABLE table_name_96 (pick VARCHAR, round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_96 WHERE round = "7" AND player = "don waddell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick of player josh green from Canada from round 2 with a draft after 1996?
### Context:
CREATE TABLE table_name_76 (pick INTEGER, draft VARCHAR, player VARCHAR, round VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT AVG(pick) FROM table_name_76 WHERE round = "2" AND nationality = "canada" AND player = "josh green" AND draft > 1996 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest draft of player justin martin from the USA?
### Context:
CREATE TABLE table_name_80 (draft INTEGER, nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT MIN(draft) FROM table_name_80 WHERE nationality = "usa" AND player = "justin martin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event is defending champion the total?
### Context:
CREATE TABLE table_name_4 (event VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_4 WHERE total = "defending champion" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 event WC Rio De Janeiro with a total of 16 has what as rank points?
### Context:
CREATE TABLE table_name_85 (rank_points VARCHAR, event VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT rank_points FROM table_name_85 WHERE event = "wc rio de janeiro" AND total = "16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 shooter at the WC Rio De Janeiro event with 10 rank points?
### Context:
CREATE TABLE table_name_7 (shooter VARCHAR, event VARCHAR, rank_points VARCHAR) [/INST]
### Response:
SELECT shooter FROM table_name_7 WHERE event = "wc rio de janeiro" AND rank_points = "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 years did New Zealand win?
### Context:
CREATE TABLE table_name_30 (year_s__won VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT year_s__won FROM table_name_30 WHERE country = "new zealand" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player had a total less than 277?
### Context:
CREATE TABLE table_name_34 (player VARCHAR, total INTEGER) [/INST]
### Response:
SELECT player FROM table_name_34 WHERE total < 277 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country had a total less than 291 and a 4 Finish?
### Context:
CREATE TABLE table_name_24 (country VARCHAR, total VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_24 WHERE total < 291 AND finish = "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:
Name the Score of Tournament of portugal f1, faro , portugal?
### Context:
CREATE TABLE table_name_4 (score VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_4 WHERE tournament = "portugal f1, faro , portugal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Outcome has a Surface of clay, and a Tournament of morocco f5, rabat , morocco?
### Context:
CREATE TABLE table_name_79 (outcome VARCHAR, surface VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_79 WHERE surface = "clay" AND tournament = "morocco f5, rabat , morocco" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Outcome that has a Tournament of milan , italy?
### Context:
CREATE TABLE table_name_19 (outcome VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_19 WHERE tournament = "milan , 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:
Which Date has a Tournament of milan , italy?
### Context:
CREATE TABLE table_name_69 (date VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_69 WHERE tournament = "milan , 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:
Which Tournament has a Opponent of piero luisi?
### Context:
CREATE TABLE table_name_31 (tournament VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_31 WHERE opponent = "piero luisi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the game with the away team york city?
### Context:
CREATE TABLE table_name_56 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_56 WHERE away_team = "york city" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date did the home game for peterborough united take place?
### Context:
CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_74 WHERE home_team = "peterborough united" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Venue of the 2002 World Cup Qualification?
### Context:
CREATE TABLE table_name_48 (venue VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_48 WHERE competition = "2002 world cup qualification" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Venue with the Friendly Competition?
### Context:
CREATE TABLE table_name_91 (venue VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_91 WHERE competition = "friendly" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score when Li Na was the opponent?
### Context:
CREATE TABLE table_name_44 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_44 WHERE opponent = "li na" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on 19 February 2011?
### Context:
CREATE TABLE table_name_97 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_97 WHERE date = "19 february 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 goals against did Clitheroe have when the loss was larger than 2?
### Context:
CREATE TABLE table_name_44 (goals_against VARCHAR, team VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT COUNT(goals_against) FROM table_name_44 WHERE team = "clitheroe" AND lost > 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 was the highest position for Rossendale United when the played was larger than 34?
### Context:
CREATE TABLE table_name_19 (position INTEGER, team VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT MAX(position) FROM table_name_19 WHERE team = "rossendale united" AND played > 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:
When was the earliest with 4 seasons?
### Context:
CREATE TABLE table_name_81 (year_s_ INTEGER, season VARCHAR) [/INST]
### Response:
SELECT MIN(year_s_) FROM table_name_81 WHERE season = 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 was the result of week 13?
### Context:
CREATE TABLE table_name_38 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_38 WHERE week = 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the game with 22 points and the capitals as the opponent?
### Context:
CREATE TABLE table_name_37 (score VARCHAR, points VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_37 WHERE points = 22 AND opponent = "capitals" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the attendance on November 16?
### Context:
CREATE TABLE table_name_63 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_63 WHERE date = "november 16" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.