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 wins did he have when he made over 2 cuts and had under 2 top 10s? ### Context: CREATE TABLE table_name_37 (wins INTEGER, cuts_made VARCHAR, top_10 VARCHAR) ### Response: ### Response: SELECT AVG(wins) FROM table_name_37 WHERE cuts_made > 2 AND top_10 < 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 LOWEST ROUND FOR CB POSITION? ### Context: CREATE TABLE table_name_56 (round INTEGER, position VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_56 WHERE position = "cb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 amount of gold for more than 16 silver? ### Context: CREATE TABLE table_name_14 (gold INTEGER, silver INTEGER) ### Response: ### Response: SELECT MIN(gold) FROM table_name_14 WHERE silver > 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: Where was South Melbourne played? ### Context: CREATE TABLE table_name_13 (venue VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_13 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: How many escorts does the nation with 6 cruisers have? ### Context: CREATE TABLE table_name_74 (escorts VARCHAR, cruisers VARCHAR) ### Response: ### Response: SELECT escorts FROM table_name_74 WHERE cruisers = "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: How many high schoolers are there? ### Context: CREATE TABLE Highschooler (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Highschooler</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent on Oct. 4? ### Context: CREATE TABLE table_24560733_1 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_24560733_1 WHERE date = "Oct. 4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendence of the game on 26 April 1948 and an away team of Hawthorn? ### Context: CREATE TABLE table_name_12 (crowd VARCHAR, date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT crowd FROM table_name_12 WHERE date = "26 april 1948" AND away_team = "hawthorn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were the director/s of episodes written by Mike Daniels? ### Context: CREATE TABLE table_18274425_1 (directed_by VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_18274425_1 WHERE written_by = "Mike Daniels"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the air date that demo-ed at 1.6/5? ### Context: CREATE TABLE table_name_48 (air_date VARCHAR, demo VARCHAR) ### Response: ### Response: SELECT air_date FROM table_name_48 WHERE demo = "1.6/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: Who was the winner when the iron chef is hiroyuki sakai? ### Context: CREATE TABLE table_23982399_12 (winner VARCHAR, iron_chef VARCHAR) ### Response: ### Response: SELECT winner FROM table_23982399_12 WHERE iron_chef = "Hiroyuki Sakai"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high points for score being l 92–100 (ot) ### Context: CREATE TABLE table_17102076_5 (high_points VARCHAR, score VARCHAR) ### Response: ### Response: SELECT high_points FROM table_17102076_5 WHERE score = "L 92–100 (OT)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Outcome when All England Open is the Opponent in the final? ### Context: CREATE TABLE table_name_67 (outcome VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_67 WHERE opponent_in_the_final = "all england open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 original air date of the episode directed by Ben Jones and written by Steven Melching? ### Context: CREATE TABLE table_20360535_4 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_20360535_4 WHERE directed_by = "Ben Jones" AND written_by = "Steven Melching"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 French translation for the English word "orange"? ### Context: CREATE TABLE table_2077192_2 (french VARCHAR, english VARCHAR) ### Response: ### Response: SELECT french FROM table_2077192_2 WHERE english = "orange"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is listed as the highest Gold that also has a Silver that's smaller than 1, and has a Total that's smaller than 0? ### Context: CREATE TABLE table_name_23 (gold INTEGER, silver VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(gold) FROM table_name_23 WHERE silver < 1 AND total < 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: Find the last names of teachers who are not involved in any detention. ### Context: CREATE TABLE Teachers (last_name VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR); CREATE TABLE Detention (teacher_id VARCHAR) ### Response: ### Response: SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 segment d for bowling balls ### Context: CREATE TABLE table_15187735_13 (segment_d VARCHAR, segment_a VARCHAR) ### Response: ### Response: SELECT segment_d FROM table_15187735_13 WHERE segment_a = "Bowling Balls"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 start of the construction of the unit that's been in commercial operation since 04.03.1987? ### Context: CREATE TABLE table_12983929_1 (construction_start VARCHAR, commercial_operation VARCHAR) ### Response: ### Response: SELECT construction_start FROM table_12983929_1 WHERE commercial_operation = "04.03.1987"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponents for partner of yvonne meusburger ### Context: CREATE TABLE table_name_21 (opponents VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT opponents FROM table_name_21 WHERE partner = "yvonne meusburger"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number of cuts made in the Top 25 smaller than 5? ### Context: CREATE TABLE table_name_63 (cuts_made INTEGER, top_25 INTEGER) ### Response: ### Response: SELECT AVG(cuts_made) FROM table_name_63 WHERE top_25 < 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: Name the production code # for episode 109 ### Context: CREATE TABLE table_2342078_6 (production_code__number VARCHAR, episode__number VARCHAR) ### Response: ### Response: SELECT COUNT(production_code__number) FROM table_2342078_6 WHERE episode__number = 109</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tries against with lost being 11 ### Context: CREATE TABLE table_14058433_4 (tries_against VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT COUNT(tries_against) FROM table_14058433_4 WHERE lost = "11"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games did team iurbentia bilbao have with rebounds higher than 212? ### Context: CREATE TABLE table_name_27 (games INTEGER, team VARCHAR, rebounds VARCHAR) ### Response: ### Response: SELECT SUM(games) FROM table_name_27 WHERE team = "iurbentia bilbao" AND rebounds > 212</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what year saw a total distance of 1,870.23 km? ### Context: CREATE TABLE table_name_52 (year VARCHAR, distance VARCHAR) ### Response: ### Response: SELECT year FROM table_name_52 WHERE distance = "1,870.23 km"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Yards of 45, and a Date of november 8, 1971 is what kicker? ### Context: CREATE TABLE table_name_92 (kicker VARCHAR, yards VARCHAR, date VARCHAR) ### Response: ### Response: SELECT kicker FROM table_name_92 WHERE yards = 45 AND date = "november 8, 1971"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode whose number in the series is 111. ### Context: CREATE TABLE table_11562149_1 (no_in_season VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT no_in_season FROM table_11562149_1 WHERE no_in_series = "111"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who has exactly 342 spikes? ### Context: CREATE TABLE table_name_68 (name VARCHAR, spike VARCHAR) ### Response: ### Response: SELECT name FROM table_name_68 WHERE spike = 342</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the Home team of geelong? ### Context: CREATE TABLE table_name_74 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_74 WHERE home_team = "geelong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the Save of Ayala and a Loss of Olivares ### Context: CREATE TABLE table_name_70 (date VARCHAR, save VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT date FROM table_name_70 WHERE save = "ayala" AND loss = "olivares"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 wins that has fewer than 23 goals scored, team of 2 de Mayo, and fewer than 7 draws? ### Context: CREATE TABLE table_name_16 (wins INTEGER, draws VARCHAR, scored VARCHAR, team VARCHAR) ### Response: ### Response: SELECT MIN(wins) FROM table_name_16 WHERE scored < 23 AND team = "2 de mayo" AND draws < 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 top grid that laps less than 66 and a retried engine? ### Context: CREATE TABLE table_name_28 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT MAX(grid) FROM table_name_28 WHERE time_retired = "engine" AND laps < 66</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team in the match with an away team of Millwall? ### Context: CREATE TABLE table_name_6 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_6 WHERE away_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: how many date with score being w 113–87 ### Context: CREATE TABLE table_13480122_5 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(date) FROM table_13480122_5 WHERE score = "W 113–87"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What venue has a weight (kg) greater than 55, and won as the result? ### Context: CREATE TABLE table_name_64 (venue VARCHAR, weight__kg_ VARCHAR, result VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_64 WHERE weight__kg_ > 55 AND result = "won"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Visa 5 has a Visa 1 of emile heskey? ### Context: CREATE TABLE table_name_4 (visa_5 VARCHAR, visa_1 VARCHAR) ### Response: ### Response: SELECT visa_5 FROM table_name_4 WHERE visa_1 = "emile heskey"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 car models were produced by the maker with full name American Motor Company? ### Context: CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 possesses a transmission make/type/speed of eaton fs-6306 a manual synchromesh 6 speed? ### Context: CREATE TABLE table_11497980_1 (model VARCHAR, transmission_make_type_speed VARCHAR) ### Response: ### Response: SELECT model FROM table_11497980_1 WHERE transmission_make_type_speed = "Eaton FS-6306 A Manual Synchromesh 6 Speed"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 group a winner for modena? ### Context: CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_b_winner VARCHAR) ### Response: ### Response: SELECT group_a_winner FROM table_1137142_1 WHERE group_b_winner = "Modena"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In which Tournament was Mansour Bahrami Eric Winogradsky ### Context: CREATE TABLE table_name_9 (tournament VARCHAR, opponent_in_final VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_9 WHERE opponent_in_final = "mansour bahrami eric winogradsky"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the constructor that has the circuit zeltweg airfield? ### Context: CREATE TABLE table_1140105_6 (constructor VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT constructor FROM table_1140105_6 WHERE circuit = "Zeltweg Airfield"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the european grand prix? ### Context: CREATE TABLE table_1137696_3 (winning_driver VARCHAR, grand_prix VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_1137696_3 WHERE grand_prix = "European grand_prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 soccer stadium with the varsity name is citadins? ### Context: CREATE TABLE table_27369069_4 (soccer_stadium VARCHAR, varsity_name VARCHAR) ### Response: ### Response: SELECT soccer_stadium FROM table_27369069_4 WHERE varsity_name = "Citadins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 result when the Mountaineers scored less than 13 and their opponents scored 26? ### Context: CREATE TABLE table_name_32 (result VARCHAR, points_for VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT result FROM table_name_32 WHERE points_for < 13 AND points_against = 26</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 NTFS has a yes for FAT32 and a no for ReFS? ### Context: CREATE TABLE table_name_20 (ntfs VARCHAR, fat32 VARCHAR, refs VARCHAR) ### Response: ### Response: SELECT ntfs FROM table_name_20 WHERE fat32 = "yes" AND refs = "no"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012? ### Context: CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT score FROM table_name_32 WHERE venue = "stade général seyni kountché, niamey" AND competition = "friendly" AND date = "9 october 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: Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20? ### Context: CREATE TABLE table_name_10 (laps INTEGER, grid VARCHAR, constructor VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT MAX(laps) FROM table_name_10 WHERE constructor = "minardi - fondmetal" AND driver = "marc gené" AND grid > 20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which home team has an Away team of essendon? ### Context: CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_76 WHERE away_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000. ### Context: CREATE TABLE ship (TYPE VARCHAR, Tonnage INTEGER) ### Response: ### Response: SELECT TYPE FROM ship WHERE Tonnage > 6000 INTERSECT SELECT TYPE FROM ship WHERE Tonnage < 4000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Aalborg BK is Team 1, what is the 1st leg? ### Context: CREATE TABLE table_name_32 (team_1 VARCHAR) ### Response: ### Response: SELECT 1 AS st_leg FROM table_name_32 WHERE team_1 = "aalborg bk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 USCA that's Total is smaller than 14, with 1 Joint Music Award, MRHMA of 2, and RTHK of 3? ### Context: CREATE TABLE table_name_67 (usca VARCHAR, rthk VARCHAR, mrhma VARCHAR, total VARCHAR, joint_music_award VARCHAR) ### Response: ### Response: SELECT usca FROM table_name_67 WHERE total < 14 AND joint_music_award = "1" AND mrhma = "2" AND rthk = "3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the titles for episodes prior to episode 4? ### Context: CREATE TABLE table_name_23 (title VARCHAR, no_in_series INTEGER) ### Response: ### Response: SELECT title FROM table_name_23 WHERE no_in_series < 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's the date of completion where success is yes ### Context: CREATE TABLE table_12078626_1 (date_of_completion VARCHAR, success VARCHAR) ### Response: ### Response: SELECT date_of_completion FROM table_12078626_1 WHERE success = "Yes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Year, when Time is "1:47.55"? ### Context: CREATE TABLE table_name_37 (year VARCHAR, time VARCHAR) ### Response: ### Response: SELECT year FROM table_name_37 WHERE time = "1:47.55"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many Silver medals did the Nation of Croatia receive with a Total medal of more than 1? ### Context: CREATE TABLE table_name_3 (silver INTEGER, nation VARCHAR, bronze VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(silver) FROM table_name_3 WHERE bronze = 1 AND total > 1 AND nation = "croatia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 athlete had a six month suspension from IIHF? ### Context: CREATE TABLE table_name_55 (athlete VARCHAR, punishment VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_55 WHERE punishment = "six month suspension from iihf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of top 5 with events less than 12 and top 25 less than 0 ### Context: CREATE TABLE table_name_98 (top_5 INTEGER, events VARCHAR, top_25 VARCHAR) ### Response: ### Response: SELECT SUM(top_5) FROM table_name_98 WHERE events < 12 AND top_25 < 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 were the finishes by David Graham with totals lower than 292? ### Context: CREATE TABLE table_name_19 (finish VARCHAR, total VARCHAR, player VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_19 WHERE total = 292 AND player = "david graham"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 is from Great Britain and a 57.78 time? ### Context: CREATE TABLE table_name_95 (lane VARCHAR, nationality VARCHAR, time VARCHAR) ### Response: ### Response: SELECT COUNT(lane) FROM table_name_95 WHERE nationality = "great britain" AND time > 57.78</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: with delivery date of 2001 2001 what is gross tonnage? ### Context: CREATE TABLE table_name_35 (gross_tonnage INTEGER, delivery_date VARCHAR) ### Response: ### Response: SELECT AVG(gross_tonnage) FROM table_name_35 WHERE delivery_date = "2001 2001"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For engines of Maserati Straight-6 and entrants of H H Gould, what is the latest year? ### Context: CREATE TABLE table_name_14 (year INTEGER, engine VARCHAR, entrant VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_14 WHERE engine = "maserati straight-6" AND entrant = "h h gould"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which country has a score of 70-71-72=213? ### Context: CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_76 WHERE score = 70 - 71 - 72 = 213</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Home team score for the Venue named MCG? ### Context: CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_89 WHERE venue = "mcg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 episode one air on? ### Context: CREATE TABLE table_name_38 (date VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT date FROM table_name_38 WHERE episode = "one"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 lowest entries for a front row smaller than 15 where Michael Schumacher was driving? ### Context: CREATE TABLE table_name_87 (entries INTEGER, front_row_starts VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT MIN(entries) FROM table_name_87 WHERE front_row_starts < 15 AND driver = "michael schumacher"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 state, account type, and credit score of the customer whose number of loan is 0. ### Context: CREATE TABLE customer (state VARCHAR, acc_type VARCHAR, credit_score VARCHAR, no_of_loans VARCHAR) ### Response: ### Response: SELECT state, acc_type, credit_score FROM customer WHERE no_of_loans = 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 military deaths were there when there were 1,615 total casualties? ### Context: CREATE TABLE table_name_92 (military_deaths VARCHAR, total_casualties VARCHAR) ### Response: ### Response: SELECT military_deaths FROM table_name_92 WHERE total_casualties = "1,615"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 gender of the Roman Catholic school is AL4? ### Context: CREATE TABLE table_28523_3 (gender VARCHAR, religious_affiliation VARCHAR, location VARCHAR) ### Response: ### Response: SELECT gender FROM table_28523_3 WHERE religious_affiliation = "Roman Catholic" AND location = "AL4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in 1st place when present is mogu? ### Context: CREATE TABLE table_27298240_28 (present VARCHAR) ### Response: ### Response: SELECT 1 AS st FROM table_27298240_28 WHERE present = "mogu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wrote the episode for s02 e07? ### Context: CREATE TABLE table_16384596_4 (written_by VARCHAR, broadcast_order VARCHAR) ### Response: ### Response: SELECT written_by FROM table_16384596_4 WHERE broadcast_order = "S02 E07"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 different high rebound results are there for the game number 26? ### Context: CREATE TABLE table_23286223_5 (high_rebounds VARCHAR, game VARCHAR) ### Response: ### Response: SELECT COUNT(high_rebounds) FROM table_23286223_5 WHERE game = 26</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Result when the week is later than 9, and there are 65,858 people in attendance? ### Context: CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result FROM table_name_33 WHERE week > 9 AND attendance = "65,858"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Saginaw's fare is $470.47, what was the fare to Grand Rapids? ### Context: CREATE TABLE table_1637981_7 (grand_rapids__grr_ VARCHAR, saginaw__mbs_ VARCHAR) ### Response: ### Response: SELECT grand_rapids__grr_ FROM table_1637981_7 WHERE saginaw__mbs_ = "$470.47"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Aspect of Channel 26.5? ### Context: CREATE TABLE table_name_23 (aspect VARCHAR, channel VARCHAR) ### Response: ### Response: SELECT aspect FROM table_name_23 WHERE channel = 26.5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What score did the away team receive against home team Port Adelaide? ### Context: CREATE TABLE table_16388478_3 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_16388478_3 WHERE home_team = "Port Adelaide"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 record for the date of 12 december? ### Context: CREATE TABLE table_name_36 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_36 WHERE date = "12 december"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 incumbent when Bo Itshaky was the Republican? ### Context: CREATE TABLE table_name_63 (incumbent VARCHAR, republican VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_name_63 WHERE republican = "bo itshaky"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many episodes were directed by Rod Hardy? ### Context: CREATE TABLE table_25740548_2 (original_air_date VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT COUNT(original_air_date) FROM table_25740548_2 WHERE directed_by = "Rod Hardy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the results against the game against Egypt? ### Context: CREATE TABLE table_name_84 (results¹ VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT results¹ FROM table_name_84 WHERE opponent = "egypt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What regular seasons occurred in 2011? ### Context: CREATE TABLE table_14723382_1 (regular_season VARCHAR, year VARCHAR) ### Response: ### Response: SELECT regular_season FROM table_14723382_1 WHERE year = 2011</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Release date has a Required OS of windows, a Type of 2d, and a Developer(s) of zeonix? ### Context: CREATE TABLE table_name_59 (release_date VARCHAR, developer_s_ VARCHAR, required_os VARCHAR, type VARCHAR) ### Response: ### Response: SELECT release_date FROM table_name_59 WHERE required_os = "windows" AND type = "2d" AND developer_s_ = "zeonix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Year for the project The Untouchables? ### Context: CREATE TABLE table_name_16 (year INTEGER, project VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_16 WHERE project = "the untouchables"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the manager replaced by Wolfgang Frank depart? ### Context: CREATE TABLE table_name_93 (manner_of_departure VARCHAR, replaced_by VARCHAR) ### Response: ### Response: SELECT manner_of_departure FROM table_name_93 WHERE replaced_by = "wolfgang frank"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What season had a winning profit of $15,000? ### Context: CREATE TABLE table_2311410_1 (season VARCHAR, winning_profit___aud__ VARCHAR) ### Response: ### Response: SELECT season FROM table_2311410_1 WHERE winning_profit___aud__ = "$15,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total for the set 2 of 25-18? ### Context: CREATE TABLE table_name_80 (total VARCHAR, set_2 VARCHAR) ### Response: ### Response: SELECT total FROM table_name_80 WHERE set_2 = "25-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 1st round with fc nantes (d1) as team 1? ### Context: CREATE TABLE table_name_25 (team_1 VARCHAR) ### Response: ### Response: SELECT 1 AS st_round FROM table_name_25 WHERE team_1 = "fc nantes (d1)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Date of the Competition with a Score of 1–2? ### Context: CREATE TABLE table_name_85 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_85 WHERE score = "1–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: How many points for maserati v12 engines in 1968? ### Context: CREATE TABLE table_name_89 (points VARCHAR, engine VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_name_89 WHERE engine = "maserati v12" AND year = 1968</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smallest roll with an Authority of state, a Name of newfield park school, and a Decile smaller than 2? ### Context: CREATE TABLE table_name_97 (roll INTEGER, decile VARCHAR, authority VARCHAR, name VARCHAR) ### Response: ### Response: SELECT MIN(roll) FROM table_name_97 WHERE authority = "state" AND name = "newfield park school" AND decile < 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 is drafted overall less than 49? ### Context: CREATE TABLE table_name_27 (name VARCHAR, overall INTEGER) ### Response: ### Response: SELECT name FROM table_name_27 WHERE overall < 49</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the visitor was Atlanta Hawks? ### Context: CREATE TABLE table_name_90 (record VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT record FROM table_name_90 WHERE visitor = "atlanta hawks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is called the township where the latitude is 47.377790 ### Context: CREATE TABLE table_18600760_19 (township VARCHAR, latitude VARCHAR) ### Response: ### Response: SELECT township FROM table_18600760_19 WHERE latitude = "47.377790"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What location was the game on October 6? ### Context: CREATE TABLE table_21761882_4 (location VARCHAR, date VARCHAR) ### Response: ### Response: SELECT location FROM table_21761882_4 WHERE date = "October 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: Who wrote the episode that was directed by Milan Cheylov? ### Context: CREATE TABLE table_29219286_1 (written_by VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT written_by FROM table_29219286_1 WHERE directed_by = "Milan Cheylov"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ranking when Archie Compston is the player and the money is $73? ### Context: CREATE TABLE table_name_6 (place VARCHAR, money___$__ VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_6 WHERE money___$__ = "73" AND player = "archie compston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 house mascots are associated with yellow house colours? ### Context: CREATE TABLE table_1942683_1 (house_mascot VARCHAR, house_colour VARCHAR) ### Response: ### Response: SELECT COUNT(house_mascot) FROM table_1942683_1 WHERE house_colour = "Yellow"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 DRAW FOR u ritmu ljubavi, POINTS LARGER THAN 87? ### Context: CREATE TABLE table_name_73 (draw INTEGER, song VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MAX(draw) FROM table_name_73 WHERE song = "u ritmu ljubavi" AND points > 87</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 W-L record when HIgh Points was andre miller (30)? ### Context: CREATE TABLE table_17323042_11 (record VARCHAR, high_points VARCHAR) ### Response: ### Response: SELECT record FROM table_17323042_11 WHERE high_points = "Andre Miller (30)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date for the tooheys 1000? ### Context: CREATE TABLE table_name_44 (date VARCHAR, series VARCHAR) ### Response: ### Response: SELECT date FROM table_name_44 WHERE series = "tooheys 1000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were in the crowd when the score was 97-80? ### Context: CREATE TABLE table_name_48 (crowd VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(crowd) FROM table_name_48 WHERE score = "97-80"</s>