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: Which tournament resulted in 6th place? ### Context: CREATE TABLE table_name_48 (tournament VARCHAR, result VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_48 WHERE result = "6th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 broadcasting hours of NBT? ### Context: CREATE TABLE table_name_47 (broadcasting_hours VARCHAR, network VARCHAR) ### Response: ### Response: SELECT broadcasting_hours FROM table_name_47 WHERE network = "nbt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 course had a jockey of Royston FFrench? ### Context: CREATE TABLE table_name_22 (course VARCHAR, jockey VARCHAR) ### Response: ### Response: SELECT course FROM table_name_22 WHERE jockey = "royston ffrench"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Against has a Draws larger than 0, a Losses smaller than 16, and a Wins smaller than 4? ### Context: CREATE TABLE table_name_50 (against INTEGER, wins VARCHAR, draws VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT MAX(against) FROM table_name_50 WHERE draws > 0 AND losses < 16 AND wins < 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 team's record when they played at Rheinenergiestadion? ### Context: CREATE TABLE table_24989925_2 (team_record VARCHAR, game_site VARCHAR) ### Response: ### Response: SELECT team_record FROM table_24989925_2 WHERE game_site = "RheinEnergieStadion"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the date for sprint winner mexico ### Context: CREATE TABLE table_2446333_2 (date VARCHAR, sprint_winner VARCHAR) ### Response: ### Response: SELECT date FROM table_2446333_2 WHERE sprint_winner = "Mexico"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Socket of without quickassist has what release price? ### Context: CREATE TABLE table_name_63 (release_price___usd__ VARCHAR, socket VARCHAR) ### Response: ### Response: SELECT release_price___usd__ FROM table_name_63 WHERE socket = "without quickassist"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Man of the Match when they played the Romford Raiders at home? ### Context: CREATE TABLE table_name_28 (man_of_the_match VARCHAR, venue VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT man_of_the_match FROM table_name_28 WHERE venue = "home" AND opponent = "romford raiders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Between which years were there 241 fokker 70 model cabins built? ### Context: CREATE TABLE table_name_43 (period VARCHAR, built VARCHAR, model VARCHAR) ### Response: ### Response: SELECT period FROM table_name_43 WHERE built < 241 AND model = "fokker 70"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Gold medals did the Soviet Union receive? ### Context: CREATE TABLE table_name_98 (gold INTEGER, nation VARCHAR) ### Response: ### Response: SELECT AVG(gold) FROM table_name_98 WHERE nation = "soviet union"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team's score at lake oval? ### Context: CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_89 WHERE venue = "lake oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gniazdo is polish what is proto-slavic? ### Context: CREATE TABLE table_26757_4 (proto_slavic VARCHAR, polish VARCHAR) ### Response: ### Response: SELECT proto_slavic FROM table_26757_4 WHERE polish = "gniazdo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player with the largest number of votes? ### Context: CREATE TABLE player (Player_name VARCHAR, Votes VARCHAR) ### Response: ### Response: SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Ben Hogan's Place? ### Context: CREATE TABLE table_name_25 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_25 WHERE player = "ben hogan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 builder for wd number being 22 ### Context: CREATE TABLE table_20236726_2 (builder VARCHAR, wd_no VARCHAR) ### Response: ### Response: SELECT builder FROM table_20236726_2 WHERE wd_no = 22</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: 1960 larger than 196, and a 1996[2] smaller than 726, and a 1980 larger than 125, and a 1990 larger than 848, what is the highest 1950? ### Context: CREATE TABLE table_name_13 (Id VARCHAR) ### Response: ### Response: SELECT MAX(1950) FROM table_name_13 WHERE 1960 > 196 AND 1996[2] < 726 AND 1980 > 125 AND 1990 > 848</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Number Of Episodes, when Status is "2001 - 2003, 2005 - 2009"? ### Context: CREATE TABLE table_name_86 (number_of_episodes VARCHAR, status VARCHAR) ### Response: ### Response: SELECT number_of_episodes FROM table_name_86 WHERE status = "2001 - 2003, 2005 - 2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the nationality of the skater with 108.8 points? ### Context: CREATE TABLE table_name_52 (nation VARCHAR, points VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_52 WHERE points = 108.8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the average, maximum and total revenues of all companies? ### Context: CREATE TABLE manufacturers (revenue INTEGER) ### Response: ### Response: SELECT AVG(revenue), MAX(revenue), SUM(revenue) FROM manufacturers</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals for/against of the club with 17 points? ### Context: CREATE TABLE table_name_94 (goals_for_against VARCHAR, points VARCHAR) ### Response: ### Response: SELECT goals_for_against FROM table_name_94 WHERE points = 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Curtis Strange's Score? ### Context: CREATE TABLE table_name_11 (score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_11 WHERE player = "curtis strange"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rank has Notes of fb, and a Time of 5:57.31? ### Context: CREATE TABLE table_name_70 (rank VARCHAR, notes VARCHAR, time VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_70 WHERE notes = "fb" AND time = "5:57.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: What place has manfred kokot as the athlete? ### Context: CREATE TABLE table_name_7 (place VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT place FROM table_name_7 WHERE athlete = "manfred kokot"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 after the game with the Manchester Wolves on July 30, 2004? ### Context: CREATE TABLE table_name_18 (record VARCHAR, opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_18 WHERE opponent = "manchester wolves" AND date = "july 30, 2004"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bodyweight of everyone that has a Snatch of 153.0? ### Context: CREATE TABLE table_name_98 (bodyweight INTEGER, snatch VARCHAR) ### Response: ### Response: SELECT SUM(bodyweight) FROM table_name_98 WHERE snatch = "153.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: Who won a medal at the 2008 Beijing Olympics? ### Context: CREATE TABLE table_name_33 (name VARCHAR, games VARCHAR) ### Response: ### Response: SELECT name FROM table_name_33 WHERE games = "2008 beijing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance of 6,275? ### Context: CREATE TABLE table_name_82 (opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_82 WHERE attendance = "6,275"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par for t10 place and score of 72-71=143 ### Context: CREATE TABLE table_name_88 (to_par VARCHAR, place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_88 WHERE place = "t10" AND score = 72 - 71 = 143</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Province, when 2006 is less than 153748, when Date of Official Foundation of Municipality is after 1958, and when City is "Pakdasht"? ### Context: CREATE TABLE table_name_46 (province VARCHAR, city VARCHAR, date_of_official_foundation_of_municipality VARCHAR) ### Response: ### Response: SELECT province FROM table_name_46 WHERE 2006 < 153748 AND date_of_official_foundation_of_municipality > 1958 AND city = "pakdasht"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pennant number with ships in raahe class? ### Context: CREATE TABLE table_name_54 (pennant_number INTEGER, ships_in_class VARCHAR) ### Response: ### Response: SELECT MAX(pennant_number) FROM table_name_54 WHERE ships_in_class = "raahe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 much was a Reverse of guitar of agustín pío barrios before 1998? ### Context: CREATE TABLE table_name_1 (value VARCHAR, first_issued VARCHAR, reverse VARCHAR) ### Response: ### Response: SELECT value FROM table_name_1 WHERE first_issued < 1998 AND reverse = "guitar of agustín pío barrios"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Games for Allofs, Klaus, with Goals less than 177? ### Context: CREATE TABLE table_name_53 (games INTEGER, name VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT SUM(games) FROM table_name_53 WHERE name = "allofs, klaus" AND goals < 177</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match on a clay surface with an outcome of winner, at the tournament ciudad juárez, and an Opponent in the final of estefania craciún? ### Context: CREATE TABLE table_name_48 (score VARCHAR, opponent_in_the_final VARCHAR, tournament VARCHAR, surface VARCHAR, outcome VARCHAR) ### Response: ### Response: SELECT score FROM table_name_48 WHERE surface = "clay" AND outcome = "winner" AND tournament = "ciudad juárez" AND opponent_in_the_final = "estefania craciún"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 september has 10.35 in November? ### Context: CREATE TABLE table_15945862_1 (september VARCHAR, november VARCHAR) ### Response: ### Response: SELECT september FROM table_15945862_1 WHERE november = "10.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: When is the first elected in the Florida 19 district? ### Context: CREATE TABLE table_1805191_10 (first_elected VARCHAR, district VARCHAR) ### Response: ### Response: SELECT first_elected FROM table_1805191_10 WHERE district = "Florida 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: Name the Runs which has Venue of adelaide oval , adelaide? ### Context: CREATE TABLE table_name_47 (runs VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT runs FROM table_name_47 WHERE venue = "adelaide oval , 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 year has 59th as a finish position? ### Context: CREATE TABLE table_name_58 (year VARCHAR, finish_position VARCHAR) ### Response: ### Response: SELECT year FROM table_name_58 WHERE finish_position = "59th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Agg., when Team 2 is Mukungwa? ### Context: CREATE TABLE table_name_42 (agg VARCHAR, team_2 VARCHAR) ### Response: ### Response: SELECT agg FROM table_name_42 WHERE team_2 = "mukungwa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What nationality is Kentucky and the player Tayshaun Prince? ### Context: CREATE TABLE table_name_58 (nationality VARCHAR, school_club_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_58 WHERE school_club_team = "kentucky" AND player = "tayshaun prince"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name, phone, and payment method code for all customers in descending order of customer number. ### Context: CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, payment_method_code VARCHAR, customer_number VARCHAR) ### Response: ### Response: SELECT customer_name, customer_phone, payment_method_code FROM customers ORDER BY customer_number DESC</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Decision has a Record of 29–18–6? ### Context: CREATE TABLE table_name_53 (decision VARCHAR, record VARCHAR) ### Response: ### Response: SELECT decision FROM table_name_53 WHERE record = "29–18–6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the sale details and dates of transactions with amount smaller than 3000? ### Context: CREATE TABLE SALES (sales_details VARCHAR, sales_transaction_id VARCHAR); CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, transaction_id VARCHAR, amount_of_transaction INTEGER) ### Response: ### Response: SELECT T1.sales_details, T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction < 3000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What league has most wins as the record? ### Context: CREATE TABLE table_name_77 (league VARCHAR, record VARCHAR) ### Response: ### Response: SELECT league FROM table_name_77 WHERE record = "most wins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals on average had 644 matches and a rank bigger than 3? ### Context: CREATE TABLE table_name_94 (goals INTEGER, matches VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(goals) FROM table_name_94 WHERE matches = 644 AND rank > 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: How many Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of grovedale, and Tankers smaller than 1? ### Context: CREATE TABLE table_name_32 (pumpers VARCHAR, tankers VARCHAR, brigade VARCHAR, cars VARCHAR, staffing VARCHAR) ### Response: ### Response: SELECT COUNT(pumpers) FROM table_name_32 WHERE cars = "1" AND staffing = "volunteer" AND brigade = "grovedale" AND tankers < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the report called where the circuit took place at the nazareth speedway? ### Context: CREATE TABLE table_10707142_2 (report VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT report FROM table_10707142_2 WHERE circuit = "Nazareth Speedway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of students and total number of instructors for each department. ### Context: CREATE TABLE department (dept_name VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR); CREATE TABLE instructor (dept_name VARCHAR, id VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT T2.id), COUNT(DISTINCT T3.id), T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the place of the player who scored less than 70? ### Context: CREATE TABLE table_name_96 (place VARCHAR, score INTEGER) ### Response: ### Response: SELECT place FROM table_name_96 WHERE score < 70</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the venue when the year is after 2001 for the summer olympics? ### Context: CREATE TABLE table_name_56 (venue VARCHAR, year VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_56 WHERE year > 2001 AND competition = "summer olympics"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: VIE is the IATA for which city? ### Context: CREATE TABLE table_name_80 (airport VARCHAR, iata VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_80 WHERE iata = "vie"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode's segment b is s hacksaw? ### Context: CREATE TABLE table_name_67 (episode VARCHAR, segment_b VARCHAR) ### Response: ### Response: SELECT episode FROM table_name_67 WHERE segment_b = "s hacksaw"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game against Detroit in game 31 or after? ### Context: CREATE TABLE table_name_59 (date VARCHAR, game VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_59 WHERE game > 31 AND opponent = "detroit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In the year 2006, the womens singles had no competition and the mens doubles were roland hilti kilian pfister, what were the womens doubles ### Context: CREATE TABLE table_15001681_1 (womens_doubles VARCHAR, year VARCHAR, womens_singles VARCHAR, mens_doubles VARCHAR) ### Response: ### Response: SELECT womens_doubles FROM table_15001681_1 WHERE womens_singles = "no competition" AND mens_doubles = "Roland Hilti Kilian Pfister" AND year = 2006</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 document type code with most number of documents? ### Context: CREATE TABLE Documents (document_type_code VARCHAR) ### Response: ### Response: SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which venue had an extra of Junior Race? ### Context: CREATE TABLE table_name_68 (venue VARCHAR, extra VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_68 WHERE extra = "junior race"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 2nd leg of team 1 Dolphins? ### Context: CREATE TABLE table_name_99 (team_1 VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_name_99 WHERE team_1 = "dolphins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the constructor of the car that Achille Varzi drove before 1937? ### Context: CREATE TABLE table_name_2 (constructor VARCHAR, year VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_2 WHERE year < 1937 AND driver = "achille varzi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For the player from Finland, what is the highest overall pick rank? ### Context: CREATE TABLE table_name_64 (overall INTEGER, nationality VARCHAR) ### Response: ### Response: SELECT MAX(overall) FROM table_name_64 WHERE nationality = "finland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many positions have goals of fewer than 40 and more than 38 played? ### Context: CREATE TABLE table_name_62 (position VARCHAR, goals_for VARCHAR, played VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_name_62 WHERE goals_for < 40 AND played > 38</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the game from July 18? ### Context: CREATE TABLE table_name_30 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_30 WHERE date = "july 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 day in January was the game greater than 49 and had @ Montreal Canadiens as opponents? ### Context: CREATE TABLE table_name_70 (january INTEGER, opponent VARCHAR, game VARCHAR) ### Response: ### Response: SELECT SUM(january) FROM table_name_70 WHERE opponent = "@ montreal canadiens" AND game > 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: Name the class 3 for silverstone rmit university ### Context: CREATE TABLE table_1936678_1 (class_3 VARCHAR, location VARCHAR, class_1 VARCHAR) ### Response: ### Response: SELECT class_3 FROM table_1936678_1 WHERE location = "Silverstone" AND class_1 = "RMIT University"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had 73,428 in attendance? ### Context: CREATE TABLE table_name_32 (opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_32 WHERE attendance = "73,428"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year did a team from North Dearborn leave? ### Context: CREATE TABLE table_name_89 (year_left VARCHAR, school VARCHAR) ### Response: ### Response: SELECT year_left FROM table_name_89 WHERE school = "north dearborn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the competition name when the age group is 17 or younger for athletics? ### Context: CREATE TABLE table_name_42 (competition_name VARCHAR, age_groups VARCHAR, sport VARCHAR) ### Response: ### Response: SELECT competition_name FROM table_name_42 WHERE age_groups = "17 or younger" AND sport = "athletics"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player is in Place 1? ### Context: CREATE TABLE table_name_27 (player VARCHAR, place VARCHAR) ### Response: ### Response: SELECT player FROM table_name_27 WHERE place = "1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many laps are associated with a time of + 1:39.591? ### Context: CREATE TABLE table_name_37 (laps VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_37 WHERE time_retired = "+ 1:39.591"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendance on 1997-12-14? ### Context: CREATE TABLE table_name_54 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_54 WHERE date = "1997-12-14"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 2010 value with a 2r in 200r and a 3r in 2011? ### Context: CREATE TABLE table_name_85 (Id VARCHAR) ### Response: ### Response: SELECT 2010 FROM table_name_85 WHERE 2004 = "2r" AND 2011 = "3r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the high rebounds when the score was l 84–102 (ot)? ### Context: CREATE TABLE table_11964154_11 (high_rebounds VARCHAR, score VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_11964154_11 WHERE score = "L 84–102 (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: Find the first name, country code and birth date of the winner who has the highest rank points in all matches. ### Context: CREATE TABLE players (first_name VARCHAR, country_code VARCHAR, birth_date VARCHAR, player_id VARCHAR); CREATE TABLE matches (winner_id VARCHAR, winner_rank_points VARCHAR) ### Response: ### Response: SELECT T1.first_name, T1.country_code, T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: which year holds rank 2? ### Context: CREATE TABLE table_name_89 (year INTEGER, rank VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_89 WHERE 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 Date is september 13, 1998 what is result? ### Context: CREATE TABLE table_name_89 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_89 WHERE date = "september 13, 1998"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 regular season was 2013 in? ### Context: CREATE TABLE table_name_50 (regular_season VARCHAR, year VARCHAR) ### Response: ### Response: SELECT regular_season FROM table_name_50 WHERE year = 2013</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is first names of the top 5 staff who have handled the greatest number of complaints? ### Context: CREATE TABLE complaints (staff_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, staff_id VARCHAR) ### Response: ### Response: SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id GROUP BY t2.staff_id ORDER BY COUNT(*) LIMIT 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 was the lowest FA Cup for a Malaysia Cup of 0? ### Context: CREATE TABLE table_name_64 (fa_cup INTEGER, malaysia_cup INTEGER) ### Response: ### Response: SELECT MIN(fa_cup) FROM table_name_64 WHERE malaysia_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: What is the extra result associated with 6th place in 1972? ### Context: CREATE TABLE table_name_22 (extra VARCHAR, result VARCHAR, year VARCHAR) ### Response: ### Response: SELECT extra FROM table_name_22 WHERE result = "6th" AND year = 1972</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode that aired october 8, 1988 ### Context: CREATE TABLE table_name_81 (episode_title VARCHAR, original_airdate VARCHAR) ### Response: ### Response: SELECT episode_title FROM table_name_81 WHERE original_airdate = "october 8, 1988"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lest amount of bronzes that ranked 2 and has less silvers than 0? ### Context: CREATE TABLE table_name_79 (bronze INTEGER, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT MIN(bronze) FROM table_name_79 WHERE rank = 2 AND silver < 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's the percentage of all immigrants in 2007 in the country with 1.7% of all immigrants in 2008? ### Context: CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2008 VARCHAR) ### Response: ### Response: SELECT _percentage_of_all_immigrants_2007 FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2008 = "1.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 year did the team who played at the Scottrade Center leave the city? ### Context: CREATE TABLE table_21564794_3 (left_st_louis INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MIN(left_st_louis) FROM table_21564794_3 WHERE venue = "Scottrade Center"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 became consort for ceased to be consort of 4 april 1588 husband's death ### Context: CREATE TABLE table_name_14 (became_consort VARCHAR, ceased_to_be_consort VARCHAR) ### Response: ### Response: SELECT became_consort FROM table_name_14 WHERE ceased_to_be_consort = "4 april 1588 husband's death"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the total was smaller than 290, what was the highest To par? ### Context: CREATE TABLE table_name_24 (to_par INTEGER, total INTEGER) ### Response: ### Response: SELECT MAX(to_par) FROM table_name_24 WHERE total < 290</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Athlete, when Nation is "Nigeria"? ### Context: CREATE TABLE table_name_12 (athlete VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_12 WHERE nation = "nigeria"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games have a Score of 3–0, and a January larger than 12? ### Context: CREATE TABLE table_name_16 (game VARCHAR, score VARCHAR, january VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_16 WHERE score = "3–0" AND january > 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 was the score of the other team that played Geelong? ### Context: CREATE TABLE table_name_89 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_89 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: What's the year that Hagerstown joined? ### Context: CREATE TABLE table_name_66 (year_joined VARCHAR, school VARCHAR) ### Response: ### Response: SELECT year_joined FROM table_name_66 WHERE school = "hagerstown"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Part number(s) has a Model number of core i7-3770? ### Context: CREATE TABLE table_name_60 (part_number_s_ VARCHAR, model_number VARCHAR) ### Response: ### Response: SELECT part_number_s_ FROM table_name_60 WHERE model_number = "core i7-3770"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 id and details of the investor that has the largest number of transactions. ### Context: CREATE TABLE TRANSACTIONS (investor_id VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR) ### Response: ### Response: SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Venue has a Position of 12th (sf)? ### Context: CREATE TABLE table_name_97 (venue VARCHAR, position VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_97 WHERE position = "12th (sf)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has the date of October 28? ### Context: CREATE TABLE table_23612439_2 (location VARCHAR, date VARCHAR) ### Response: ### Response: SELECT location FROM table_23612439_2 WHERE date = "October 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: What is the Shirt No for the person whose height is 188? ### Context: CREATE TABLE table_name_9 (shirt_no INTEGER, height VARCHAR) ### Response: ### Response: SELECT SUM(shirt_no) FROM table_name_9 WHERE height = 188</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lines have the segment description of red line mos-2 west? ### Context: CREATE TABLE table_1817879_2 (line_s_ VARCHAR, segment_description VARCHAR) ### Response: ### Response: SELECT line_s_ FROM table_1817879_2 WHERE segment_description = "Red Line MOS-2 West"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many different types of rooms are there? ### Context: CREATE TABLE room (roomtype VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT roomtype) FROM room</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 PLAYERS PLAY FOR OREGON? ### Context: CREATE TABLE table_11677691_2 (player VARCHAR, college VARCHAR) ### Response: ### Response: SELECT COUNT(player) FROM table_11677691_2 WHERE college = "Oregon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On which date was the Winning score –5 (70-65-69-75=279)? ### Context: CREATE TABLE table_name_92 (date VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_92 WHERE winning_score = –5(70 - 65 - 69 - 75 = 279)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date of the bye week 11? ### Context: CREATE TABLE table_name_38 (date VARCHAR, attendance VARCHAR, week VARCHAR) ### Response: ### Response: SELECT date FROM table_name_38 WHERE attendance = "bye" AND week = 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the record on July 1? ### Context: CREATE TABLE table_name_58 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_58 WHERE date = "july 1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who wrote title number 38? ### Context: CREATE TABLE table_26199484_1 (written_by VARCHAR, no VARCHAR) ### Response: ### Response: SELECT written_by FROM table_26199484_1 WHERE no = 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: Name the number of regular season for 2007 ### Context: CREATE TABLE table_2361788_1 (regular_season VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(regular_season) FROM table_2361788_1 WHERE year = 2007</s>