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 is the status in those places where the poverty rate is 8.6%? ### Context: CREATE TABLE table_22815568_7 (status VARCHAR, poverty_rate VARCHAR) ### Response: ### Response: SELECT status FROM table_22815568_7 WHERE poverty_rate = "8.6%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date recorded for I Want to Be Free with a length of 2:12? ### Context: CREATE TABLE table_name_63 (recorded VARCHAR, time VARCHAR, song_title VARCHAR) ### Response: ### Response: SELECT recorded FROM table_name_63 WHERE time = "2:12" AND song_title = "i want to be free"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Author of the Title with a First Issue of September 2010? ### Context: CREATE TABLE table_name_87 (author VARCHAR, first_issue VARCHAR) ### Response: ### Response: SELECT author FROM table_name_87 WHERE first_issue = "september 2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: It has fa cup goals larger than 0 and total goals of 0, what is the average total apps? ### Context: CREATE TABLE table_name_41 (total_apps INTEGER, total_goals VARCHAR, fa_cup_goals VARCHAR) ### Response: ### Response: SELECT AVG(total_apps) FROM table_name_41 WHERE total_goals = 0 AND fa_cup_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: What is the Opponent in final with an All England Open Outcome? ### Context: CREATE TABLE table_name_58 (opponent_in_the_final VARCHAR, outcome VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_58 WHERE outcome = "all england open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average year of events that took place in Antwerp, Belgium? ### Context: CREATE TABLE table_name_97 (year INTEGER, venue VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_97 WHERE venue = "antwerp, belgium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 numbers of rebounds are associated with exactly 18 points? ### Context: CREATE TABLE table_24913533_4 (rebounds VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(rebounds) FROM table_24913533_4 WHERE points = 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What school or club did number 35 play for? ### Context: CREATE TABLE table_11545282_7 (school_club_team VARCHAR, no VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_11545282_7 WHERE no = 35</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the name of all playlist. ### Context: CREATE TABLE playlists (name VARCHAR) ### Response: ### Response: SELECT name FROM playlists</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 how many stages did Jose Vicente Garcia Acosta won? ### Context: CREATE TABLE table_15088557_1 (stage VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT COUNT(stage) FROM table_15088557_1 WHERE winner = "Jose Vicente Garcia Acosta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2008 for 2012 of sf ### Context: CREATE TABLE table_name_41 (Id VARCHAR) ### Response: ### Response: SELECT 2008 FROM table_name_41 WHERE 2012 = "sf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all school names in alphabetical order. ### Context: CREATE TABLE school (school_name VARCHAR) ### Response: ### Response: SELECT school_name FROM school ORDER BY school_name</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 won the Tour de Santa Catarina? ### Context: CREATE TABLE table_name_5 (team VARCHAR, race_name VARCHAR) ### Response: ### Response: SELECT team FROM table_name_5 WHERE race_name = "tour de santa catarina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 language is telemarket for you with a content of televendita? ### Context: CREATE TABLE table_name_59 (language VARCHAR, content VARCHAR, television_service VARCHAR) ### Response: ### Response: SELECT language FROM table_name_59 WHERE content = "televendita" AND television_service = "telemarket for you"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 runner(s)-up for the tournament played on Jun 3, 1973? ### Context: CREATE TABLE table_name_95 (runner_s__up VARCHAR, date VARCHAR) ### Response: ### Response: SELECT runner_s__up FROM table_name_95 WHERE date = "jun 3, 1973"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Nagua has the area (km²) of? ### Context: CREATE TABLE table_1888051_1 (area__km²_ VARCHAR, capital VARCHAR) ### Response: ### Response: SELECT area__km²_ FROM table_1888051_1 WHERE capital = "Nagua"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 essendon play away? ### Context: CREATE TABLE table_name_53 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_53 WHERE away_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 October 16, 1966, what was the game site? ### Context: CREATE TABLE table_17782308_1 (game_site VARCHAR, date VARCHAR) ### Response: ### Response: SELECT game_site FROM table_17782308_1 WHERE date = "October 16, 1966"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the score on november 15 ### Context: CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_66 WHERE date = "november 15"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Category has an Award of monte carlo tv festival awards, and a Year larger than 2010? ### Context: CREATE TABLE table_name_89 (category VARCHAR, award VARCHAR, year VARCHAR) ### Response: ### Response: SELECT category FROM table_name_89 WHERE award = "monte carlo tv festival awards" AND year > 2010</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode was directed by David Duchovny? ### Context: CREATE TABLE table_13336122_7 (title VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT title FROM table_13336122_7 WHERE directed_by = "David Duchovny"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1981 which team picked overall 148? ### Context: CREATE TABLE table_name_8 (team VARCHAR, year VARCHAR, overall_pick VARCHAR) ### Response: ### Response: SELECT team FROM table_name_8 WHERE year = 1981 AND overall_pick = "148"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was the episode with a 999,000 BARB rating first aired in Denmark? ### Context: CREATE TABLE table_26591309_3 (first_broadcast_denmark___dr1__ VARCHAR, official_barb_ratings VARCHAR) ### Response: ### Response: SELECT first_broadcast_denmark___dr1__ FROM table_26591309_3 WHERE official_barb_ratings = "999,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Miss Maja Pilipinas has a Binibining Pilipinas-Tourism of not awarded, and a Binibining Pilipinas-Universe of anjanette abayari? ### Context: CREATE TABLE table_name_30 (miss_maja_pilipinas VARCHAR, binibining_pilipinas_tourism VARCHAR, binibining_pilipinas_universe VARCHAR) ### Response: ### Response: SELECT miss_maja_pilipinas FROM table_name_30 WHERE binibining_pilipinas_tourism = "not awarded" AND binibining_pilipinas_universe = "anjanette abayari"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average finish in 2007? ### Context: CREATE TABLE table_2182573_2 (avg_finish VARCHAR, year VARCHAR) ### Response: ### Response: SELECT avg_finish FROM table_2182573_2 WHERE year = 2007</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game 2-6 ### Context: CREATE TABLE table_27537870_5 (game VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_27537870_5 WHERE score = "2-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 Tournament has A in 1987? ### Context: CREATE TABLE table_name_11 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_11 WHERE 1987 = "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: IN HOW MANY ISSUES WAS HARRISON FORD THE INTERVIEW SUBJECT? ### Context: CREATE TABLE table_1566852_3 (date VARCHAR, interview_subject VARCHAR) ### Response: ### Response: SELECT COUNT(date) FROM table_1566852_3 WHERE interview_subject = "Harrison Ford"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Mike Reid from the United States has what score? ### Context: CREATE TABLE table_name_12 (score VARCHAR, country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_12 WHERE country = "united states" AND player = "mike reid"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school year is vaucluse public school? ### Context: CREATE TABLE table_name_10 (years VARCHAR, school VARCHAR) ### Response: ### Response: SELECT years FROM table_name_10 WHERE school = "vaucluse public 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 are all the registrations where location is yaxley ### Context: CREATE TABLE table_11934032_1 (registrations VARCHAR, location VARCHAR) ### Response: ### Response: SELECT registrations FROM table_11934032_1 WHERE location = "Yaxley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 casualties were from the IED circumstance? ### Context: CREATE TABLE table_name_48 (casualties VARCHAR, circumstances VARCHAR) ### Response: ### Response: SELECT casualties FROM table_name_48 WHERE circumstances = "ied"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team in 1989? ### Context: CREATE TABLE table_name_50 (team VARCHAR, year VARCHAR) ### Response: ### Response: SELECT team FROM table_name_50 WHERE year = "1989"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round has a Location of bahia, brazil? ### Context: CREATE TABLE table_name_52 (round INTEGER, location VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_52 WHERE location = "bahia, brazil"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mark has an Athlete of heike drechsler? ### Context: CREATE TABLE table_name_17 (mark VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT mark FROM table_name_17 WHERE athlete = "heike drechsler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Back has a Supplier of Kooga and a Year of 2006-2008? ### Context: CREATE TABLE table_name_88 (back VARCHAR, supplier VARCHAR, year VARCHAR) ### Response: ### Response: SELECT back FROM table_name_88 WHERE supplier = "kooga" AND year = "2006-2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of laps that max biaggi rode on a grid larger than 2? ### Context: CREATE TABLE table_name_12 (laps INTEGER, rider VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT MAX(laps) FROM table_name_12 WHERE rider = "max biaggi" AND grid > 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 was the attendance on week 1? ### Context: CREATE TABLE table_name_96 (attendance VARCHAR, week VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_96 WHERE week = 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the council area for the Larkhall urban sub-area? ### Context: CREATE TABLE table_name_51 (council_area VARCHAR, urban_sub_area VARCHAR) ### Response: ### Response: SELECT council_area FROM table_name_51 WHERE urban_sub_area = "larkhall"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result for primetime emmy awards ### Context: CREATE TABLE table_name_94 (result VARCHAR, association VARCHAR) ### Response: ### Response: SELECT result FROM table_name_94 WHERE association = "primetime emmy awards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Detroit play at home? ### Context: CREATE TABLE table_name_25 (date VARCHAR, home VARCHAR) ### Response: ### Response: SELECT date FROM table_name_25 WHERE home = "detroit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who did the most high assists during the game played on February 6? ### Context: CREATE TABLE table_23248940_9 (high_assists VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_23248940_9 WHERE date = "February 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: How many episodes have 18.73 million viewers? ### Context: CREATE TABLE table_27481781_2 (no_in_series VARCHAR, viewers__millions_ VARCHAR) ### Response: ### Response: SELECT COUNT(no_in_series) FROM table_27481781_2 WHERE viewers__millions_ = "18.73"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games drawn with a Points difference of 31 - 33, and under 4 games lost? ### Context: CREATE TABLE table_name_41 (drawn INTEGER, points_difference VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT SUM(drawn) FROM table_name_41 WHERE points_difference = "31 - 33" AND lost < 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total avge of John Hall, who has less than 63 goals? ### Context: CREATE TABLE table_name_25 (avge VARCHAR, name VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT COUNT(avge) FROM table_name_25 WHERE name = "john hall" AND goals < 63</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has notts county as the home team? ### Context: CREATE TABLE table_name_23 (score VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_23 WHERE home_team = "notts county"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the member name and hometown who registered a branch in 2016. ### Context: CREATE TABLE member (name VARCHAR, hometown VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (member_id VARCHAR, register_year VARCHAR) ### Response: ### Response: SELECT T2.name, T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T1.register_year = 2016</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record of 5-0-1? ### Context: CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_10 WHERE record = "5-0-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 percentage of the votes did Obama get in the county where 3909 people voted in total? ### Context: CREATE TABLE table_20539826_1 (obama_percentage VARCHAR, total VARCHAR) ### Response: ### Response: SELECT obama_percentage FROM table_20539826_1 WHERE total = 3909</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driven 134 laps? ### Context: CREATE TABLE table_name_22 (team VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT team FROM table_name_22 WHERE laps = 134</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 coupon that has an issuer of Commerzbank AG? ### Context: CREATE TABLE table_21692771_1 (coupon VARCHAR, issuer VARCHAR) ### Response: ### Response: SELECT coupon FROM table_21692771_1 WHERE issuer = "COMMERZBANK AG"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: David Scott went on which mission? ### Context: CREATE TABLE table_name_8 (mission VARCHAR, name VARCHAR) ### Response: ### Response: SELECT mission FROM table_name_8 WHERE name = "david scott"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition on August 15, 2012? ### Context: CREATE TABLE table_name_60 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_60 WHERE date = "august 15, 2012"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 km from wellington where the metlink code is mast? ### Context: CREATE TABLE table_3005450_1 (km_from_wellington VARCHAR, metlink_code VARCHAR) ### Response: ### Response: SELECT km_from_wellington FROM table_3005450_1 WHERE metlink_code = "MAST"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Score, when Outcome is "winner", when Partnering is "Nicole Sewell", and when Opponent in Final is "Victoria Davies / Kate Warne-Holland"? ### Context: CREATE TABLE table_name_50 (score VARCHAR, opponent_in_final VARCHAR, outcome VARCHAR, partnering VARCHAR) ### Response: ### Response: SELECT score FROM table_name_50 WHERE outcome = "winner" AND partnering = "nicole sewell" AND opponent_in_final = "victoria davies / kate warne-holland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points did she have with team bultaco, ranked 6th? ### Context: CREATE TABLE table_name_40 (points INTEGER, team VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT SUM(points) FROM table_name_40 WHERE team = "bultaco" AND rank = "6th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the points are 98 what is the draw? ### Context: CREATE TABLE table_name_50 (draw VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(draw) FROM table_name_50 WHERE points = 98</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of swing to gain with a winning party 2007 of Conservative with a rank smaller than 5? ### Context: CREATE TABLE table_name_70 (swing_to_gain INTEGER, winning_party_2007 VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT SUM(swing_to_gain) FROM table_name_70 WHERE winning_party_2007 = "conservative" AND rank < 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 Surface has a Score of 7–5, 6–4? ### Context: CREATE TABLE table_name_17 (surface VARCHAR, score VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_17 WHERE score = "7–5, 6–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 2nd ratio of 1996-2002 Dodge Viper? ### Context: CREATE TABLE table_1310499_1 (application VARCHAR) ### Response: ### Response: SELECT 2 AS nd FROM table_1310499_1 WHERE application = "1996-2002 Dodge Viper"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Loris Capirossi's time? ### Context: CREATE TABLE table_name_30 (time VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT time FROM table_name_30 WHERE rider = "loris capirossi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 object dates does episode #16 have? ### Context: CREATE TABLE table_29635868_1 (object_date VARCHAR, episode_number VARCHAR) ### Response: ### Response: SELECT COUNT(object_date) FROM table_29635868_1 WHERE episode_number = 16</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who are the player's who weighed 170? ### Context: CREATE TABLE table_22824312_1 (player VARCHAR, weight VARCHAR) ### Response: ### Response: SELECT player FROM table_22824312_1 WHERE weight = 170</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score has marcelo filippini mark koevermans? ### Context: CREATE TABLE table_name_18 (score VARCHAR, opponents_in_the_final VARCHAR) ### Response: ### Response: SELECT score FROM table_name_18 WHERE opponents_in_the_final = "marcelo filippini mark koevermans"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List all manufacturer names and ids ordered by their opening year. ### Context: CREATE TABLE manufacturer (name VARCHAR, manufacturer_id VARCHAR, open_year VARCHAR) ### Response: ### Response: SELECT name, manufacturer_id FROM manufacturer ORDER BY open_year</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average is 1.2803, what is the total points maximum? ### Context: CREATE TABLE table_22011138_7 (total_pts INTEGER, avg VARCHAR) ### Response: ### Response: SELECT MAX(total_pts) FROM table_22011138_7 WHERE avg = "1.2803"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 parallel bars numbers is 61.500, what is the total number for the flood? ### Context: CREATE TABLE table_18662026_1 (floor VARCHAR, parallel_bars VARCHAR) ### Response: ### Response: SELECT COUNT(floor) FROM table_18662026_1 WHERE parallel_bars = "61.500"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average enrollment number? ### Context: CREATE TABLE College (enr INTEGER) ### Response: ### Response: SELECT AVG(enr) FROM College</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the episode number that had 797000 viewers? ### Context: CREATE TABLE table_25737761_3 (no VARCHAR, viewing_figure VARCHAR) ### Response: ### Response: SELECT no FROM table_25737761_3 WHERE viewing_figure = 797000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the home team of the game with the Raptors as the visitor team? ### Context: CREATE TABLE table_name_66 (home VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT home FROM table_name_66 WHERE visitor = "raptors"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 deployable military 2011 for denmark ### Context: CREATE TABLE table_17971449_2 (deployable_military__2011 VARCHAR, _thousands_ VARCHAR, country VARCHAR) ### Response: ### Response: SELECT deployable_military__2011, _thousands_ FROM table_17971449_2 WHERE country = "Denmark"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date has 1 as the tie no.? ### Context: CREATE TABLE table_name_60 (date VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT date FROM table_name_60 WHERE tie_no = "1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Score for Set 2 of 24–26? ### Context: CREATE TABLE table_name_71 (score VARCHAR, set_2 VARCHAR) ### Response: ### Response: SELECT score FROM table_name_71 WHERE set_2 = "24–26"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the 1st leg for Team 2 Concepto Egile? ### Context: CREATE TABLE table_name_88 (team_2 VARCHAR) ### Response: ### Response: SELECT 1 AS st_leg FROM table_name_88 WHERE team_2 = "concepto egile"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all customer ids and the number of accounts for each customer. ### Context: CREATE TABLE Accounts (customer_id VARCHAR) ### Response: ### Response: SELECT customer_id, COUNT(*) FROM Accounts GROUP BY customer_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 college/junior/club team for the player alfie turcotte? ### Context: CREATE TABLE table_2679061_1 (college_junior_club_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT college_junior_club_team FROM table_2679061_1 WHERE player = "Alfie Turcotte"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year when the IWCR number was 5 and the Year withdrawn was bigger than 1926? ### Context: CREATE TABLE table_name_85 (year_made INTEGER, iwcr_no VARCHAR, year_withdrawn VARCHAR) ### Response: ### Response: SELECT AVG(year_made) FROM table_name_85 WHERE iwcr_no = "5" AND year_withdrawn > 1926</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was Pearson on when his winnings were $5,200? ### Context: CREATE TABLE table_2626564_2 (team_s_ VARCHAR, winnings VARCHAR) ### Response: ### Response: SELECT team_s_ FROM table_2626564_2 WHERE winnings = "$5,200"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 revenue for italy with team of internazionale with operating income less than 27 ### Context: CREATE TABLE table_name_21 (revenue__ VARCHAR, operating_income__$m_ VARCHAR, country VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(revenue__) AS $m_ FROM table_name_21 WHERE country = "italy" AND team = "internazionale" AND operating_income__$m_ < 27</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 theme and artist name for the exhibition with a ticket price higher than the average? ### Context: CREATE TABLE exhibition (ticket_price INTEGER); CREATE TABLE exhibition (theme VARCHAR, artist_id VARCHAR, ticket_price INTEGER); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR) ### Response: ### Response: SELECT T1.theme, T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT AVG(ticket_price) FROM exhibition)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of voting records in total. ### Context: CREATE TABLE VOTING_RECORD (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM VOTING_RECORD</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a Reg GP over 62? ### Context: CREATE TABLE table_name_12 (team__league_ VARCHAR, reg_gp INTEGER) ### Response: ### Response: SELECT team__league_ FROM table_name_12 WHERE reg_gp > 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 2009 when 2004 is 107? ### Context: CREATE TABLE table_name_5 (Id VARCHAR) ### Response: ### Response: SELECT 2009 FROM table_name_5 WHERE 2004 = "107"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor of the race with Juan Manuel Fangio as the fastest lap and Giuseppe Farina as the winning driver? ### Context: CREATE TABLE table_name_26 (constructor VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_26 WHERE fastest_lap = "juan manuel fangio" AND winning_driver = "giuseppe farina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Grid for a Maserati with less than 80 laps, and a Time/Retired of +2 laps? ### Context: CREATE TABLE table_name_76 (grid INTEGER, time_retired VARCHAR, laps VARCHAR, constructor VARCHAR) ### Response: ### Response: SELECT AVG(grid) FROM table_name_76 WHERE laps < 80 AND constructor = "maserati" AND time_retired = "+2 laps"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country when the bie recognised is no and years(s) is 2014? ### Context: CREATE TABLE table_name_83 (country VARCHAR, bie_recognised VARCHAR, year_s_ VARCHAR) ### Response: ### Response: SELECT country FROM table_name_83 WHERE bie_recognised = "no" AND year_s_ = "2014"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what status is the vehicle types of dmbs+tcl+dmcl? ### Context: CREATE TABLE table_name_55 (status VARCHAR, vehicle_types VARCHAR) ### Response: ### Response: SELECT status FROM table_name_55 WHERE vehicle_types = "dmbs+tcl+dmcl"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 type of surface do Amer Delic Robert Kendrick's opponents have? ### Context: CREATE TABLE table_name_53 (surface VARCHAR, opponents VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_53 WHERE opponents = "amer delic robert kendrick"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score on 22 august 2012 ### Context: CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_37 WHERE date = "22 august 2012"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had an outgoing manager of antonio gómez ### Context: CREATE TABLE table_27495117_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR) ### Response: ### Response: SELECT COUNT(manner_of_departure) FROM table_27495117_3 WHERE outgoing_manager = "Antonio Gómez"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: display the employee number, name( first name and last name ), and salary for all employees who earn more than the average salary and who work in a department with any employee with a 'J' in their first name. ### Context: CREATE TABLE employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, salary INTEGER, department_id VARCHAR) ### Response: ### Response: SELECT employee_id, first_name, last_name, salary FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) AND department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%J%')</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 UCI points did Rabobank score? ### Context: CREATE TABLE table_name_88 (uci_points VARCHAR, team VARCHAR) ### Response: ### Response: SELECT uci_points FROM table_name_88 WHERE team = "rabobank"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the Chassis that has the Year of 1977? ### Context: CREATE TABLE table_name_47 (chassis VARCHAR, year VARCHAR) ### Response: ### Response: SELECT chassis FROM table_name_47 WHERE year = 1977</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponent the Tennessee Titans? ### Context: CREATE TABLE table_name_47 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_47 WHERE opponent = "tennessee titans"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 event was Donald Ouimet involved? ### Context: CREATE TABLE table_name_41 (event VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT event FROM table_name_41 WHERE opponent = "donald ouimet"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bronze medals of West Germany, which is ranked 2 and has less than 1 total medals? ### Context: CREATE TABLE table_name_83 (bronze VARCHAR, total VARCHAR, rank VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT COUNT(bronze) FROM table_name_83 WHERE rank = 2 AND nation = "west germany" AND total < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the maximum season where leading goalkicker is scott simister (54) ### Context: CREATE TABLE table_1165048_1 (season INTEGER, leading_goalkicker VARCHAR) ### Response: ### Response: SELECT MAX(season) FROM table_1165048_1 WHERE leading_goalkicker = "Scott Simister (54)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To Par, when Country is United States, and when Score is 71-68-73=212? ### Context: CREATE TABLE table_name_22 (to_par VARCHAR, country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_22 WHERE country = "united states" AND score = 71 - 68 - 73 = 212</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 last name of the individuals that have been contact individuals of an organization. ### Context: CREATE TABLE individuals (individual_last_name VARCHAR, individual_id VARCHAR); CREATE TABLE organization_contact_individuals (individual_id VARCHAR) ### Response: ### Response: SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id = t2.individual_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score for game #1? ### Context: CREATE TABLE table_27537518_4 (score VARCHAR, game VARCHAR) ### Response: ### Response: SELECT score FROM table_27537518_4 WHERE game = 1</s>