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:
Tell me the least silver for total less than 6 and rank of 8
### Context:
CREATE TABLE table_name_17 (silver INTEGER, total VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT MIN(silver) FROM table_name_17 WHERE total < 6 AND rank = "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:
How many position does Teodor Salparov play on?
### Context:
CREATE TABLE table_14038363_1 (position VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT COUNT(position) FROM table_14038363_1 WHERE player = "Teodor Salparov"</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 type of the RCA RW-2110, which has 2 MB of storage and a v.90 modem?
### Context:
CREATE TABLE table_name_88 (type VARCHAR, model VARCHAR, brand VARCHAR, modem VARCHAR, storage VARCHAR)
### Response:
### Response:
SELECT type FROM table_name_88 WHERE modem = "v.90" AND storage = "2 mb" AND brand = "rca" AND model = "rw-2110"</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 name of the person employed 1970–2005?
### Context:
CREATE TABLE table_name_48 (name VARCHAR, employed VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_48 WHERE employed = "1970–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:
On what date was the match against the St. George Illawarra Dragons?
### Context:
CREATE TABLE table_name_37 (date VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_37 WHERE opponent = "st. george illawarra dragons"</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 nationality for rudolf vercik
### Context:
CREATE TABLE table_name_51 (nationality VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_51 WHERE player = "rudolf vercik"</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 captain has a Date of 26,27,28,29 december 1998?
### Context:
CREATE TABLE table_name_12 (away_captain VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT away_captain FROM table_name_12 WHERE date = "26,27,28,29 december 1998"</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 new england patriots played?
### Context:
CREATE TABLE table_name_33 (result VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_33 WHERE opponent = "new england patriots"</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 in 1985 when the career win-loss is n/a, and 0 / 23 as the career SR?
### Context:
CREATE TABLE table_name_62 (career_win_loss VARCHAR, career_sr VARCHAR)
### Response:
### Response:
SELECT 1985 FROM table_name_62 WHERE career_win_loss = "n/a" AND career_sr = "0 / 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:
What was the report at State Sports Centre?
### Context:
CREATE TABLE table_name_43 (report VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT report FROM table_name_43 WHERE venue = "state sports centre"</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 1008/1009 is the production code how many directors are there?
### Context:
CREATE TABLE table_1854728_2 (directed_by VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT COUNT(directed_by) FROM table_1854728_2 WHERE production_code = "1008/1009"</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 date for warsaw 1929
### Context:
CREATE TABLE table_name_50 (date VARCHAR, location VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_50 WHERE location = "warsaw" AND year = 1929</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 goal difference sum that has goals against smaller than 33, draws larger than 13?
### Context:
CREATE TABLE table_name_27 (goal_difference INTEGER, goals_against VARCHAR, draws VARCHAR)
### Response:
### Response:
SELECT SUM(goal_difference) FROM table_name_27 WHERE goals_against < 33 AND draws > 13</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 SAKA ERA WITH MONTHS IN MEDAM?
### Context:
CREATE TABLE table_name_77 (saka_era VARCHAR, months_in_malayalam_era VARCHAR)
### Response:
### Response:
SELECT saka_era FROM table_name_77 WHERE months_in_malayalam_era = "medam"</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 year average when not free was the status, and less than 7 was the civil liberties, and less than 6 political rights?
### Context:
CREATE TABLE table_name_39 (year INTEGER, political_rights VARCHAR, status VARCHAR, civil_liberties VARCHAR)
### Response:
### Response:
SELECT AVG(year) FROM table_name_39 WHERE status = "not free" AND civil_liberties < 7 AND political_rights < 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 score is the team of charlotte?
### Context:
CREATE TABLE table_name_48 (score VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_48 WHERE team = "charlotte"</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 the mountain on Route 62?
### Context:
CREATE TABLE table_name_1 (elevation VARCHAR, route VARCHAR)
### Response:
### Response:
SELECT elevation FROM table_name_1 WHERE route = 62</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 most 4/inns
### Context:
CREATE TABLE table_17900317_5 (Id VARCHAR)
### Response:
### Response:
SELECT MAX(4 AS _inns) FROM table_17900317_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:
What team has a home city of Velika?
### Context:
CREATE TABLE table_name_74 (team VARCHAR, home_city VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_74 WHERE home_city = "velika"</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 record for the game played by the home team San Francisco 49ers and visitor Philadelphia Eagles?
### Context:
CREATE TABLE table_name_58 (record VARCHAR, home VARCHAR, visitor VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_58 WHERE home = "san francisco 49ers" AND visitor = "philadelphia eagles"</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 team classification for stage of 6
### Context:
CREATE TABLE table_name_47 (team_classification VARCHAR, stage VARCHAR)
### Response:
### Response:
SELECT team_classification FROM table_name_47 WHERE stage = "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:
When was the earliest person elected?
### Context:
CREATE TABLE table_2668420_17 (first_elected INTEGER)
### Response:
### Response:
SELECT MIN(first_elected) FROM table_2668420_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:
Who had fewer goals than 4 during the years of 1996–13?
### Context:
CREATE TABLE table_name_76 (goals INTEGER, ranking VARCHAR, years VARCHAR)
### Response:
### Response:
SELECT MIN(goals) FROM table_name_76 WHERE ranking < 4 AND years = "1996–13"</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 method for the resolution of the fight at UFC 160?
### Context:
CREATE TABLE table_name_33 (method VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT method FROM table_name_33 WHERE event = "ufc 160"</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 total number of years for chassis of ensign n175
### Context:
CREATE TABLE table_name_2 (year VARCHAR, chassis VARCHAR)
### Response:
### Response:
SELECT COUNT(year) FROM table_name_2 WHERE chassis = "ensign n175"</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 smallest fall 05 number when fall 09 is less than 14 and fall 08 is more than 5?
### Context:
CREATE TABLE table_name_22 (fall_05 INTEGER, fall_09 VARCHAR, fall_08 VARCHAR)
### Response:
### Response:
SELECT MIN(fall_05) FROM table_name_22 WHERE fall_09 < 14 AND fall_08 > 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:
How many draws took place for team Corinthians with more than 5 losses?
### Context:
CREATE TABLE table_name_81 (drawn VARCHAR, team VARCHAR, lost VARCHAR)
### Response:
### Response:
SELECT COUNT(drawn) FROM table_name_81 WHERE team = "corinthians" AND lost > 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:
What is the date for the catalog CDZAP22 in the United Kingdom?
### Context:
CREATE TABLE table_name_69 (date VARCHAR, country VARCHAR, catalog VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_69 WHERE country = "united kingdom" AND catalog = "cdzap22"</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 1st week sales for the album finding forever before the number 6?
### Context:
CREATE TABLE table_name_51 (album VARCHAR, number VARCHAR)
### Response:
### Response:
SELECT SUM(1 AS st_week_sales) FROM table_name_51 WHERE album = "finding forever" AND number < 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:
Which Location has a Game greater than 27 and a Record of 18-10?
### Context:
CREATE TABLE table_name_58 (location VARCHAR, game VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_58 WHERE game > 27 AND record = "18-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:
How many places are named manolo fortich?
### Context:
CREATE TABLE table_261222_1 (area__km_2__ VARCHAR, city___municipality VARCHAR)
### Response:
### Response:
SELECT COUNT(area__km_2__) FROM table_261222_1 WHERE city___municipality = "Manolo Fortich"</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:
3488 is the enrollment amount of what college?
### Context:
CREATE TABLE table_1183842_1 (institution VARCHAR, enrollment VARCHAR)
### Response:
### Response:
SELECT institution FROM table_1183842_1 WHERE enrollment = 3488</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 Wins, when Against is less than 1786, when Losses is less than 4, and when Byes is less than 2?
### Context:
CREATE TABLE table_name_51 (wins INTEGER, byes VARCHAR, against VARCHAR, losses VARCHAR)
### Response:
### Response:
SELECT AVG(wins) FROM table_name_51 WHERE against < 1786 AND losses < 4 AND byes < 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:
Tell me the lowest # of bids for win percent of .667
### Context:
CREATE TABLE table_name_38 (_number_of_bids INTEGER, win__percentage VARCHAR)
### Response:
### Response:
SELECT MIN(_number_of_bids) FROM table_name_38 WHERE win__percentage = ".667"</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 maximum and minimum week on top of all volumes?
### Context:
CREATE TABLE volume (Weeks_on_Top INTEGER)
### Response:
### Response:
SELECT MAX(Weeks_on_Top), MIN(Weeks_on_Top) FROM volume</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 operator name when the distance is 3105km?
### Context:
CREATE TABLE table_26745820_1 (operator_name VARCHAR, distance VARCHAR)
### Response:
### Response:
SELECT operator_name FROM table_26745820_1 WHERE distance = "3105km"</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 when the surface was clay and the score was 6–1, 6–2 and runner-up
### Context:
CREATE TABLE table_name_6 (date VARCHAR, outcome VARCHAR, surface VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_6 WHERE surface = "clay" AND score = "6–1, 6–2" AND outcome = "runner-up"</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 recipientof the year for 1976
### Context:
CREATE TABLE table_name_69 (recipient VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT recipient FROM table_name_69 WHERE year = 1976</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 ride is Wild Asia that opened in 2000?
### Context:
CREATE TABLE table_name_81 (type VARCHAR, themed_land VARCHAR, opened_in VARCHAR)
### Response:
### Response:
SELECT type FROM table_name_81 WHERE themed_land = "wild asia" AND opened_in = 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 name where the delivered date is 1839/08?
### Context:
CREATE TABLE table_name_22 (name VARCHAR, delivered VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_22 WHERE delivered = "1839/08"</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 tournament has a 2011 of 1r?
### Context:
CREATE TABLE table_name_88 (tournament VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_88 WHERE 2011 = "1r"</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 Country, when Television Service is Eurosport 2?
### Context:
CREATE TABLE table_name_50 (country VARCHAR, television_service VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_50 WHERE television_service = "eurosport 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 institution is represented by the lady saints?
### Context:
CREATE TABLE table_2589963_1 (institution VARCHAR, women VARCHAR)
### Response:
### Response:
SELECT institution FROM table_2589963_1 WHERE women = "Lady Saints"</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 of the game where fitzroy was the away team?
### Context:
CREATE TABLE table_name_83 (crowd VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT COUNT(crowd) FROM table_name_83 WHERE away_team = "fitzroy"</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 stock car vehicle with a year of 1999?
### Context:
CREATE TABLE table_name_71 (driver VARCHAR, type_of_vehicle VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_71 WHERE type_of_vehicle = "stock car" AND year = 1999</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 number of high rebounds for april 21
### Context:
CREATE TABLE table_17621978_11 (high_rebounds VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT COUNT(high_rebounds) FROM table_17621978_11 WHERE date = "April 21"</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 city has the A Class licence?
### Context:
CREATE TABLE table_name_20 (city_of_license VARCHAR, class VARCHAR)
### Response:
### Response:
SELECT city_of_license FROM table_name_20 WHERE class = "a"</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 Tournament, when Opponent In The Final is "Andre Agassi"?
### Context:
CREATE TABLE table_name_49 (tournament VARCHAR, opponent_in_the_final VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_49 WHERE opponent_in_the_final = "andre agassi"</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 Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )?
### Context:
CREATE TABLE table_name_7 (shooting_score__pts_ VARCHAR, total VARCHAR, athlete VARCHAR)
### Response:
### Response:
SELECT shooting_score__pts_ FROM table_name_7 WHERE total > 5464 AND athlete = "heather fell ( gbr )"</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 seasons did coach steve fisher have?
### Context:
CREATE TABLE table_name_5 (season VARCHAR, coach VARCHAR)
### Response:
### Response:
SELECT COUNT(season) FROM table_name_5 WHERE coach = "steve fisher"</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 Draws with less than 4 matches?
### Context:
CREATE TABLE table_name_27 (draws VARCHAR, matches INTEGER)
### Response:
### Response:
SELECT COUNT(draws) FROM table_name_27 WHERE matches < 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 team has a home city of Koprivnica?
### Context:
CREATE TABLE table_name_77 (team VARCHAR, home_city VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_77 WHERE home_city = "koprivnica"</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 text has simplified characters of 心猿 … 意马?
### Context:
CREATE TABLE table_name_42 (text VARCHAR, simplified_characters VARCHAR)
### Response:
### Response:
SELECT text FROM table_name_42 WHERE simplified_characters = "心猿 … 意马"</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 level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?
### Context:
CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR)
### Response:
### Response:
SELECT level FROM table_name_21 WHERE season > 2003 AND division = "kakkonen (second division)" AND position = "12th"</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 fewest amount of races in any season?
### Context:
CREATE TABLE table_25421463_1 (races INTEGER)
### Response:
### Response:
SELECT MIN(races) FROM table_25421463_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:
At which tournament did william renshaw begin his lead when he had won 7 titles?
### Context:
CREATE TABLE table_23408094_14 (tournament_at_which_lead_began VARCHAR, player VARCHAR, titles_won_at_point_of_lead VARCHAR)
### Response:
### Response:
SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = "William Renshaw" AND titles_won_at_point_of_lead = 7</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 director of the film that Sister Films received an award for on 2/3/05?
### Context:
CREATE TABLE table_name_48 (director_s_ VARCHAR, date VARCHAR, recipient VARCHAR)
### Response:
### Response:
SELECT director_s_ FROM table_name_48 WHERE date = "2/3/05" AND recipient = "sister films"</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 best actress?
### Context:
CREATE TABLE table_25926120_3 (awardee_s_ VARCHAR, name_of_award VARCHAR)
### Response:
### Response:
SELECT awardee_s_ FROM table_25926120_3 WHERE name_of_award = "Best Actress"</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 tournament took place on June 18, 2013?
### Context:
CREATE TABLE table_name_94 (tournament VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_94 WHERE date = "june 18, 2013"</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 number of new adherents per year for confucianism
### Context:
CREATE TABLE table_28137918_5 (new_adherents_per_year VARCHAR, religion VARCHAR)
### Response:
### Response:
SELECT COUNT(new_adherents_per_year) FROM table_28137918_5 WHERE religion = "Confucianism"</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 season has the regionalliga süd (iii) league?
### Context:
CREATE TABLE table_name_41 (season VARCHAR, league VARCHAR)
### Response:
### Response:
SELECT season FROM table_name_41 WHERE league = "regionalliga süd (iii)"</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 100 g/mi (62 g/km) is the clean electric grid california (san francisco) how many vehicles are there?
### Context:
CREATE TABLE table_24620684_2 (vehicle VARCHAR, clean_electric_grid_california__san_francisco_ VARCHAR)
### Response:
### Response:
SELECT COUNT(vehicle) FROM table_24620684_2 WHERE clean_electric_grid_california__san_francisco_ = "100 g/mi (62 g/km)"</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 attendance numbers had more than 15 games, and sellouts of more than 8 in the 2011-12 season?
### Context:
CREATE TABLE table_name_34 (attendance VARCHAR, season VARCHAR, games VARCHAR, sellouts VARCHAR)
### Response:
### Response:
SELECT COUNT(attendance) FROM table_name_34 WHERE games > 15 AND sellouts > 8 AND season = "2011-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:
Name the writers for swedish sailor
### Context:
CREATE TABLE table_19852975_3 (writer_s_ VARCHAR, arties_disguises VARCHAR)
### Response:
### Response:
SELECT writer_s_ FROM table_19852975_3 WHERE arties_disguises = "Swedish sailor"</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 permanence of the body where purity is apprehension
### Context:
CREATE TABLE table_11609814_1 (permanence_of_the_body VARCHAR, purity VARCHAR)
### Response:
### Response:
SELECT permanence_of_the_body FROM table_11609814_1 WHERE purity = "apprehension"</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 every value for first year in QLD Cup if home ground is Corbett Park, Crosby Park, Lang Park, ANZ Stadium?
### Context:
CREATE TABLE table_2383498_4 (first_year_in_qld_cup VARCHAR, home_ground VARCHAR)
### Response:
### Response:
SELECT first_year_in_qld_cup FROM table_2383498_4 WHERE home_ground = "Corbett Park, Crosby Park, Lang Park, ANZ Stadium"</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 Man of the Match of the Competition with a Result of lost 2-5?
### Context:
CREATE TABLE table_name_73 (man_of_the_match VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT man_of_the_match FROM table_name_73 WHERE result = "lost 2-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:
What is Round, when Tournament is "Paris"?
### Context:
CREATE TABLE table_name_61 (round VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_61 WHERE tournament = "paris"</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 site of the recap at qualcomm stadium?
### Context:
CREATE TABLE table_name_81 (nflcom_recap VARCHAR, game_site VARCHAR)
### Response:
### Response:
SELECT nflcom_recap FROM table_name_81 WHERE game_site = "qualcomm stadium"</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 Quantity on Date 1900?
### Context:
CREATE TABLE table_name_71 (quantity INTEGER, date VARCHAR)
### Response:
### Response:
SELECT SUM(quantity) FROM table_name_71 WHERE date = "1900"</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:
Marat Safin is the opponent in the final in what championship?
### Context:
CREATE TABLE table_26202788_7 (championship VARCHAR, opponent_in_the_final VARCHAR)
### Response:
### Response:
SELECT championship FROM table_26202788_7 WHERE opponent_in_the_final = "Marat Safin"</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 had the pole position at the German Grand Prix?
### Context:
CREATE TABLE table_1137718_2 (pole_position VARCHAR, grand_prix VARCHAR)
### Response:
### Response:
SELECT pole_position FROM table_1137718_2 WHERE grand_prix = "German 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 Outgoing manager left at his end of tenure as caretaker and was Replaced by Jesper Hansen?
### Context:
CREATE TABLE table_name_78 (outgoing_manager VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR)
### Response:
### Response:
SELECT outgoing_manager FROM table_name_78 WHERE manner_of_departure = "end of tenure as caretaker" AND replaced_by = "jesper hansen"</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:
For model volvo, how many cylinders does the car with the least accelerate have?
### Context:
CREATE TABLE CARS_DATA (cylinders VARCHAR, Id VARCHAR, accelerate VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Model VARCHAR)
### Response:
### Response:
SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate 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:
Which entrant has 4 points and BRM p25 for the Chassis?
### Context:
CREATE TABLE table_name_33 (entrant VARCHAR, pts VARCHAR, chassis VARCHAR)
### Response:
### Response:
SELECT entrant FROM table_name_33 WHERE pts = "4" AND chassis = "brm p25"</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 has a Category of best original song (รอเธอหันมา – โฟกัส จิระกุล)?
### Context:
CREATE TABLE table_name_58 (year INTEGER, category VARCHAR)
### Response:
### Response:
SELECT MAX(year) FROM table_name_58 WHERE category = "best original song (รอเธอหันมา – โฟกัส จิระกุล)"</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 writers write the episode whose director is Jonathan Herron?
### Context:
CREATE TABLE table_22580855_1 (written_by VARCHAR, directed_by VARCHAR)
### Response:
### Response:
SELECT COUNT(written_by) FROM table_22580855_1 WHERE directed_by = "Jonathan Herron"</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 Zeehond was built by whom?
### Context:
CREATE TABLE table_name_49 (builder VARCHAR, ship VARCHAR)
### Response:
### Response:
SELECT builder FROM table_name_49 WHERE ship = "zeehond"</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 party or first elected is 1920
### Context:
CREATE TABLE table_1342393_16 (party VARCHAR, first_elected VARCHAR)
### Response:
### Response:
SELECT party FROM table_1342393_16 WHERE first_elected = 1920</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 the match against Masahiro Oishi, what was the record?
### Context:
CREATE TABLE table_name_90 (record VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_90 WHERE opponent = "masahiro oishi"</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 lowest Laps with a time/retired of +2 Laps and Grid of 20
### Context:
CREATE TABLE table_name_46 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT MIN(laps) FROM table_name_46 WHERE time_retired = "+2 laps" AND grid = 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 the Bye week?
### Context:
CREATE TABLE table_name_62 (date VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_62 WHERE result = "bye"</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 rating of the season that had 18.17 million household viewers?
### Context:
CREATE TABLE table_name_23 (rating VARCHAR, viewers__households_in_millions_ VARCHAR)
### Response:
### Response:
SELECT rating FROM table_name_23 WHERE viewers__households_in_millions_ = "18.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:
What season had 3rd position, a 36 pld, and a bbl div?
### Context:
CREATE TABLE table_name_81 (season VARCHAR, div VARCHAR, pos VARCHAR, pld VARCHAR)
### Response:
### Response:
SELECT season FROM table_name_81 WHERE pos = "3rd" AND pld = "36" AND div = "bbl"</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 week for the game against baltimore colts with less than 41,062 in attendance?
### Context:
CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT AVG(week) FROM table_name_12 WHERE opponent = "baltimore colts" AND attendance < 41 OFFSET 062</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 area of the place that has a population density of 331.4?
### Context:
CREATE TABLE table_1067441_1 (area__km²_ INTEGER, density VARCHAR)
### Response:
### Response:
SELECT MAX(area__km²_) FROM table_1067441_1 WHERE density = "331.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 highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8?
### Context:
CREATE TABLE table_name_68 (lane INTEGER, time VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT MAX(lane) FROM table_name_68 WHERE time > 55.94 AND rank > 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:
Find the name and salary of instructors who are advisors of the students from the Math department.
### Context:
CREATE TABLE instructor (name VARCHAR, salary VARCHAR, id VARCHAR); CREATE TABLE advisor (i_id VARCHAR, s_id VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR)
### Response:
### Response:
SELECT T2.name, T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math'</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 standard speed (6th gear) is 88, what is the rpm?
### Context:
CREATE TABLE table_19704392_1 (rpm VARCHAR, standard_speed__6th_gear_ VARCHAR)
### Response:
### Response:
SELECT rpm FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "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:
What is the total Until when the Titles was 5?
### Context:
CREATE TABLE table_name_80 (until INTEGER, titles VARCHAR)
### Response:
### Response:
SELECT SUM(until) FROM table_name_80 WHERE titles = "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:
What is the mean game played on January 9?
### Context:
CREATE TABLE table_name_82 (game INTEGER, date VARCHAR)
### Response:
### Response:
SELECT AVG(game) FROM table_name_82 WHERE date = "january 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 average attendance of the game with 38 opponent and less than 14 Falcons points?
### Context:
CREATE TABLE table_name_63 (attendance INTEGER, opponents VARCHAR, falcons_points VARCHAR)
### Response:
### Response:
SELECT AVG(attendance) FROM table_name_63 WHERE opponents = 38 AND falcons_points < 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:
How many teams did they play week 6
### Context:
CREATE TABLE table_11391448_2 (opponent VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT COUNT(opponent) FROM table_11391448_2 WHERE week = 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:
When did the Broncos play the Miami Dolphins?
### Context:
CREATE TABLE table_17294353_1 (date VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT date FROM table_17294353_1 WHERE opponent = "Miami Dolphins"</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 Lyrics (l) / Music (m) when the draw was 5?
### Context:
CREATE TABLE table_name_60 (lyrics__l____music__m_ VARCHAR, draw VARCHAR)
### Response:
### Response:
SELECT lyrics__l____music__m_ FROM table_name_60 WHERE draw = 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 opponent has a loss of erickson (8-19)?
### Context:
CREATE TABLE table_name_46 (opponent VARCHAR, loss VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_46 WHERE loss = "erickson (8-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:
How far did p. carbery run to get 2nd?
### Context:
CREATE TABLE table_name_67 (distance VARCHAR, jockey VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT distance FROM table_name_67 WHERE jockey = "p. carbery" AND result = "2nd"</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 district has both stores with less than 3000 products and stores with more than 10000 products?
### Context:
CREATE TABLE shop (district VARCHAR, Number_products INTEGER)
### Response:
### Response:
SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 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:
what is the maximum norwegian americans (2000) where norwegian americans (1990) is 9170
### Context:
CREATE TABLE table_1182314_5 (norwegian_americans__2000_ INTEGER, norwegian_americans__1990_ VARCHAR)
### Response:
### Response:
SELECT MAX(norwegian_americans__2000_) FROM table_1182314_5 WHERE norwegian_americans__1990_ = 9170</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 of Classification of T12?
### Context:
CREATE TABLE table_name_96 (location VARCHAR, classification VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_96 WHERE classification = "t12"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.