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 studio for The Hard Way in 1943? ### Context: CREATE TABLE table_name_77 (studio VARCHAR, year VARCHAR, title VARCHAR) ### Response: ### Response: SELECT studio FROM table_name_77 WHERE year = 1943 AND title = "the hard way"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stolen ends were there when the locale was Sweden? ### Context: CREATE TABLE table_1543845_63 (stolen_ends VARCHAR, locale VARCHAR, Sweden VARCHAR) ### Response: ### Response: SELECT stolen_ends FROM table_1543845_63 WHERE locale = Sweden</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Doha, Qatar when the snatch is clean & jerk? ### Context: CREATE TABLE table_name_93 (doha_ VARCHAR, _qatar VARCHAR, snatch VARCHAR) ### Response: ### Response: SELECT doha_, _qatar FROM table_name_93 WHERE snatch = "clean & jerk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 different results are there for the season with a 4-3 conference record? ### Context: CREATE TABLE table_20319085_2 (result VARCHAR, conference_record VARCHAR) ### Response: ### Response: SELECT COUNT(result) FROM table_20319085_2 WHERE conference_record = "4-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: where value world rank is 12, what is the quantity world rank? ### Context: CREATE TABLE table_21109892_1 (quantity_world_rank VARCHAR, value_world_rank VARCHAR) ### Response: ### Response: SELECT quantity_world_rank FROM table_21109892_1 WHERE value_world_rank = "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: What was the speed of the race that ended in 2nd place and had a time of 01:13:03.39? ### Context: CREATE TABLE table_name_29 (speed VARCHAR, position VARCHAR, time VARCHAR) ### Response: ### Response: SELECT speed FROM table_name_29 WHERE position = "2nd" AND time = "01:13:03.39"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of extra points someone got when they scored 28 points but had 0 field goals? ### Context: CREATE TABLE table_name_20 (extra_points INTEGER, points VARCHAR, field_goals VARCHAR) ### Response: ### Response: SELECT MAX(extra_points) FROM table_name_20 WHERE points = 28 AND field_goals < 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: How many datas were recorded on January 15-16 if August 21-22 is 155? ### Context: CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, august_21_22 VARCHAR) ### Response: ### Response: SELECT COUNT(january_15_16) FROM table_25216791_3 WHERE august_21_22 = "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 source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april? ### Context: CREATE TABLE table_name_8 (source VARCHAR, date VARCHAR, race_winners VARCHAR, gp_winner VARCHAR) ### Response: ### Response: SELECT source FROM table_name_8 WHERE race_winners = "ben adriaenssen / ben van den bogaart" AND gp_winner = "ben adriaenssen / ben van den bogaart" AND date = "1 april"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Driver Howden Ganley's Time/Retired? ### Context: CREATE TABLE table_name_75 (time_retired VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_75 WHERE driver = "howden ganley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 low grid for gerhard berger for laps over 56? ### Context: CREATE TABLE table_name_18 (grid INTEGER, driver VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT MIN(grid) FROM table_name_18 WHERE driver = "gerhard berger" AND laps > 56</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 email addresses of the drama workshop groups with address in Alaska state? ### Context: CREATE TABLE Drama_Workshop_Groups (Store_Email_Address VARCHAR, Address_ID VARCHAR); CREATE TABLE Addresses (Address_ID VARCHAR, State_County VARCHAR) ### Response: ### Response: SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.State_County = "Alaska"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2012 when the tournament is win %? ### Context: CREATE TABLE table_name_9 (tournament VARCHAR) ### Response: ### Response: SELECT 2012 FROM table_name_9 WHERE tournament = "win %"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 actor in the original production when Troy Stephens is the GamePlan? ### Context: CREATE TABLE table_name_69 (actor_in_original_production VARCHAR, gameplan VARCHAR) ### Response: ### Response: SELECT actor_in_original_production FROM table_name_69 WHERE gameplan = "troy stephens"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1970, what entrant had a cosworth v8 engine? ### Context: CREATE TABLE table_name_82 (entrant VARCHAR, engine VARCHAR, year VARCHAR) ### Response: ### Response: SELECT entrant FROM table_name_82 WHERE engine = "cosworth v8" AND year = 1970</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Outcome of the Singles Event in London, England? ### Context: CREATE TABLE table_name_12 (outcome VARCHAR, event VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_12 WHERE event = "singles" AND venue = "london, england"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Original Air Date is 10January2008, what directors released on that date? ### Context: CREATE TABLE table_11642945_1 (director VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT director FROM table_11642945_1 WHERE original_air_date = "10January2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 and rank 14, and a worldwide gross of $202,292,902? ### Context: CREATE TABLE table_name_83 (title VARCHAR, rank VARCHAR, worldwide_gross VARCHAR) ### Response: ### Response: SELECT title FROM table_name_83 WHERE rank > 14 AND worldwide_gross = "$202,292,902"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season 3's premiere date? ### Context: CREATE TABLE table_1949994_7 (premiere_air_dates VARCHAR, no VARCHAR) ### Response: ### Response: SELECT premiere_air_dates FROM table_1949994_7 WHERE no = 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 JCTV's digital channel? ### Context: CREATE TABLE table_1404984_1 (digital_channel VARCHAR, network VARCHAR) ### Response: ### Response: SELECT digital_channel FROM table_1404984_1 WHERE network = "JCTV"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponents of marc lópez santiago ventura? ### Context: CREATE TABLE table_name_16 (tournament VARCHAR, opponents VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_16 WHERE opponents = "marc lópez santiago ventura"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick number was there for Jason French? ### Context: CREATE TABLE table_name_20 (pick__number VARCHAR, player VARCHAR) ### Response: ### Response: SELECT pick__number FROM table_name_20 WHERE player = "jason french"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 typhoid fever number for the year 1929 ### Context: CREATE TABLE table_1007688_1 (typhoid_fever VARCHAR, year VARCHAR) ### Response: ### Response: SELECT typhoid_fever FROM table_1007688_1 WHERE 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: When there are 9.28 million viewers what is the share (18-49)? ### Context: CREATE TABLE table_28980706_4 (share__18_49_ VARCHAR, viewers__millions_ VARCHAR) ### Response: ### Response: SELECT share__18_49_ FROM table_28980706_4 WHERE viewers__millions_ = "9.28"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which CFL team did the player from British Columbia get drafted to ### Context: CREATE TABLE table_16441561_5 (cfl_team VARCHAR, college VARCHAR) ### Response: ### Response: SELECT cfl_team FROM table_16441561_5 WHERE college = "British Columbia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament has nov. 21, 1999 as the date? ### Context: CREATE TABLE table_name_79 (tournament VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_79 WHERE date = "nov. 21, 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: What was the attendance when the result was a bye? ### Context: CREATE TABLE table_name_79 (attendance VARCHAR, result VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_79 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: How many appearances were made by people that had 5 goals and less than 7 rank? ### Context: CREATE TABLE table_name_95 (appearances VARCHAR, goals VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(appearances) FROM table_name_95 WHERE goals = 5 AND rank < 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: Where is the station that was launched on 17 July 1997 transmitting from? ### Context: CREATE TABLE table_name_18 (transmitting_from VARCHAR, launched VARCHAR) ### Response: ### Response: SELECT transmitting_from FROM table_name_18 WHERE launched = "17 july 1997"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 withdrawn for 37 lstr no. ### Context: CREATE TABLE table_20391799_1 (withdrawn INTEGER, ltsr_no VARCHAR) ### Response: ### Response: SELECT MAX(withdrawn) FROM table_20391799_1 WHERE ltsr_no = 37</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wrestlers for days held of 69 ### Context: CREATE TABLE table_name_58 (wrestlers VARCHAR, days_held VARCHAR) ### Response: ### Response: SELECT wrestlers FROM table_name_58 WHERE days_held = "69"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 AAAAA class has the school year of 1990-91? ### Context: CREATE TABLE table_name_56 (class_aAAAA VARCHAR, school_year VARCHAR) ### Response: ### Response: SELECT class_aAAAA FROM table_name_56 WHERE school_year = "1990-91"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points 2 average of teams that have played more than 46 games? ### Context: CREATE TABLE table_name_96 (points_2 INTEGER, played INTEGER) ### Response: ### Response: SELECT AVG(points_2) FROM table_name_96 WHERE played > 46</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 speed of the model whose number is W3540? ### Context: CREATE TABLE table_269920_16 (speed__ghz_ VARCHAR, model VARCHAR) ### Response: ### Response: SELECT speed__ghz_ FROM table_269920_16 WHERE model = "W3540"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 laps for suzuki and time/retired of +1:02.804 ### Context: CREATE TABLE table_name_92 (laps VARCHAR, manufacturer VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_92 WHERE manufacturer = "suzuki" AND time_retired = "+1:02.804"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week 6 when week 3 is 25 and week 7 is eliminated ### Context: CREATE TABLE table_name_85 (week_6 VARCHAR, week_3 VARCHAR, week_7 VARCHAR) ### Response: ### Response: SELECT week_6 FROM table_name_85 WHERE week_3 = "25" AND week_7 = "eliminated"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team had the fastest lap of 1:13.516? ### Context: CREATE TABLE table_name_47 (winning_team VARCHAR, fastest_lap VARCHAR) ### Response: ### Response: SELECT winning_team FROM table_name_47 WHERE fastest_lap = "1:13.516"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loss for june 30 ### Context: CREATE TABLE table_name_96 (loss VARCHAR, date VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_96 WHERE date = "june 30"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Goal Difference has Drawn larger than 10, and a Team of lancaster city? ### Context: CREATE TABLE table_name_21 (goal_difference VARCHAR, drawn VARCHAR, team VARCHAR) ### Response: ### Response: SELECT goal_difference FROM table_name_21 WHERE drawn > 10 AND team = "lancaster city"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the home team in the game played against Chicago? ### Context: CREATE TABLE table_name_64 (home VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT home FROM table_name_64 WHERE visitor = "chicago"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance with result of t 14-14 ### Context: CREATE TABLE table_name_92 (attendance VARCHAR, result VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_92 WHERE result = "t 14-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: What is the headphone model with a plastic construction and a prestige headphone class? ### Context: CREATE TABLE table_name_28 (headphone_model VARCHAR, construction VARCHAR, headphone_class VARCHAR) ### Response: ### Response: SELECT headphone_model FROM table_name_28 WHERE construction = "plastic" AND headphone_class = "prestige"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 origin of the name of Keller Patera? ### Context: CREATE TABLE table_16799784_8 (name VARCHAR) ### Response: ### Response: SELECT name AS origin FROM table_16799784_8 WHERE name = "Keller Patera"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was Extreme Challenge 63 with a time of 2:00 held? ### Context: CREATE TABLE table_name_16 (location VARCHAR, event VARCHAR, time VARCHAR) ### Response: ### Response: SELECT location FROM table_name_16 WHERE event = "extreme challenge 63" AND time = "2:00"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total medals of the team with 2 gold and less than 1 silver? ### Context: CREATE TABLE table_name_93 (total INTEGER, gold VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_93 WHERE gold = 2 AND silver < 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 Team 1, when Team 2 is Saint Louis? ### Context: CREATE TABLE table_name_84 (team_1 VARCHAR, team_2 VARCHAR) ### Response: ### Response: SELECT team_1 FROM table_name_84 WHERE team_2 = "saint louis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest amount sampled of product 蒙牛牌嬰幼兒配方乳粉 ? ### Context: CREATE TABLE table_18943444_1 (samples_taken INTEGER, product VARCHAR) ### Response: ### Response: SELECT MIN(samples_taken) FROM table_18943444_1 WHERE product = "蒙牛牌嬰幼兒配方乳粉"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Record that is 7.39? ### Context: CREATE TABLE table_name_87 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_87 WHERE record = "7.39"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Make has a Pos larger than 9? ### Context: CREATE TABLE table_name_33 (make VARCHAR, pos INTEGER) ### Response: ### Response: SELECT make FROM table_name_33 WHERE pos > 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: Team with average of 1.035? ### Context: CREATE TABLE table_name_79 (team VARCHAR, average VARCHAR) ### Response: ### Response: SELECT team FROM table_name_79 WHERE average = 1.035</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Why did the change happen in the state where the formal installation happen on February 14, 1859? ### Context: CREATE TABLE table_1802760_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR) ### Response: ### Response: SELECT reason_for_change FROM table_1802760_3 WHERE date_of_successors_formal_installation = "February 14, 1859"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show different citizenship of singers and the number of singers of each citizenship. ### Context: CREATE TABLE singer (Citizenship VARCHAR) ### Response: ### Response: SELECT Citizenship, COUNT(*) FROM singer GROUP BY Citizenship</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 written by have wendey stanzler as the director? ### Context: CREATE TABLE table_22570439_1 (written_by VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT COUNT(written_by) FROM table_22570439_1 WHERE directed_by = "Wendey Stanzler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position is for Plant high school? ### Context: CREATE TABLE table_name_47 (position VARCHAR, school VARCHAR) ### Response: ### Response: SELECT position FROM table_name_47 WHERE school = "plant 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: what is the place for Heath Slocum? ### Context: CREATE TABLE table_name_53 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_53 WHERE player = "heath slocum"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 new hampshire in 2009? ### Context: CREATE TABLE table_13011547_1 (new_hampshire VARCHAR, year VARCHAR) ### Response: ### Response: SELECT new_hampshire FROM table_13011547_1 WHERE year = 2009</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 release date record on 10/29/76 and a time on 2:50 ### Context: CREATE TABLE table_name_45 (release_date VARCHAR, time VARCHAR, recorded VARCHAR) ### Response: ### Response: SELECT release_date FROM table_name_45 WHERE time = "2:50" AND recorded = "10/29/76"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 giants stadium as the game site? ### Context: CREATE TABLE table_name_57 (week VARCHAR, game_site VARCHAR) ### Response: ### Response: SELECT week FROM table_name_57 WHERE game_site = "giants 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: Which of the chassis had a total of 7 points? ### Context: CREATE TABLE table_name_60 (chassis VARCHAR, points VARCHAR) ### Response: ### Response: SELECT chassis FROM table_name_60 WHERE points = 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: What's the bus width (in bit) of the model whose core is 650 MHz? ### Context: CREATE TABLE table_19161046_1 (bus_width___bit__ VARCHAR, core___mhz__ VARCHAR) ### Response: ### Response: SELECT COUNT(bus_width___bit__) FROM table_19161046_1 WHERE core___mhz__ = 650</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was fouded before 2000 for basketball? ### Context: CREATE TABLE table_name_31 (venue VARCHAR, founded VARCHAR, sport VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_31 WHERE founded < 2000 AND sport = "basketball"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 districts first elected someone in 1808 and had george smith as the incumbent? ### Context: CREATE TABLE table_2668374_13 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(district) FROM table_2668374_13 WHERE first_elected = "1808" AND incumbent = "George Smith"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record for bobcats ### Context: CREATE TABLE table_name_65 (record VARCHAR, home VARCHAR) ### Response: ### Response: SELECT record FROM table_name_65 WHERE home = "bobcats"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average of all years tournaments were hosted in Doha, Qatar? ### Context: CREATE TABLE table_name_81 (year INTEGER, venue VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_81 WHERE venue = "doha, qatar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team has 16 points and ranks 14th? ### Context: CREATE TABLE table_name_90 (team VARCHAR, points VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT team FROM table_name_90 WHERE points = 16 AND rank = "14th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode which originally aired on December 17, 2004 was written by whom? ### Context: CREATE TABLE table_228973_11 (written_by VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT written_by FROM table_228973_11 WHERE original_air_date = "December 17, 2004"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 scored of the Away team that played against Richmond? ### Context: CREATE TABLE table_name_83 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_83 WHERE home_team = "richmond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 platform of the genre RPG? ### Context: CREATE TABLE table_name_80 (platform_s_ VARCHAR, genre VARCHAR) ### Response: ### Response: SELECT platform_s_ FROM table_name_80 WHERE genre = "rpg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total that has 3 (20)? ### Context: CREATE TABLE table_name_11 (rank VARCHAR, total VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_11 WHERE total = "3 (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: In what week was the Result L 35-10? ### Context: CREATE TABLE table_name_76 (week INTEGER, result VARCHAR) ### Response: ### Response: SELECT MIN(week) FROM table_name_76 WHERE result = "l 35-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: What is the largest # for an episode that was written by Allison Lea Bingeman? ### Context: CREATE TABLE table_10470082_7 (_number INTEGER, writer VARCHAR) ### Response: ### Response: SELECT MAX(_number) FROM table_10470082_7 WHERE writer = "Allison Lea Bingeman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in week 13? ### Context: CREATE TABLE table_name_11 (attendance VARCHAR, week VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_11 WHERE week = 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 are the results for Bill Shuster? ### Context: CREATE TABLE table_name_71 (results VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT results FROM table_name_71 WHERE incumbent = "bill shuster"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player from Australia with a to par of +5? ### Context: CREATE TABLE table_name_7 (player VARCHAR, to_par VARCHAR, country VARCHAR) ### Response: ### Response: SELECT player FROM table_name_7 WHERE to_par = "+5" AND country = "australia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 public office of the subject whose sculpture was created in 1954? ### Context: CREATE TABLE table_20903658_1 (public_office VARCHAR, date_painted_created VARCHAR) ### Response: ### Response: SELECT public_office FROM table_20903658_1 WHERE date_painted_created = "1954"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Home Town had the weight of 201? ### Context: CREATE TABLE table_name_67 (home_town VARCHAR, weight VARCHAR) ### Response: ### Response: SELECT home_town FROM table_name_67 WHERE weight = 201</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 film Antonio's Breakfast? ### Context: CREATE TABLE table_name_44 (director_s_ VARCHAR, film VARCHAR) ### Response: ### Response: SELECT director_s_ FROM table_name_44 WHERE film = "antonio's breakfast"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year was the partner Wesley Moodie? ### Context: CREATE TABLE table_2199290_2 (year INTEGER, partner VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_2199290_2 WHERE partner = "Wesley Moodie"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hayley ericksen's score? ### Context: CREATE TABLE table_name_97 (score VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT score FROM table_name_97 WHERE partner = "hayley ericksen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has winnipeg jets with a Score of 4–6? ### Context: CREATE TABLE table_name_82 (date VARCHAR, home VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_82 WHERE home = "winnipeg jets" AND score = "4–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 Game has a January larger than 18, and a Decision of valiquette? ### Context: CREATE TABLE table_name_56 (game INTEGER, january VARCHAR, decision VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_name_56 WHERE january > 18 AND decision = "valiquette"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shows for Władysławowo, Poland when the world record was clean & jerk? ### Context: CREATE TABLE table_name_85 (władysławowo_ VARCHAR, _poland VARCHAR, world_record VARCHAR) ### Response: ### Response: SELECT władysławowo_, _poland FROM table_name_85 WHERE world_record = "clean & jerk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponent, when Event is "ISCF - Southeast Championships"? ### Context: CREATE TABLE table_name_17 (opponent VARCHAR, event VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_17 WHERE event = "iscf - southeast championships"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player with a To par of –4? ### Context: CREATE TABLE table_name_41 (player VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT player FROM table_name_41 WHERE to_par = "–4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the earliest year with rank 20 and less than 60 floors? ### Context: CREATE TABLE table_name_65 (year INTEGER, rank VARCHAR, floors VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_65 WHERE rank = 20 AND floors < 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 nickname of the team that has the colors black and gold? ### Context: CREATE TABLE table_name_27 (nickname VARCHAR, colors VARCHAR) ### Response: ### Response: SELECT nickname FROM table_name_27 WHERE colors = "black and gold"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when acquisition via far eastern ### Context: CREATE TABLE table_15463188_16 (number VARCHAR, acquisition_via VARCHAR) ### Response: ### Response: SELECT number FROM table_15463188_16 WHERE acquisition_via = "Far Eastern"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of tries of player israel folau? ### Context: CREATE TABLE table_name_25 (tries INTEGER, player VARCHAR) ### Response: ### Response: SELECT AVG(tries) FROM table_name_25 WHERE player = "israel folau"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest number of matches played that has more than 0 draws, a percentage of 12.50%, and fewer than 3 losses? ### Context: CREATE TABLE table_name_14 (played INTEGER, lost VARCHAR, drawn VARCHAR, percentage VARCHAR) ### Response: ### Response: SELECT MIN(played) FROM table_name_14 WHERE drawn > 0 AND percentage = "12.50%" AND lost < 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 Opponent of the Banja Luka Tournament with a Score of 4–6, 4–6? ### Context: CREATE TABLE table_name_57 (opponent VARCHAR, score VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_57 WHERE score = "4–6, 4–6" AND tournament = "banja luka"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gold have a National of New Zealand with a total less than 2? ### Context: CREATE TABLE table_name_15 (gold INTEGER, nation VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(gold) FROM table_name_15 WHERE nation = "new zealand" AND total < 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 is the average number of gold medals won among the nations that won more than 1 bronze? ### Context: CREATE TABLE table_name_40 (gold INTEGER, bronze INTEGER) ### Response: ### Response: SELECT AVG(gold) FROM table_name_40 WHERE 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: What was the loss of the game attended by 37,119? ### Context: CREATE TABLE table_name_24 (loss VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_24 WHERE attendance = "37,119"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode performed by Sue Manchester? ### Context: CREATE TABLE table_191105_4 (first_aired VARCHAR, performed_by VARCHAR) ### Response: ### Response: SELECT first_aired FROM table_191105_4 WHERE performed_by = "Sue Manchester"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Against when the drawn is 5? ### Context: CREATE TABLE table_name_21 (against VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT against FROM table_name_21 WHERE drawn = 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 highest pick from Washington? ### Context: CREATE TABLE table_name_18 (pick INTEGER, school VARCHAR) ### Response: ### Response: SELECT MAX(pick) FROM table_name_18 WHERE school = "washington"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a Level of tier 4, and a Position of 11th? ### Context: CREATE TABLE table_name_18 (season INTEGER, level VARCHAR, position VARCHAR) ### Response: ### Response: SELECT SUM(season) FROM table_name_18 WHERE level = "tier 4" AND position = "11th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 town has the reserve with an area of 163,62? ### Context: CREATE TABLE table_26013618_1 (district___town VARCHAR, area__ha_ VARCHAR) ### Response: ### Response: SELECT district___town FROM table_26013618_1 WHERE area__ha_ = "163,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: What is the place of player jim thorpe? ### Context: CREATE TABLE table_name_60 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_60 WHERE player = "jim thorpe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance that has fedex field as the game site with 3 as the week? ### Context: CREATE TABLE table_name_24 (attendance VARCHAR, game_site VARCHAR, week VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_24 WHERE game_site = "fedex field" AND week = 3</s>