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: Find the ids of the departments where any manager is managing 4 or more employees. ### Context: CREATE TABLE employees (department_id VARCHAR, manager_id VARCHAR, employee_id VARCHAR) ### Response: ### Response: SELECT DISTINCT department_id FROM employees GROUP BY department_id, manager_id HAVING COUNT(employee_id) >= 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the home location for team flora tallinn? ### Context: CREATE TABLE table_27409644_1 (ground VARCHAR, club VARCHAR) ### Response: ### Response: SELECT ground FROM table_27409644_1 WHERE club = "Flora Tallinn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Essendon was the Home Team, what was the Away Team score? ### Context: CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_43 WHERE home_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date for the release with a catalogue number of WARPCDD333? ### Context: CREATE TABLE table_name_73 (date VARCHAR, catalogue_number VARCHAR) ### Response: ### Response: SELECT date FROM table_name_73 WHERE catalogue_number = "warpcdd333"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most recent year for Dean Van Lines? ### Context: CREATE TABLE table_name_41 (year INTEGER, entrant VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_41 WHERE entrant = "dean van lines"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Finished place for da'tara trained by Nick zito? ### Context: CREATE TABLE table_name_3 (finished VARCHAR, trainer VARCHAR, horse VARCHAR) ### Response: ### Response: SELECT finished FROM table_name_3 WHERE trainer = "nick zito" AND horse = "da'tara"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wickets when the matches is less than 5, player is jim laker and average is more than 52.44? ### Context: CREATE TABLE table_name_89 (wickets INTEGER, average VARCHAR, matches VARCHAR, player VARCHAR) ### Response: ### Response: SELECT MAX(wickets) FROM table_name_89 WHERE matches < 5 AND player = "jim laker" AND average > 52.44</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 No. 9 when No. 5 Mason and No. 3 Aiden? ### Context: CREATE TABLE table_name_65 (no_9 VARCHAR, no_5 VARCHAR, no_3 VARCHAR) ### Response: ### Response: SELECT no_9 FROM table_name_65 WHERE no_5 = "mason" AND no_3 = "aiden"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Record of 10-6? ### Context: CREATE TABLE table_name_20 (round INTEGER, record VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_20 WHERE record = "10-6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Player has a To par of –4? ### Context: CREATE TABLE table_name_93 (player VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT player FROM table_name_93 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 segment a's Netflix is S05E22? ### Context: CREATE TABLE table_name_86 (segment_a VARCHAR, netflix VARCHAR) ### Response: ### Response: SELECT segment_a FROM table_name_86 WHERE netflix = "s05e22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 AFC cup does Masahiro Fukasawa have? ### Context: CREATE TABLE table_name_17 (afc_cup VARCHAR, name VARCHAR) ### Response: ### Response: SELECT afc_cup FROM table_name_17 WHERE name = "masahiro fukasawa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was in sixth place in series 7? ### Context: CREATE TABLE table_name_34 (sixth_place VARCHAR, series VARCHAR) ### Response: ### Response: SELECT sixth_place FROM table_name_34 WHERE series = 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: How many barony's appear when Ballyvadona is the townland. ### Context: CREATE TABLE table_30120556_1 (barony VARCHAR, townland VARCHAR) ### Response: ### Response: SELECT COUNT(barony) FROM table_30120556_1 WHERE townland = "Ballyvadona"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which College has a Year smaller than 1962, and a Position of rb? ### Context: CREATE TABLE table_name_98 (college VARCHAR, year VARCHAR, position VARCHAR) ### Response: ### Response: SELECT college FROM table_name_98 WHERE year < 1962 AND position = "rb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 CBS label? ### Context: CREATE TABLE table_name_48 (date VARCHAR, label VARCHAR) ### Response: ### Response: SELECT date FROM table_name_48 WHERE label = "cbs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city has the museum that holds the Sue specimen? ### Context: CREATE TABLE table_name_48 (museum VARCHAR, name VARCHAR) ### Response: ### Response: SELECT museum AS city FROM table_name_48 WHERE name = "sue"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage of others when McCain is at 57.7% ### Context: CREATE TABLE table_20573232_1 (others_percentage VARCHAR, mccain_percentage VARCHAR) ### Response: ### Response: SELECT others_percentage FROM table_20573232_1 WHERE mccain_percentage = "57.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 Location has a Team Nickname called the Fighting Missionaries? ### Context: CREATE TABLE table_name_13 (location VARCHAR, team_nickname VARCHAR) ### Response: ### Response: SELECT location FROM table_name_13 WHERE team_nickname = "fighting missionaries"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 belongs to the website, http://www.mudgeerabasoccer.com/? ### Context: CREATE TABLE table_11365528_2 (location VARCHAR, website VARCHAR) ### Response: ### Response: SELECT location FROM table_11365528_2 WHERE website = "http://www.mudgeerabasoccer.com/"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest week with a game with a result of l 12–7? ### Context: CREATE TABLE table_name_43 (week INTEGER, result VARCHAR) ### Response: ### Response: SELECT MAX(week) FROM table_name_43 WHERE result = "l 12–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 date when the venue is stade général seyni kountché , niamey? ### Context: CREATE TABLE table_name_10 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_10 WHERE venue = "stade général seyni kountché , niamey"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 share when the audience was 3.944.000? ### Context: CREATE TABLE table_name_82 (share VARCHAR, audience VARCHAR) ### Response: ### Response: SELECT share FROM table_name_82 WHERE audience = "3.944.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 commune has an area of 12.4 sq.km.? ### Context: CREATE TABLE table_1828368_1 (commune VARCHAR, area__km_2__ VARCHAR) ### Response: ### Response: SELECT commune FROM table_1828368_1 WHERE area__km_2__ = "12.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 was the WC 1974 Qualifying game? ### Context: CREATE TABLE table_name_94 (date VARCHAR, type_of_game VARCHAR) ### Response: ### Response: SELECT date FROM table_name_94 WHERE type_of_game = "wc 1974 qualifying"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 and number in 1962 when livery was Br Bauxite? ### Context: CREATE TABLE table_name_18 (number_ VARCHAR, _name VARCHAR, date VARCHAR, livery VARCHAR) ### Response: ### Response: SELECT number_ & _name FROM table_name_18 WHERE date = "1962" AND livery = "br bauxite"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team when the away team is newcastle united? ### Context: CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_16 WHERE away_team = "newcastle united"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the margin of victory in WGC-Accenture Match Play Championship? ### Context: CREATE TABLE table_name_98 (margin_of_victory VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_98 WHERE tournament = "wgc-accenture match play championship"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Total has a League Cup smaller than 0? ### Context: CREATE TABLE table_name_69 (total INTEGER, league_cup INTEGER) ### Response: ### Response: SELECT MAX(total) FROM table_name_69 WHERE league_cup < 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: In what Year was Labyrinth nominated? ### Context: CREATE TABLE table_name_46 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT year__ceremony_ FROM table_name_46 WHERE film_title_used_in_nomination = "labyrinth"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 districts had results related to incumbent Toby Roth? ### Context: CREATE TABLE table_1341472_51 (result VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(result) FROM table_1341472_51 WHERE incumbent = "Toby Roth"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rule has The Event of n/a, The Result of loss, and The Location of winsford england? ### Context: CREATE TABLE table_name_2 (rules VARCHAR, location VARCHAR, event VARCHAR, result VARCHAR) ### Response: ### Response: SELECT rules FROM table_name_2 WHERE event = "n/a" AND result = "loss" AND location = "winsford england"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage of total votes in 1997? ### Context: CREATE TABLE table_28819393_1 (_percentage_of_total_vote VARCHAR, year VARCHAR) ### Response: ### Response: SELECT _percentage_of_total_vote FROM table_28819393_1 WHERE year = "1997"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the best supported club with a 25 Goal and a per game larger than 1,156? ### Context: CREATE TABLE table_name_75 (best_supported_club VARCHAR, goals VARCHAR, per_game VARCHAR) ### Response: ### Response: SELECT best_supported_club FROM table_name_75 WHERE goals = 25 AND per_game > 1 OFFSET 156</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 athelte for enkhzorig ( mgl ) l 1–10 ### Context: CREATE TABLE table_17417383_6 (athlete VARCHAR, round_of_32 VARCHAR) ### Response: ### Response: SELECT athlete FROM table_17417383_6 WHERE round_of_32 = "Enkhzorig ( MGL ) L 1–10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which NHL team has left wing listed as the position? ### Context: CREATE TABLE table_name_66 (nhl_team VARCHAR, position VARCHAR) ### Response: ### Response: SELECT nhl_team FROM table_name_66 WHERE position = "left wing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 production code of the episode ranked 28? ### Context: CREATE TABLE table_26200084_1 (production_code VARCHAR, rank__week_ VARCHAR) ### Response: ### Response: SELECT production_code FROM table_26200084_1 WHERE rank__week_ = "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: Tell me the pole winner of may 12 ### Context: CREATE TABLE table_name_91 (pole_winner VARCHAR, date VARCHAR) ### Response: ### Response: SELECT pole_winner FROM table_name_91 WHERE date = "may 12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: During st kilda's home game, what was the number of people in the crowd? ### Context: CREATE TABLE table_name_12 (crowd VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT crowd FROM table_name_12 WHERE home_team = "st kilda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many high assist are on the date December 13? ### Context: CREATE TABLE table_17325580_6 (high_assists VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(high_assists) FROM table_17325580_6 WHERE date = "December 13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest round for Fort Lauderdale, Florida, United States, with a win and a time of 3:38? ### Context: CREATE TABLE table_name_14 (round INTEGER, time VARCHAR, res VARCHAR, location VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_14 WHERE res = "win" AND location = "fort lauderdale, florida, united states" AND time = "3:38"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which cell type has a conduction speed of 35? ### Context: CREATE TABLE table_name_15 (cell_type VARCHAR, conduction_speed__m_s_ VARCHAR) ### Response: ### Response: SELECT cell_type FROM table_name_15 WHERE conduction_speed__m_s_ = "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: What is the viewership on november 9, 2007? ### Context: CREATE TABLE table_11251109_3 (viewers__m_ VARCHAR, air_date VARCHAR) ### Response: ### Response: SELECT viewers__m_ FROM table_11251109_3 WHERE air_date = "November 9, 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of rank when silver is 1, and gold is less than 7, and bronze is 2? ### Context: CREATE TABLE table_name_28 (rank INTEGER, bronze VARCHAR, silver VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT SUM(rank) FROM table_name_28 WHERE silver = 1 AND gold < 7 AND bronze = 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 wrote the episode that aired December 1, 1956? ### Context: CREATE TABLE table_25800134_1 (writer_s_ VARCHAR, airdate VARCHAR) ### Response: ### Response: SELECT writer_s_ FROM table_25800134_1 WHERE airdate = "December 1, 1956"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2011 has 12.7% as the 2010? ### Context: CREATE TABLE table_name_33 (Id VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_33 WHERE 2010 = "12.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 highest front row starts for Alain Prost? ### Context: CREATE TABLE table_name_52 (front_row_starts INTEGER, driver VARCHAR) ### Response: ### Response: SELECT MAX(front_row_starts) FROM table_name_52 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: How many league of communists have the people's party at 7? ### Context: CREATE TABLE table_15306124_1 (league_of_communists VARCHAR, peoples_party VARCHAR) ### Response: ### Response: SELECT COUNT(league_of_communists) FROM table_15306124_1 WHERE peoples_party = 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: Who are all successors when reason for change is died May 12, 1964? ### Context: CREATE TABLE table_2159506_4 (successor VARCHAR, reason_for_change VARCHAR) ### Response: ### Response: SELECT successor FROM table_2159506_4 WHERE reason_for_change = "Died May 12, 1964"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many matches did Atlético Ciudad have with an average higher than 0.61? ### Context: CREATE TABLE table_name_71 (matches VARCHAR, team VARCHAR, average VARCHAR) ### Response: ### Response: SELECT COUNT(matches) FROM table_name_71 WHERE team = "atlético ciudad" AND average > 0.61</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Rank 2 Terrell McIntyre? ### Context: CREATE TABLE table_name_8 (games INTEGER, name VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MIN(games) FROM table_name_8 WHERE name = "terrell mcintyre" AND rank > 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where does the defensive back position appear first? ### Context: CREATE TABLE table_10361230_1 (round INTEGER, position VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_10361230_1 WHERE position = "Defensive Back"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of routes that have destination John F Kennedy International Airport. ### Context: CREATE TABLE airports (apid VARCHAR, name VARCHAR); CREATE TABLE routes (dst_apid VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.name = 'John F Kennedy International Airport'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Bhiwani district have what constituency number? ### Context: CREATE TABLE table_name_37 (constituency_number VARCHAR, district VARCHAR) ### Response: ### Response: SELECT constituency_number FROM table_name_37 WHERE district = "bhiwani"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 birth places that are shared by at least two people? ### Context: CREATE TABLE people (Birth_Place VARCHAR) ### Response: ### Response: SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*) >= 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: In what district is the city listed in Serial number 9? ### Context: CREATE TABLE table_18425346_2 (district VARCHAR, serial_no VARCHAR) ### Response: ### Response: SELECT COUNT(district) FROM table_18425346_2 WHERE serial_no = 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHich General classification has an Asian rider classification of shinichi fukushima, and a Winner of jeremy hunt? ### Context: CREATE TABLE table_name_1 (general_classification VARCHAR, asian_rider_classification VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT general_classification FROM table_name_1 WHERE asian_rider_classification = "shinichi fukushima" AND winner = "jeremy hunt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 European election (UK) has a Share of votes of 19%? ### Context: CREATE TABLE table_name_41 (european_election__uk_ VARCHAR, share_of_votes VARCHAR) ### Response: ### Response: SELECT european_election__uk_ FROM table_name_41 WHERE share_of_votes = "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 average points when the nation is wales and the pts/game is more than 5? ### Context: CREATE TABLE table_name_97 (points INTEGER, nation VARCHAR, pts_game VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_97 WHERE nation = "wales" AND pts_game > 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 is the leading scorer of the game where the Kings is the home team? ### Context: CREATE TABLE table_name_27 (leading_scorer VARCHAR, home VARCHAR) ### Response: ### Response: SELECT leading_scorer FROM table_name_27 WHERE home = "kings"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result when the score was 21 (7, 6, 8)? ### Context: CREATE TABLE table_name_28 (result VARCHAR, score VARCHAR) ### Response: ### Response: SELECT result FROM table_name_28 WHERE score = "21 (7, 6, 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: Which nation(s) won silver in Doha? ### Context: CREATE TABLE table_name_51 (silver VARCHAR, location VARCHAR) ### Response: ### Response: SELECT silver FROM table_name_51 WHERE location = "doha"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin of victory when the number is 15 ### Context: CREATE TABLE table_1569625_1 (margin_of_victory VARCHAR, no VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_1569625_1 WHERE no = 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 score during the 2006-2007 year? ### Context: CREATE TABLE table_name_81 (score VARCHAR, year VARCHAR) ### Response: ### Response: SELECT score FROM table_name_81 WHERE year = "2006-2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Oil Pattern has a Winner (Title #) of mike wolfe (3)? ### Context: CREATE TABLE table_name_58 (oil_pattern VARCHAR, winner__title__number_ VARCHAR) ### Response: ### Response: SELECT oil_pattern FROM table_name_58 WHERE winner__title__number_ = "mike wolfe (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 game week did the buccaneers have a record of 0-5? ### Context: CREATE TABLE table_name_67 (week VARCHAR, record VARCHAR) ### Response: ### Response: SELECT week FROM table_name_67 WHERE record = "0-5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of tries for the team that has 22 plays with 33 tries against and 60 points? ### Context: CREATE TABLE table_name_22 (tries_for VARCHAR, points VARCHAR, played VARCHAR, tries_against VARCHAR) ### Response: ### Response: SELECT tries_for FROM table_name_22 WHERE played = "22" AND tries_against = "33" AND points = "60"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the status of the building with less than 18 floors and later than 2013? ### Context: CREATE TABLE table_name_18 (status VARCHAR, floors VARCHAR, year VARCHAR) ### Response: ### Response: SELECT status FROM table_name_18 WHERE floors < 18 AND year > 2013</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the dates in which the mean sea level pressure was between 30.3 and 31? ### Context: CREATE TABLE weather (date VARCHAR, mean_sea_level_pressure_inches INTEGER) ### Response: ### Response: SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 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: How many populations have a capital of Hong Kong? ### Context: CREATE TABLE table_19605700_1 (population VARCHAR, capital VARCHAR) ### Response: ### Response: SELECT COUNT(population) FROM table_19605700_1 WHERE capital = "Hong Kong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that is the lowest overall for the College of Baylor? ### Context: CREATE TABLE table_name_44 (overall INTEGER, college VARCHAR) ### Response: ### Response: SELECT MIN(overall) FROM table_name_44 WHERE college = "baylor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 segment A when segment B was snowboards? ### Context: CREATE TABLE table_15187735_1 (segment_a VARCHAR, segment_b VARCHAR) ### Response: ### Response: SELECT segment_a FROM table_15187735_1 WHERE segment_b = "Snowboards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the largest ethnic group in doline? ### Context: CREATE TABLE table_2562572_33 (largest_ethnic_group__2002_ VARCHAR, settlement VARCHAR) ### Response: ### Response: SELECT largest_ethnic_group__2002_ FROM table_2562572_33 WHERE settlement = "Doline"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 batting style of the player born on 14 November 1971? ### Context: CREATE TABLE table_name_77 (batting_style VARCHAR, date_of_birth VARCHAR) ### Response: ### Response: SELECT batting_style FROM table_name_77 WHERE date_of_birth = "14 november 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: On what date was the attendance 24,976? ### Context: CREATE TABLE table_name_98 (date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_98 WHERE attendance = "24,976"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Navigator has a Total Time of 08:29? ### Context: CREATE TABLE table_name_37 (navigator VARCHAR, total_time VARCHAR) ### Response: ### Response: SELECT navigator FROM table_name_37 WHERE total_time = "08:29"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points did Judd v8 has in 1989? ### Context: CREATE TABLE table_name_71 (points VARCHAR, engine VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_name_71 WHERE engine = "judd v8" AND year = 1989</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4? ### Context: CREATE TABLE table_22170495_6 (position_in_channel_4s_ratings_a VARCHAR, original_airing_on_channel_4 VARCHAR) ### Response: ### Response: SELECT COUNT(position_in_channel_4s_ratings_a) FROM table_22170495_6 WHERE original_airing_on_channel_4 = "February 24, 2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Finalist has a Tournament of monte carlo? ### Context: CREATE TABLE table_name_20 (finalist VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT finalist FROM table_name_20 WHERE tournament = "monte carlo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 successor for james noble died in previous congress ### Context: CREATE TABLE table_225198_3 (successor VARCHAR, reason_for_change VARCHAR) ### Response: ### Response: SELECT successor FROM table_225198_3 WHERE reason_for_change = "James Noble died in previous Congress"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Opponent has a Round larger than 4 and the Event, Draka V? ### Context: CREATE TABLE table_name_78 (opponent VARCHAR, round VARCHAR, event VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_78 WHERE round > 4 AND event = "draka v"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with 3305 in attendance? ### Context: CREATE TABLE table_name_27 (home VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT home FROM table_name_27 WHERE attendance = 3305</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games were held on January 5? ### Context: CREATE TABLE table_27700375_8 (game VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_27700375_8 WHERE date = "January 5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT IS THE OPENING WITH A WORLDWIDE NUMBER OF $559,852,396? ### Context: CREATE TABLE table_name_85 (opening VARCHAR, worldwide VARCHAR) ### Response: ### Response: SELECT opening FROM table_name_85 WHERE worldwide = "$559,852,396"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface has a score in the final of 4–6, 3–6? ### Context: CREATE TABLE table_name_77 (surface VARCHAR, score_in_the_final VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_77 WHERE score_in_the_final = "4–6, 3–6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which date has a To par of –12? ### Context: CREATE TABLE table_name_53 (date VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT date FROM table_name_53 WHERE to_par = "–12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is robin's stat when jason was 2.5 ### Context: CREATE TABLE table_19744915_3 (robin VARCHAR, jason VARCHAR) ### Response: ### Response: SELECT robin FROM table_19744915_3 WHERE jason = "2.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 cities are in sweden on this list? ### Context: CREATE TABLE table_28005160_2 (city VARCHAR, country VARCHAR) ### Response: ### Response: SELECT city FROM table_28005160_2 WHERE country = "Sweden"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which points against has 17 as the lost? ### Context: CREATE TABLE table_name_61 (points_against VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT points_against FROM table_name_61 WHERE lost = "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: Name the production code for number 8 ### Context: CREATE TABLE table_28348757_3 (production_code VARCHAR, _number VARCHAR) ### Response: ### Response: SELECT production_code FROM table_28348757_3 WHERE _number = 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: Which Network has 17.5 million Viewers? ### Context: CREATE TABLE table_name_99 (network VARCHAR, viewers VARCHAR) ### Response: ### Response: SELECT network FROM table_name_99 WHERE viewers = "17.5 million"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who's the opponent with a time of 3:24? ### Context: CREATE TABLE table_name_32 (opponent VARCHAR, time VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_32 WHERE time = "3: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: When has a Week of 9? ### Context: CREATE TABLE table_name_60 (date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT date FROM table_name_60 WHERE week = 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: Name the number of international frieghts for domestic mail of 260 ### Context: CREATE TABLE table_1754531_4 (international_freight VARCHAR, domestic_mail VARCHAR) ### Response: ### Response: SELECT COUNT(international_freight) FROM table_1754531_4 WHERE domestic_mail = 260</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: PLEASE LIST ALL RACES WHERE THE RND IS 13. ### Context: CREATE TABLE table_16732659_2 (race_name VARCHAR, rnd VARCHAR) ### Response: ### Response: SELECT race_name FROM table_16732659_2 WHERE rnd = 13</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the note about the school established in the year of 1973? ### Context: CREATE TABLE table_1414702_3 (notes VARCHAR, established VARCHAR) ### Response: ### Response: SELECT notes FROM table_1414702_3 WHERE established = 1973</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest number of dances with a rank larger than 4 and a place of 8? ### Context: CREATE TABLE table_name_93 (number_of_dances INTEGER, rank_by_average VARCHAR, place VARCHAR) ### Response: ### Response: SELECT MIN(number_of_dances) FROM table_name_93 WHERE rank_by_average > 4 AND place = 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: Show all official native languages that contain the word "English". ### Context: CREATE TABLE country (Official_native_language VARCHAR) ### Response: ### Response: SELECT Official_native_language FROM country WHERE Official_native_language LIKE "%English%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 G/F Player has 3 Years in the NBA? ### Context: CREATE TABLE table_name_27 (player VARCHAR, pos VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR) ### Response: ### Response: SELECT player FROM table_name_27 WHERE pos = "g/f" AND years_of_nba_experience_[a_] = "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: Which of the countries has the most car makers? List the country name. ### Context: CREATE TABLE CAR_MAKERS (Country VARCHAR); CREATE TABLE COUNTRIES (CountryName VARCHAR, CountryId VARCHAR) ### Response: ### Response: SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY COUNT(*) DESC LIMIT 1</s>