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 was the team's result in week 4?
### Context:
CREATE TABLE table_14942535_1 (result VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT result FROM table_14942535_1 WHERE week = 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 is the total for Austria when there is less than 1 bronze?
### Context:
CREATE TABLE table_name_47 (total INTEGER, nation VARCHAR, bronze VARCHAR)
### Response:
### Response:
SELECT AVG(total) FROM table_name_47 WHERE nation = "austria" AND bronze < 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:
Who were the comedians during the episode located in Birmingham Hippodrome?
### Context:
CREATE TABLE table_23122988_1 (comedians VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT comedians FROM table_23122988_1 WHERE location = "Birmingham Hippodrome"</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 total for saint-wenceslas with a region number of under 17?
### Context:
CREATE TABLE table_name_44 (population INTEGER, name VARCHAR, region VARCHAR)
### Response:
### Response:
SELECT SUM(population) FROM table_name_44 WHERE name = "saint-wenceslas" AND region < 17</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 defending champs from thailand?
### Context:
CREATE TABLE table_19765685_2 (defending_champion VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT COUNT(defending_champion) FROM table_19765685_2 WHERE country = "Thailand"</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 minimum hours of the students playing in different position?
### Context:
CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pPos VARCHAR, pID VARCHAR)
### Response:
### Response:
SELECT MIN(T2.HS), T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos</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 lead for the team with Nkeiruka Ezekh as second?
### Context:
CREATE TABLE table_name_59 (lead VARCHAR, second VARCHAR)
### Response:
### Response:
SELECT lead FROM table_name_59 WHERE second = "nkeiruka ezekh"</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 candidate won 88 votes in Queens in 1921?
### Context:
CREATE TABLE table_1108394_47 (queens VARCHAR)
### Response:
### Response:
SELECT 1921 FROM table_1108394_47 WHERE queens = "88"</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 academic & University affairs when the Human resources & operations is N. Charles Hamilton?
### Context:
CREATE TABLE table_12113818_1 (academic_ VARCHAR, _university_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR)
### Response:
### Response:
SELECT academic_ & _university_affairs FROM table_12113818_1 WHERE human_resources_ & _operations = "N. Charles Hamilton"</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 livorno's average election?
### Context:
CREATE TABLE table_name_69 (election INTEGER, municipality VARCHAR)
### Response:
### Response:
SELECT AVG(election) FROM table_name_69 WHERE municipality = "livorno"</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 visitor on March 24?
### Context:
CREATE TABLE table_name_62 (visitor VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT visitor FROM table_name_62 WHERE date = "march 24"</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 overall record when the club is dallas burn?
### Context:
CREATE TABLE table_1246208_5 (overall_record VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT overall_record FROM table_1246208_5 WHERE club = "Dallas Burn"</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 character name for the film with a release date of July 29, 1938?
### Context:
CREATE TABLE table_name_72 (character_name VARCHAR, release_date VARCHAR)
### Response:
### Response:
SELECT character_name FROM table_name_72 WHERE release_date = "july 29, 1938"</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 Classification, when Dennis Kucinich is "3%", and when % of All is "53%"?
### Context:
CREATE TABLE table_name_82 (classification VARCHAR, dennis_kucinich VARCHAR, _percentage_of_all VARCHAR)
### Response:
### Response:
SELECT classification FROM table_name_82 WHERE dennis_kucinich = "3%" AND _percentage_of_all = "53%"</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 engine for the car with 3 points?
### Context:
CREATE TABLE table_name_6 (engine VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT engine FROM table_name_6 WHERE points = 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:
What was the lowest number of members on the Agricultural Panel, when the Industrial and Commercial Panel had 9 members, and when the National University of Ireland had more than 3 members?
### Context:
CREATE TABLE table_name_29 (agricultural_panel INTEGER, industrial_and_commercial_panel VARCHAR, national_university_of_ireland VARCHAR)
### Response:
### Response:
SELECT MIN(agricultural_panel) FROM table_name_29 WHERE industrial_and_commercial_panel = 9 AND national_university_of_ireland > 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:
If the season is before 2000, the runner up was north melbourne, and it's the pre-season cup, what's the sum of attendees?
### Context:
CREATE TABLE table_name_8 (attendance INTEGER, season VARCHAR, premiership VARCHAR, runner_up VARCHAR)
### Response:
### Response:
SELECT SUM(attendance) FROM table_name_8 WHERE premiership = "pre-season cup" AND runner_up = "north melbourne" AND season < 2000</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 maximum McCain population turnout number?
### Context:
CREATE TABLE table_20684390_1 (mccain_number INTEGER)
### Response:
### Response:
SELECT MAX(mccain_number) FROM table_20684390_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 competition when the result is 1-1 and venue is gwangju?
### Context:
CREATE TABLE table_name_35 (competition VARCHAR, result VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_35 WHERE result = "1-1" AND venue = "gwangju"</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 core clocks ( mhz ) have a 21.3 memory bandwidth ( gb/s )?
### Context:
CREATE TABLE table_25839957_5 (core_clock___mhz__ VARCHAR, memory_bandwidth___gb_s__ VARCHAR)
### Response:
### Response:
SELECT core_clock___mhz__ FROM table_25839957_5 WHERE memory_bandwidth___gb_s__ = "21.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:
What is Team, when Game is 73?
### Context:
CREATE TABLE table_name_21 (team VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_21 WHERE game = 73</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 are the candidates in Washington 1 district?
### Context:
CREATE TABLE table_16185956_1 (district VARCHAR)
### Response:
### Response:
SELECT 2008 AS _candidates FROM table_16185956_1 WHERE district = "Washington 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:
Which stadium hosted the November 20 game?
### Context:
CREATE TABLE table_name_11 (stadium VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT stadium FROM table_name_11 WHERE date = "november 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:
List the research staff details, and order in ascending order.
### Context:
CREATE TABLE Research_Staff (staff_details VARCHAR)
### Response:
### Response:
SELECT staff_details FROM Research_Staff ORDER BY staff_details</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 venue for 15 august 2006
### Context:
CREATE TABLE table_name_89 (venue VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_89 WHERE date = "15 august 2006"</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 Original air date for the episode directed by Tricia Brock?
### Context:
CREATE TABLE table_13183076_3 (original_air_date VARCHAR, directed_by VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_13183076_3 WHERE directed_by = "Tricia Brock"</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 Week has an Opponent of san francisco 49ers?
### Context:
CREATE TABLE table_name_46 (week INTEGER, opponent VARCHAR)
### Response:
### Response:
SELECT MAX(week) FROM table_name_46 WHERE opponent = "san francisco 49ers"</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 class has over 0 wins and 42 points?
### Context:
CREATE TABLE table_name_13 (class VARCHAR, wins VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT class FROM table_name_13 WHERE wins > 0 AND points = 42</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 Played when the drawn is less than 2 and against is more than 29?
### Context:
CREATE TABLE table_name_35 (played INTEGER, drawn VARCHAR, against VARCHAR)
### Response:
### Response:
SELECT SUM(played) FROM table_name_35 WHERE drawn < 2 AND against > 29</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 came in second place when the champion was south dakota school of mines & technology?
### Context:
CREATE TABLE table_2331549_1 (second_place VARCHAR, champion VARCHAR)
### Response:
### Response:
SELECT second_place FROM table_2331549_1 WHERE champion = "South Dakota School of Mines & Technology"</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 record on February 19?
### Context:
CREATE TABLE table_name_39 (record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_39 WHERE date = "february 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:
what is the political affiliation of ray roberts
### Context:
CREATE TABLE table_1341884_45 (party VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT party FROM table_1341884_45 WHERE incumbent = "Ray Roberts"</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:
Frequency of 100.1 has what on-air id?
### Context:
CREATE TABLE table_name_87 (on_air_id VARCHAR, frequency VARCHAR)
### Response:
### Response:
SELECT on_air_id FROM table_name_87 WHERE frequency = "100.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:
How many season 3 appearances by Morgan the Dog?
### Context:
CREATE TABLE table_26240046_1 (season_3 INTEGER, played_by VARCHAR)
### Response:
### Response:
SELECT MAX(season_3) FROM table_26240046_1 WHERE played_by = "Morgan the Dog"</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:
Can you tell me the average December rhat has the Opponent of @ toronto maple leafs?
### Context:
CREATE TABLE table_name_18 (december INTEGER, opponent VARCHAR)
### Response:
### Response:
SELECT AVG(december) FROM table_name_18 WHERE opponent = "@ toronto maple leafs"</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 venue when the result was position of 17th?
### Context:
CREATE TABLE table_name_27 (venue VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_27 WHERE position = "17th"</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 Clubs when there are 4 for the number of fixtures?
### Context:
CREATE TABLE table_name_3 (clubs VARCHAR, number_of_fixtures VARCHAR)
### Response:
### Response:
SELECT clubs FROM table_name_3 WHERE number_of_fixtures = 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 are the notes for the athlete from Spain?
### Context:
CREATE TABLE table_name_29 (notes VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT notes FROM table_name_29 WHERE country = "spain"</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 Record, when Date is 1996?
### Context:
CREATE TABLE table_name_45 (record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_45 WHERE date = "1996"</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 Metallica: Escape from the Studio show?
### Context:
CREATE TABLE table_name_28 (date VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_28 WHERE event = "metallica: escape from the studio"</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 bronze when the rank is 5, the nation is poland and gold is less than 0?
### Context:
CREATE TABLE table_name_89 (bronze INTEGER, gold VARCHAR, rank VARCHAR, nation VARCHAR)
### Response:
### Response:
SELECT SUM(bronze) FROM table_name_89 WHERE rank = 5 AND nation = "poland" AND gold < 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:
Who was the winner of binibining pilipinas-International wheh Gionna Cabrera won Miss Universe Philippines?
### Context:
CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, miss_universe_philippines VARCHAR)
### Response:
### Response:
SELECT binibining_pilipinas_international FROM table_1825751_4 WHERE miss_universe_philippines = "Gionna Cabrera"</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 much Money is requested by BassToneSlap?
### Context:
CREATE TABLE table_name_10 (money_requested__£_ VARCHAR, company_or_product_name VARCHAR)
### Response:
### Response:
SELECT money_requested__£_ FROM table_name_10 WHERE company_or_product_name = "basstoneslap"</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 county with a longitude of -102.302775?
### Context:
CREATE TABLE table_18600760_3 (county VARCHAR, longitude VARCHAR)
### Response:
### Response:
SELECT county FROM table_18600760_3 WHERE longitude = "-102.302775"</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 date has a status of 1995 rugby world cup and an against of 20?
### Context:
CREATE TABLE table_name_21 (date VARCHAR, status VARCHAR, against VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_21 WHERE status = "1995 rugby world cup" AND against = 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 the percentage where males equal 99?
### Context:
CREATE TABLE table_name_35 (percentage___percentage_ VARCHAR, males VARCHAR)
### Response:
### Response:
SELECT percentage___percentage_ FROM table_name_35 WHERE males = "99"</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 score when the date is february 3?
### Context:
CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_92 WHERE date = "february 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:
What is the Catalog with a Date that is february 20, 2002?
### Context:
CREATE TABLE table_name_89 (catalog VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT catalog FROM table_name_89 WHERE date = "february 20, 2002"</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:
Does the sounddock series I v2 have dual voltage?
### Context:
CREATE TABLE table_24384861_1 (dual_voltage VARCHAR, version VARCHAR)
### Response:
### Response:
SELECT dual_voltage FROM table_24384861_1 WHERE version = "SoundDock series I v2"</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 Score, when the Venue is Lübker Golf Resort?
### Context:
CREATE TABLE table_name_37 (score VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_37 WHERE venue = "lübker golf resort"</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 points did Albert Herrnstein make?
### Context:
CREATE TABLE table_14342367_7 (points VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT points FROM table_14342367_7 WHERE player = "Albert Herrnstein"</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 number of finish of the Qual of 159.384?
### Context:
CREATE TABLE table_name_11 (finish VARCHAR, qual VARCHAR)
### Response:
### Response:
SELECT finish FROM table_name_11 WHERE qual = "159.384"</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:
At the venue Vfl Park, what was the Home team score?
### Context:
CREATE TABLE table_name_5 (home_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_5 WHERE venue = "vfl park"</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 week was the away team Auckland?
### Context:
CREATE TABLE table_name_92 (week VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT week FROM table_name_92 WHERE away_team = "auckland"</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 game on January 26 played against?
### Context:
CREATE TABLE table_23285761_7 (team VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT team FROM table_23285761_7 WHERE date = "January 26"</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 set 1 score when the total is 85–101?
### Context:
CREATE TABLE table_name_92 (set_1 VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT set_1 FROM table_name_92 WHERE total = "85–101"</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 constructor of the car that Jan Lammers made 7-14 rounds in?
### Context:
CREATE TABLE table_name_25 (constructor VARCHAR, driver VARCHAR, rounds VARCHAR)
### Response:
### Response:
SELECT constructor FROM table_name_25 WHERE driver = "jan lammers" AND rounds = "7-14"</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 week did the Seattle Seahawks have a record of 6-6?
### Context:
CREATE TABLE table_name_7 (week INTEGER, record VARCHAR)
### Response:
### Response:
SELECT AVG(week) FROM table_name_7 WHERE record = "6-6"</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 Round, when Draft is greater than 1980, and when Player is "Shane Doan Category:Articles with hCards"?
### Context:
CREATE TABLE table_name_46 (round INTEGER, draft VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT MAX(round) FROM table_name_46 WHERE draft > 1980 AND player = "shane doan 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:
What is the Away team at the game with a Score of 1 – 0 and Attendance of 1,791?
### Context:
CREATE TABLE table_name_4 (away_team VARCHAR, score VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_4 WHERE score = "1 – 0" AND attendance = "1,791"</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 bill cosponsored during those years where bills originally cosponsored is 113?
### Context:
CREATE TABLE table_18852984_2 (all_bills_cosponsored VARCHAR, bills_originally_cosponsored VARCHAR)
### Response:
### Response:
SELECT all_bills_cosponsored FROM table_18852984_2 WHERE bills_originally_cosponsored = 113</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 positions did the player from Spring High School play?
### Context:
CREATE TABLE table_11677100_4 (position VARCHAR, school VARCHAR)
### Response:
### Response:
SELECT COUNT(position) FROM table_11677100_4 WHERE school = "Spring High school"</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:
Round that greg huntington went in?
### Context:
CREATE TABLE table_name_54 (round VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_54 WHERE name = "greg huntington"</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 entrant in 1971?
### Context:
CREATE TABLE table_name_3 (entrant VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT entrant FROM table_name_3 WHERE year = 1971</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 LAPS WITH A GRID OF 26?
### Context:
CREATE TABLE table_name_7 (laps VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT laps FROM table_name_7 WHERE grid = "26"</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 player's original team are the Oakland Raiders?
### Context:
CREATE TABLE table_name_96 (player VARCHAR, original_nfl_team VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_96 WHERE original_nfl_team = "oakland raiders"</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 Assists for the Player with 13 Games and a Rank less than 3?
### Context:
CREATE TABLE table_name_29 (assists INTEGER, games VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT SUM(assists) FROM table_name_29 WHERE games = 13 AND rank < 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 document type is described with the prefix 'Initial'?
### Context:
CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR)
### Response:
### Response:
SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%'</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 Kaine's (D) percentage in the poll on september 19, 2005?
### Context:
CREATE TABLE table_name_7 (kaine__d_ VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT kaine__d_ FROM table_name_7 WHERE date = "september 19, 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:
What is the elevation of Vanuatu, when the rank is smaller than 3?
### Context:
CREATE TABLE table_name_22 (elevation__m_ INTEGER, country VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT AVG(elevation__m_) FROM table_name_22 WHERE country = "vanuatu" AND rank < 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:
Who was the manufacturer for the race on grid 12?
### Context:
CREATE TABLE table_name_49 (manufacturer VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT manufacturer FROM table_name_49 WHERE grid = 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:
Which office was Richard M. Griffin vying for on the Greenback ticket?
### Context:
CREATE TABLE table_name_97 (office VARCHAR, greenback_ticket VARCHAR)
### Response:
### Response:
SELECT office FROM table_name_97 WHERE greenback_ticket = "richard m. griffin"</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 name that has moving of 1. fc nürnberg.
### Context:
CREATE TABLE table_name_9 (name VARCHAR, moving_from VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_9 WHERE moving_from = "1. fc nürnberg"</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 engine with rounds of 11 and teams of 25
### Context:
CREATE TABLE table_name_29 (engine VARCHAR, rounds VARCHAR, teams VARCHAR)
### Response:
### Response:
SELECT engine FROM table_name_29 WHERE rounds = "11" AND teams = "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:
Who has a total tenure time and uninterrupted time of 36 years, 0 days, as well as a total tenure rank of 49?
### Context:
CREATE TABLE table_name_14 (name VARCHAR, total_tenure_rank VARCHAR, total_tenure_time VARCHAR, uninterrupted_time VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_14 WHERE total_tenure_time = "36 years, 0 days" AND uninterrupted_time = "36 years, 0 days" AND total_tenure_rank = 49</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 tiers for the postseason of semifinalist?
### Context:
CREATE TABLE table_name_45 (tier INTEGER, postseason VARCHAR)
### Response:
### Response:
SELECT SUM(tier) FROM table_name_45 WHERE postseason = "semifinalist"</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 original air date where there were u.s. viewers (millions) is 5.60?
### Context:
CREATE TABLE table_25716399_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_25716399_1 WHERE us_viewers__millions_ = "5.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:
What is the Competition for Season 2002–03, and the Opponent was zenit st. petersburg?
### Context:
CREATE TABLE table_name_86 (competition VARCHAR, season VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_86 WHERE season = "2002–03" AND opponent = "zenit st. petersburg"</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 times did Ron Artest (24) receive the record for high points?
### Context:
CREATE TABLE table_17288825_7 (record VARCHAR, high_points VARCHAR)
### Response:
### Response:
SELECT COUNT(record) FROM table_17288825_7 WHERE high_points = "Ron Artest (24)"</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 qualsiasi tranne sky hd package/option?
### Context:
CREATE TABLE table_name_21 (country VARCHAR, package_option VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_21 WHERE package_option = "qualsiasi tranne sky hd"</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 had an opponent of Sunderland and a result of a 1-1 draw?
### Context:
CREATE TABLE table_name_40 (venue VARCHAR, opponent VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_40 WHERE opponent = "sunderland" AND result = "1-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:
How many grids have 102 laps and a Time/Retired of + 6.18?
### Context:
CREATE TABLE table_name_64 (grid VARCHAR, laps VARCHAR, time_retired VARCHAR)
### Response:
### Response:
SELECT COUNT(grid) FROM table_name_64 WHERE laps > 102 AND time_retired = "+ 6.18"</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 position with team being skilled racing team
### Context:
CREATE TABLE table_14139408_1 (position VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT position FROM table_14139408_1 WHERE team = "Skilled Racing team"</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 Lost for the Highest Ranking of – –?
### Context:
CREATE TABLE table_name_61 (lost VARCHAR, highest_ranking VARCHAR)
### Response:
### Response:
SELECT COUNT(lost) FROM table_name_61 WHERE highest_ranking = "– –"</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 for the buick-goodwrench open?
### Context:
CREATE TABLE table_name_40 (location VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_40 WHERE tournament = "buick-goodwrench open"</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:
With the score of 6–3, 2–6, [10–8] and played on clay who was the opponent?
### Context:
CREATE TABLE table_name_69 (opponent VARCHAR, surface VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_69 WHERE surface = "clay" AND score = "6–3, 2–6, [10–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 result of the friendly match?
### Context:
CREATE TABLE table_name_37 (result VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_37 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 Status has Against of 12?
### Context:
CREATE TABLE table_name_77 (status VARCHAR, against VARCHAR)
### Response:
### Response:
SELECT status FROM table_name_77 WHERE against = 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:
Who did the Lyrics (l) / Music (m) for the song in 23 Place?
### Context:
CREATE TABLE table_name_76 (lyrics__l____music__m_ VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT lyrics__l____music__m_ FROM table_name_76 WHERE place = "23"</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 68 is the episode number what is the series number?
### Context:
CREATE TABLE table_28967275_3 (series__number VARCHAR, episode__number VARCHAR)
### Response:
### Response:
SELECT series__number FROM table_28967275_3 WHERE episode__number = 68</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 fielding team with 155 runs?
### Context:
CREATE TABLE table_11303072_5 (fielding_team VARCHAR, runs VARCHAR)
### Response:
### Response:
SELECT fielding_team FROM table_11303072_5 WHERE runs = "155"</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 top rank that's lane is smaller than 1?
### Context:
CREATE TABLE table_name_77 (rank INTEGER, lane INTEGER)
### Response:
### Response:
SELECT MAX(rank) FROM table_name_77 WHERE lane < 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 status of channel 44.1?
### Context:
CREATE TABLE table_12271718_1 (status VARCHAR, channel VARCHAR)
### Response:
### Response:
SELECT status FROM table_12271718_1 WHERE channel = "44.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 address for the school that has the coyotes mascot?
### Context:
CREATE TABLE table_name_44 (address VARCHAR, mascot VARCHAR)
### Response:
### Response:
SELECT address FROM table_name_44 WHERE mascot = "coyotes"</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 directed the episode that is written by Eli Attie and production code is 2t5018?
### Context:
CREATE TABLE table_29152820_1 (directed_by VARCHAR, written_by VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT directed_by FROM table_29152820_1 WHERE written_by = "Eli Attie" AND production_code = "2T5018"</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 has the title of marquis?
### Context:
CREATE TABLE table_name_52 (name VARCHAR, title VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_52 WHERE title = "marquis"</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 were all the tries for when the try bonus was 8?
### Context:
CREATE TABLE table_13564637_5 (tries_for VARCHAR, try_bonus VARCHAR)
### Response:
### Response:
SELECT tries_for FROM table_13564637_5 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:
What is the rank for the 3 silver medals?
### Context:
CREATE TABLE table_name_13 (rank VARCHAR, silver VARCHAR)
### Response:
### Response:
SELECT rank FROM table_name_13 WHERE 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:
What Aspect has a Programming of Saigon Network Television?
### Context:
CREATE TABLE table_name_12 (aspect VARCHAR, programming VARCHAR)
### Response:
### Response:
SELECT aspect FROM table_name_12 WHERE programming = "saigon network television"</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 density where area is 48.67?
### Context:
CREATE TABLE table_255602_1 (pop_density__per_km²_ VARCHAR, area__km²_ VARCHAR)
### Response:
### Response:
SELECT COUNT(pop_density__per_km²_) FROM table_255602_1 WHERE area__km²_ = "48.67"</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.