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: Designation of pc800 has which highest Bus width (bits)? ### Context: CREATE TABLE table_name_51 (bus_width__bits_ INTEGER, designation VARCHAR) ### Response: ### Response: SELECT MAX(bus_width__bits_) FROM table_name_51 WHERE designation = "pc800"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 origin of Nike Fossae? ### Context: CREATE TABLE table_16799784_11 (name VARCHAR) ### Response: ### Response: SELECT name AS origin FROM table_16799784_11 WHERE name = "Nike Fossae"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which 1995 has a 1993 of 3r? ### Context: CREATE TABLE table_name_86 (Id VARCHAR) ### Response: ### Response: SELECT 1995 FROM table_name_86 WHERE 1993 = "3r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the To Par of the player with a t8 Finish? ### Context: CREATE TABLE table_name_32 (to_par VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_32 WHERE finish = "t8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Apogee was on 1959-02-20? ### Context: CREATE TABLE table_name_5 (apogee VARCHAR, date VARCHAR) ### Response: ### Response: SELECT apogee FROM table_name_5 WHERE date = "1959-02-20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the game against Minnesota? ### Context: CREATE TABLE table_name_69 (score VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_69 WHERE opponent = "minnesota"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What rank is Takatōriki? ### Context: CREATE TABLE table_name_53 (highest_rank VARCHAR, name VARCHAR) ### Response: ### Response: SELECT highest_rank FROM table_name_53 WHERE name = "takatōriki"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 years have a displacement of 1816cc? ### Context: CREATE TABLE table_name_44 (years VARCHAR, displacement VARCHAR) ### Response: ### Response: SELECT years FROM table_name_44 WHERE displacement = "1816cc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 driver for the team whose primary sponsor is Quicken Loans / Haas Automation? ### Context: CREATE TABLE table_1266602_1 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR) ### Response: ### Response: SELECT driver_s_ FROM table_1266602_1 WHERE primary_sponsor_s_ = "Quicken Loans / Haas Automation"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Set 2, when Score is 3-0, when Date is May 11, and when Set 1 is 25-20? ### Context: CREATE TABLE table_name_73 (set_2 VARCHAR, set_1 VARCHAR, score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT set_2 FROM table_name_73 WHERE score = "3-0" AND date = "may 11" AND set_1 = "25-20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which team did Tyson Chandler (7) have high rebounds for? ### Context: CREATE TABLE table_name_10 (team VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT team FROM table_name_10 WHERE high_rebounds = "tyson chandler (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 first year that the Favorite Male Replacement category had Ben Vereen as a nominee? ### Context: CREATE TABLE table_name_48 (year INTEGER, category VARCHAR, nominee VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_48 WHERE category = "favorite male replacement" AND nominee = "ben vereen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Score, when Partnering is "Alexander Waske", and when Opponents In The Final is "Rafael Nadal Bartolomé Salvá-Vidal"? ### Context: CREATE TABLE table_name_26 (score VARCHAR, partnering VARCHAR, opponents_in_the_final VARCHAR) ### Response: ### Response: SELECT score FROM table_name_26 WHERE partnering = "alexander waske" AND opponents_in_the_final = "rafael nadal bartolomé salvá-vidal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Type was rowexit what was the Category? ### Context: CREATE TABLE table_name_88 (category VARCHAR, type VARCHAR) ### Response: ### Response: SELECT category FROM table_name_88 WHERE type = "rowexit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 represent province for the contestant whose hometown is Woerden? ### Context: CREATE TABLE table_27946889_2 (represent_province VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT represent_province FROM table_27946889_2 WHERE hometown = "Woerden"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Opponent of at new york giants had what venue? ### Context: CREATE TABLE table_name_36 (venue VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_36 WHERE opponent = "at 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: How many owners temporarily do not have any dogs? ### Context: CREATE TABLE Dogs (owner_id VARCHAR); CREATE TABLE Owners (owner_id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Owners WHERE NOT owner_id IN (SELECT owner_id FROM Dogs)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position(s) does the player from seton hall play? ### Context: CREATE TABLE table_16494599_4 (position VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT position FROM table_16494599_4 WHERE school_club_team = "Seton Hall"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 leading scorer of the game on 20 February 2008? ### Context: CREATE TABLE table_name_44 (leading_scorer VARCHAR, date VARCHAR) ### Response: ### Response: SELECT leading_scorer FROM table_name_44 WHERE date = "20 february 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: WHich Tournament has a Finalist of marat safin (12)? ### Context: CREATE TABLE table_name_47 (tournament VARCHAR, finalist VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_47 WHERE finalist = "marat safin (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: Tell me the pick for canada centre ### Context: CREATE TABLE table_name_74 (pick VARCHAR, position VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_74 WHERE position = "centre" AND nationality = "canada"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 weight in kg when the horse was Alcopop? ### Context: CREATE TABLE table_24915874_1 (weight__kg_ VARCHAR, horse VARCHAR) ### Response: ### Response: SELECT weight__kg_ FROM table_24915874_1 WHERE horse = "Alcopop"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 position with the total number less than 1? ### Context: CREATE TABLE table_name_1 (position VARCHAR, lost INTEGER) ### Response: ### Response: SELECT COUNT(position) FROM table_name_1 WHERE lost < 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 Mountain Pass with a 21 Rank? ### Context: CREATE TABLE table_name_87 (mountain_pass VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT mountain_pass FROM table_name_87 WHERE rank = 21</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result when then opponents conference was Mac (east)? ### Context: CREATE TABLE table_28418916_3 (result VARCHAR, opponents_conference VARCHAR) ### Response: ### Response: SELECT result FROM table_28418916_3 WHERE opponents_conference = "MAC (East)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 TDP for the 7130N model? ### Context: CREATE TABLE table_269920_3 (tdp__w_ INTEGER, model VARCHAR) ### Response: ### Response: SELECT MIN(tdp__w_) FROM table_269920_3 WHERE model = "7130N"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Years have an Iron Man Award of kyal horsley? ### Context: CREATE TABLE table_name_37 (year VARCHAR, iron_man_award VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_37 WHERE iron_man_award = "kyal horsley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 doubles W-L for player of laurynas grigelis ### Context: CREATE TABLE table_name_91 (doubles_w_l VARCHAR, player VARCHAR) ### Response: ### Response: SELECT doubles_w_l FROM table_name_91 WHERE player = "laurynas grigelis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the status of the community that has an area larger than 5.2 sq km, and a Census Ranking of 2,531 of 5,008? ### Context: CREATE TABLE table_name_60 (status VARCHAR, area_km_2 VARCHAR, census_ranking VARCHAR) ### Response: ### Response: SELECT status FROM table_name_60 WHERE area_km_2 > 5.2 AND census_ranking = "2,531 of 5,008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most recent statue that was made out of solid granite completed? ### Context: CREATE TABLE table_name_89 (completed INTEGER, material VARCHAR) ### Response: ### Response: SELECT MAX(completed) FROM table_name_89 WHERE material = "solid granite"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 fewest episodes with the Romaji title Regatta~Kimi to Ita Eien~? ### Context: CREATE TABLE table_name_40 (episodes INTEGER, romaji_title VARCHAR) ### Response: ### Response: SELECT MIN(episodes) FROM table_name_40 WHERE romaji_title = "regatta~kimi to ita eien~"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For each city, return the highest latitude among its stations. ### Context: CREATE TABLE station (city VARCHAR, lat INTEGER) ### Response: ### Response: SELECT city, MAX(lat) FROM station GROUP BY 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: At census ranking 1,184 of 5,008, what was the minimum population? ### Context: CREATE TABLE table_170961_2 (population INTEGER, census_ranking VARCHAR) ### Response: ### Response: SELECT MIN(population) FROM table_170961_2 WHERE census_ranking = "1,184 of 5,008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 position of the player of height ft0in (m) ### Context: CREATE TABLE table_20898602_1 (position VARCHAR, height VARCHAR) ### Response: ### Response: SELECT position FROM table_20898602_1 WHERE height = "ft0in (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: What college/junior/club team is a left wing from Canada? ### Context: CREATE TABLE table_name_94 (college_junior_club_team VARCHAR, position VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT college_junior_club_team FROM table_name_94 WHERE position = "left wing" AND nationality = "canada"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 draws have an average of 14 wins? ### Context: CREATE TABLE table_name_89 (draws INTEGER, wins VARCHAR) ### Response: ### Response: SELECT AVG(draws) FROM table_name_89 WHERE wins = 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 year that has edmonton, canada as the venue with a weight class (kg) greater than 100? ### Context: CREATE TABLE table_name_11 (year INTEGER, venue VARCHAR, weight_class__kg_ VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_11 WHERE venue = "edmonton, canada" AND weight_class__kg_ > 100</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 start in a year after 2008? ### Context: CREATE TABLE table_name_62 (start INTEGER, year INTEGER) ### Response: ### Response: SELECT MIN(start) FROM table_name_62 WHERE year > 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: Which Fuel Propulsion has Numbers (Quantity Ordered) of 7124-7156 (33 buses)? ### Context: CREATE TABLE table_name_34 (fuel_propulsion VARCHAR, numbers__quantity_ordered_ VARCHAR) ### Response: ### Response: SELECT fuel_propulsion FROM table_name_34 WHERE numbers__quantity_ordered_ = "7124-7156 (33 buses)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 after debt has receipts of $379,794? ### Context: CREATE TABLE table_name_90 (after_debt VARCHAR, total_receipts VARCHAR) ### Response: ### Response: SELECT after_debt FROM table_name_90 WHERE total_receipts = "$379,794"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date did the Pistons play @ toronto? ### Context: CREATE TABLE table_22822559_4 (date VARCHAR, team VARCHAR) ### Response: ### Response: SELECT date FROM table_22822559_4 WHERE team = "@ Toronto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 original air date where family/families is the ryder family and the schwartz family ### Context: CREATE TABLE table_19897294_9 (original_air_date VARCHAR, family_families VARCHAR) ### Response: ### Response: SELECT COUNT(original_air_date) FROM table_19897294_9 WHERE family_families = "The Ryder Family and The Schwartz Family"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 WYSIWYG Editor has a User-selectable themes of yes, and an Unread message tracking of session, and an Image attachment of plugin? ### Context: CREATE TABLE table_name_79 (wysiwyg_editor VARCHAR, image_attachment VARCHAR, user_selectable_themes VARCHAR, unread_message_tracking VARCHAR) ### Response: ### Response: SELECT wysiwyg_editor FROM table_name_79 WHERE user_selectable_themes = "yes" AND unread_message_tracking = "session" AND image_attachment = "plugin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What 2012 amount of earnings corresponds with less than 28 tournaments played? ### Context: CREATE TABLE table_name_59 (earnings___$__ VARCHAR, tournaments_played VARCHAR, year VARCHAR) ### Response: ### Response: SELECT earnings___$__ FROM table_name_59 WHERE tournaments_played < 28 AND year = "2012"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the names of phones that are not on any market. ### Context: CREATE TABLE phone (Name VARCHAR, Phone_id VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Name VARCHAR, Phone_id VARCHAR, Phone_ID VARCHAR) ### Response: ### Response: SELECT Name FROM phone WHERE NOT Phone_id IN (SELECT Phone_ID FROM phone_market)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 person who had $126,796 WSOP earnings had how many WSOP cashes? ### Context: CREATE TABLE table_23696862_6 (wsop_cashes VARCHAR, wsop_earnings VARCHAR) ### Response: ### Response: SELECT wsop_cashes FROM table_23696862_6 WHERE wsop_earnings = "$126,796"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 second team that has first team of Africa sports? ### Context: CREATE TABLE table_name_25 (team_2 VARCHAR, team_1 VARCHAR) ### Response: ### Response: SELECT team_2 FROM table_name_25 WHERE team_1 = "africa sports"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 playoff result in 2002? ### Context: CREATE TABLE table_1243601_1 (playoffs VARCHAR, year VARCHAR) ### Response: ### Response: SELECT playoffs FROM table_1243601_1 WHERE year = "2002"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who are the rowers ranked greater than 3 from Finland? ### Context: CREATE TABLE table_name_42 (rowers VARCHAR, rank VARCHAR, country VARCHAR) ### Response: ### Response: SELECT rowers FROM table_name_42 WHERE rank > 3 AND country = "finland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcomes were there in the elections in California 38? ### Context: CREATE TABLE table_1341663_6 (result VARCHAR, district VARCHAR) ### Response: ### Response: SELECT COUNT(result) FROM table_1341663_6 WHERE district = "California 38"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position does Hedo Türkoğlu play? ### Context: CREATE TABLE table_name_93 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_name_93 WHERE player = "hedo türkoğlu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds? ### Context: CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER); CREATE TABLE drivers (driverid VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT DISTINCT T1.driverid, T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 License has a System of amiga, and a Name of pocketuae? ### Context: CREATE TABLE table_name_83 (license VARCHAR, system VARCHAR, name VARCHAR) ### Response: ### Response: SELECT license FROM table_name_83 WHERE system = "amiga" AND name = "pocketuae"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 which dates did the episodes directed by TR Babu Subramaniam air? ### Context: CREATE TABLE table_17355820_1 (original_air_date VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_17355820_1 WHERE directed_by = "TR Babu Subramaniam"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What 2nd leg has rk gold club kozina as team 1? ### Context: CREATE TABLE table_name_23 (team_1 VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_name_23 WHERE team_1 = "rk gold club kozina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface against monaco ### Context: CREATE TABLE table_22853654_9 (surface VARCHAR, against VARCHAR) ### Response: ### Response: SELECT surface FROM table_22853654_9 WHERE against = "Monaco"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 quantity of the 1b n2 type, which was retired in 1907-12? ### Context: CREATE TABLE table_name_50 (quantity INTEGER, type VARCHAR, retired VARCHAR) ### Response: ### Response: SELECT MIN(quantity) FROM table_name_50 WHERE type = "1b n2" AND retired = "1907-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 are the names of people in ascending alphabetical order? ### Context: CREATE TABLE People (Name VARCHAR) ### Response: ### Response: SELECT Name FROM People ORDER BY Name</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Played has a Team of cerro corá, and Losses larger than 4? ### Context: CREATE TABLE table_name_55 (played INTEGER, team VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT AVG(played) FROM table_name_55 WHERE team = "cerro corá" AND losses > 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 event was part of the World Cross Country championships? ### Context: CREATE TABLE table_name_81 (event VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT event FROM table_name_81 WHERE competition = "world cross country championships"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2? ### Context: CREATE TABLE table_name_93 (university_of_dublin INTEGER, administrative_panel VARCHAR, cultural_and_educational_panel VARCHAR) ### Response: ### Response: SELECT MIN(university_of_dublin) FROM table_name_93 WHERE administrative_panel = 3 AND cultural_and_educational_panel < 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the final score on the February 19, 2012 final? ### Context: CREATE TABLE table_name_46 (score_in_the_final VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score_in_the_final FROM table_name_46 WHERE date = "february 19, 2012"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the country of the airlines whose name starts with 'Orbit'. ### Context: CREATE TABLE airlines (country VARCHAR, name VARCHAR) ### Response: ### Response: SELECT country FROM airlines WHERE name LIKE 'Orbit%'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average Points that has the Attendance of 3,806? ### Context: CREATE TABLE table_name_42 (points INTEGER, attendance VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_42 WHERE attendance = 3 OFFSET 806</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Ring Name, when Current Rank is E0 Maegashira 9 West? ### Context: CREATE TABLE table_name_48 (ring_name VARCHAR, current_rank VARCHAR) ### Response: ### Response: SELECT ring_name FROM table_name_48 WHERE current_rank = "e0 maegashira 9 west"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Score, when To Par is greater than 7, when Place is "T4", and when Player is "Bob Rosburg"? ### Context: CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, to_par VARCHAR, place VARCHAR) ### Response: ### Response: SELECT score FROM table_name_38 WHERE to_par > 7 AND place = "t4" AND player = "bob rosburg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date for game 9 ### Context: CREATE TABLE table_16710829_2 (date VARCHAR, game VARCHAR) ### Response: ### Response: SELECT date FROM table_16710829_2 WHERE game = 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: Find the average and minimum price of the rooms in different decor. ### Context: CREATE TABLE Rooms (decor VARCHAR, basePrice INTEGER) ### Response: ### Response: SELECT decor, AVG(basePrice), MIN(basePrice) FROM Rooms GROUP BY decor</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What league is from the United States and a round smaller than 12. ### Context: CREATE TABLE table_name_44 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR) ### Response: ### Response: SELECT college_junior_club_team__league_ FROM table_name_44 WHERE nationality = "united states" AND round < 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: Name the most minutes and starts being 12 ### Context: CREATE TABLE table_24477075_1 (minutes INTEGER, starts VARCHAR) ### Response: ### Response: SELECT MAX(minutes) FROM table_24477075_1 WHERE starts = 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: Name the joined for the wolfpack women's nickname ### Context: CREATE TABLE table_10577579_3 (joined VARCHAR, women’s_nickname VARCHAR) ### Response: ### Response: SELECT joined FROM table_10577579_3 WHERE women’s_nickname = "Wolfpack"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 我等的人会是谁? ### Context: CREATE TABLE table_name_78 (score VARCHAR, song VARCHAR) ### Response: ### Response: SELECT score FROM table_name_78 WHERE song = "我等的人会是谁"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 official website which has dish of • and callsign of kvtv ### Context: CREATE TABLE table_name_18 (official_website VARCHAR, dish VARCHAR, callsign VARCHAR) ### Response: ### Response: SELECT official_website FROM table_name_18 WHERE dish = "•" AND callsign = "kvtv"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009? ### Context: CREATE TABLE table_240936_2 (region_1__can_ VARCHAR, region_2__uk_ VARCHAR) ### Response: ### Response: SELECT region_1__can_ FROM table_240936_2 WHERE region_2__uk_ = "May 18, 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: Who is the Player with a Score of 70-72=142? Question 3 ### Context: CREATE TABLE table_name_20 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_20 WHERE score = 70 - 72 = 142</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Name, when Length Meters is greater than 66.4, and when Km From Kingston is 138.8? ### Context: CREATE TABLE table_name_54 (name VARCHAR, length_meters VARCHAR, km_from_kingston VARCHAR) ### Response: ### Response: SELECT name FROM table_name_54 WHERE length_meters > 66.4 AND km_from_kingston = 138.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 average pjehun measured by female enrollment? ### Context: CREATE TABLE table_name_10 (pujehun INTEGER, measure VARCHAR) ### Response: ### Response: SELECT AVG(pujehun) FROM table_name_10 WHERE measure = "female enrollment"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 pick number of the player from Toronto Argonauts? ### Context: CREATE TABLE table_10812938_5 (pick__number INTEGER, cfl_team VARCHAR) ### Response: ### Response: SELECT MIN(pick__number) FROM table_10812938_5 WHERE cfl_team = "Toronto Argonauts"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Valentino rossi have when riding a vehicle manufactured by yamaha? ### Context: CREATE TABLE table_name_77 (laps VARCHAR, manufacturer VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_77 WHERE manufacturer = "yamaha" AND rider = "valentino rossi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the total number of status for eldon ### Context: CREATE TABLE table_171361_2 (status VARCHAR, official_name VARCHAR) ### Response: ### Response: SELECT COUNT(status) FROM table_171361_2 WHERE official_name = "Eldon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Margin of victory on oct 5, 1997? ### Context: CREATE TABLE table_name_21 (margin_of_victory VARCHAR, date VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_21 WHERE date = "oct 5, 1997"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which ICAO has a Province of heilongjiang, and a IATA of jmu? ### Context: CREATE TABLE table_name_34 (icao VARCHAR, province VARCHAR, iata VARCHAR) ### Response: ### Response: SELECT icao FROM table_name_34 WHERE province = "heilongjiang" AND iata = "jmu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 which class would the vessel Hyundai Tenacity be placed? ### Context: CREATE TABLE table_name_77 (class VARCHAR, vessel_name VARCHAR) ### Response: ### Response: SELECT class FROM table_name_77 WHERE vessel_name = "hyundai tenacity"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 label's format LP and catalog of CH-9192? ### Context: CREATE TABLE table_name_76 (label VARCHAR, format VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT label FROM table_name_76 WHERE format = "lp" AND catalog = "ch-9192"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the Chicago Bears beat the Green bay Packers 31-20? ### Context: CREATE TABLE table_name_32 (date VARCHAR, loser VARCHAR, location VARCHAR) ### Response: ### Response: SELECT date FROM table_name_32 WHERE loser = "green bay packers" AND location = "green bay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Sr. number of Banikhet Dalhouse Khajiar? ### Context: CREATE TABLE table_26036389_1 (sr_no INTEGER, name_of_road VARCHAR) ### Response: ### Response: SELECT MAX(sr_no) FROM table_26036389_1 WHERE name_of_road = "Banikhet Dalhouse Khajiar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 against on 08/12/1992? ### Context: CREATE TABLE table_name_82 (against INTEGER, date VARCHAR) ### Response: ### Response: SELECT SUM(against) FROM table_name_82 WHERE date = "08/12/1992"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the broadcast date where Jason's team is Rhod Gilbert and Shappi Khorsandi? ### Context: CREATE TABLE table_23292220_8 (first_broadcast VARCHAR, jasons_team VARCHAR) ### Response: ### Response: SELECT first_broadcast FROM table_23292220_8 WHERE jasons_team = "Rhod Gilbert and Shappi Khorsandi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 people attended round f? ### Context: CREATE TABLE table_name_72 (attendance VARCHAR, round VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_72 WHERE round = "f"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position for fis points being 3495 ### Context: CREATE TABLE table_30073089_2 (position VARCHAR, fis_points VARCHAR) ### Response: ### Response: SELECT position FROM table_30073089_2 WHERE fis_points = 3495</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 round of the tight end position player? ### Context: CREATE TABLE table_name_66 (round VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_66 WHERE position = "tight end"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver that one for the winning tpc team qi-meritus that has a round more than 8? ### Context: CREATE TABLE table_name_76 (winning_driver VARCHAR, winning_team VARCHAR, round VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_name_76 WHERE winning_team = "tpc team qi-meritus" AND round > 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 average Attendance for the game on November 1, 1981? ### Context: CREATE TABLE table_name_5 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(attendance) FROM table_name_5 WHERE date = "november 1, 1981"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the race on 23 october? ### Context: CREATE TABLE table_name_81 (race VARCHAR, date VARCHAR) ### Response: ### Response: SELECT race FROM table_name_81 WHERE date = "23 october"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the spacecraft is the Shenzhou 7 Eva 1, what is the start (utc) date and time? ### Context: CREATE TABLE table_22385461_9 (start___utc__ VARCHAR, spacecraft VARCHAR) ### Response: ### Response: SELECT start___utc__ FROM table_22385461_9 WHERE spacecraft = "Shenzhou 7 EVA 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 largest amount of assists that Nicole Levandusky made? ### Context: CREATE TABLE table_19722664_5 (assists INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(assists) FROM table_19722664_5 WHERE player = "Nicole Levandusky"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the score was 95-114? ### Context: CREATE TABLE table_name_11 (opponent VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_11 WHERE score = "95-114"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 location of the game with a score of 113-106? ### Context: CREATE TABLE table_name_13 (location_attendance VARCHAR, score VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_name_13 WHERE score = "113-106"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 against a team with a 9-19-6 record against the Islanders? ### Context: CREATE TABLE table_27539535_5 (december VARCHAR, record VARCHAR) ### Response: ### Response: SELECT COUNT(december) FROM table_27539535_5 WHERE record = "9-19-6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which model number has socket μpga2 bga2 mmc-2? ### Context: CREATE TABLE table_name_46 (model_number VARCHAR, socket VARCHAR) ### Response: ### Response: SELECT model_number FROM table_name_46 WHERE socket = "μpga2 bga2 mmc-2"</s>