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: How many directors got 6.79 million U.S. viewers from their episodes? ### Context: CREATE TABLE table_28760804_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT COUNT(directed_by) FROM table_28760804_1 WHERE us_viewers__million_ = "6.79"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What lane had a heat after 12, a rank of 38 and a time larger than 22.67? ### Context: CREATE TABLE table_name_59 (lane INTEGER, time VARCHAR, heat VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(lane) FROM table_name_59 WHERE heat > 12 AND rank = 38 AND time > 22.67</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Grid did Alain Prost drive on? ### Context: CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR) ### Response: ### Response: SELECT SUM(grid) FROM table_name_39 WHERE driver = "alain prost"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: with api level of 18, what's the code name? ### Context: CREATE TABLE table_name_71 (code_name VARCHAR, api_level VARCHAR) ### Response: ### Response: SELECT code_name FROM table_name_71 WHERE api_level = 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the current version of the project64 with gpl v2 license? ### Context: CREATE TABLE table_name_38 (current_version VARCHAR, license VARCHAR, name VARCHAR) ### Response: ### Response: SELECT current_version FROM table_name_38 WHERE license = "gpl v2" AND name = "project64"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 steals for the player who had 121 rebounds? ### Context: CREATE TABLE table_22824302_3 (steals INTEGER, rebounds VARCHAR) ### Response: ### Response: SELECT MIN(steals) FROM table_22824302_3 WHERE rebounds = 121</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what year did enrique alciati make a statue ### Context: CREATE TABLE table_name_51 (year_erected VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT year_erected FROM table_name_51 WHERE artist = "enrique alciati"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 millwall the home team? ### Context: CREATE TABLE table_name_11 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_11 WHERE home_team = "millwall"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 part 4 when part 1 is "lesan"? ### Context: CREATE TABLE table_1745843_8 (part_4 VARCHAR, part_1 VARCHAR) ### Response: ### Response: SELECT part_4 FROM table_1745843_8 WHERE part_1 = "lesan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 author for 6y/ae ### Context: CREATE TABLE table_1620397_2 (author VARCHAR, series_sorted VARCHAR) ### Response: ### Response: SELECT author FROM table_1620397_2 WHERE series_sorted = "6Y/AE"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Class has the Identifier of CBFX-FM-6? ### Context: CREATE TABLE table_name_21 (class VARCHAR, identifier VARCHAR) ### Response: ### Response: SELECT class FROM table_name_21 WHERE identifier = "cbfx-fm-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: Can you tell me the High points that has the Date of january 31? ### Context: CREATE TABLE table_name_32 (high_points VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_points FROM table_name_32 WHERE date = "january 31"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Pocona Municipality (%) is the lowest one that has a Puerto Villarroel Municipality (%) smaller than 14.6, and a Chimoré Municipality (%) of 5.1, and an Entre Ríos Municipality (%) smaller than 0.9? ### Context: CREATE TABLE table_name_61 (pocona_municipality___percentage_ INTEGER, entre_ríos_municipality___percentage_ VARCHAR, puerto_villarroel_municipality___percentage_ VARCHAR, chimoré_municipality___percentage_ VARCHAR) ### Response: ### Response: SELECT MIN(pocona_municipality___percentage_) FROM table_name_61 WHERE puerto_villarroel_municipality___percentage_ < 14.6 AND chimoré_municipality___percentage_ = 5.1 AND entre_ríos_municipality___percentage_ < 0.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: For how many series were there 11.84 million watchers? ### Context: CREATE TABLE table_28561455_1 (no_in_series VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT no_in_series FROM table_28561455_1 WHERE us_viewers__million_ = "11.84"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the record on November 7? ### Context: CREATE TABLE table_17288869_5 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(record) FROM table_17288869_5 WHERE date = "November 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 highest number of players during 1r year with a clay set and more than 4 aces? ### Context: CREATE TABLE table_name_63 (player INTEGER, year VARCHAR, sets VARCHAR, aces VARCHAR) ### Response: ### Response: SELECT MAX(player) FROM table_name_63 WHERE year = "1r" AND sets = "clay" AND NOT aces > 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many average laps for Alex Tagliani with more than 17 points? ### Context: CREATE TABLE table_name_54 (laps INTEGER, driver VARCHAR, points VARCHAR) ### Response: ### Response: SELECT AVG(laps) FROM table_name_54 WHERE driver = "alex tagliani" AND points > 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Score has an Event of constructionjobs.com classic? ### Context: CREATE TABLE table_name_74 (score VARCHAR, event VARCHAR) ### Response: ### Response: SELECT score FROM table_name_74 WHERE event = "constructionjobs.com classic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What nationality has jon koncak as the player? ### Context: CREATE TABLE table_name_70 (nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_70 WHERE player = "jon koncak"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the venue that is located in zhodino? ### Context: CREATE TABLE table_name_84 (venue VARCHAR, location VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_84 WHERE location = "zhodino"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Name has a Time of 01:56:52? ### Context: CREATE TABLE table_name_46 (name VARCHAR, time VARCHAR) ### Response: ### Response: SELECT name FROM table_name_46 WHERE time = "01:56:52"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 laps when manufacturer of gilera has time of 40:19.910 and grid is larger than 3? ### Context: CREATE TABLE table_name_86 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time VARCHAR) ### Response: ### Response: SELECT SUM(laps) FROM table_name_86 WHERE manufacturer = "gilera" AND time = "40:19.910" AND grid > 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: When the incumbent was William Elliott, what was the result? ### Context: CREATE TABLE table_name_75 (result VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_75 WHERE incumbent = "william elliott"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 have an Order of 1006, and Goals larger than 192? ### Context: CREATE TABLE table_name_94 (games INTEGER, order VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT SUM(games) FROM table_name_94 WHERE order = 1006 AND goals > 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: The score in the final is 2–6, 6–2, 6–0, on what surface? ### Context: CREATE TABLE table_26202847_6 (surface VARCHAR, score_in_the_final VARCHAR) ### Response: ### Response: SELECT surface FROM table_26202847_6 WHERE score_in_the_final = "2–6, 6–2, 6–0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament did Pemra Özgen play against julia kimmelmann in the finals? ### Context: CREATE TABLE table_name_54 (tournament VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_54 WHERE opponent_in_the_final = "julia kimmelmann"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 security forces for 2009 ### Context: CREATE TABLE table_name_82 (security_forces VARCHAR, year VARCHAR) ### Response: ### Response: SELECT security_forces FROM table_name_82 WHERE year = "2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many races are there? ### Context: CREATE TABLE race (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM race</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score has Opponent of mariners and a Record of 24–25? ### Context: CREATE TABLE table_name_91 (score VARCHAR, opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_91 WHERE opponent = "mariners" AND record = "24–25"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the abbreviation for the month whose transcription is Kumphaphan? ### Context: CREATE TABLE table_20354_5 (abbr VARCHAR, transcription VARCHAR) ### Response: ### Response: SELECT abbr FROM table_20354_5 WHERE transcription = "kumphaphan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 population fo the township with a Latitude of 48.853051, and a Water (sqmi) smaller than 0.9590000000000001? ### Context: CREATE TABLE table_name_85 (pop__2010_ INTEGER, latitude VARCHAR, water__sqmi_ VARCHAR) ### Response: ### Response: SELECT MAX(pop__2010_) FROM table_name_85 WHERE latitude = 48.853051 AND water__sqmi_ < 0.9590000000000001</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team was the away team for the game with 916 in attendance? ### Context: CREATE TABLE table_name_45 (away VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT away FROM table_name_45 WHERE attendance = 916</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What state had November 30, 1962 as the date of the successors formal installation? ### Context: CREATE TABLE table_1802522_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR) ### Response: ### Response: SELECT state__class_ FROM table_1802522_3 WHERE date_of_successors_formal_installation = "November 30, 1962"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 received the bronze medal in the 2000 Sydney games? ### Context: CREATE TABLE table_name_95 (name VARCHAR, medal VARCHAR, games VARCHAR) ### Response: ### Response: SELECT name FROM table_name_95 WHERE medal = "bronze" AND games = "2000 sydney"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drum module td-5 what are the tom-tom pads ### Context: CREATE TABLE table_2889300_6 (tom_tom_pads VARCHAR, drum_module VARCHAR) ### Response: ### Response: SELECT tom_tom_pads FROM table_2889300_6 WHERE drum_module = "TD-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: How many locations were recorded when the opponent Columbus Blue Jackets? ### Context: CREATE TABLE table_17360840_9 (location VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT COUNT(location) FROM table_17360840_9 WHERE opponent = "Columbus Blue Jackets"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week has Game site of Candlestick Park? ### Context: CREATE TABLE table_name_32 (week VARCHAR, game_site VARCHAR) ### Response: ### Response: SELECT week FROM table_name_32 WHERE game_site = "candlestick park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the listed Tonnage that has U-boats destroyed (KuK) of 2 and Ships sunk (Pola) of (not recorded)? ### Context: CREATE TABLE table_name_54 (tonnage VARCHAR, u_boats_destroyed__kuk_ VARCHAR, ships_sunk__pola_ VARCHAR) ### Response: ### Response: SELECT tonnage FROM table_name_54 WHERE u_boats_destroyed__kuk_ = "2" AND ships_sunk__pola_ = "(not recorded)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mattia Pasini ride? ### Context: CREATE TABLE table_name_16 (laps INTEGER, rider VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_16 WHERE rider = "mattia pasini"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 March 15 game, what was the team's record? ### Context: CREATE TABLE table_17340355_9 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_17340355_9 WHERE date = "March 15"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the market for KLRJ? ### Context: CREATE TABLE table_2709_4 (target_city__market VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT target_city__market FROM table_2709_4 WHERE call_sign = "KLRJ"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 name of each student enrolled in class ACCT-211? ### Context: CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR) ### Response: ### Response: SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 general classification for steven kruijswijk ### Context: CREATE TABLE table_29077342_19 (general_classification VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT general_classification FROM table_29077342_19 WHERE winner = "Steven Kruijswijk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the leader names and locations of colleges. ### Context: CREATE TABLE college (Leader_Name VARCHAR, College_Location VARCHAR) ### Response: ### Response: SELECT Leader_Name, College_Location FROM college</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the radio commentator when the final television commentator was John Dunn? ### Context: CREATE TABLE table_17766232_7 (radio_commentator VARCHAR, final_television_commentator VARCHAR) ### Response: ### Response: SELECT radio_commentator FROM table_17766232_7 WHERE final_television_commentator = "John Dunn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the Total (kg) of a Snatch of 132.5? ### Context: CREATE TABLE table_name_86 (total__kg_ VARCHAR, snatch VARCHAR) ### Response: ### Response: SELECT total__kg_ FROM table_name_86 WHERE snatch = 132.5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player Munster from Munster is a fly-half? ### Context: CREATE TABLE table_name_67 (player VARCHAR, position VARCHAR, club_province VARCHAR) ### Response: ### Response: SELECT player FROM table_name_67 WHERE position = "fly-half" AND club_province = "munster"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 national cup statistics when the Championship is 21 app / 6 goals? ### Context: CREATE TABLE table_19333752_1 (national_cup VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT national_cup FROM table_19333752_1 WHERE championship = "21 app / 6 goals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Give me a list of all spanish officer titles that could receive recognition as group captain in english ### Context: CREATE TABLE table_1015521_2 (rank_in_english VARCHAR, commonwealth_equivalent VARCHAR) ### Response: ### Response: SELECT rank_in_english FROM table_1015521_2 WHERE commonwealth_equivalent = "Group Captain"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 salary and manager number for those employees who is working under a manager. ### Context: CREATE TABLE employees (salary VARCHAR, manager_id VARCHAR) ### Response: ### Response: SELECT salary, manager_id FROM employees WHERE manager_id <> "null"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the record on august 24? ### Context: CREATE TABLE table_name_73 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_73 WHERE date = "august 24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Position of member, and a Nationality of india is what sum of term ending? ### Context: CREATE TABLE table_name_67 (term_ending INTEGER, position VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT SUM(term_ending) FROM table_name_67 WHERE position = "member" AND nationality = "india"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2005 is the date/year how many measurements of attendance are there? ### Context: CREATE TABLE table_21436373_7 (attendance VARCHAR, date_year VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_21436373_7 WHERE date_year = "2005"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I want the date for rockies ### Context: CREATE TABLE table_name_66 (date VARCHAR, team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_66 WHERE team = "rockies"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 is Joseph Lecompte in office in? ### Context: CREATE TABLE table_2668243_8 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_2668243_8 WHERE incumbent = "Joseph Lecompte"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 competition that had a 2-2 result? ### Context: CREATE TABLE table_name_58 (competition VARCHAR, result VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_58 WHERE result = "2-2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Date of Tie no 35 with a Score of 3–2? ### Context: CREATE TABLE table_name_78 (date VARCHAR, score VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT date FROM table_name_78 WHERE score = "3–2" AND tie_no = "35"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the time of 22' 09.44 93.840mph on Tuesday August 24th? ### Context: CREATE TABLE table_26986076_7 (rider VARCHAR, tues_24_aug VARCHAR) ### Response: ### Response: SELECT rider FROM table_26986076_7 WHERE tues_24_aug = "22' 09.44 93.840mph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team score for south melbourne home team ### Context: CREATE TABLE table_name_35 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_35 WHERE home_team = "south melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What outcome has a score of 12-22? ### Context: CREATE TABLE table_name_69 (result VARCHAR, score VARCHAR) ### Response: ### Response: SELECT result FROM table_name_69 WHERE score = "12-22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score on September 1, 1996? ### Context: CREATE TABLE table_name_50 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_50 WHERE date = "september 1, 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: Which round had a winning driver of Uwe Alzen, at the Sepang International circuit? ### Context: CREATE TABLE table_name_80 (round VARCHAR, winning_driver VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT round FROM table_name_80 WHERE winning_driver = "uwe alzen" AND circuit = "sepang international circuit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 L of the tournament? ### Context: CREATE TABLE table_29542147_2 (l INTEGER) ### Response: ### Response: SELECT MAX(l) FROM table_29542147_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: Who did they lose to on may 9? ### Context: CREATE TABLE table_name_83 (loss VARCHAR, date VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_83 WHERE date = "may 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: Where has a Rules of thai boxing, and a Round of n/a, and an Opponent of everton crawford? ### Context: CREATE TABLE table_name_99 (location VARCHAR, opponent VARCHAR, rules VARCHAR, round VARCHAR) ### Response: ### Response: SELECT location FROM table_name_99 WHERE rules = "thai boxing" AND round = "n/a" AND opponent = "everton crawford"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the lowest Pts/game that has the Name of philippa tuttiett, and the Points larger then 6? ### Context: CREATE TABLE table_name_59 (pts_game INTEGER, name VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MIN(pts_game) FROM table_name_59 WHERE name = "philippa tuttiett" AND points > 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the lowest attendance at a game against the St. Louis Cardinals? ### Context: CREATE TABLE table_name_91 (attendance INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_91 WHERE opponent = "st. louis cardinals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of votes for the Party of Labour? ### Context: CREATE TABLE table_name_86 (votes INTEGER, party VARCHAR) ### Response: ### Response: SELECT MIN(votes) FROM table_name_86 WHERE party = "labour"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Date has a Status of second test? ### Context: CREATE TABLE table_name_54 (date VARCHAR, status VARCHAR) ### Response: ### Response: SELECT date FROM table_name_54 WHERE status = "second test"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT TEAM HAD A 28 PICK? ### Context: CREATE TABLE table_name_23 (school_club_team VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_name_23 WHERE pick = "28"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Format has a Catalog of 61298, and a Date of september 1984? ### Context: CREATE TABLE table_name_51 (format VARCHAR, catalog VARCHAR, date VARCHAR) ### Response: ### Response: SELECT format FROM table_name_51 WHERE catalog = 61298 AND date = "september 1984"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank for lane 7 ### Context: CREATE TABLE table_name_69 (rank VARCHAR, lane VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_69 WHERE lane = 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 was the average number of points with bonus pts less than 31 with the rider dennis gavros? ### Context: CREATE TABLE table_name_29 (total_points INTEGER, rider VARCHAR, bonus_pts VARCHAR) ### Response: ### Response: SELECT AVG(total_points) FROM table_name_29 WHERE rider = "dennis gavros" AND bonus_pts < 31</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: for the rank of 8 and lane less than 3 what is the name? ### Context: CREATE TABLE table_name_99 (name VARCHAR, lane VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT name FROM table_name_99 WHERE lane < 3 AND rank = 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 total with a +4 to par? ### Context: CREATE TABLE table_name_63 (total VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT total FROM table_name_63 WHERE to_par = "+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 class City of license of ferrum, virginia? ### Context: CREATE TABLE table_name_83 (class VARCHAR, city_of_license VARCHAR) ### Response: ### Response: SELECT class FROM table_name_83 WHERE city_of_license = "ferrum, virginia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Catalog number for the region of Japan? ### Context: CREATE TABLE table_name_91 (catalog VARCHAR, region VARCHAR) ### Response: ### Response: SELECT catalog FROM table_name_91 WHERE region = "japan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average, when were the transcripts printed? ### Context: CREATE TABLE Transcripts (transcript_date INTEGER) ### Response: ### Response: SELECT AVG(transcript_date) FROM Transcripts</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the attendance was 24,406 who lost? ### Context: CREATE TABLE table_name_8 (loss VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_8 WHERE attendance = "24,406"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year did the finish of 15 happen in? ### Context: CREATE TABLE table_name_16 (year VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT year FROM table_name_16 WHERE finish = "15"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What round was Andre Fluellen drafted as a Defensive Tackle? ### Context: CREATE TABLE table_name_54 (round VARCHAR, position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_54 WHERE position = "defensive tackle" AND player = "andre fluellen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 round of Ed Smith, who had a pick lower than 19? ### Context: CREATE TABLE table_name_29 (round INTEGER, player VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_29 WHERE player = "ed smith" AND pick > 19</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the maximum foot per second speed where time to feet ratio is 22.1 at 55 degrees? ### Context: CREATE TABLE table_16439764_1 (m_v_ft_s INTEGER, time_to_ft__m__at_55°__seconds_ VARCHAR) ### Response: ### Response: SELECT MAX(m_v_ft_s) FROM table_16439764_1 WHERE time_to_ft__m__at_55°__seconds_ = "22.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: GT Force of yes, and a G27 Racing Wheel of 16 involves which driving force ex? ### Context: CREATE TABLE table_name_87 (driving_force_ex VARCHAR, gt_force VARCHAR, g27_racing_wheel VARCHAR) ### Response: ### Response: SELECT driving_force_ex FROM table_name_87 WHERE gt_force = "yes" AND g27_racing_wheel = "16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many fatalities does Italy have? ### Context: CREATE TABLE table_name_50 (fatalities VARCHAR, country VARCHAR) ### Response: ### Response: SELECT fatalities FROM table_name_50 WHERE country = "italy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 air date of TV series with Episode "A Love of a Lifetime"? ### Context: CREATE TABLE TV_series (Air_Date VARCHAR, Episode VARCHAR) ### Response: ### Response: SELECT Air_Date FROM TV_series WHERE Episode = "A Love of a Lifetime"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 movies that get 3 star and 4 star? ### Context: CREATE TABLE Rating (mID VARCHAR, stars VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) ### Response: ### Response: SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 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: When the Home team of carlton played, what was their score? ### Context: CREATE TABLE table_name_93 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_93 WHERE home_team = "carlton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 accession number for rhodopseudomonas palustris ### Context: CREATE TABLE table_27155678_2 (accession_number VARCHAR, genus_species VARCHAR) ### Response: ### Response: SELECT accession_number FROM table_27155678_2 WHERE genus_species = "Rhodopseudomonas palustris"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who was the opponent where the game is 14? ### Context: CREATE TABLE table_27539272_5 (opponent VARCHAR, game VARCHAR) ### Response: ### Response: SELECT opponent FROM table_27539272_5 WHERE game = 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: Show the ids of the employees who don't authorize destruction for any document. ### Context: CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR); CREATE TABLE Employees (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR) ### Response: ### Response: SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 league would you find the player with a comp percentage of 54.0? ### Context: CREATE TABLE table_18686317_1 (leagues VARCHAR, comp__percentage VARCHAR) ### Response: ### Response: SELECT leagues FROM table_18686317_1 WHERE comp__percentage = "54.0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: how many acc football titles have been won by the institution nicknamed tar heels? ### Context: CREATE TABLE table_28744929_1 (acc_football_titles VARCHAR, nickname VARCHAR) ### Response: ### Response: SELECT acc_football_titles FROM table_28744929_1 WHERE nickname = "Tar Heels"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2003 when 1999 is 2.1? ### Context: CREATE TABLE table_27146868_1 (Id VARCHAR) ### Response: ### Response: SELECT 2003 FROM table_27146868_1 WHERE 1999 = "2.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 venue where john zibnack was the runner-up? ### Context: CREATE TABLE table_name_54 (venue VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_54 WHERE runner_up = "john zibnack"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2011 entry for the row with a 2007 entry of 558? ### Context: CREATE TABLE table_name_36 (Id VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_36 WHERE 2007 = "558"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Leland W. Schubert, Free Libertarian ticket, had who listed on the Democratic ticket? ### Context: CREATE TABLE table_name_56 (democratic_ticket VARCHAR, free_libertarian_ticket VARCHAR) ### Response: ### Response: SELECT democratic_ticket FROM table_name_56 WHERE free_libertarian_ticket = "leland w. schubert"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 barrel length for rear sight a2 for factory compensator ### Context: CREATE TABLE table_12834315_4 (barrel_length VARCHAR, rear_sight VARCHAR, muzzle_device VARCHAR) ### Response: ### Response: SELECT barrel_length FROM table_12834315_4 WHERE rear_sight = "A2" AND muzzle_device = "Factory compensator"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city does the student whose last name is "Kim" live in? ### Context: CREATE TABLE Student (city_code VARCHAR, LName VARCHAR) ### Response: ### Response: SELECT city_code FROM Student WHERE LName = "Kim"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which location led to a 10-3 record? ### Context: CREATE TABLE table_name_73 (location VARCHAR, record VARCHAR) ### Response: ### Response: SELECT location FROM table_name_73 WHERE record = "10-3"</s>