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 Style, when Choreographer(s) is Dave Scott? ### Context: CREATE TABLE table_name_17 (style VARCHAR, choreographer_s_ VARCHAR) ### Response: ### Response: SELECT style FROM table_name_17 WHERE choreographer_s_ = "dave scott"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the party for district 27? ### Context: CREATE TABLE table_26129220_2 (party VARCHAR, district VARCHAR) ### Response: ### Response: SELECT party FROM table_26129220_2 WHERE district = 27</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendance at the game where the opponent was the denver broncos? ### Context: CREATE TABLE table_name_85 (attendance VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_85 WHERE opponent = "denver broncos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 party affiliation for senator mark Wagoner? ### Context: CREATE TABLE table_26129220_2 (party VARCHAR, senator VARCHAR) ### Response: ### Response: SELECT party FROM table_26129220_2 WHERE senator = "Mark Wagoner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 artist's work is the butterfly Tiger Swallowtail? ### Context: CREATE TABLE table_name_16 (artist VARCHAR, butterfly VARCHAR) ### Response: ### Response: SELECT artist FROM table_name_16 WHERE butterfly = "tiger swallowtail"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Kentucky the opponent, and Ragle lost? ### Context: CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT date FROM table_name_9 WHERE opponent = "kentucky" AND loss = "ragle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game with a rank higher than 2 and a name of zendon hamilton? ### Context: CREATE TABLE table_name_20 (games INTEGER, name VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MAX(games) FROM table_name_20 WHERE name = "zendon hamilton" AND rank > 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 winner in event number 15h? ### Context: CREATE TABLE table_22050544_1 (winner VARCHAR, event__number VARCHAR) ### Response: ### Response: SELECT winner FROM table_22050544_1 WHERE event__number = "15H"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the team that played against Fitzroy in their home game? ### Context: CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_17 WHERE away_team = "fitzroy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where did the Vitória de Setúbal club place in the 2006-2007 season? ### Context: CREATE TABLE table_name_13 (club VARCHAR) ### Response: ### Response: SELECT 2006 AS _2007_season FROM table_name_13 WHERE club = "vitória de setúbal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the game(s) against Iowa take place? ### Context: CREATE TABLE table_name_94 (site VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT site FROM table_name_94 WHERE opponent = "iowa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed under tor floysvik when couple is maria & asmund? ### Context: CREATE TABLE table_28677723_10 (tor_fløysvik INTEGER, couple VARCHAR) ### Response: ### Response: SELECT MIN(tor_fløysvik) FROM table_28677723_10 WHERE couple = "Maria & Asmund"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position with less than 17 losses, more than 57 goals, and a goal difference less than 4? ### Context: CREATE TABLE table_name_39 (position INTEGER, goal_difference VARCHAR, losses VARCHAR, goals_for VARCHAR) ### Response: ### Response: SELECT MAX(position) FROM table_name_39 WHERE losses < 17 AND goals_for > 57 AND goal_difference < 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the year the institution Tougaloo College joined? ### Context: CREATE TABLE table_10577579_2 (joined VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT joined FROM table_10577579_2 WHERE institution = "Tougaloo 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: Who was the opponent on 12 May, when the match day was more than 33? ### Context: CREATE TABLE table_name_53 (opponent VARCHAR, match_day VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_53 WHERE match_day > 33 AND date = "12 may"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the venue Landshut? ### Context: CREATE TABLE table_name_51 (year VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT year FROM table_name_51 WHERE venue = "landshut"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ERP W with a call sign at w261cq? ### Context: CREATE TABLE table_name_19 (erp_w VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT erp_w FROM table_name_19 WHERE call_sign = "w261cq"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 regular season had a record of 16-12? ### Context: CREATE TABLE table_name_7 (reg_season VARCHAR, record VARCHAR) ### Response: ### Response: SELECT reg_season FROM table_name_7 WHERE record = "16-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 final date had 16 housemates? ### Context: CREATE TABLE table_name_75 (final_date VARCHAR, housemates VARCHAR) ### Response: ### Response: SELECT final_date FROM table_name_75 WHERE housemates = 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: Name of 900 north michigan, and a Year smaller than 1989 involves what lowest floors? ### Context: CREATE TABLE table_name_39 (floors INTEGER, name VARCHAR, year VARCHAR) ### Response: ### Response: SELECT MIN(floors) FROM table_name_39 WHERE name = "900 north michigan" AND year < 1989</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result for the Outstanding director of a musical category? ### Context: CREATE TABLE table_name_67 (result VARCHAR, category VARCHAR) ### Response: ### Response: SELECT result FROM table_name_67 WHERE category = "outstanding director of a musical"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rider who went 14 laps on a Honda CBR1000rr, with a time of +1'04.877 on a grid larger than 23? ### Context: CREATE TABLE table_name_46 (rider VARCHAR, time VARCHAR, bike VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT rider FROM table_name_46 WHERE laps = 14 AND grid > 23 AND bike = "honda cbr1000rr" AND time = "+1'04.877"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which category has 5 stations? ### Context: CREATE TABLE table_name_11 (category VARCHAR, stations VARCHAR) ### Response: ### Response: SELECT category FROM table_name_11 WHERE stations = "5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which period has the team CS Sedan? ### Context: CREATE TABLE table_name_99 (period VARCHAR, teams VARCHAR) ### Response: ### Response: SELECT period FROM table_name_99 WHERE teams = "cs sedan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 much Attendance has Games smaller than 6, and a W-L-T of 3-2-0, and a Season smaller than 1948? ### Context: CREATE TABLE table_name_24 (attendance INTEGER, season VARCHAR, games VARCHAR, w_l_t VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_24 WHERE games < 6 AND w_l_t = "3-2-0" AND season < 1948</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent when the record recorded was 64-78? ### Context: CREATE TABLE table_name_51 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_51 WHERE record = "64-78"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 laps have 50 points? ### Context: CREATE TABLE table_name_65 (laps VARCHAR, points VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_65 WHERE points = "50"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 report for circuit of modena ### Context: CREATE TABLE table_name_25 (report VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT report FROM table_name_25 WHERE circuit = "modena"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final round value for member Chris Webber? ### Context: CREATE TABLE table_name_59 (final_round VARCHAR, members VARCHAR) ### Response: ### Response: SELECT final_round FROM table_name_59 WHERE members = "chris webber"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Year has the Orginal title of La Cérémonie? ### Context: CREATE TABLE table_name_13 (year VARCHAR, original_title VARCHAR) ### Response: ### Response: SELECT year FROM table_name_13 WHERE original_title = "la cérémonie"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is every team in the location of Port Moresby? ### Context: CREATE TABLE table_2383498_4 (team VARCHAR, location VARCHAR) ### Response: ### Response: SELECT team FROM table_2383498_4 WHERE location = "Port Moresby"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 1st leg of cs sfaxien? ### Context: CREATE TABLE table_name_48 (team_2 VARCHAR) ### Response: ### Response: SELECT 1 AS st_leg FROM table_name_48 WHERE team_2 = "cs sfaxien"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 #7 BMW's speed? ### Context: CREATE TABLE table_name_27 (speed VARCHAR, team VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT speed FROM table_name_27 WHERE team = "bmw" AND rank = 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the tournament where monica seles was the finalist who played on a hard surface? ### Context: CREATE TABLE table_name_60 (tournament VARCHAR, surface VARCHAR, finalist VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_60 WHERE surface = "hard" AND finalist = "monica seles"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 English spelling of the strongs transliteration: 'adoniyah? ### Context: CREATE TABLE table_1242447_2 (english_spelling VARCHAR, strongs_transliteration VARCHAR) ### Response: ### Response: SELECT english_spelling FROM table_1242447_2 WHERE strongs_transliteration = "'Adoniyah"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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, when Matches is less than 32, and when Round is Fifth Round Proper? ### Context: CREATE TABLE table_name_55 (date VARCHAR, matches VARCHAR, round VARCHAR) ### Response: ### Response: SELECT date FROM table_name_55 WHERE matches < 32 AND round = "fifth round proper"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 League that has no playoffs in the Year of 2008–09? ### Context: CREATE TABLE table_name_17 (league VARCHAR, play_off VARCHAR, year VARCHAR) ### Response: ### Response: SELECT league FROM table_name_17 WHERE play_off = "–" AND year = "2008–09"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 kind of Socket has a Order part number of tmrm72dam22gg? ### Context: CREATE TABLE table_name_44 (socket VARCHAR, order_part_number VARCHAR) ### Response: ### Response: SELECT socket FROM table_name_44 WHERE order_part_number = "tmrm72dam22gg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team had an away team of Reading? ### Context: CREATE TABLE table_name_37 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_37 WHERE away_team = "reading"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponents have a Score of 6–4, 6–3? ### Context: CREATE TABLE table_name_59 (opponents VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponents FROM table_name_59 WHERE score = "6–4, 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 is the Game held on february 9? ### Context: CREATE TABLE table_name_17 (game VARCHAR, date VARCHAR) ### Response: ### Response: SELECT game FROM table_name_17 WHERE date = "february 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: Which september 26–28, 2011 polling firm had a Link of html, less than 36 liberals, and less than 8 green? ### Context: CREATE TABLE table_name_96 (polling_firm VARCHAR, date_of_polling VARCHAR, green VARCHAR, link VARCHAR, liberal VARCHAR) ### Response: ### Response: SELECT polling_firm FROM table_name_96 WHERE link = "html" AND liberal < 36 AND green < 8 AND date_of_polling = "september 26–28, 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: In what City was Bulgaria the Opponent with Results¹ of 1:0? ### Context: CREATE TABLE table_name_6 (city VARCHAR, results¹ VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT city FROM table_name_6 WHERE results¹ = "1:0" AND opponent = "bulgaria"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team Sheffield Wednesday? ### Context: CREATE TABLE table_name_51 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_51 WHERE away_team = "sheffield wednesday"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine when the tyre is m and the driver is fernando alonso? ### Context: CREATE TABLE table_name_34 (engine_† VARCHAR, tyre VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT engine_† FROM table_name_34 WHERE tyre = "m" AND driver = "fernando alonso"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tier of 2, and a Season of 2000–01 is what European competitions? ### Context: CREATE TABLE table_name_35 (european_competitions VARCHAR, tier VARCHAR, season VARCHAR) ### Response: ### Response: SELECT european_competitions FROM table_name_35 WHERE tier = 2 AND season = "2000–01"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lost, when Points For is "205"? ### Context: CREATE TABLE table_name_16 (lost VARCHAR, points_for VARCHAR) ### Response: ### Response: SELECT lost FROM table_name_16 WHERE points_for = "205"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Season is listed for the Player of Jon Stefansson? ### Context: CREATE TABLE table_name_82 (season VARCHAR, player VARCHAR) ### Response: ### Response: SELECT season FROM table_name_82 WHERE player = "jon stefansson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date of the game that had a loss of Johnson (9-8)? ### Context: CREATE TABLE table_name_30 (date VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT date FROM table_name_30 WHERE loss = "johnson (9-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: WHAT IS THE FORWARD CASTE WITH A SCHEDULED CASTE OF 89.50%? ### Context: CREATE TABLE table_name_80 (forward_caste VARCHAR, scheduled_caste VARCHAR) ### Response: ### Response: SELECT forward_caste FROM table_name_80 WHERE scheduled_caste = "89.50%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with lower than rank 8, and higher than 27.6 score and 13.8 difficulty? ### Context: CREATE TABLE table_name_63 (total INTEGER, difficulty_score VARCHAR, rank VARCHAR, routine_score VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_63 WHERE rank > 8 AND routine_score > 27.6 AND difficulty_score = "13.8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many entries are shown for viewers when the airdate was 26 november 2009? ### Context: CREATE TABLE table_24399615_3 (viewers VARCHAR, airdate VARCHAR) ### Response: ### Response: SELECT COUNT(viewers) FROM table_24399615_3 WHERE airdate = "26 November 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: How many vacant seats were filled by newcomer Joseph H. Bottum (r)? ### Context: CREATE TABLE table_1802522_3 (vacator VARCHAR, successor VARCHAR) ### Response: ### Response: SELECT COUNT(vacator) FROM table_1802522_3 WHERE successor = "Joseph H. Bottum (R)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the week is greater than 7 and the Houston Oilers were the opponent? ### Context: CREATE TABLE table_name_60 (result VARCHAR, week VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_60 WHERE week > 7 AND opponent = "houston oilers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1977 value that had Grand Slam Tournaments in 1972? ### Context: CREATE TABLE table_name_9 (Id VARCHAR) ### Response: ### Response: SELECT 1977 FROM table_name_9 WHERE 1972 = "grand slam tournaments"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Date of Shooter New Targets from 1989's record? ### Context: CREATE TABLE table_name_39 (date VARCHAR, shooter VARCHAR) ### Response: ### Response: SELECT date FROM table_name_39 WHERE shooter = "new targets from 1989"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the friend of Zach with longest year relationship? ### Context: CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, YEAR INTEGER) ### Response: ### Response: SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach')</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 College has a Position of ol, and a Pick # smaller than 32? ### Context: CREATE TABLE table_name_64 (college VARCHAR, position VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT college FROM table_name_64 WHERE position = "ol" AND pick__number < 32</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Constellation has a Object type of globular cluster and a NGC number of 5986? ### Context: CREATE TABLE table_name_17 (constellation VARCHAR, object_type VARCHAR, ngc_number VARCHAR) ### Response: ### Response: SELECT constellation FROM table_name_17 WHERE object_type = "globular cluster" AND ngc_number = 5986</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were less than 72 goals made and more than 40 assists made? ### Context: CREATE TABLE table_name_74 (venue VARCHAR, goals VARCHAR, assists VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_74 WHERE goals < 72 AND assists > 40</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Display the first and last name, and salary for those employees whose first name is ending with the letter m. ### Context: CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary VARCHAR) ### Response: ### Response: SELECT first_name, last_name, salary FROM employees WHERE first_name LIKE '%m'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Body Length/mm has a Lead Pitch/mm smaller than 0.5? ### Context: CREATE TABLE table_name_9 (body_length_mm INTEGER, lead_pitch_mm INTEGER) ### Response: ### Response: SELECT AVG(body_length_mm) FROM table_name_9 WHERE lead_pitch_mm < 0.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 Tournament, when Result is 18th? ### Context: CREATE TABLE table_name_50 (tournament VARCHAR, result VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_50 WHERE result = "18th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has 385 runs as the score? ### Context: CREATE TABLE table_name_38 (year VARCHAR, score VARCHAR) ### Response: ### Response: SELECT year FROM table_name_38 WHERE score = "385 runs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 restaurant type Sandwich? ### Context: CREATE TABLE Restaurant_Type (ResTypeDescription VARCHAR, ResTypeName VARCHAR) ### Response: ### Response: SELECT ResTypeDescription FROM Restaurant_Type WHERE ResTypeName = "Sandwich"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine type with a wheelbase of 127 inches in 1915? ### Context: CREATE TABLE table_name_14 (engine_type___cyl VARCHAR, wheelbase_in VARCHAR, year VARCHAR) ### Response: ### Response: SELECT engine_type___cyl FROM table_name_14 WHERE wheelbase_in = "127" AND year = "1915"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the iata is tbj? ### Context: CREATE TABLE table_name_77 (airport VARCHAR, iata VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_77 WHERE iata = "tbj"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's the opponent for June 13? ### Context: CREATE TABLE table_name_88 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_88 WHERE date = "june 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 left office date happened in Washington? ### Context: CREATE TABLE table_name_94 (Left VARCHAR, location VARCHAR) ### Response: ### Response: SELECT Left AS office FROM table_name_94 WHERE location = "washington"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the final score of the game with 7523 in attendance? ### Context: CREATE TABLE table_25331766_3 (final_score VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT final_score FROM table_25331766_3 WHERE attendance = 7523</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 frequency is located in Davao? ### Context: CREATE TABLE table_name_35 (frequency VARCHAR, location VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_35 WHERE location = "davao"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Station Code of the Destination Station Departure? ### Context: CREATE TABLE table_name_37 (station_code VARCHAR, departure VARCHAR) ### Response: ### Response: SELECT station_code FROM table_name_37 WHERE departure = "destination station"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result for friendly competition on 9 october 2010 ### Context: CREATE TABLE table_name_79 (result VARCHAR, competition VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_79 WHERE competition = "friendly" AND date = "9 october 2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What prefix has chemical class Iodoalkane? ### Context: CREATE TABLE table_name_73 (prefix VARCHAR, chemical_class VARCHAR) ### Response: ### Response: SELECT prefix FROM table_name_73 WHERE chemical_class = "iodoalkane"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is associated with the name chartist (чартист)? ### Context: CREATE TABLE table_name_85 (number VARCHAR, name VARCHAR) ### Response: ### Response: SELECT number FROM table_name_85 WHERE name = "chartist (чартист)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue when the home team was Essendon? ### Context: CREATE TABLE table_name_53 (venue VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_53 WHERE home_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: Can you tell me the lowest React that has the Lane of 5? ### Context: CREATE TABLE table_name_50 (react INTEGER, lane VARCHAR) ### Response: ### Response: SELECT MIN(react) FROM table_name_50 WHERE lane = 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 was the final venue whene England hasted the competition and the runner-up record is [[|]] 4 points and the winner record is [[|]] 6 points? ### Context: CREATE TABLE table_28601467_1 (final_venue VARCHAR, winner VARCHAR, host_nation_s_ VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT final_venue FROM table_28601467_1 WHERE host_nation_s_ = "England" AND runner_up = "[[|]] 4 points" AND winner = "[[|]] 6 points"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for events won by KCL in a year earlier than 2004? ### Context: CREATE TABLE table_name_58 (events_won_by_kcl INTEGER, year INTEGER) ### Response: ### Response: SELECT AVG(events_won_by_kcl) FROM table_name_58 WHERE year < 2004</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of events the Open Championship has with less than 0 cuts? ### Context: CREATE TABLE table_name_50 (events INTEGER, tournament VARCHAR, cuts_made VARCHAR) ### Response: ### Response: SELECT SUM(events) FROM table_name_50 WHERE tournament = "the open championship" AND cuts_made < 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: Who is the Arkansas player associated with Ken Stabler? ### Context: CREATE TABLE table_name_22 (arkansas VARCHAR, alabama VARCHAR) ### Response: ### Response: SELECT arkansas FROM table_name_22 WHERE alabama = "ken stabler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points did agnieszka radwańska score? ### Context: CREATE TABLE table_20855452_4 (points VARCHAR, player VARCHAR) ### Response: ### Response: SELECT points FROM table_20855452_4 WHERE player = "Agnieszka Radwańska"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most goals listed when Jack Trehey was the player, with the listed debut year of 1902, games less than 1? ### Context: CREATE TABLE table_name_29 (goals INTEGER, games VARCHAR, debut_year VARCHAR, player VARCHAR) ### Response: ### Response: SELECT MAX(goals) FROM table_name_29 WHERE debut_year = 1902 AND player = "jack trehey" AND games < 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 pick number did the linebacker from the denver broncos get? ### Context: CREATE TABLE table_name_34 (pick VARCHAR, position VARCHAR, team VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_34 WHERE position = "linebacker" AND team = "denver broncos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 day 1 when day 5 is math? ### Context: CREATE TABLE table_name_35 (day_1 VARCHAR, day_5 VARCHAR) ### Response: ### Response: SELECT day_1 FROM table_name_35 WHERE day_5 = "math"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many winners of Binibining Pilipinas-International when Nina Ricci Alagao? ### Context: CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, miss_universe_philippines VARCHAR) ### Response: ### Response: SELECT COUNT(binibining_pilipinas_international) FROM table_1825751_4 WHERE miss_universe_philippines = "Nina Ricci Alagao"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 events resulted in a top-25 less than 2? ### Context: CREATE TABLE table_name_13 (events VARCHAR, top_25 INTEGER) ### Response: ### Response: SELECT COUNT(events) FROM table_name_13 WHERE top_25 < 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 score at the Champions League, when the result shows win? ### Context: CREATE TABLE table_name_25 (score VARCHAR, competition VARCHAR, result VARCHAR) ### Response: ### Response: SELECT score FROM table_name_25 WHERE competition = "champions league" AND result = "win"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date for no. 7? ### Context: CREATE TABLE table_247955_2 (date VARCHAR, no VARCHAR) ### Response: ### Response: SELECT date FROM table_247955_2 WHERE no = 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: Which date was the x gran premio di napoli? ### Context: CREATE TABLE table_name_7 (date VARCHAR, race_name VARCHAR) ### Response: ### Response: SELECT date FROM table_name_7 WHERE race_name = "x gran premio di napoli"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of played for position less than 9 and draws more than 19 with goals against more than 27 ### Context: CREATE TABLE table_name_34 (played INTEGER, goals_against VARCHAR, position VARCHAR, draws VARCHAR) ### Response: ### Response: SELECT SUM(played) FROM table_name_34 WHERE position < 9 AND draws > 19 AND goals_against > 27</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many bypass boosters are there on the engine with slit exhaust ports and SPI is yes? ### Context: CREATE TABLE table_16731248_1 (bypass_boosters VARCHAR, spi VARCHAR, exhaust_ports VARCHAR) ### Response: ### Response: SELECT bypass_boosters FROM table_16731248_1 WHERE spi = "Yes" AND exhaust_ports = "Slit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score of Goal For which has a Ties larger 0? ### Context: CREATE TABLE table_name_98 (goals_for INTEGER, ties INTEGER) ### Response: ### Response: SELECT MIN(goals_for) FROM table_name_98 WHERE ties > 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 was the score of the game on 1 september? ### Context: CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_49 WHERE date = "1 september"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the sum of gold where silver is more than 2 and the total is 12? ### Context: CREATE TABLE table_name_17 (gold INTEGER, silver VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(gold) FROM table_name_17 WHERE silver > 2 AND total = 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 ISO for South Sudan? ### Context: CREATE TABLE table_222771_1 (iso_3166_2_codes VARCHAR, english_short_name__upper_lower_case_ VARCHAR) ### Response: ### Response: SELECT iso_3166_2_codes FROM table_222771_1 WHERE english_short_name__upper_lower_case_ = "South Sudan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sweden is the country what is the highest production in 2010 (1,000 ton)? ### Context: CREATE TABLE table_293465_1 (production_in_2010__1 INTEGER, country VARCHAR) ### Response: ### Response: SELECT MAX(production_in_2010__1), 000 AS _ton_ FROM table_293465_1 WHERE country = "Sweden"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the regular season standings for the year when the playoffs reached the conference semifinals and the team did not qualify for the US Open Cup? ### Context: CREATE TABLE table_14225409_1 (reg_season VARCHAR, playoffs VARCHAR, us_open_cup VARCHAR) ### Response: ### Response: SELECT reg_season FROM table_14225409_1 WHERE playoffs = "Conference Semifinals" AND us_open_cup = "Did not qualify"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the player who won in 1991 finish? ### Context: CREATE TABLE table_name_1 (finish VARCHAR, year_s__won VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_1 WHERE year_s__won = "1991"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Team has a Year smaller than 2007, and a Class of gts? ### Context: CREATE TABLE table_name_96 (team VARCHAR, year VARCHAR, class VARCHAR) ### Response: ### Response: SELECT team FROM table_name_96 WHERE year < 2007 AND class = "gts"</s>