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 abbr of argovia? ### Context: CREATE TABLE table_name_65 (abbr VARCHAR, italian VARCHAR) ### Response: ### Response: SELECT abbr FROM table_name_65 WHERE italian = "argovia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 run 1 of 1:17.44? ### Context: CREATE TABLE table_name_36 (team VARCHAR, run_1 VARCHAR) ### Response: ### Response: SELECT team FROM table_name_36 WHERE run_1 = "1:17.44"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 description of the color for most products? ### Context: CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (color_code VARCHAR) ### Response: ### Response: SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the location attendance for 3 game ### Context: CREATE TABLE table_27882867_4 (location_attendance VARCHAR, game VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_27882867_4 WHERE game = 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 score did vasil levski national stadium, sofia, which was friendly during competition, earn? ### Context: CREATE TABLE table_name_96 (score VARCHAR, competition VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT score FROM table_name_96 WHERE competition = "friendly" AND venue = "vasil levski national stadium, sofia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the venue when the score was 8-2? ### Context: CREATE TABLE table_name_61 (venue VARCHAR, score VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_61 WHERE score = "8-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's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk adventure? ### Context: CREATE TABLE table_name_30 (year INTEGER, role VARCHAR, title VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_30 WHERE role = "alvin seville simon seville david 'dave' seville" AND title = "the chipmunk adventure"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the overall total for the Omaha Nighthawks? ### Context: CREATE TABLE table_27094070_4 (overall_total INTEGER, team VARCHAR) ### Response: ### Response: SELECT MIN(overall_total) FROM table_27094070_4 WHERE team = "Omaha Nighthawks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 minimum number of members Europe had at the time Africa had 7375139? ### Context: CREATE TABLE table_1914090_2 (europe INTEGER, africa VARCHAR) ### Response: ### Response: SELECT MIN(europe) FROM table_1914090_2 WHERE africa = 7375139</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 candidates are associated with the Georgia 7 district? ### Context: CREATE TABLE table_1342233_11 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342233_11 WHERE district = "Georgia 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 band does 4cca use? ### Context: CREATE TABLE table_name_52 (band VARCHAR, callsign VARCHAR) ### Response: ### Response: SELECT band FROM table_name_52 WHERE callsign = "4cca"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 affiliation of charles h. brand ### Context: CREATE TABLE table_1342379_10 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1342379_10 WHERE incumbent = "Charles H. Brand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 partner where the score was 2–6, 3–6 and happened after 2007? ### Context: CREATE TABLE table_name_86 (partner VARCHAR, year VARCHAR, score_in_the_final VARCHAR) ### Response: ### Response: SELECT partner FROM table_name_86 WHERE year > 2007 AND score_in_the_final = "2–6, 3–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: On the date of June 15 what was the score? ### Context: CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_32 WHERE date = "june 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: What was Tiger Woods' score? ### Context: CREATE TABLE table_name_57 (score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_57 WHERE player = "tiger woods"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were the viewers (in millions) of the series no. 45? ### Context: CREATE TABLE table_27847088_1 (viewers__millions_ VARCHAR, series_no VARCHAR) ### Response: ### Response: SELECT viewers__millions_ FROM table_27847088_1 WHERE series_no = 45</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 MSDN integration has a Load testing of no, and a Test impact analysis of no? ### Context: CREATE TABLE table_name_16 (msdn_integration VARCHAR, load_testing VARCHAR, test_impact_analysis VARCHAR) ### Response: ### Response: SELECT msdn_integration FROM table_name_16 WHERE load_testing = "no" AND test_impact_analysis = "no"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 series with a North American release date on 2013-09-03? ### Context: CREATE TABLE table_name_12 (series VARCHAR, north_american_release_date VARCHAR) ### Response: ### Response: SELECT series FROM table_name_12 WHERE north_american_release_date = "2013-09-03"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 series did Bobby Labonte drive? ### Context: CREATE TABLE table_25146455_1 (series VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT series FROM table_25146455_1 WHERE driver = "Bobby Labonte"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 equation is 6 × 9² + 6 × 9 + 6, what is the 2nd throw? ### Context: CREATE TABLE table_17265535_7 (equation VARCHAR) ### Response: ### Response: SELECT MAX(2 AS nd_throw) FROM table_17265535_7 WHERE equation = "6 × 9² + 6 × 9 + 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: Name the team anthem that was written by quentin eyers and les kaczmarek. ### Context: CREATE TABLE table_28243323_1 (name_of_team_song VARCHAR, writer_composer VARCHAR) ### Response: ### Response: SELECT name_of_team_song FROM table_28243323_1 WHERE writer_composer = "Quentin Eyers and Les Kaczmarek"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who has a Game smaller than 43, and a Record of 23-14-3? ### Context: CREATE TABLE table_name_37 (opponent VARCHAR, game VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_37 WHERE game < 43 AND record = "23-14-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 team was visiting on February 15? ### Context: CREATE TABLE table_name_85 (visitor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT visitor FROM table_name_85 WHERE date = "february 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: Select the name and price of the cheapest product. ### Context: CREATE TABLE Products (name VARCHAR, price VARCHAR) ### Response: ### Response: SELECT name, price FROM Products ORDER BY price LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the traditional for population 74779 ### Context: CREATE TABLE table_1638437_2 (traditional VARCHAR, population VARCHAR) ### Response: ### Response: SELECT traditional FROM table_1638437_2 WHERE population = 74779</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that was the league position was 1st, and the result F– A was 5 – 0? ### Context: CREATE TABLE table_name_29 (date VARCHAR, league_position VARCHAR, result_f___a VARCHAR) ### Response: ### Response: SELECT date FROM table_name_29 WHERE league_position = "1st" AND result_f___a = "5 – 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: On how many different dates did the episode with series number 35 air for the first time? ### Context: CREATE TABLE table_20046379_3 (original_air_date VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT COUNT(original_air_date) FROM table_20046379_3 WHERE no_in_series = "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: Who is the director when there is 11.21 million viewers? ### Context: CREATE TABLE table_24910733_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_24910733_1 WHERE us_viewers__millions_ = "11.21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Country, when Score is 71-74-70=215? ### Context: CREATE TABLE table_name_13 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_13 WHERE score = 71 - 74 - 70 = 215</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Occupational pensions of 7%, and a Working tax credit of 2%, and a Other social security benefits of 6% has what investment income? ### Context: CREATE TABLE table_name_39 (investment_income VARCHAR, other_social_security_benefits VARCHAR, occupational_pensions VARCHAR, working_tax_credit VARCHAR) ### Response: ### Response: SELECT investment_income FROM table_name_39 WHERE occupational_pensions = "7%" AND working_tax_credit = "2%" AND other_social_security_benefits = "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 game number of the game with the Edmonton Oilers as the opponent after February 12? ### Context: CREATE TABLE table_name_74 (game VARCHAR, opponent VARCHAR, february VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_74 WHERE opponent = "edmonton oilers" AND february > 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 is the economy when the strike rate is 54.0? ### Context: CREATE TABLE table_19662262_6 (economy_rate VARCHAR, strike_rate VARCHAR) ### Response: ### Response: SELECT economy_rate FROM table_19662262_6 WHERE strike_rate = "54.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 most tonnage grt of any ship sunk or captured on 16 jan 16? ### Context: CREATE TABLE table_name_80 (tonnage_grt INTEGER, date VARCHAR) ### Response: ### Response: SELECT MAX(tonnage_grt) FROM table_name_80 WHERE date = "16 jan 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: What is the smallest draws for Byes less than 4? ### Context: CREATE TABLE table_name_80 (draws INTEGER, byes INTEGER) ### Response: ### Response: SELECT MIN(draws) FROM table_name_80 WHERE byes < 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: How many picks were from round 6? ### Context: CREATE TABLE table_name_84 (pick VARCHAR, round VARCHAR) ### Response: ### Response: SELECT COUNT(pick) FROM table_name_84 WHERE round = 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: On broadcast date is 28march1970, how many people tuned in? ### Context: CREATE TABLE table_2102898_1 (viewers__in_millions_ VARCHAR, broadcast_date VARCHAR) ### Response: ### Response: SELECT viewers__in_millions_ FROM table_2102898_1 WHERE broadcast_date = "28March1970"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 WINNER WITH ATCC ROUND 6? ### Context: CREATE TABLE table_name_59 (winner VARCHAR, series VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_59 WHERE series = "atcc round 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 total number of games played with 3 losses, 1 or more drawns and 10 or fewer points? ### Context: CREATE TABLE table_name_68 (played INTEGER, points VARCHAR, lost VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT SUM(played) FROM table_name_68 WHERE lost = 3 AND drawn > 1 AND points < 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many results are listed for week 13? ### Context: CREATE TABLE table_17782308_1 (result VARCHAR, week VARCHAR) ### Response: ### Response: SELECT COUNT(result) FROM table_17782308_1 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: Who is the cyclist from the GCE team and had UCI points under 20? ### Context: CREATE TABLE table_name_70 (cyclist VARCHAR, team VARCHAR, uci_points VARCHAR) ### Response: ### Response: SELECT cyclist FROM table_name_70 WHERE team = "gce" AND uci_points < 20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest draft pick number for mark doak who had an overall pick smaller than 147? ### Context: CREATE TABLE table_name_30 (pick INTEGER, name VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT MIN(pick) FROM table_name_30 WHERE name = "mark doak" AND overall < 147</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when there was a Tie number of 6? ### Context: CREATE TABLE table_name_30 (score VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT score FROM table_name_30 WHERE tie_no = "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 time when time is 10:46? ### Context: CREATE TABLE table_21578303_2 (time VARCHAR, time__eet_ VARCHAR) ### Response: ### Response: SELECT time FROM table_21578303_2 WHERE time__eet_ = "10: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 Torque that has a Power of hp (kw), and a Trim of xr (2009)? Question 6 ### Context: CREATE TABLE table_name_18 (torque VARCHAR, power VARCHAR, trim VARCHAR) ### Response: ### Response: SELECT torque FROM table_name_18 WHERE power = "hp (kw)" AND trim = "xr (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: What was the production code of the episode no. 55 in the series? ### Context: CREATE TABLE table_27776266_1 (production_code VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT production_code FROM table_27776266_1 WHERE no_in_series = 55</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team of the game against Essendon? ### Context: CREATE TABLE table_name_96 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_96 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: What number game had a high assist of lebron james (7) and high point of lebron james (21)? ### Context: CREATE TABLE table_17325580_10 (game INTEGER, high_assists VARCHAR, high_points VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_17325580_10 WHERE high_assists = "LeBron James (7)" AND high_points = "LeBron James (21)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the height for the player in 1968-72? ### Context: CREATE TABLE table_11734041_11 (height_in_ft VARCHAR, years_for_rockets VARCHAR) ### Response: ### Response: SELECT height_in_ft FROM table_11734041_11 WHERE years_for_rockets = "1968-72"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Name, when President is Khamtai Siphandon, and when Left Office is 1999? ### Context: CREATE TABLE table_name_66 (name VARCHAR, president VARCHAR, left_office VARCHAR) ### Response: ### Response: SELECT name FROM table_name_66 WHERE president = "khamtai siphandon" AND left_office = "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: Find the name of students who took any class in the years of 2009 and 2010. ### Context: CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE takes (id VARCHAR) ### Response: ### Response: SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR 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: Who was on the pole at Chicagoland? ### Context: CREATE TABLE table_16099880_5 (pole_position VARCHAR, race VARCHAR) ### Response: ### Response: SELECT pole_position FROM table_16099880_5 WHERE race = "Chicagoland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 series was directed by Mark Roskin? ### Context: CREATE TABLE table_20704243_3 (series__number INTEGER, directed_by VARCHAR) ### Response: ### Response: SELECT MIN(series__number) FROM table_20704243_3 WHERE directed_by = "Mark Roskin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 day did tommy ellis drive? ### Context: CREATE TABLE table_28178756_1 (date VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT date FROM table_28178756_1 WHERE driver = "Tommy Ellis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: At what latitude can the name origin of naijok fossae be found? ### Context: CREATE TABLE table_16799784_11 (latitude VARCHAR, name VARCHAR) ### Response: ### Response: SELECT latitude FROM table_16799784_11 WHERE name = "Naijok Fossae"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many draws were there when there were 30 tries against? ### Context: CREATE TABLE table_12792876_2 (drawn VARCHAR, tries_against VARCHAR) ### Response: ### Response: SELECT drawn FROM table_12792876_2 WHERE tries_against = "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: How many types of settlement if Neradin? ### Context: CREATE TABLE table_2562572_50 (type VARCHAR, settlement VARCHAR) ### Response: ### Response: SELECT COUNT(type) FROM table_2562572_50 WHERE settlement = "Neradin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of the round in which Ron Hansen was drafted and the overall is greater than 332? ### Context: CREATE TABLE table_name_60 (round VARCHAR, name VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_60 WHERE name = "ron hansen" AND overall > 332</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Total the Year Yugoslavia had 0 Silver medals and 31 Competitors? ### Context: CREATE TABLE table_name_5 (total VARCHAR, silver VARCHAR, competitors VARCHAR) ### Response: ### Response: SELECT total FROM table_name_5 WHERE silver = "0" AND competitors = "31"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the lowest judge rank for danny and frankie? ### Context: CREATE TABLE table_26375386_16 (judges INTEGER, couple VARCHAR) ### Response: ### Response: SELECT MIN(judges) FROM table_26375386_16 WHERE couple = "Danny and Frankie"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 enrollment at the private university? ### Context: CREATE TABLE table_29483673_1 (enrollment VARCHAR, affiliation VARCHAR) ### Response: ### Response: SELECT enrollment FROM table_29483673_1 WHERE affiliation = "Private"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cargo value in 2005 with a ship size of all product carriers? ### Context: CREATE TABLE table_name_31 (ship_size VARCHAR) ### Response: ### Response: SELECT 2005 FROM table_name_31 WHERE ship_size = "all product carriers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rr2 pts for won being 11 ### Context: CREATE TABLE table_21471897_2 (rr3_pts VARCHAR, won VARCHAR) ### Response: ### Response: SELECT COUNT(rr3_pts) FROM table_21471897_2 WHERE won = 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many hebrew forms are there for the arabic form yuktibu يكتب? ### Context: CREATE TABLE table_2784232_1 (hebrew_form VARCHAR, arabic_form VARCHAR) ### Response: ### Response: SELECT COUNT(hebrew_form) FROM table_2784232_1 WHERE arabic_form = "yuktibu يكتب"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 role when the original broadway was Adam Riegler? ### Context: CREATE TABLE table_name_8 (role VARCHAR, original_broadway_cast VARCHAR) ### Response: ### Response: SELECT role FROM table_name_8 WHERE original_broadway_cast = "adam riegler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 languages for the 2001 (74th) awards? ### Context: CREATE TABLE table_16254861_1 (language_s_ VARCHAR, year__ceremony_ VARCHAR) ### Response: ### Response: SELECT COUNT(language_s_) FROM table_16254861_1 WHERE year__ceremony_ = "2001 (74th)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played in front of 28,536 at an away stadium? ### Context: CREATE TABLE table_name_34 (away_team VARCHAR, crowd INTEGER) ### Response: ### Response: SELECT away_team AS score FROM table_name_34 WHERE crowd > 28 OFFSET 536</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Method of tko, and a Location of elgin, illinois, usa on 2001-02-11? ### Context: CREATE TABLE table_name_7 (opponent VARCHAR, date VARCHAR, method VARCHAR, location VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_7 WHERE method = "tko" AND location = "elgin, illinois, usa" AND date = "2001-02-11"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What two teams were competing in the match with 103,158 in attendance? ### Context: CREATE TABLE table_name_50 (opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_50 WHERE attendance = "103,158"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the winner when points classification is Robbie Mcewen, and a Mountains classification is José Rujano? ### Context: CREATE TABLE table_name_45 (winner VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_45 WHERE points_classification = "robbie mcewen" AND mountains_classification = "josé rujano"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games against Florida Panthers were played in Verizon Center? ### Context: CREATE TABLE table_23308178_5 (game VARCHAR, opponent VARCHAR, location VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_23308178_5 WHERE opponent = "Florida Panthers" AND location = "Verizon Center"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Queens number when Brooklyn was 201,866? ### Context: CREATE TABLE table_name_57 (queens VARCHAR, brooklyn VARCHAR) ### Response: ### Response: SELECT queens FROM table_name_57 WHERE brooklyn = "201,866"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 building shows 2013 and has more than 20 floors? ### Context: CREATE TABLE table_name_54 (building VARCHAR, year VARCHAR, floors VARCHAR) ### Response: ### Response: SELECT building FROM table_name_54 WHERE year = 2013 AND floors > 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: Which position has a Round of 7, and a College of kansas state? ### Context: CREATE TABLE table_name_34 (position VARCHAR, round VARCHAR, college VARCHAR) ### Response: ### Response: SELECT position FROM table_name_34 WHERE round = 7 AND college = "kansas state"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many times did argentina win? ### Context: CREATE TABLE table_14573770_4 (winners INTEGER, nation VARCHAR) ### Response: ### Response: SELECT MAX(winners) FROM table_14573770_4 WHERE nation = "Argentina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 an Opponent of meike babel? ### Context: CREATE TABLE table_name_92 (tournament VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_92 WHERE opponent = "meike babel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 building that was the tallest from 1990–1997 in Frankfurt? ### Context: CREATE TABLE table_name_78 (name VARCHAR, city VARCHAR, years_as_tallest VARCHAR) ### Response: ### Response: SELECT name FROM table_name_78 WHERE city = "frankfurt" AND years_as_tallest = "1990–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: How many airports are there per country? Order the countries by decreasing number of airports. ### Context: CREATE TABLE airports (country VARCHAR) ### Response: ### Response: SELECT COUNT(*), country FROM airports GROUP BY country ORDER BY COUNT(*) DESC</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Semifinalists have a Surface of hard, and a Winner and score of pete sampras 6–3, 3–6, 6–3? ### Context: CREATE TABLE table_name_95 (semifinalists VARCHAR, surface VARCHAR, winner_and_score VARCHAR) ### Response: ### Response: SELECT semifinalists FROM table_name_95 WHERE surface = "hard" AND winner_and_score = "pete sampras 6–3, 3–6, 6–3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the event with leonardo chocolate in 2009? ### Context: CREATE TABLE table_name_88 (event VARCHAR, date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT event FROM table_name_88 WHERE date = 2009 AND opponent = "leonardo chocolate"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total 25–45? ### Context: CREATE TABLE table_name_50 (date VARCHAR, total VARCHAR) ### Response: ### Response: SELECT date FROM table_name_50 WHERE total = "25–45"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bachelorette of the season where ian mckee was the winner? ### Context: CREATE TABLE table_name_20 (bachelorette VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT bachelorette FROM table_name_20 WHERE winner = "ian mckee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 an episode with 1.19 million? ### Context: CREATE TABLE table_29273390_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_29273390_1 WHERE us_viewers__million_ = "1.19"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the most common genre in all tracks? ### Context: CREATE TABLE GENRE (Name VARCHAR, GenreId VARCHAR); CREATE TABLE TRACK (GenreId VARCHAR) ### Response: ### Response: SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the names of players and names of their coaches in descending order of the votes of players. ### Context: CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR); CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR, Votes VARCHAR) ### Response: ### Response: SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of gold medals for the United States with silver medal count greater than 3? ### Context: CREATE TABLE table_name_26 (gold INTEGER, nation VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT SUM(gold) FROM table_name_26 WHERE nation = "united states" AND silver > 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which term in office has a qld state, a Party of labor, and an Electorate of fisher? ### Context: CREATE TABLE table_name_76 (term_in_office VARCHAR, electorate VARCHAR, state VARCHAR, party VARCHAR) ### Response: ### Response: SELECT term_in_office FROM table_name_76 WHERE state = "qld" AND party = "labor" AND electorate = "fisher"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the nationality of the winner of the 42nd Edition? ### Context: CREATE TABLE table_name_90 (country VARCHAR, edition VARCHAR) ### Response: ### Response: SELECT country FROM table_name_90 WHERE edition = "42nd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player has a PBA team of Red Bull Thunder? ### Context: CREATE TABLE table_name_5 (player VARCHAR, pba_team VARCHAR) ### Response: ### Response: SELECT player FROM table_name_5 WHERE pba_team = "red bull thunder"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tonnage of the Brig Ship Type and the disposition of Ship of Prize? ### Context: CREATE TABLE table_name_35 (tonnage INTEGER, ship_type VARCHAR, disposition_of_ship VARCHAR) ### Response: ### Response: SELECT MAX(tonnage) FROM table_name_35 WHERE ship_type = "brig" AND disposition_of_ship = "prize"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population of the district of Klang, with an area larger than 636? ### Context: CREATE TABLE table_name_23 (district VARCHAR, area__km_2__ VARCHAR) ### Response: ### Response: SELECT COUNT(2010 AS _population) FROM table_name_23 WHERE district = "klang" AND area__km_2__ > 636</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 players had 12 wickets? ### Context: CREATE TABLE table_27922491_8 (player VARCHAR, wickets VARCHAR) ### Response: ### Response: SELECT COUNT(player) FROM table_27922491_8 WHERE wickets = 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 HINDI HAS Kannada of shukravara? ### Context: CREATE TABLE table_name_54 (hindi VARCHAR, kannada VARCHAR) ### Response: ### Response: SELECT hindi FROM table_name_54 WHERE kannada = "shukravara"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of the first game? ### Context: CREATE TABLE table_24464253_1 (game INTEGER) ### Response: ### Response: SELECT MIN(game) FROM table_24464253_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 serial number of the pilot car that is black, has a pilot car number larger than 2, and an engine number of 1008? ### Context: CREATE TABLE table_name_71 (serial_no VARCHAR, engine_no VARCHAR, colour VARCHAR, pilot_car_no VARCHAR) ### Response: ### Response: SELECT serial_no FROM table_name_71 WHERE colour = "black" AND pilot_car_no > 2 AND engine_no = 1008</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the result on November 1, 1992? ### Context: CREATE TABLE table_name_53 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_53 WHERE date = "november 1, 1992"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year did construction start at Heysham 1 ### Context: CREATE TABLE table_143352_1 (construction_started VARCHAR, agr_power_station VARCHAR) ### Response: ### Response: SELECT construction_started FROM table_143352_1 WHERE agr_power_station = "Heysham 1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many seasons did Peter Deluise direct Stargate SG-1? ### Context: CREATE TABLE table_15431959_1 (no_in_season INTEGER, directed_by VARCHAR) ### Response: ### Response: SELECT MAX(no_in_season) FROM table_15431959_1 WHERE directed_by = "Peter DeLuise"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the record for the location and attendance of american airlines arena 19,825? ### Context: CREATE TABLE table_27713030_11 (record VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT record FROM table_27713030_11 WHERE location_attendance = "American Airlines Arena 19,825"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Away Team is Arsenal what is the Score? ### Context: CREATE TABLE table_name_47 (score VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_47 WHERE away_team = "arsenal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which location has a Goal of 2? ### Context: CREATE TABLE table_name_25 (location VARCHAR, goal VARCHAR) ### Response: ### Response: SELECT location FROM table_name_25 WHERE goal = "2"</s>