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: Name the district for rep. warren r. davis died during previous congress ### Context: CREATE TABLE table_225200_4 (district VARCHAR, reason_for_change VARCHAR) ### Response: ### Response: SELECT district FROM table_225200_4 WHERE reason_for_change = "Rep. Warren R. Davis died during previous congress"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who won the XXIV Gran Premio di Pescara in the sports car class? ### Context: CREATE TABLE table_name_81 (driver_s VARCHAR, class VARCHAR, race_title VARCHAR) ### Response: ### Response: SELECT driver_s FROM table_name_81 WHERE class = "sports car" AND race_title = "xxiv gran premio di pescara"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points received when Peeter Vähl gave a 9? ### Context: CREATE TABLE table_29261215_4 (points INTEGER, peeter_vähi VARCHAR) ### Response: ### Response: SELECT MIN(points) FROM table_29261215_4 WHERE peeter_vähi = 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games had Montreal Canadiens as an opponent? ### Context: CREATE TABLE table_name_24 (game INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT SUM(game) FROM table_name_24 WHERE opponent = "montreal canadiens"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Apparent magnitude of a Declination (J2000) of °39′45″? ### Context: CREATE TABLE table_name_67 (apparent_magnitude INTEGER, declination___j2000__ VARCHAR) ### Response: ### Response: SELECT MIN(apparent_magnitude) FROM table_name_67 WHERE declination___j2000__ = "°39′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: What is the runner-up when the total is 5? ### Context: CREATE TABLE table_name_51 (runner_up VARCHAR, total VARCHAR) ### Response: ### Response: SELECT runner_up FROM table_name_51 WHERE total = 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the branding for callsign DWFM? ### Context: CREATE TABLE table_name_53 (branding VARCHAR, callsign VARCHAR) ### Response: ### Response: SELECT branding FROM table_name_53 WHERE callsign = "dwfm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 builder has a Fuel Propulsion of diesel, a Model of d40lf, and an Order Year of 2005? ### Context: CREATE TABLE table_name_68 (builder VARCHAR, order_year VARCHAR, fuel_propulsion VARCHAR, model VARCHAR) ### Response: ### Response: SELECT builder FROM table_name_68 WHERE fuel_propulsion = "diesel" AND model = "d40lf" AND order_year = "2005"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average Qiangshu lower than rank 4 and less than 9.22 Jianshu? ### Context: CREATE TABLE table_name_45 (qiangshu INTEGER, rank VARCHAR, jianshu VARCHAR) ### Response: ### Response: SELECT AVG(qiangshu) FROM table_name_45 WHERE rank > 4 AND jianshu < 9.22</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver drove car Wolf WR3? ### Context: CREATE TABLE table_name_12 (winning_driver VARCHAR, winning_car VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_name_12 WHERE winning_car = "wolf wr3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the opposition was sussex after 1890? ### Context: CREATE TABLE table_name_49 (score VARCHAR, opposition VARCHAR, year VARCHAR) ### Response: ### Response: SELECT score FROM table_name_49 WHERE opposition = "sussex" AND year > 1890</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which country has 69 score? ### Context: CREATE TABLE table_name_41 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_41 WHERE score = 69</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which model had a wheelbase of 136 inches? ### Context: CREATE TABLE table_name_54 (model VARCHAR, wheelbase_in VARCHAR) ### Response: ### Response: SELECT model FROM table_name_54 WHERE wheelbase_in = "136"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Hometown has a Height of 6-10? ### Context: CREATE TABLE table_name_90 (hometown VARCHAR, height VARCHAR) ### Response: ### Response: SELECT hometown FROM table_name_90 WHERE height = "6-10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the head of government for Don Stephen Senanayake? ### Context: CREATE TABLE table_name_77 (head_s__of_government VARCHAR, name VARCHAR) ### Response: ### Response: SELECT head_s__of_government FROM table_name_77 WHERE name = "don stephen senanayake"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match played have the highest as 32250? ### Context: CREATE TABLE table_21824695_8 (match_played VARCHAR, highest VARCHAR) ### Response: ### Response: SELECT match_played FROM table_21824695_8 WHERE highest = 32250</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par of Philip Parkin? ### Context: CREATE TABLE table_name_64 (to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_64 WHERE player = "philip parkin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Set 3 when the Set 2 is 21–25, and a Set 1 is 25–21? ### Context: CREATE TABLE table_name_70 (set_3 VARCHAR, set_2 VARCHAR, set_1 VARCHAR) ### Response: ### Response: SELECT set_3 FROM table_name_70 WHERE set_2 = "21–25" AND set_1 = "25–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 was the resolution of the fight against kiuma kunioku with a time of 15:00? ### Context: CREATE TABLE table_name_79 (res VARCHAR, time VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT res FROM table_name_79 WHERE time = "15:00" AND opponent = "kiuma kunioku"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 may 21? ### Context: CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_75 WHERE date = "may 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: College of boston college has what pick? ### Context: CREATE TABLE table_name_61 (pick VARCHAR, college VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_61 WHERE college = "boston 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: Which Home has a Score of 0:2? ### Context: CREATE TABLE table_name_63 (home VARCHAR, score VARCHAR) ### Response: ### Response: SELECT home FROM table_name_63 WHERE score = "0:2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest series number with 9.17 million US viewers? ### Context: CREATE TABLE table_27255755_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT MAX(no_in_series) FROM table_27255755_1 WHERE us_viewers__millions_ = "9.17"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which team did they play on March 11? ### Context: CREATE TABLE table_name_7 (team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT team FROM table_name_7 WHERE date = "march 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 Class has 36 Points? ### Context: CREATE TABLE table_name_68 (class VARCHAR, points VARCHAR) ### Response: ### Response: SELECT class FROM table_name_68 WHERE points = 36</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance has an Opponent of green bay packers, and a Week larger than 10? ### Context: CREATE TABLE table_name_95 (attendance INTEGER, opponent VARCHAR, week VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_95 WHERE opponent = "green bay packers" AND week > 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Long when the ryds is 18? ### Context: CREATE TABLE table_name_14 (long VARCHAR, ryds VARCHAR) ### Response: ### Response: SELECT long FROM table_name_14 WHERE ryds = "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 is Date Sent, when Signal Power ( kW ) is less than 126, when Arrival Date is "January 2059", and when HD Designation is "HD193664"? ### Context: CREATE TABLE table_name_75 (date_sent VARCHAR, hd_designation VARCHAR, signal_power___kw__ VARCHAR, arrival_date VARCHAR) ### Response: ### Response: SELECT date_sent FROM table_name_75 WHERE signal_power___kw__ < 126 AND arrival_date = "january 2059" AND hd_designation = "hd193664"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the player hold that played for the Philadelphia Flyers in NHL? ### Context: CREATE TABLE table_1473672_3 (position VARCHAR, nhl_team VARCHAR) ### Response: ### Response: SELECT position FROM table_1473672_3 WHERE nhl_team = "Philadelphia Flyers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rapes that have Embezzlements a figure of 820 and total number of convictions less than 94,574? ### Context: CREATE TABLE table_name_27 (rape__art_190_stgb_ VARCHAR, embezzlement__art_138_stgb_ VARCHAR, total_convictions VARCHAR) ### Response: ### Response: SELECT COUNT(rape__art_190_stgb_) FROM table_name_27 WHERE embezzlement__art_138_stgb_ = 820 AND total_convictions < 94 OFFSET 574</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points is 20, what was the team name? ### Context: CREATE TABLE table_17693171_1 (team VARCHAR, points VARCHAR) ### Response: ### Response: SELECT team FROM table_17693171_1 WHERE 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 event did Sjerstin Vermeulen receive a 66.452 result? ### Context: CREATE TABLE table_name_57 (event VARCHAR, athlete VARCHAR, result VARCHAR) ### Response: ### Response: SELECT event FROM table_name_57 WHERE athlete = "sjerstin vermeulen" AND result = "66.452"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had third place when the champions is baník ostrava (1)? ### Context: CREATE TABLE table_2429942_2 (third_place VARCHAR, champions VARCHAR) ### Response: ### Response: SELECT third_place FROM table_2429942_2 WHERE champions = "Baník Ostrava (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 average round of the match with kevin manderson as the opponent? ### Context: CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_18 WHERE opponent = "kevin manderson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Brian Hightower play when he has the Conv of 0? ### Context: CREATE TABLE table_name_47 (venue VARCHAR, conv VARCHAR, player VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_47 WHERE conv = "0" AND player = "brian hightower"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Label has a Format of cd, and a Catalog of crgd 86136? ### Context: CREATE TABLE table_name_88 (label VARCHAR, format VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT label FROM table_name_88 WHERE format = "cd" AND catalog = "crgd 86136"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 December has Points of 48, and a Game larger than 33? ### Context: CREATE TABLE table_name_77 (december INTEGER, points VARCHAR, game VARCHAR) ### Response: ### Response: SELECT SUM(december) FROM table_name_77 WHERE points = 48 AND game > 33</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank of Svetlana Fedorenko? ### Context: CREATE TABLE table_name_46 (rank VARCHAR, name VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_46 WHERE name = "svetlana fedorenko"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number of podiums in the 32nd position with less than 0 wins? ### Context: CREATE TABLE table_name_64 (podiums INTEGER, position VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT AVG(podiums) FROM table_name_64 WHERE position = "32nd" AND wins < 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 year is Jiyai Shin the champion? ### Context: CREATE TABLE table_13169136_1 (year VARCHAR, champion VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_13169136_1 WHERE champion = "Jiyai Shin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Purse in Sunland Park Track? ### Context: CREATE TABLE table_name_37 (purse___us$__ VARCHAR, track VARCHAR) ### Response: ### Response: SELECT purse___us$__ FROM table_name_37 WHERE track = "sunland park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the probably futures for गरेस् gares 'may you do' ### Context: CREATE TABLE table_16337329_5 (probable_future VARCHAR, imperative VARCHAR) ### Response: ### Response: SELECT probable_future FROM table_16337329_5 WHERE imperative = "गरेस् gares 'may you do'"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Airport when France was the country, and Montpellier was the city? ### Context: CREATE TABLE table_name_82 (airport VARCHAR, country VARCHAR, city VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_82 WHERE country = "france" AND city = "montpellier"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total attendance for H/A of A and opponents of wolverhampton wanderers? ### Context: CREATE TABLE table_name_42 (attendance VARCHAR, h___a VARCHAR, opponents VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_42 WHERE h___a = "a" AND opponents = "wolverhampton wanderers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento? ### Context: CREATE TABLE table_name_25 (elevated VARCHAR, cardinalatial_title VARCHAR) ### Response: ### Response: SELECT elevated FROM table_name_25 WHERE cardinalatial_title = "priest of s. eusebio and archbishop of benevento"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd round opponent when Team 2 is Red Star (D1)? ### Context: CREATE TABLE table_name_91 (team_2 VARCHAR) ### Response: ### Response: SELECT 2 AS nd_round FROM table_name_91 WHERE team_2 = "red star (d1)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Rick Plant was the man of the match in what competition? ### Context: CREATE TABLE table_name_39 (competition VARCHAR, man_of_the_match VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_39 WHERE man_of_the_match = "rick plant"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least Laps for accident and gird more than 13 ### Context: CREATE TABLE table_name_41 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_41 WHERE time_retired = "accident" AND grid > 13</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Player's Score is 72-70-66=208? ### Context: CREATE TABLE table_name_86 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_86 WHERE score = 72 - 70 - 66 = 208</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 die size for an SM count of exactly 2? ### Context: CREATE TABLE table_26040604_1 (die_size__mm_2__ INTEGER, sm_count VARCHAR) ### Response: ### Response: SELECT MIN(die_size__mm_2__) FROM table_26040604_1 WHERE sm_count = 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: Which Game is the highest one that has a February of 25? ### Context: CREATE TABLE table_name_96 (game INTEGER, february VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_name_96 WHERE february = 25</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what rounds did Luigi Fagioli drive for Alfa Romeo SPA? ### Context: CREATE TABLE table_name_69 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT rounds FROM table_name_69 WHERE entrant = "alfa romeo spa" AND driver = "luigi fagioli"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Result of fernando verdasco? ### Context: CREATE TABLE table_name_10 (surface VARCHAR, result VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_10 WHERE result = "fernando verdasco"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Partner has a Date of 8 february 2009? ### Context: CREATE TABLE table_name_57 (partner VARCHAR, date VARCHAR) ### Response: ### Response: SELECT partner FROM table_name_57 WHERE date = "8 february 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 team does Carlsberg sponsor? ### Context: CREATE TABLE table_name_52 (team VARCHAR, shirt_sponsor VARCHAR) ### Response: ### Response: SELECT team FROM table_name_52 WHERE shirt_sponsor = "carlsberg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the attendance in week 4? ### Context: CREATE TABLE table_name_57 (attendance INTEGER, week VARCHAR) ### Response: ### Response: SELECT AVG(attendance) FROM table_name_57 WHERE week = 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many top 5s when he was on team #28/#49 jay robinson racing? ### Context: CREATE TABLE table_2216245_2 (top_5 INTEGER, team_s_ VARCHAR) ### Response: ### Response: SELECT MAX(top_5) FROM table_2216245_2 WHERE team_s_ = "#28/#49 Jay Robinson Racing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a decile of 7 is in upper hutt? ### Context: CREATE TABLE table_name_39 (name VARCHAR, decile VARCHAR, area VARCHAR) ### Response: ### Response: SELECT name FROM table_name_39 WHERE decile = "7" AND area = "upper hutt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who has the smallest crowd in the Venue of Arden Street Oval? ### Context: CREATE TABLE table_name_56 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MIN(crowd) FROM table_name_56 WHERE venue = "arden street oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the high assists in the game less than 19? ### Context: CREATE TABLE table_name_5 (high_assists VARCHAR, game INTEGER) ### Response: ### Response: SELECT high_assists FROM table_name_5 WHERE game < 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 pick was Dominic Uy? ### Context: CREATE TABLE table_name_48 (pick INTEGER, player VARCHAR) ### Response: ### Response: SELECT AVG(pick) FROM table_name_48 WHERE player = "dominic uy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the result of the first elected is 1943? ### Context: CREATE TABLE table_1342218_6 (result VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT result FROM table_1342218_6 WHERE first_elected = 1943</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Home Captain, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912? ### Context: CREATE TABLE table_name_48 (home_captain VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home_captain FROM table_name_48 WHERE date = "23,24,26,27,28,29 feb, 1 mar 1912"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Winning score in 1965? ### Context: CREATE TABLE table_name_90 (winning_score VARCHAR, year VARCHAR) ### Response: ### Response: SELECT winning_score FROM table_name_90 WHERE year = 1965</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Teleplay, when Director is "George McCowan", when Season is less than 1.1400000000000001, and when First Broadcast is April 3, 1981? ### Context: CREATE TABLE table_name_24 (teleplay VARCHAR, first_broadcast VARCHAR, director VARCHAR, season VARCHAR) ### Response: ### Response: SELECT teleplay FROM table_name_24 WHERE director = "george mccowan" AND season < 1.1400000000000001 AND first_broadcast = "april 3, 1981"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode number 23? ### Context: CREATE TABLE table_21025437_6 (directed_by VARCHAR, episode_no VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_21025437_6 WHERE episode_no = 23</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the margin of victory for jonas blixt ### Context: CREATE TABLE table_name_24 (margin_of_victory VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_24 WHERE runner_s__up = "jonas blixt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 day is south melbourne the away side? ### Context: CREATE TABLE table_name_21 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_21 WHERE away_team = "south melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total silvers does Russia have? ### Context: CREATE TABLE table_name_51 (silver VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT COUNT(silver) FROM table_name_51 WHERE nation = "russia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 format is in St. George with a frequency of 0 107.3 fm? ### Context: CREATE TABLE table_name_31 (format VARCHAR, city_of_license VARCHAR, frequency VARCHAR) ### Response: ### Response: SELECT format FROM table_name_31 WHERE city_of_license = "st. george" AND frequency = "0 107.3 fm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the set 1 with a 28-30 set 4? ### Context: CREATE TABLE table_name_67 (set_1 VARCHAR, set_4 VARCHAR) ### Response: ### Response: SELECT set_1 FROM table_name_67 WHERE set_4 = "28-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: Who are the candidates for district virginia 12? ### Context: CREATE TABLE table_2668336_24 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_2668336_24 WHERE district = "Virginia 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 highest number of goals against when the number of goals were 55 and the difference was +24? ### Context: CREATE TABLE table_name_94 (goals_against INTEGER, goals_for VARCHAR, goal_difference VARCHAR) ### Response: ### Response: SELECT MAX(goals_against) FROM table_name_94 WHERE goals_for > 55 AND goal_difference = "+24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the Ratings of Japanese Title プロポーズ大作戦 episode 11 on Fuji TV station? ### Context: CREATE TABLE table_name_32 (average_ratings VARCHAR, japanese_title VARCHAR, episodes VARCHAR, tv_station VARCHAR) ### Response: ### Response: SELECT average_ratings FROM table_name_32 WHERE episodes = "11" AND tv_station = "fuji tv" AND japanese_title = "プロポーズ大作戦"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the score was l 90–104 (ot)? ### Context: CREATE TABLE table_name_59 (game VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_59 WHERE score = "l 90–104 (ot)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the total number of the audiences who visited any of the festivals? ### Context: CREATE TABLE festival_detail (Num_of_Audience INTEGER) ### Response: ### Response: SELECT SUM(Num_of_Audience) FROM festival_detail</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the status of joe gibbs racing? ### Context: CREATE TABLE table_12001616_4 (status VARCHAR, entrant VARCHAR) ### Response: ### Response: SELECT status FROM table_12001616_4 WHERE entrant = "Joe Gibbs Racing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 times with Kentucky as the home team. ### Context: CREATE TABLE table_26842217_6 (time VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT time FROM table_26842217_6 WHERE home_team = "Kentucky"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: with release date of february 9, 2011, what is the api level? ### Context: CREATE TABLE table_name_74 (api_level INTEGER, release_date VARCHAR) ### Response: ### Response: SELECT AVG(api_level) FROM table_name_74 WHERE release_date = "february 9, 2011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tie no when the away team was Burnley? ### Context: CREATE TABLE table_name_30 (tie_no VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_30 WHERE away_team = "burnley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result with opponent being at oakland raiders ### Context: CREATE TABLE table_14102379_4 (result VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_14102379_4 WHERE opponent = "at Oakland Raiders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Vice President has a President of daniel masny, and a Treasurer of rebecca t. altmann? ### Context: CREATE TABLE table_name_29 (Vice VARCHAR, president VARCHAR, treasurer VARCHAR) ### Response: ### Response: SELECT Vice AS president FROM table_name_29 WHERE president = "daniel masny" AND treasurer = "rebecca t. altmann"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 party does Bill McCollum belong to? ### Context: CREATE TABLE table_1341453_11 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1341453_11 WHERE incumbent = "Bill McCollum"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 new team has a compensation-a round, and Frank Catalanotto as a player? ### Context: CREATE TABLE table_name_27 (new_team VARCHAR, round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT new_team FROM table_name_27 WHERE round = "compensation-a" AND player = "frank catalanotto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Capacity at city stadium, borisov? ### Context: CREATE TABLE table_name_28 (capacity VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT COUNT(capacity) FROM table_name_28 WHERE venue = "city stadium, borisov"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par for the score 73-71=144? ### Context: CREATE TABLE table_name_71 (to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_71 WHERE score = 73 - 71 = 144</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 party was the member peter howson part of? ### Context: CREATE TABLE table_name_85 (party VARCHAR, member VARCHAR) ### Response: ### Response: SELECT party FROM table_name_85 WHERE member = "peter howson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Republican incumbent was elected in 1974? ### Context: CREATE TABLE table_1341568_14 (incumbent VARCHAR, elected VARCHAR, party VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_1341568_14 WHERE elected = 1974 AND party = "Republican"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode #11? ### Context: CREATE TABLE table_22353769_3 (us_air_date VARCHAR, episode__number VARCHAR) ### Response: ### Response: SELECT COUNT(us_air_date) FROM table_22353769_3 WHERE episode__number = 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 Entrant has 0 points and from 1997? ### Context: CREATE TABLE table_name_67 (entrant VARCHAR, points VARCHAR, year VARCHAR) ### Response: ### Response: SELECT entrant FROM table_name_67 WHERE points = 0 AND year = 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: Who directs before 1949 with linda darnell leading and jonathan kent? ### Context: CREATE TABLE table_name_60 (director VARCHAR, role VARCHAR, year VARCHAR, leading_lady VARCHAR) ### Response: ### Response: SELECT director FROM table_name_60 WHERE year < 1949 AND leading_lady = "linda darnell" AND role = "jonathan kent"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Singapore Gross with a Producer that is 2000? ### Context: CREATE TABLE table_name_72 (singapore_gross VARCHAR, producer VARCHAR) ### Response: ### Response: SELECT singapore_gross FROM table_name_72 WHERE producer = "2000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the no. 4 team that has the no. 5 player Susana Telmo? ### Context: CREATE TABLE table_name_46 (no4 VARCHAR, no5 VARCHAR) ### Response: ### Response: SELECT no4 FROM table_name_46 WHERE no5 = "susana telmo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fm 97.3 is the frequency how many formats are there? ### Context: CREATE TABLE table_18536769_1 (format VARCHAR, frequency VARCHAR) ### Response: ### Response: SELECT COUNT(format) FROM table_18536769_1 WHERE frequency = "FM 97.3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smallest 07-08 oi best value? ### Context: CREATE TABLE table_23938357_7 (Id VARCHAR) ### Response: ### Response: SELECT MIN(07 AS _08_oi_best) FROM table_23938357_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: Was the release on April 8 available on Windows? ### Context: CREATE TABLE table_1322904_1 (windows VARCHAR, release VARCHAR) ### Response: ### Response: SELECT windows FROM table_1322904_1 WHERE release = "April 8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the player with a score of 70-68-70=208? ### Context: CREATE TABLE table_name_45 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_45 WHERE score = 70 - 68 - 70 = 208</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 county built a bridge in 1934? ### Context: CREATE TABLE table_name_59 (county VARCHAR, built VARCHAR) ### Response: ### Response: SELECT county FROM table_name_59 WHERE built = "1934"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Location, when Date is December 8-December 20? ### Context: CREATE TABLE table_name_74 (location VARCHAR, date VARCHAR) ### Response: ### Response: SELECT location FROM table_name_74 WHERE date = "december 8-december 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 number range for the T 3 class? ### Context: CREATE TABLE table_name_88 (number_range VARCHAR, class VARCHAR) ### Response: ### Response: SELECT number_range FROM table_name_88 WHERE class = "t 3"</s>