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: What was the match points score for the match won by Connacht? ### Context: CREATE TABLE table_28068063_2 (match_points VARCHAR, winners VARCHAR) ### Response: ### Response: SELECT match_points FROM table_28068063_2 WHERE winners = "Connacht"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Championship has a Score of 2–6, 4–6, 4–6? ### Context: CREATE TABLE table_name_91 (championship VARCHAR, score VARCHAR) ### Response: ### Response: SELECT championship FROM table_name_91 WHERE score = "2–6, 4–6, 4–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 is Alan Campbell's Country with Notes of FA? ### Context: CREATE TABLE table_name_78 (country VARCHAR, notes VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT country FROM table_name_78 WHERE notes = "fa" AND athlete = "alan campbell"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 entrants were there in 2011? ### Context: CREATE TABLE table_name_21 (entrants VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(entrants) FROM table_name_21 WHERE year = 2011</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the constructor in the location Monza? ### Context: CREATE TABLE table_1140076_2 (constructor VARCHAR, location VARCHAR) ### Response: ### Response: SELECT constructor FROM table_1140076_2 WHERE location = "Monza"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date for nicolas pereira ### Context: CREATE TABLE table_name_60 (date VARCHAR, partnering VARCHAR) ### Response: ### Response: SELECT date FROM table_name_60 WHERE partnering = "nicolas pereira"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result for massachusetts 3 ### Context: CREATE TABLE table_1341897_23 (result VARCHAR, district VARCHAR) ### Response: ### Response: SELECT result FROM table_1341897_23 WHERE district = "Massachusetts 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: League apps (sub) maximum? ### Context: CREATE TABLE table_1112176_1 (league_apps__sub_ INTEGER) ### Response: ### Response: SELECT MAX(league_apps__sub_) FROM table_1112176_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 film was the director william a. wellman, later than 1931 with a leading man of george brent, and a Role of joan gordon, aka francine la rue? ### Context: CREATE TABLE table_name_54 (film VARCHAR, role VARCHAR, leading_man VARCHAR, director VARCHAR, year VARCHAR) ### Response: ### Response: SELECT film FROM table_name_54 WHERE director = "william a. wellman" AND year > 1931 AND leading_man = "george brent" AND role = "joan gordon, aka francine la rue"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 candidate was featured in the election for incumbent samuel j. nicholls' seat? ### Context: CREATE TABLE table_1342451_38 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342451_38 WHERE incumbent = "Samuel J. Nicholls"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver of the vehicle constructed by Bugatti in Anfa? ### Context: CREATE TABLE table_name_2 (driver VARCHAR, constructor VARCHAR, location VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_2 WHERE constructor = "bugatti" AND location = "anfa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score of New Zealand? ### Context: CREATE TABLE table_name_3 (score VARCHAR, country VARCHAR) ### Response: ### Response: SELECT score FROM table_name_3 WHERE country = "new zealand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the sum of cap/hor for double chair and vertical less than 479 ### Context: CREATE TABLE table_name_8 (cap_hour INTEGER, type VARCHAR, vertical VARCHAR) ### Response: ### Response: SELECT SUM(cap_hour) FROM table_name_8 WHERE type = "double chair" AND vertical < 479</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 open cup for 2010 ### Context: CREATE TABLE table_15672920_1 (open_cup VARCHAR, year VARCHAR) ### Response: ### Response: SELECT open_cup FROM table_15672920_1 WHERE year = 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 Series is on april 18? ### Context: CREATE TABLE table_name_84 (series VARCHAR, date VARCHAR) ### Response: ### Response: SELECT series FROM table_name_84 WHERE date = "april 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 was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230? ### Context: CREATE TABLE table_name_10 (round INTEGER, position VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT SUM(round) FROM table_name_10 WHERE position = "ls" AND overall > 230</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Candiates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% had what result? ### Context: CREATE TABLE table_2668336_17 (result VARCHAR, candidates VARCHAR) ### Response: ### Response: SELECT result FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.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 player that went to notre dame ### Context: CREATE TABLE table_name_88 (player VARCHAR, college VARCHAR) ### Response: ### Response: SELECT player FROM table_name_88 WHERE college = "notre dame"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent when the resultwas w 12-11 ### Context: CREATE TABLE table_name_45 (opponent VARCHAR, result VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_45 WHERE result = "w 12-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 is the team when the economy is 5.73? ### Context: CREATE TABLE table_27268238_5 (team VARCHAR, economy VARCHAR) ### Response: ### Response: SELECT team FROM table_27268238_5 WHERE economy = "5.73"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the Indians are 8.2%, what is the salary range? ### Context: CREATE TABLE table_27257896_2 (salary_range VARCHAR, indians VARCHAR) ### Response: ### Response: SELECT salary_range FROM table_27257896_2 WHERE indians = "8.2%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total rank of the celebrity with a 34.66 average and a season greater than 1? ### Context: CREATE TABLE table_name_39 (rank VARCHAR, average VARCHAR, season VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_39 WHERE average = 34.66 AND season > 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: When indianapolis, indiana is the location what is the institution? ### Context: CREATE TABLE table_28211213_2 (institution VARCHAR, location VARCHAR) ### Response: ### Response: SELECT institution FROM table_28211213_2 WHERE location = "Indianapolis, Indiana"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of votes when there were more than 56 electors and the year was more recent than 1950? ### Context: CREATE TABLE table_name_95 (share_of_votes VARCHAR, electors VARCHAR, year VARCHAR) ### Response: ### Response: SELECT share_of_votes FROM table_name_95 WHERE electors > 56 AND year > 1950</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number of games with a record of 20-12? ### Context: CREATE TABLE table_name_5 (game INTEGER, record VARCHAR) ### Response: ### Response: SELECT AVG(game) FROM table_name_5 WHERE record = "20-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: Which game is on the date October 16? ### Context: CREATE TABLE table_name_11 (game INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(game) FROM table_name_11 WHERE date = "october 16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date was the opponent the Miami Dolphins? ### Context: CREATE TABLE table_name_30 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_30 WHERE opponent = "miami 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 is the result F-A with an H/A of h and more than 31,727 attending? ### Context: CREATE TABLE table_name_11 (result_f___a VARCHAR, h___a VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result_f___a FROM table_name_11 WHERE h___a = "h" AND attendance > 31 OFFSET 727</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points with a Lost total of 8? ### Context: CREATE TABLE table_name_39 (points INTEGER, lost VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_39 WHERE lost = 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: Writer Max Ehrlich, what is the minimum series number? ### Context: CREATE TABLE table_19852975_4 (series__number INTEGER, writer_s_ VARCHAR) ### Response: ### Response: SELECT MIN(series__number) FROM table_19852975_4 WHERE writer_s_ = "Max Ehrlich"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 top crowd when essendon played away? ### Context: CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_75 WHERE away_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Lee Trevino of the United States with a total greater than 294 had what To par? ### Context: CREATE TABLE table_name_73 (to_par VARCHAR, player VARCHAR, total VARCHAR, country VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_73 WHERE total > 294 AND country = "united states" AND player = "lee trevino"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 are injured in Borneo? ### Context: CREATE TABLE table_name_68 (injured VARCHAR, location VARCHAR) ### Response: ### Response: SELECT injured FROM table_name_68 WHERE location = "borneo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 visiting team on October 15, 2006? ### Context: CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT visiting_team FROM table_name_59 WHERE date = "october 15, 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: Name the nation when bronze is less than 4 and the total is more than 4 ### Context: CREATE TABLE table_name_46 (nation VARCHAR, total VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_46 WHERE total > 4 AND bronze < 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: Tell me the game site for week of 1 ### Context: CREATE TABLE table_name_98 (game_site VARCHAR, week VARCHAR) ### Response: ### Response: SELECT game_site FROM table_name_98 WHERE week = "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 is the incumbent in district Texas 15? ### Context: CREATE TABLE table_1341707_45 (incumbent VARCHAR, district VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_1341707_45 WHERE district = "Texas 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 English of chae soo-yeon? ### Context: CREATE TABLE table_name_56 (english_title VARCHAR, role VARCHAR) ### Response: ### Response: SELECT english_title FROM table_name_56 WHERE role = "chae soo-yeon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 names of rooms that have been reserved for more than 60 times. ### Context: CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR) ### Response: ### Response: SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room HAVING COUNT(*) > 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: Name the score for miami ### Context: CREATE TABLE table_27723228_7 (score VARCHAR, team VARCHAR) ### Response: ### Response: SELECT score FROM table_27723228_7 WHERE team = "Miami"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country United Arab Emirates, what is the number of imports? ### Context: CREATE TABLE table_26160007_1 (imports VARCHAR, country VARCHAR) ### Response: ### Response: SELECT imports FROM table_26160007_1 WHERE country = "United Arab Emirates"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 skip has switzerland as the country? ### Context: CREATE TABLE table_name_15 (skip VARCHAR, country VARCHAR) ### Response: ### Response: SELECT skip FROM table_name_15 WHERE country = "switzerland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many wins did Team Autotecnica, with 0 podiums, have? ### Context: CREATE TABLE table_name_82 (wins VARCHAR, podiums VARCHAR, team VARCHAR) ### Response: ### Response: SELECT wins FROM table_name_82 WHERE podiums = "0" AND team = "team autotecnica"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 which has a Oil Pattern of chameleon, and a Event of lake county indiana classic? ### Context: CREATE TABLE table_name_51 (date VARCHAR, oil_pattern VARCHAR, event VARCHAR) ### Response: ### Response: SELECT date FROM table_name_51 WHERE oil_pattern = "chameleon" AND event = "lake county indiana classic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Lorne Henning has the lowest pick# of? ### Context: CREATE TABLE table_1473672_2 (pick__number INTEGER) ### Response: ### Response: SELECT MIN(pick__number) FROM table_1473672_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: Name the title for marion burns leading lady and role of john mason ### Context: CREATE TABLE table_name_89 (title VARCHAR, leading_lady VARCHAR, role VARCHAR) ### Response: ### Response: SELECT title FROM table_name_89 WHERE leading_lady = "marion burns" AND role = "john mason"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Inhabitants have a Party of democratic party, and a Municipality of florence, and an Election smaller than 2009? ### Context: CREATE TABLE table_name_99 (inhabitants INTEGER, election VARCHAR, party VARCHAR, municipality VARCHAR) ### Response: ### Response: SELECT MIN(inhabitants) FROM table_name_99 WHERE party = "democratic party" AND municipality = "florence" AND election < 2009</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many bronzes for the nation with over 20 total, under 26 golds, and over 0 silvers? ### Context: CREATE TABLE table_name_81 (bronze VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR) ### Response: ### Response: SELECT COUNT(bronze) FROM table_name_81 WHERE silver > 0 AND total > 20 AND gold < 26</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Qual 1 has a Qual 2 of 58.861? ### Context: CREATE TABLE table_name_98 (qual_1 VARCHAR, qual_2 VARCHAR) ### Response: ### Response: SELECT qual_1 FROM table_name_98 WHERE qual_2 = "58.861"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 have an Opponent of calgary flames, and a January larger than 22? ### Context: CREATE TABLE table_name_90 (points INTEGER, opponent VARCHAR, january VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_90 WHERE opponent = "calgary flames" AND january > 22</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the average points with a Chassis of zakspeed 881? ### Context: CREATE TABLE table_name_40 (points INTEGER, chassis VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_40 WHERE chassis = "zakspeed 881"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the leading actress in a film with Warren Beatty as the leading actor and also at the 40th Oscars? ### Context: CREATE TABLE table_24225238_1 (leading_actress VARCHAR, leading_actor VARCHAR, oscars VARCHAR) ### Response: ### Response: SELECT leading_actress FROM table_24225238_1 WHERE leading_actor = "Warren Beatty" AND oscars = "40th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ISHAA class for the International School? ### Context: CREATE TABLE table_name_64 (ihsaa_class VARCHAR, school VARCHAR) ### Response: ### Response: SELECT ihsaa_class FROM table_name_64 WHERE school = "international"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 24:31 is the run time how many millions of viewers are there? ### Context: CREATE TABLE table_2102945_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR) ### Response: ### Response: SELECT viewers__in_millions_ FROM table_2102945_1 WHERE run_time = "24: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 Date has the Region Europe and a Catalog of 74321 45851 2? ### Context: CREATE TABLE table_name_33 (date VARCHAR, region VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT date FROM table_name_33 WHERE region = "europe" AND catalog = "74321 45851 2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the fumrec minimum? ### Context: CREATE TABLE table_25773915_11 (fumrec INTEGER) ### Response: ### Response: SELECT MIN(fumrec) FROM table_25773915_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: Who does the lap-by-lap in 2011? ### Context: CREATE TABLE table_10716893_3 (lap_by_lap VARCHAR, year VARCHAR) ### Response: ### Response: SELECT lap_by_lap FROM table_10716893_3 WHERE year = 2011</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many seats have a quantity over 45? ### Context: CREATE TABLE table_name_53 (seats INTEGER, quantity INTEGER) ### Response: ### Response: SELECT SUM(seats) FROM table_name_53 WHERE quantity > 45</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the original title of season number 3? ### Context: CREATE TABLE table_1481865_1 (title__original_ VARCHAR, number_of_season VARCHAR) ### Response: ### Response: SELECT title__original_ FROM table_1481865_1 WHERE number_of_season = 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 club had 2 wins and 1 draw? ### Context: CREATE TABLE table_17941032_2 (club VARCHAR, drawn VARCHAR, won VARCHAR) ### Response: ### Response: SELECT club FROM table_17941032_2 WHERE drawn = "1" AND won = "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 had the most points in the game on November 12? ### Context: CREATE TABLE table_name_86 (high_points VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_points FROM table_name_86 WHERE date = "november 12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the surface for 16 april 2007 ### Context: CREATE TABLE table_name_72 (surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_72 WHERE date = "16 april 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: Name the most three pointers for dewanna bonner ### Context: CREATE TABLE table_23183195_5 (three_pointers INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(three_pointers) FROM table_23183195_5 WHERE player = "DeWanna Bonner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the notes when the Venue was Turin, Italy? ### Context: CREATE TABLE table_name_62 (notes VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT notes FROM table_name_62 WHERE venue = "turin, italy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the record for january 18, 1997 ### Context: CREATE TABLE table_20745759_1 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_20745759_1 WHERE date = "January 18, 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 home team score when the away team is Essendon? ### Context: CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_77 WHERE away_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the 1981 census of Livorno? ### Context: CREATE TABLE table_10138926_1 (city VARCHAR) ### Response: ### Response: SELECT 1981 AS _census FROM table_10138926_1 WHERE city = "Livorno"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 foot per second speed where time to feet ratio is 9.2 at 25 degrees? ### Context: CREATE TABLE table_16439764_1 (m_v_ft_s VARCHAR, time_to_ft__m__at_25°__seconds_ VARCHAR) ### Response: ### Response: SELECT m_v_ft_s FROM table_16439764_1 WHERE time_to_ft__m__at_25°__seconds_ = "9.2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest numbered grid for piercarlo ghinzani with over 3 laps? ### Context: CREATE TABLE table_name_80 (grid INTEGER, driver VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT MAX(grid) FROM table_name_80 WHERE driver = "piercarlo ghinzani" AND laps > 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 values for number occur with the hometown of Canton, Illinois? ### Context: CREATE TABLE table_22824297_1 (no VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT COUNT(no) FROM table_22824297_1 WHERE hometown = "Canton, Illinois"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 league cup apps when the league goals are greater than 3, there are 30 (2) total apps, and has a position of mf? ### Context: CREATE TABLE table_name_13 (league_cup_apps VARCHAR, total_apps VARCHAR, position VARCHAR, league_goals VARCHAR) ### Response: ### Response: SELECT league_cup_apps FROM table_name_13 WHERE position = "mf" AND league_goals > 3 AND total_apps = "30 (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: Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2? ### Context: CREATE TABLE table_name_30 (year INTEGER, reg_season VARCHAR, division VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_30 WHERE reg_season = "3rd, western" AND division > 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score in the final with runner-up as the outcome and hard (i) as the surface? ### Context: CREATE TABLE table_name_38 (score_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT score_in_the_final FROM table_name_38 WHERE outcome = "runner-up" AND surface = "hard (i)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall for a round larger than 8 for pavol demitra? ### Context: CREATE TABLE table_name_40 (overall INTEGER, round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT MAX(overall) FROM table_name_40 WHERE round > 8 AND player = "pavol demitra"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT NATIONALITY HAS ROUND 3? ### Context: CREATE TABLE table_name_97 (nationality VARCHAR, round VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_97 WHERE round = 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: In what place did Dave Barr score? ### Context: CREATE TABLE table_name_7 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_7 WHERE player = "dave barr"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Republican ticket was John P. Lomenzo who ran for the Socialist Workers ticket? ### Context: CREATE TABLE table_name_99 (socialist_workers_ticket VARCHAR, republican_ticket VARCHAR) ### Response: ### Response: SELECT socialist_workers_ticket FROM table_name_99 WHERE republican_ticket = "john p. lomenzo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the final has a Partnering of graydon oliver? ### Context: CREATE TABLE table_name_88 (opponent_in_the_final VARCHAR, partnering VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_88 WHERE partnering = "graydon oliver"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 party is Mick Young a member of? ### Context: CREATE TABLE table_name_45 (party VARCHAR, member VARCHAR) ### Response: ### Response: SELECT party FROM table_name_45 WHERE member = "mick young"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of belshina ### Context: CREATE TABLE table_name_94 (venue VARCHAR, team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_94 WHERE team = "belshina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country had a r3 at 72, by Larry Mize? ### Context: CREATE TABLE table_18812411_3 (country VARCHAR, r3 VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_18812411_3 WHERE r3 = 72 AND player = "Larry Mize"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title for year n.m.? ### Context: CREATE TABLE table_name_43 (title VARCHAR, year VARCHAR) ### Response: ### Response: SELECT title FROM table_name_43 WHERE year = "n.m."</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What title does Overkill have before 1984? ### Context: CREATE TABLE table_name_65 (title VARCHAR, artist VARCHAR, year VARCHAR) ### Response: ### Response: SELECT title FROM table_name_65 WHERE artist = "overkill" AND year < 1984</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games have November 7 as the date, and points greater than 17? ### Context: CREATE TABLE table_name_31 (game VARCHAR, november VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_31 WHERE november = 7 AND points > 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the constructor for the fastest nelson piquet? ### Context: CREATE TABLE table_name_72 (constructor VARCHAR, fastest_lap VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_72 WHERE fastest_lap = "nelson piquet"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does it cost for United States and Byron nelson? ### Context: CREATE TABLE table_name_94 (money___ VARCHAR, country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(money___) AS $__ FROM table_name_94 WHERE country = "united states" AND player = "byron nelson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most series number for giula sandler ### Context: CREATE TABLE table_15838081_3 (series__number INTEGER, writer_s_ VARCHAR) ### Response: ### Response: SELECT MAX(series__number) FROM table_15838081_3 WHERE writer_s_ = "Giula Sandler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 official ITV1 rating with 45.4% share? ### Context: CREATE TABLE table_name_32 (official_itv1_rating INTEGER, share VARCHAR) ### Response: ### Response: SELECT MIN(official_itv1_rating) FROM table_name_32 WHERE share = "45.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: Name the result for opponent of chicago bears ### Context: CREATE TABLE table_name_14 (result VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_14 WHERE opponent = "chicago bears"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 weeks has the opponent been san francisco 49ers? ### Context: CREATE TABLE table_name_65 (week VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT COUNT(week) FROM table_name_65 WHERE opponent = "san francisco 49ers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the all the scores where the high assis is b. shaw (5) ### Context: CREATE TABLE table_17344582_11 (score VARCHAR, high_assists VARCHAR) ### Response: ### Response: SELECT score FROM table_17344582_11 WHERE high_assists = "B. Shaw (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 years did Bobby Moore play? ### Context: CREATE TABLE table_237757_9 (nasl_years VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nasl_years FROM table_237757_9 WHERE player = "Bobby Moore"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 th margin of victory when date is 10 jul 2011 ### Context: CREATE TABLE table_1590652_4 (margin_of_victory VARCHAR, date VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_1590652_4 WHERE date = "10 Jul 2011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Visa 3 has a Visa 1 of michael mcglinchey? ### Context: CREATE TABLE table_name_7 (visa_3 VARCHAR, visa_1 VARCHAR) ### Response: ### Response: SELECT visa_3 FROM table_name_7 WHERE visa_1 = "michael mcglinchey"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what date did the irwin storm take place ### Context: CREATE TABLE table_name_78 (dates_active VARCHAR, storm_name VARCHAR) ### Response: ### Response: SELECT dates_active FROM table_name_78 WHERE storm_name = "irwin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result for the clay surface edition on july 17, 1992? ### Context: CREATE TABLE table_name_97 (result VARCHAR, surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_97 WHERE surface = "clay" AND date = "july 17, 1992"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Score has a Date of february 9? ### Context: CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_24 WHERE date = "february 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: What Year has a Tyre of D, and Chassis of Mazda 787? ### Context: CREATE TABLE table_name_55 (year VARCHAR, tyre VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT year FROM table_name_55 WHERE tyre = "d" AND chassis = "mazda 787"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 FA Cup apps has league goals of 1 with total goals less than 1? ### Context: CREATE TABLE table_name_47 (fa_cup_apps INTEGER, league_goals VARCHAR, total_goals VARCHAR) ### Response: ### Response: SELECT AVG(fa_cup_apps) FROM table_name_47 WHERE league_goals = 1 AND total_goals < 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: When the under-17 was Antonio Glez, who was the under-13? ### Context: CREATE TABLE table_26368963_1 (under_13 VARCHAR, under_17 VARCHAR) ### Response: ### Response: SELECT under_13 FROM table_26368963_1 WHERE under_17 = "Antonio Glez"</s>