inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest number of points for an entrant with a Jordan 192 chassis? ### Context: CREATE TABLE table_name_20 (pts INTEGER, chassis VARCHAR) ### Response: ### Response: SELECT MIN(pts) FROM table_name_20 WHERE chassis = "jordan 192"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Home Team Score for the Windy Hill Venue? ### Context: CREATE TABLE table_name_63 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_63 WHERE venue = "windy hill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Date of October 25, 1964 involves what record? ### Context: CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_1 WHERE date = "october 25, 1964"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Nationalist share of the poll for the response in which Undecided/No Answer received 29.2%? ### Context: CREATE TABLE table_name_8 (nationalist VARCHAR, undecided__no_answer VARCHAR) ### Response: ### Response: SELECT nationalist FROM table_name_8 WHERE undecided__no_answer = "29.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: When was the first game associated with over 4 losses? ### Context: CREATE TABLE table_name_89 (first_game VARCHAR, lost INTEGER) ### Response: ### Response: SELECT first_game FROM table_name_89 WHERE lost > 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which nation has the number of silver medals greater than 1, and bronze medals as 1? ### Context: CREATE TABLE table_name_7 (nation VARCHAR, silver VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_7 WHERE silver > 1 AND bronze = 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the code and description of the most frequent behavior incident type? ### Context: CREATE TABLE Ref_Incident_Type (incident_type_description VARCHAR, incident_type_code VARCHAR); CREATE TABLE Behavior_Incident (incident_type_code VARCHAR) ### Response: ### Response: SELECT T1.incident_type_code, T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the smallest amount of laps that suzuki ran with a grid value of 8? ### Context: CREATE TABLE table_name_26 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_26 WHERE manufacturer = "suzuki" AND grid = 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 Time, when Meet is "Duel in the Pool", and when Date is "19 December 2009"? ### Context: CREATE TABLE table_name_62 (time VARCHAR, meet VARCHAR, date VARCHAR) ### Response: ### Response: SELECT time FROM table_name_62 WHERE meet = "duel in the pool" AND date = "19 december 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 is the sum of November, when Game is "17"? ### Context: CREATE TABLE table_name_55 (november INTEGER, game VARCHAR) ### Response: ### Response: SELECT SUM(november) FROM table_name_55 WHERE game = 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: How many ships are there? ### Context: CREATE TABLE ship (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM ship</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the player whose finish was t66? ### Context: CREATE TABLE table_name_70 (total VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT total FROM table_name_70 WHERE finish = "t66"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many draws have less than 35 losses with 136 matches and less than 146 against? ### Context: CREATE TABLE table_name_47 (draw INTEGER, against VARCHAR, losses VARCHAR, matches VARCHAR) ### Response: ### Response: SELECT AVG(draw) FROM table_name_47 WHERE losses < 35 AND matches = 136 AND against < 146</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date did Jamie McMurray win the race? ### Context: CREATE TABLE table_17801022_1 (date VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT date FROM table_17801022_1 WHERE driver = "Jamie McMurray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 navy for middleton with a home port of portsmouth after 1983? ### Context: CREATE TABLE table_name_84 (navy VARCHAR, name VARCHAR, home_port VARCHAR, commissioned VARCHAR) ### Response: ### Response: SELECT navy FROM table_name_84 WHERE home_port = "portsmouth" AND commissioned > 1983 AND name = "middleton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 disbanded is in the ahl league? ### Context: CREATE TABLE table_name_73 (disbanded VARCHAR, league VARCHAR) ### Response: ### Response: SELECT disbanded FROM table_name_73 WHERE league = "ahl"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 week 11? ### Context: CREATE TABLE table_name_74 (result VARCHAR, week VARCHAR) ### Response: ### Response: SELECT result FROM table_name_74 WHERE week = 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: Which Draw had 8 Televote Points? ### Context: CREATE TABLE table_name_43 (draw VARCHAR, televote_points VARCHAR) ### Response: ### Response: SELECT COUNT(draw) FROM table_name_43 WHERE televote_points = "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's the projected population of IN-MI? ### Context: CREATE TABLE table_name_68 (projected_2025_population VARCHAR, state__province VARCHAR) ### Response: ### Response: SELECT projected_2025_population FROM table_name_68 WHERE state__province = "in-mi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ship with the date of 28.1.1915? ### Context: CREATE TABLE table_name_87 (ship VARCHAR, date VARCHAR) ### Response: ### Response: SELECT ship FROM table_name_87 WHERE date = "28.1.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: How many are the total winners if 7 won the Men's Open? ### Context: CREATE TABLE table_182298_5 (total VARCHAR, mens_open VARCHAR) ### Response: ### Response: SELECT total FROM table_182298_5 WHERE mens_open = 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is chris jones' location? ### Context: CREATE TABLE table_name_77 (location VARCHAR, wrestler VARCHAR) ### Response: ### Response: SELECT location FROM table_name_77 WHERE wrestler = "chris jones"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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's Season had an Overall of 77? ### Context: CREATE TABLE table_name_70 (season VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT season FROM table_name_70 WHERE overall = "77"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ran for office at the Georgia 4 district in this election? ### Context: CREATE TABLE table_1342315_10 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342315_10 WHERE district = "Georgia 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: Find out the first name and last name of staff lived in city Damianfort. ### Context: CREATE TABLE Staff (first_name VARCHAR, last_name VARCHAR, staff_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR) ### Response: ### Response: SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date that has the Week smaller than 13, and the Opponent of green bay packers? ### Context: CREATE TABLE table_name_16 (date VARCHAR, week VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_16 WHERE week < 13 AND opponent = "green bay packers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the Angeles City based airline begin operations? ### Context: CREATE TABLE table_15637071_1 (commenced_operations VARCHAR, headquarters VARCHAR) ### Response: ### Response: SELECT commenced_operations FROM table_15637071_1 WHERE headquarters = "Angeles City"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What did Richmond score as the home team? ### Context: CREATE TABLE table_name_43 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_43 WHERE home_team = "richmond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the segment A name, having a Netflix of s01e12? ### Context: CREATE TABLE table_name_18 (segment_a VARCHAR, netflix VARCHAR) ### Response: ### Response: SELECT segment_a FROM table_name_18 WHERE netflix = "s01e12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does the customer with the first name Linda live? And what is her email? ### Context: CREATE TABLE customer (email VARCHAR, address_id VARCHAR, first_name VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR) ### Response: ### Response: SELECT T2.address, T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the MLS team, Los Angeles Galaxy in? ### Context: CREATE TABLE table_name_90 (position VARCHAR, mls_team VARCHAR) ### Response: ### Response: SELECT position FROM table_name_90 WHERE mls_team = "los angeles galaxy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were played by the player at FB? ### Context: CREATE TABLE table_name_18 (games VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(games) AS ↑ FROM table_name_18 WHERE position = "fb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: The results for gt2 winning team is all lars-erik nielsen allan simonsen richard westbrook. ### Context: CREATE TABLE table_14154271_2 (results VARCHAR, gt2_winning_team VARCHAR) ### Response: ### Response: SELECT results FROM table_14154271_2 WHERE gt2_winning_team = "Lars-Erik Nielsen Allan Simonsen Richard Westbrook"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team played against the home team of St Kilda? ### Context: CREATE TABLE table_name_66 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_66 WHERE home_team = "st kilda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I want to know the average Fuml for Att of 5 and long more than 7 ### Context: CREATE TABLE table_name_13 (fuml INTEGER, att VARCHAR, long VARCHAR) ### Response: ### Response: SELECT AVG(fuml) FROM table_name_13 WHERE att = 5 AND long > 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the team for the position in table 19th? ### Context: CREATE TABLE table_24231638_3 (team VARCHAR, position_in_table VARCHAR) ### Response: ### Response: SELECT team FROM table_24231638_3 WHERE position_in_table = "19th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What company makes the Nokia 700? ### Context: CREATE TABLE table_name_31 (company_name VARCHAR, hardware_model VARCHAR) ### Response: ### Response: SELECT company_name FROM table_name_31 WHERE hardware_model = "nokia 700"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 before week 8, held on October 25, 1981? ### Context: CREATE TABLE table_name_62 (attendance INTEGER, date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_62 WHERE date = "october 25, 1981" AND week < 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: List all themes from the top 9. ### Context: CREATE TABLE table_23871828_1 (theme VARCHAR, week__number VARCHAR) ### Response: ### Response: SELECT theme FROM table_23871828_1 WHERE week__number = "Top 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: What is the name on the Communist ticket with an Office of judge of the court of appeals? ### Context: CREATE TABLE table_name_63 (communist_ticket VARCHAR, office VARCHAR) ### Response: ### Response: SELECT communist_ticket FROM table_name_63 WHERE office = "judge of the court of appeals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Runs is the highest one that has a Match larger than 63, and a Venue of national stadium, karachi, and a Year smaller than 1996? ### Context: CREATE TABLE table_name_75 (runs INTEGER, year VARCHAR, match VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT MAX(runs) FROM table_name_75 WHERE match > 63 AND venue = "national stadium, karachi" AND year < 1996</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team when the attendance was 7,891? ### Context: CREATE TABLE table_name_64 (away_team VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_64 WHERE attendance = "7,891"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 class when the identifier is cjbc-1-fm? ### Context: CREATE TABLE table_name_60 (class VARCHAR, identifier VARCHAR) ### Response: ### Response: SELECT class FROM table_name_60 WHERE identifier = "cjbc-1-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: Where is the cunningham hill infant school located? ### Context: CREATE TABLE table_28523_2 (location VARCHAR, school VARCHAR) ### Response: ### Response: SELECT location FROM table_28523_2 WHERE school = "Cunningham Hill Infant school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest value for col(m) at North Island? ### Context: CREATE TABLE table_18946749_4 (col__m_ INTEGER, island VARCHAR) ### Response: ### Response: SELECT MAX(col__m_) FROM table_18946749_4 WHERE island = "North island"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 airline for rank of 4 ### Context: CREATE TABLE table_name_98 (airline VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT airline FROM table_name_98 WHERE rank = 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 Playoffs had an Open Cup of 3rd round? ### Context: CREATE TABLE table_name_83 (playoffs VARCHAR, open_cup VARCHAR) ### Response: ### Response: SELECT playoffs FROM table_name_83 WHERE open_cup = "3rd round"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shooter's time is more than 8.97 and has a year prior to 2013? ### Context: CREATE TABLE table_name_56 (shooter VARCHAR, time VARCHAR, year VARCHAR) ### Response: ### Response: SELECT shooter FROM table_name_56 WHERE time > 8.97 AND year < 2013</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: After the 2013 season, what was the fewest number of games that Willis McGahee played in a single season? ### Context: CREATE TABLE table_name_81 (games INTEGER, year INTEGER) ### Response: ### Response: SELECT MIN(games) FROM table_name_81 WHERE year > 2013</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game number 55 played? ### Context: CREATE TABLE table_23248940_9 (location_attendance VARCHAR, game VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_23248940_9 WHERE game = 55</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the total order quantities of photo products? ### Context: CREATE TABLE ORDER_ITEMS (Order_Quantity INTEGER, Product_ID VARCHAR); CREATE TABLE Products (Product_ID VARCHAR, Product_Name VARCHAR) ### Response: ### Response: SELECT SUM(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_Name = "photo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 years won with a total of 282? ### Context: CREATE TABLE table_name_37 (year_s__won VARCHAR, total VARCHAR) ### Response: ### Response: SELECT year_s__won FROM table_name_37 WHERE total = 282</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of t.u.f.f. puppy? ### Context: CREATE TABLE table_name_37 (result VARCHAR, work VARCHAR) ### Response: ### Response: SELECT result FROM table_name_37 WHERE work = "t.u.f.f. puppy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played on April 1? ### Context: CREATE TABLE table_13619053_9 (team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT team FROM table_13619053_9 WHERE date = "April 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 Singapore League Cup does Masahiro Fukasawa have? ### Context: CREATE TABLE table_name_99 (singapore_league_cup VARCHAR, name VARCHAR) ### Response: ### Response: SELECT singapore_league_cup FROM table_name_99 WHERE name = "masahiro fukasawa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were written by Tom Scharpling and Daniel Dratch? ### Context: CREATE TABLE table_25716397_1 (no_in_season VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT COUNT(no_in_season) FROM table_25716397_1 WHERE written_by = "Tom Scharpling and Daniel Dratch"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What district did Joe Waggonner belong to? ### Context: CREATE TABLE table_1341738_19 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_1341738_19 WHERE incumbent = "Joe Waggonner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the time for a grid greater than 20, fewer than 26 laps, and the Aprilia manufacturer? ### Context: CREATE TABLE table_name_86 (time_retired VARCHAR, manufacturer VARCHAR, grid VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_86 WHERE grid > 20 AND laps < 26 AND manufacturer = "aprilia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest pick ### Context: CREATE TABLE table_15353123_1 (pick__number INTEGER) ### Response: ### Response: SELECT MIN(pick__number) FROM table_15353123_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's party with district being pennsylvania 21 ### Context: CREATE TABLE table_1341586_39 (party VARCHAR, district VARCHAR) ### Response: ### Response: SELECT party FROM table_1341586_39 WHERE district = "Pennsylvania 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: Which Opponent has a Round smaller than 3, and a Time of 1:09? ### Context: CREATE TABLE table_name_48 (opponent VARCHAR, round VARCHAR, time VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_48 WHERE round < 3 AND time = "1: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: How many successors are from the georgia 2nd district? ### Context: CREATE TABLE table_1446600_4 (successor VARCHAR, district VARCHAR) ### Response: ### Response: SELECT COUNT(successor) FROM table_1446600_4 WHERE district = "Georgia 2nd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What title has a Label of warp records / paper bag records? ### Context: CREATE TABLE table_name_39 (title VARCHAR, label VARCHAR) ### Response: ### Response: SELECT title FROM table_name_39 WHERE label = "warp records / paper bag records"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 domestic box office for the film that had a foreign box office of $26,600,000? ### Context: CREATE TABLE table_2203760_4 (domestic_box_office VARCHAR, foreign_box_office VARCHAR) ### Response: ### Response: SELECT domestic_box_office FROM table_2203760_4 WHERE foreign_box_office = "$26,600,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest score with a Result of 1–1 on 4 march 2001? ### Context: CREATE TABLE table_name_59 (scored INTEGER, result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT MAX(scored) FROM table_name_59 WHERE result = "1–1" AND date = "4 march 2001"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Transfer fee has a From club of blackburn rovers? ### Context: CREATE TABLE table_name_80 (transfer_fee VARCHAR, from_club VARCHAR) ### Response: ### Response: SELECT transfer_fee FROM table_name_80 WHERE from_club = "blackburn rovers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was successor David Atwood (R) seated? ### Context: CREATE TABLE table_2417345_4 (date_successor_seated VARCHAR, successor VARCHAR) ### Response: ### Response: SELECT date_successor_seated FROM table_2417345_4 WHERE successor = "David Atwood (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: How many nhl teams are listed when college/junior/club team is listed as newton north high school (ushs-ma)? ### Context: CREATE TABLE table_2850912_7 (nhl_team VARCHAR, college_junior_club_team VARCHAR) ### Response: ### Response: SELECT COUNT(nhl_team) FROM table_2850912_7 WHERE college_junior_club_team = "Newton North High School (USHS-MA)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 urban population for the city of Fuzhou? ### Context: CREATE TABLE table_name_7 (urban_population__2010_ INTEGER, city VARCHAR) ### Response: ### Response: SELECT AVG(urban_population__2010_) FROM table_name_7 WHERE city = "fuzhou"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 countries have a republic as their form of government? ### Context: CREATE TABLE country (GovernmentForm VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM country WHERE GovernmentForm = "Republic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 items appear in the written by column in episode 3? ### Context: CREATE TABLE table_27155243_4 (written_by VARCHAR, episode__number VARCHAR) ### Response: ### Response: SELECT COUNT(written_by) FROM table_27155243_4 WHERE episode__number = 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the highest attendance against Real Juventud? ### Context: CREATE TABLE table_name_14 (attendance INTEGER, away VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_14 WHERE away = "real juventud"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 constructor when the laps were larger than 54, and the time/retired was +1 lap on a grid of 20? ### Context: CREATE TABLE table_name_28 (constructor VARCHAR, grid VARCHAR, laps VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_28 WHERE laps > 54 AND time_retired = "+1 lap" AND grid = 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: How many points did kiefer-bos-castrol honda have? ### Context: CREATE TABLE table_16710541_2 (pts VARCHAR, team VARCHAR) ### Response: ### Response: SELECT pts FROM table_16710541_2 WHERE team = "Kiefer-Bos-Castrol Honda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the number of years for 18.5 ### Context: CREATE TABLE table_2181798_1 (year VARCHAR, avg_finish VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_2181798_1 WHERE avg_finish = "18.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 home team of the game that ended with a score of 0-1? ### Context: CREATE TABLE table_name_95 (home_team VARCHAR, score VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_95 WHERE score = "0-1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the total when the rank is total and the silver is less than 10? ### Context: CREATE TABLE table_name_35 (total INTEGER, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_35 WHERE rank = "total" AND silver < 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 average Total has a Rank of 3 and a Bronze award larger than 3? ### Context: CREATE TABLE table_name_33 (total INTEGER, rank VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_33 WHERE rank = "3" AND bronze > 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 school has the player of mike rosario? ### Context: CREATE TABLE table_name_28 (school VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school FROM table_name_28 WHERE player = "mike rosario"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What week number had the New York Giants as opponent? ### Context: CREATE TABLE table_name_21 (week VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT COUNT(week) FROM table_name_21 WHERE opponent = "new york giants"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the WCHL League, what is the last Assists with less than 65 Goals? ### Context: CREATE TABLE table_name_37 (assists INTEGER, league VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT MIN(assists) FROM table_name_37 WHERE league = "wchl" AND goals < 65</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Code Name for the Space Pilot Function (figure)? ### Context: CREATE TABLE table_name_88 (code_name VARCHAR, function__figure_ VARCHAR) ### Response: ### Response: SELECT code_name FROM table_name_88 WHERE function__figure_ = "space pilot"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points have a Combined elapsed time of 175d 20h 46m 04s? ### Context: CREATE TABLE table_name_97 (points VARCHAR, combined_elapsed_time VARCHAR) ### Response: ### Response: SELECT points FROM table_name_97 WHERE combined_elapsed_time = "175d 20h 46m 04s"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the interview subjects on those occasions where Bai Ling was the cover model? ### Context: CREATE TABLE table_1566852_6 (interview_subject VARCHAR, cover_model VARCHAR) ### Response: ### Response: SELECT interview_subject FROM table_1566852_6 WHERE cover_model = "Bai Ling"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city with name being providence tower ### Context: CREATE TABLE table_13463790_2 (city VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(city) FROM table_13463790_2 WHERE name = "Providence Tower"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who did they play in week 11? ### Context: CREATE TABLE table_name_79 (opponent VARCHAR, week VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_79 WHERE week = 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: Who is the opponent in the final on 24 November 2008? ### Context: CREATE TABLE table_name_43 (opponent_in_the_final VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_43 WHERE date = "24 november 2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the district for 1994 ### Context: CREATE TABLE table_25030512_41 (district VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT district FROM table_25030512_41 WHERE first_elected = 1994</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 university of north carolina at charlotte is the school what is the lowest enrollment in 2012? ### Context: CREATE TABLE table_2076516_1 (enrollment__2012_ INTEGER, school VARCHAR) ### Response: ### Response: SELECT MIN(enrollment__2012_) FROM table_2076516_1 WHERE school = "University of North Carolina at Charlotte"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who directed the episode that have 14.59 million viewers ### Context: CREATE TABLE table_19417244_2 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_19417244_2 WHERE us_viewers__millions_ = "14.59"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Date with a Home that is hamilton wildcats? ### Context: CREATE TABLE table_name_29 (date VARCHAR, home VARCHAR) ### Response: ### Response: SELECT date FROM table_name_29 WHERE home = "hamilton wildcats"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 grid with a Time/Retired of engine, and a qual of less than 138.75? ### Context: CREATE TABLE table_name_70 (grid INTEGER, time_retired VARCHAR, qual VARCHAR) ### Response: ### Response: SELECT MIN(grid) FROM table_name_70 WHERE time_retired = "engine" AND qual < 138.75</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What amount is the junior high school where the gender is male and the specification is minimum diameter of sakigawa? ### Context: CREATE TABLE table_13555999_1 (junior_high_school__12_15_yrs_ VARCHAR, gender VARCHAR, specification VARCHAR) ### Response: ### Response: SELECT junior_high_school__12_15_yrs_ FROM table_13555999_1 WHERE gender = "Male" AND specification = "Minimum diameter of sakigawa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 where the nation is South Africa (rsa) and bronze is less than 1? ### Context: CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_45 WHERE nation = "south africa (rsa)" AND bronze < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the Sydney that has Adelaide, Gold Coast, Melbourne, and Auckland are all yes? ### Context: CREATE TABLE table_name_61 (sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR) ### Response: ### Response: SELECT sydney FROM table_name_61 WHERE adelaide = "yes" AND gold_coast = "yes" AND melbourne = "yes" AND auckland = "yes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 green communist when Euroteste/JN is the polling Institute? ### Context: CREATE TABLE table_name_41 (green_communist VARCHAR, polling_institute VARCHAR) ### Response: ### Response: SELECT green_communist FROM table_name_41 WHERE polling_institute = "euroteste/jn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 September 11, 1983? ### Context: CREATE TABLE table_name_49 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_49 WHERE date = "september 11, 1983"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did the w 20-19 happen? ### Context: CREATE TABLE table_name_72 (date VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_72 WHERE result = "w 20-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 was the average total for the player from the United States, who won in 1978? ### Context: CREATE TABLE table_name_73 (total INTEGER, country VARCHAR, year_s__won VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_73 WHERE country = "united states" AND year_s__won = "1978"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 power for the Spirit R (Type B)? ### Context: CREATE TABLE table_250230_2 (power VARCHAR, model VARCHAR) ### Response: ### Response: SELECT power FROM table_250230_2 WHERE model = "Spirit R (Type B)"</s>