inputs
stringlengths 400
1.34k
|
|---|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the bronze medal count when the silver is less than 3 and the gold is 1?
### Context:
CREATE TABLE table_name_63 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
### Response:
### Response:
SELECT SUM(bronze) FROM table_name_63 WHERE gold = 1 AND silver < 3</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Tell me the number of dogs that have not received any treatment .
### Context:
CREATE TABLE treatments (dog_id VARCHAR); CREATE TABLE dogs (dog_id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments)</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What are the names of products with category "Spices"?
### Context:
CREATE TABLE products (product_name VARCHAR, product_category_code VARCHAR)
### Response:
### Response:
SELECT product_name FROM products WHERE product_category_code = "Spices"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which driver won the Indianapolis 500 the year the Chaparral team also won it?
### Context:
CREATE TABLE table_name_67 (winning_driver VARCHAR, winning_team VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT winning_driver FROM table_name_67 WHERE winning_team = "chaparral" AND name = "indianapolis 500"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Tries against that have a Points against of 95 and Tries for larger than 20?
### Context:
CREATE TABLE table_name_91 (tries_against INTEGER, points_against VARCHAR, tries_for VARCHAR)
### Response:
### Response:
SELECT SUM(tries_against) FROM table_name_91 WHERE points_against = 95 AND tries_for > 20</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When was erskine college founded
### Context:
CREATE TABLE table_11658094_1 (founded VARCHAR, institution VARCHAR)
### Response:
### Response:
SELECT founded FROM table_11658094_1 WHERE institution = "Erskine College"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What team raced with a Foyt engine in the Texas Grand Prix?
### Context:
CREATE TABLE table_1405704_1 (team VARCHAR, race_name VARCHAR, engine VARCHAR)
### Response:
### Response:
SELECT team FROM table_1405704_1 WHERE race_name = "Texas Grand Prix" AND engine = "Foyt"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many distinct currency codes are there for all drama workshop groups?
### Context:
CREATE TABLE Drama_Workshop_Groups (Currency_Code VARCHAR)
### Response:
### Response:
SELECT COUNT(DISTINCT Currency_Code) FROM Drama_Workshop_Groups</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the attendance on October 27, 1968?
### Context:
CREATE TABLE table_name_9 (week INTEGER, date VARCHAR)
### Response:
### Response:
SELECT MAX(week) FROM table_name_9 WHERE date = "october 27, 1968"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the title that was written by r. scott gemmill
### Context:
CREATE TABLE table_17356042_1 (title VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT title FROM table_17356042_1 WHERE written_by = "R. Scott Gemmill"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many legs were lost for Trina Gulliver with more than 3 played?
### Context:
CREATE TABLE table_name_11 (legs_lost VARCHAR, player VARCHAR, played VARCHAR)
### Response:
### Response:
SELECT COUNT(legs_lost) FROM table_name_11 WHERE player = "trina gulliver" AND played > 3</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which home team has a Venue of corio oval?
### Context:
CREATE TABLE table_name_61 (home_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_61 WHERE venue = "corio oval"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was Geelong's score when they were the away team?
### Context:
CREATE TABLE table_name_62 (away_team VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_62 WHERE away_team = "geelong"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total when the score for set 1 is 14–25?
### Context:
CREATE TABLE table_name_75 (total VARCHAR, set_1 VARCHAR)
### Response:
### Response:
SELECT total FROM table_name_75 WHERE set_1 = "14–25"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which opponent has a Score of 6–4, 3–6, 6–3?
### Context:
CREATE TABLE table_name_7 (opponent VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_7 WHERE score = "6–4, 3–6, 6–3"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Status has a Building of the rhombus?
### Context:
CREATE TABLE table_name_25 (status VARCHAR, building VARCHAR)
### Response:
### Response:
SELECT status FROM table_name_25 WHERE building = "the rhombus"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Week number on December 18, 1960?
### Context:
CREATE TABLE table_name_17 (week VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT COUNT(week) FROM table_name_17 WHERE date = "december 18, 1960"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is 2007, when Tournament is "Madrid"?
### Context:
CREATE TABLE table_name_27 (tournament VARCHAR)
### Response:
### Response:
SELECT 2007 FROM table_name_27 WHERE tournament = "madrid"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What club has a Try Bonus of 8?
### Context:
CREATE TABLE table_name_16 (club VARCHAR, try_bonus VARCHAR)
### Response:
### Response:
SELECT club FROM table_name_16 WHERE try_bonus = "8"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which away team had a Score of 2–0?
### Context:
CREATE TABLE table_name_53 (away_team VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_53 WHERE score = "2–0"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which model has the least amount of RAM? List the model name and the amount of RAM.
### Context:
CREATE TABLE chip_model (Model_name VARCHAR, RAM_MiB VARCHAR)
### Response:
### Response:
SELECT Model_name, RAM_MiB FROM chip_model ORDER BY RAM_MiB LIMIT 1</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What driver has a grid greater than 19?
### Context:
CREATE TABLE table_name_27 (driver VARCHAR, grid INTEGER)
### Response:
### Response:
SELECT driver FROM table_name_27 WHERE grid > 19</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who earned third place when the winner was Paul Haarhuis?
### Context:
CREATE TABLE table_name_68 (third_place VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT third_place FROM table_name_68 WHERE winner = "paul haarhuis"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When was there 204 deaths?
### Context:
CREATE TABLE table_name_93 (dates_active VARCHAR, deaths VARCHAR)
### Response:
### Response:
SELECT dates_active FROM table_name_93 WHERE deaths = "204"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the average Played with a Points of 0*?
### Context:
CREATE TABLE table_name_72 (played INTEGER, points VARCHAR)
### Response:
### Response:
SELECT AVG(played) FROM table_name_72 WHERE points = "0*"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What package offers cinema content and is n. 333?
### Context:
CREATE TABLE table_15887683_5 (package_option VARCHAR, content VARCHAR, n° VARCHAR)
### Response:
### Response:
SELECT package_option FROM table_15887683_5 WHERE content = "cinema" AND n° = "333"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the player that had drawn 1 and tried for 20?
### Context:
CREATE TABLE table_name_76 (played VARCHAR, drawn VARCHAR, tries_for VARCHAR)
### Response:
### Response:
SELECT played FROM table_name_76 WHERE drawn = "1" AND tries_for = "20"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Date, when Away is High Park Demons?
### Context:
CREATE TABLE table_name_6 (date VARCHAR, away VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_6 WHERE away = "high park demons"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What year did Tom Watson win?
### Context:
CREATE TABLE table_name_78 (year_s__won VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT year_s__won FROM table_name_78 WHERE player = "tom watson"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the document name and template id for document with description with the letter 'w' in it?
### Context:
CREATE TABLE Documents (document_name VARCHAR, template_id VARCHAR, Document_Description VARCHAR)
### Response:
### Response:
SELECT document_name, template_id FROM Documents WHERE Document_Description LIKE "%w%"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the date for home team of collingwood
### Context:
CREATE TABLE table_name_51 (date VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_51 WHERE home_team = "collingwood"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Score, when Opponent is Atlanta Hawks?
### Context:
CREATE TABLE table_name_44 (score VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_44 WHERE opponent = "atlanta hawks"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest overall number one(s)?
### Context:
CREATE TABLE table_19542477_8 (number_one_s_ INTEGER)
### Response:
### Response:
SELECT MAX(number_one_s_) FROM table_19542477_8</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the tyre when the entrant is scuderia milano?
### Context:
CREATE TABLE table_name_81 (tyre VARCHAR, entrant VARCHAR)
### Response:
### Response:
SELECT tyre FROM table_name_81 WHERE entrant = "scuderia milano"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What type of surface did the tournament canada f9, markham have?
### Context:
CREATE TABLE table_name_30 (surface VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT surface FROM table_name_30 WHERE tournament = "canada f9, markham"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many items are listed under caps when burnley is the club team?
### Context:
CREATE TABLE table_28286776_12 (cap_s_ VARCHAR, club_s_ VARCHAR)
### Response:
### Response:
SELECT COUNT(cap_s_) FROM table_28286776_12 WHERE club_s_ = "Burnley"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the language/rebroadcast for cbc radio one?
### Context:
CREATE TABLE table_name_30 (language_rebroadcast VARCHAR, branding VARCHAR)
### Response:
### Response:
SELECT language_rebroadcast FROM table_name_30 WHERE branding = "cbc radio one"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
On what date was the score for set 3 22–25?
### Context:
CREATE TABLE table_name_32 (date VARCHAR, set_3 VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_32 WHERE set_3 = "22–25"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the further cities for east romania
### Context:
CREATE TABLE table_197286_4 (further_cities VARCHAR, direction VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT further_cities FROM table_197286_4 WHERE direction = "East" AND country = "Romania"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which venue resulted in 2nd before 2005?
### Context:
CREATE TABLE table_name_27 (venue VARCHAR, result VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_27 WHERE result = "2nd" AND year < 2005</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Album # of 3rd is what chinese title?
### Context:
CREATE TABLE table_name_57 (chinese_title VARCHAR, album_number VARCHAR)
### Response:
### Response:
SELECT chinese_title FROM table_name_57 WHERE album_number = "3rd"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
when was the episode on which barbara windsor and heston blumenthal guest starred broadcasted
### Context:
CREATE TABLE table_29135051_3 (broadcast_date VARCHAR, guest_s_ VARCHAR)
### Response:
### Response:
SELECT broadcast_date FROM table_29135051_3 WHERE guest_s_ = "Barbara Windsor and Heston Blumenthal"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the name of project that continues for the longest time.
### Context:
CREATE TABLE projects (name VARCHAR, hours VARCHAR)
### Response:
### Response:
SELECT name FROM projects ORDER BY hours DESC LIMIT 1</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Show location and name for all stadiums with a capacity between 5000 and 10000.
### Context:
CREATE TABLE stadium (LOCATION VARCHAR, name VARCHAR, capacity INTEGER)
### Response:
### Response:
SELECT LOCATION, name FROM stadium WHERE capacity BETWEEN 5000 AND 10000</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was in Lane 5 and had a heat of 7?
### Context:
CREATE TABLE table_name_32 (name VARCHAR, heat VARCHAR, lane VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_32 WHERE heat = 7 AND lane = 5</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Hand guards has a Barrel profile of a2 and a Rear sight of weaver?
### Context:
CREATE TABLE table_name_1 (hand_guards VARCHAR, barrel_profile VARCHAR, rear_sight VARCHAR)
### Response:
### Response:
SELECT hand_guards FROM table_name_1 WHERE barrel_profile = "a2" AND rear_sight = "weaver"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the sum of losses that have points of 11 and more than 1 draw?
### Context:
CREATE TABLE table_name_86 (lost INTEGER, points VARCHAR, drawn VARCHAR)
### Response:
### Response:
SELECT SUM(lost) FROM table_name_86 WHERE points = 11 AND drawn > 1</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
WHAT IS THE POPULATION OF 2007 WHEN 2010 POPULATION WAS SMALLER THAN 1282?
### Context:
CREATE TABLE table_name_2 (population__2007_ VARCHAR, population__2010_ INTEGER)
### Response:
### Response:
SELECT COUNT(population__2007_) FROM table_name_2 WHERE population__2010_ < 1282</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total number of wins for Darley of Ballarat FL against larger than 1055?
### Context:
CREATE TABLE table_name_96 (wins VARCHAR, ballarat_fl VARCHAR, against VARCHAR)
### Response:
### Response:
SELECT COUNT(wins) FROM table_name_96 WHERE ballarat_fl = "darley" AND against > 1055</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
On what date was the Competition of Friendly held?
### Context:
CREATE TABLE table_name_70 (date VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_70 WHERE competition = "friendly"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the weight of the v t e of duško pijetlović category:articles with hcards?
### Context:
CREATE TABLE table_name_26 (weight VARCHAR, name_v_t_e VARCHAR)
### Response:
### Response:
SELECT weight FROM table_name_26 WHERE name_v_t_e = "duško pijetlović category:articles with hcards"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which couple participated in the Paso Doble style and were safe?
### Context:
CREATE TABLE table_name_91 (couple VARCHAR, results VARCHAR, style VARCHAR)
### Response:
### Response:
SELECT couple FROM table_name_91 WHERE results = "safe" AND style = "paso doble"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Winning score has a Date of aug 26, 1973?
### Context:
CREATE TABLE table_name_42 (winning_score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT winning_score FROM table_name_42 WHERE date = "aug 26, 1973"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Icelandic word for the English word bride?
### Context:
CREATE TABLE table_name_41 (icelandic VARCHAR, english VARCHAR)
### Response:
### Response:
SELECT icelandic FROM table_name_41 WHERE english = "bride"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Ship was Built by Cammell Laird?
### Context:
CREATE TABLE table_name_70 (ship VARCHAR, builder VARCHAR)
### Response:
### Response:
SELECT ship FROM table_name_70 WHERE builder = "cammell laird"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
I want the outgoing manager for 19 february
### Context:
CREATE TABLE table_name_57 (outgoing_manager VARCHAR, date_of_appointment VARCHAR)
### Response:
### Response:
SELECT outgoing_manager FROM table_name_57 WHERE date_of_appointment = "19 february"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
If the player is Corey Pavin when he had a To par of over 7, what was the sum of his totals?
### Context:
CREATE TABLE table_name_77 (total INTEGER, to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT SUM(total) FROM table_name_77 WHERE to_par > 7 AND player = "corey pavin"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total number of medals won by teams that won more than 11 bronze medals?
### Context:
CREATE TABLE table_name_41 (total VARCHAR, bronze INTEGER)
### Response:
### Response:
SELECT COUNT(total) FROM table_name_41 WHERE bronze > 11</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Average for South Carolina with an Interview less than 9.626?
### Context:
CREATE TABLE table_name_21 (average INTEGER, state VARCHAR, interview VARCHAR)
### Response:
### Response:
SELECT SUM(average) FROM table_name_21 WHERE state = "south carolina" AND interview < 9.626</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which country has a population of 3,221,216?
### Context:
CREATE TABLE table_name_79 (country VARCHAR, population__2011_est_ VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_79 WHERE population__2011_est_ = "3,221,216"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who won Gold later than 2004 with Notes of 2.73km, 14controls?
### Context:
CREATE TABLE table_name_32 (gold VARCHAR, year VARCHAR, notes VARCHAR)
### Response:
### Response:
SELECT gold FROM table_name_32 WHERE year > 2004 AND notes = "2.73km, 14controls"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Year(s) of manufacture has a Quantity larger than 39, and a Type of 1′c1′ h2t?
### Context:
CREATE TABLE table_name_90 (year_s__of_manufacture VARCHAR, quantity VARCHAR, type VARCHAR)
### Response:
### Response:
SELECT year_s__of_manufacture FROM table_name_90 WHERE quantity > 39 AND type = "1′c1′ h2t"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What company made the chassis when there were 8 points?
### Context:
CREATE TABLE table_name_8 (chassis VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT chassis FROM table_name_8 WHERE points = 8</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which 1964 has a Country of united states, and a 1969 smaller than 7.3?
### Context:
CREATE TABLE table_name_85 (country VARCHAR)
### Response:
### Response:
SELECT MIN(1964) FROM table_name_85 WHERE country = "united states" AND 1969 < 7.3</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which capital has a Hangul of 경상남도?
### Context:
CREATE TABLE table_name_97 (capital VARCHAR, hangul_chosongul VARCHAR)
### Response:
### Response:
SELECT capital FROM table_name_97 WHERE hangul_chosongul = "경상남도"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the winner of Stage 9 when then general classification was Danilo Di Luca?
### Context:
CREATE TABLE table_name_60 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_60 WHERE general_classification = "danilo di luca" AND stage = "9"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the season number of the show written by both Kari Lizer and Jeff Astrof?
### Context:
CREATE TABLE table_27911342_1 (season__number VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT COUNT(season__number) FROM table_27911342_1 WHERE written_by = "Kari Lizer"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the frequency of the station located in polangui, albay?
### Context:
CREATE TABLE table_27588823_2 (frequency VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT frequency FROM table_27588823_2 WHERE location = "Polangui, Albay"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which films participated in the 30th Hawaii International Film Festival?
### Context:
CREATE TABLE table_29644931_1 (participants_recipients VARCHAR, film_festival VARCHAR)
### Response:
### Response:
SELECT participants_recipients FROM table_29644931_1 WHERE film_festival = "30th Hawaii International film_festival"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the circuit for hertz british grand prix
### Context:
CREATE TABLE table_27948565_1 (circuit VARCHAR, grand_prix VARCHAR)
### Response:
### Response:
SELECT circuit FROM table_27948565_1 WHERE grand_prix = "Hertz British grand_prix"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What round was the method submission (punches)?
### Context:
CREATE TABLE table_name_18 (round VARCHAR, method VARCHAR)
### Response:
### Response:
SELECT COUNT(round) FROM table_name_18 WHERE method = "submission (punches)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average attendance for games against the Pittsburgh Steelers when the opponents scored more than 0 points?
### Context:
CREATE TABLE table_name_2 (attendance INTEGER, opponent VARCHAR, opponents VARCHAR)
### Response:
### Response:
SELECT AVG(attendance) FROM table_name_2 WHERE opponent = "pittsburgh steelers" AND opponents > 0</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
In what place did Des Smyth, who scored less than 71, finish?
### Context:
CREATE TABLE table_name_23 (place VARCHAR, score VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_23 WHERE score < 71 AND player = "des smyth"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Driving Force EX of no, and a Driving Force GT of yes, and a Driving Force Pro of yes has what feature?
### Context:
CREATE TABLE table_name_64 (feature VARCHAR, driving_force_pro VARCHAR, driving_force_ex VARCHAR, driving_force_gt VARCHAR)
### Response:
### Response:
SELECT feature FROM table_name_64 WHERE driving_force_ex = "no" AND driving_force_gt = "yes" AND driving_force_pro = "yes"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the double's performance data from the Monte Carlo Masters tournament in 2007?
### Context:
CREATE TABLE table_name_54 (tournament VARCHAR)
### Response:
### Response:
SELECT 2007 FROM table_name_54 WHERE tournament = "monte carlo masters"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Season when the Lead was don bartlett, and the third was don walchuk, and a Second of carter rycroft?
### Context:
CREATE TABLE table_name_63 (season VARCHAR, second VARCHAR, lead VARCHAR, third VARCHAR)
### Response:
### Response:
SELECT season FROM table_name_63 WHERE lead = "don bartlett" AND third = "don walchuk" AND second = "carter rycroft"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who captains Portsmouth?
### Context:
CREATE TABLE table_name_9 (captain VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT captain FROM table_name_9 WHERE team = "portsmouth"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the location where shocker was the winner?
### Context:
CREATE TABLE table_name_14 (location VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_14 WHERE winner = "shocker"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the percentage of land area in the ecozone that the percentage protected is 15.28?
### Context:
CREATE TABLE table_15555661_2 (percentage_of_land_area VARCHAR, percentage_protected VARCHAR)
### Response:
### Response:
SELECT percentage_of_land_area FROM table_15555661_2 WHERE percentage_protected = "15.28"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
I want the date for aníbal sánchez
### Context:
CREATE TABLE table_name_58 (date VARCHAR, pitcher VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_58 WHERE pitcher = "aníbal sánchez"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Result has a Category of the best costume design?
### Context:
CREATE TABLE table_name_3 (result VARCHAR, category VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_3 WHERE category = "best costume design"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the countries that have never participated in any competition with Friendly type.
### Context:
CREATE TABLE competition (country VARCHAR, competition_type VARCHAR)
### Response:
### Response:
SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly'</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many goals for had a drawn more than 12 for the Goole Town team, as well as more than 60 goals against?
### Context:
CREATE TABLE table_name_45 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT SUM(goals_for) FROM table_name_45 WHERE drawn > 12 AND team = "goole town" AND goals_against > 60</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the date with outcome of winner and score of 4–6 6–2 7–6 (7–4)
### Context:
CREATE TABLE table_name_25 (date VARCHAR, outcome VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_25 WHERE outcome = "winner" AND score = "4–6 6–2 7–6 (7–4)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the result when the method was submission (kimura)?
### Context:
CREATE TABLE table_name_72 (res VARCHAR, method VARCHAR)
### Response:
### Response:
SELECT res FROM table_name_72 WHERE method = "submission (kimura)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the road record for the team with an overall record of 22-11?
### Context:
CREATE TABLE table_23183195_2 (road_record VARCHAR, overall_record VARCHAR)
### Response:
### Response:
SELECT road_record FROM table_23183195_2 WHERE overall_record = "22-11"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average grid of driver Christian Vietoris who has less than 12 laps?
### Context:
CREATE TABLE table_name_79 (grid INTEGER, driver VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT AVG(grid) FROM table_name_79 WHERE driver = "christian vietoris" AND laps < 12</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
The color diamond is assigned to which Terminus?
### Context:
CREATE TABLE table_name_46 (terminus VARCHAR, color VARCHAR)
### Response:
### Response:
SELECT terminus FROM table_name_46 WHERE color = "diamond"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When 1872-10-10 is the founding date what are the canadian chapters?
### Context:
CREATE TABLE table_28436909_4 (canadian_chapters VARCHAR, founding_date VARCHAR)
### Response:
### Response:
SELECT canadian_chapters FROM table_28436909_4 WHERE founding_date = "1872-10-10"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the date for 2004 afc asian cup qualifier
### Context:
CREATE TABLE table_name_23 (date VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_23 WHERE competition = "2004 afc asian cup qualifier"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total of Mark O'meara?
### Context:
CREATE TABLE table_name_88 (total INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MIN(total) FROM table_name_88 WHERE player = "mark o'meara"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the type on Sestri Levante to Riomaggiore?
### Context:
CREATE TABLE table_name_39 (type VARCHAR, course VARCHAR)
### Response:
### Response:
SELECT type FROM table_name_39 WHERE course = "sestri levante to riomaggiore"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What sport had a final score of 3-2?
### Context:
CREATE TABLE table_10548224_1 (sport VARCHAR, final_score VARCHAR)
### Response:
### Response:
SELECT sport FROM table_10548224_1 WHERE final_score = "3-2"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What airport is in Muscat?
### Context:
CREATE TABLE table_name_60 (airport VARCHAR, city VARCHAR)
### Response:
### Response:
SELECT airport FROM table_name_60 WHERE city = "muscat"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the Identifier with 94.9 fm Frequency
### Context:
CREATE TABLE table_name_19 (identifier VARCHAR, frequency VARCHAR)
### Response:
### Response:
SELECT identifier FROM table_name_19 WHERE frequency = "94.9 fm"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the name of the award that Edward Jeffreys was the writer?
### Context:
CREATE TABLE table_name_64 (award VARCHAR, writer_s_ VARCHAR)
### Response:
### Response:
SELECT award FROM table_name_64 WHERE writer_s_ = "edward jeffreys"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What venue did melbourne play at as the away team?
### Context:
CREATE TABLE table_name_60 (venue VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_60 WHERE away_team = "melbourne"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the home city for the stadion src mladost?
### Context:
CREATE TABLE table_name_29 (home_city VARCHAR, stadium VARCHAR)
### Response:
### Response:
SELECT home_city FROM table_name_29 WHERE stadium = "stadion src mladost"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the crew chief, of driver Matt kurzejewski?
### Context:
CREATE TABLE table_name_27 (crew_chief VARCHAR, driver_s_ VARCHAR)
### Response:
### Response:
SELECT crew_chief FROM table_name_27 WHERE driver_s_ = "matt kurzejewski"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which College/junior/club team has a Round of 4?
### Context:
CREATE TABLE table_name_11 (college_junior_club_team VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT college_junior_club_team FROM table_name_11 WHERE round = 4</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.