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 is the territory that was acquired past 1899 and has a capital of saipan? ### Context: CREATE TABLE table_name_37 (territory VARCHAR, acquired VARCHAR, capital VARCHAR) ### Response: ### Response: SELECT territory FROM table_name_37 WHERE acquired > 1899 AND capital = "saipan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the percentage of others when the number for Bush was 3196? ### Context: CREATE TABLE table_1733513_1 (others_percentage VARCHAR, bush_number VARCHAR) ### Response: ### Response: SELECT others_percentage FROM table_1733513_1 WHERE bush_number = 3196</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gregorian calenda rof gemini ### Context: CREATE TABLE table_169955_1 (gregorian_calendar VARCHAR, sign_of_zodiac VARCHAR) ### Response: ### Response: SELECT COUNT(gregorian_calendar) FROM table_169955_1 WHERE sign_of_zodiac = "Gemini"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 event is located in Northfield, Mn? ### Context: CREATE TABLE table_name_94 (event VARCHAR, location VARCHAR) ### Response: ### Response: SELECT event FROM table_name_94 WHERE location = "northfield, mn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hometowns shared by people older than 23 and younger than 20. ### Context: CREATE TABLE people (Hometown VARCHAR, Age INTEGER) ### Response: ### Response: SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What type of disaster is rms atlantic categorized in that was located in Nova Scotia? ### Context: CREATE TABLE table_name_62 (type VARCHAR, location VARCHAR, disaster VARCHAR) ### Response: ### Response: SELECT type FROM table_name_62 WHERE location = "nova scotia" AND disaster = "rms atlantic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Date has an Opposing Pitcher of jack morris, and an Inning of 4th? ### Context: CREATE TABLE table_name_88 (date VARCHAR, opposing_pitcher VARCHAR, inning VARCHAR) ### Response: ### Response: SELECT date FROM table_name_88 WHERE opposing_pitcher = "jack morris" AND inning = "4th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who has a nationality of GRE and an App(L/C/E) of 49 (40/8/1)? ### Context: CREATE TABLE table_name_98 (name VARCHAR, nat VARCHAR, app_l_c_e_ VARCHAR) ### Response: ### Response: SELECT name FROM table_name_98 WHERE nat = "gre" AND app_l_c_e_ = "49 (40/8/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 much Ekstraklasa has a Total smaller than 3? ### Context: CREATE TABLE table_name_98 (ekstraklasa INTEGER, total INTEGER) ### Response: ### Response: SELECT SUM(ekstraklasa) FROM table_name_98 WHERE total < 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 nation is Bordeaux? ### Context: CREATE TABLE table_name_50 (nat VARCHAR, moving_from VARCHAR) ### Response: ### Response: SELECT nat FROM table_name_50 WHERE moving_from = "bordeaux"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 similar is the genus/species sus scrofa? ### Context: CREATE TABLE table_15417439_1 (similarity VARCHAR, genus_species VARCHAR) ### Response: ### Response: SELECT similarity FROM table_15417439_1 WHERE genus_species = "Sus scrofa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Proto-Oceanic verb for the verb to sew? ### Context: CREATE TABLE table_name_43 (proto_oceanic VARCHAR, verb VARCHAR) ### Response: ### Response: SELECT proto_oceanic FROM table_name_43 WHERE verb = "to sew"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Games did Patrick Etolu compete? ### Context: CREATE TABLE table_name_60 (games VARCHAR, name VARCHAR) ### Response: ### Response: SELECT games FROM table_name_60 WHERE name = "patrick etolu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Spanish word for the French word filtrer? ### Context: CREATE TABLE table_15040_8 (spanish VARCHAR, french VARCHAR) ### Response: ### Response: SELECT spanish FROM table_15040_8 WHERE french = "filtrer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number was the person eliminated at 22:50? ### Context: CREATE TABLE table_29692554_2 (eliminated VARCHAR, time VARCHAR) ### Response: ### Response: SELECT eliminated FROM table_29692554_2 WHERE time = "22:50"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total amount of Value ($M), when the Country was Spain, the Rank was 19, and the Debt as % of value was larger than 159? ### Context: CREATE TABLE table_name_54 (value__ VARCHAR, debt_as__percentageof_value VARCHAR, country VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(value__) AS $m_ FROM table_name_54 WHERE country = "spain" AND rank = 19 AND debt_as__percentageof_value > 159</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rank has a Tally of 0-10, and an Opposition of cork? ### Context: CREATE TABLE table_name_37 (rank VARCHAR, tally VARCHAR, opposition VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_37 WHERE tally = "0-10" AND opposition = "cork"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played when the losses is less than 7, the wins is 6 and the goals for is more than 76? ### Context: CREATE TABLE table_name_31 (games_played INTEGER, goals_for VARCHAR, losses VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT SUM(games_played) FROM table_name_31 WHERE losses < 7 AND wins = 6 AND goals_for > 76</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Runner(s)-up, when Date is 21 Jan 2007? ### Context: CREATE TABLE table_name_47 (runner_s__up VARCHAR, date VARCHAR) ### Response: ### Response: SELECT runner_s__up FROM table_name_47 WHERE date = "21 jan 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest attendance with week 14? ### Context: CREATE TABLE table_name_30 (attendance INTEGER, week VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_30 WHERE week = 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 highest value for 2000, when the value for 1950 is 3.5, and when the value for 1970 is greater than 3.4? ### Context: CREATE TABLE table_name_78 (Id VARCHAR) ### Response: ### Response: SELECT MAX(2000) FROM table_name_78 WHERE 1950 = 3.5 AND 1970 > 3.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 Superlative had a record set of 12 nominations? ### Context: CREATE TABLE table_name_23 (superlative VARCHAR, record_set VARCHAR) ### Response: ### Response: SELECT superlative FROM table_name_23 WHERE record_set = "12 nominations"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Swedish People's Party had a net gain/loss of 0, how many seats did they have? ### Context: CREATE TABLE table_name_38 (seats VARCHAR, net_gain_loss VARCHAR, party VARCHAR) ### Response: ### Response: SELECT seats FROM table_name_38 WHERE net_gain_loss = "0" AND party = "swedish people's party"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the home attendance is 3.123, what's the highest away attendance? ### Context: CREATE TABLE table_1816947_2 (highest_attendance_away VARCHAR, average_attendance_home VARCHAR) ### Response: ### Response: SELECT highest_attendance_away FROM table_1816947_2 WHERE average_attendance_home = "3.123"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Opponent has a Round of qf replay? ### Context: CREATE TABLE table_name_22 (opponent VARCHAR, round VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_22 WHERE round = "qf replay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 laps for ralph firman with a grid of over 19? ### Context: CREATE TABLE table_name_32 (laps INTEGER, driver VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT AVG(laps) FROM table_name_32 WHERE driver = "ralph firman" AND grid > 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: Which goals/game ratio has fewer than 201 goals and fewer than 170 appearances? ### Context: CREATE TABLE table_name_29 (goals VARCHAR, Game VARCHAR, appearances VARCHAR) ### Response: ### Response: SELECT goals / Game AS Ratio FROM table_name_29 WHERE goals < 201 AND appearances < 170</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest crowd size for the match played at Junction Oval? ### Context: CREATE TABLE table_name_84 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MIN(crowd) FROM table_name_84 WHERE venue = "junction 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: What is the Opponent with a Round with 3, and a Venue of home? ### Context: CREATE TABLE table_name_24 (opponent VARCHAR, round VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_24 WHERE round = "3" AND venue = "home"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player who had more than 1,052 points? ### Context: CREATE TABLE table_name_87 (player VARCHAR, points INTEGER) ### Response: ### Response: SELECT player FROM table_name_87 WHERE points > 1 OFFSET 052</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 money did the country with 282 stores make in sales? ### Context: CREATE TABLE table_name_49 (sales__x1000_ VARCHAR, no_of_stores VARCHAR) ### Response: ### Response: SELECT sales__x1000_ FROM table_name_49 WHERE no_of_stores = 282</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a Creator of hyriand? ### Context: CREATE TABLE table_name_47 (name VARCHAR, creator VARCHAR) ### Response: ### Response: SELECT name FROM table_name_47 WHERE creator = "hyriand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 town has the most villages with the hanzi 南流乡 and a population larger than 24,802? ### Context: CREATE TABLE table_name_92 (villages INTEGER, hanzi VARCHAR, population VARCHAR) ### Response: ### Response: SELECT MAX(villages) FROM table_name_92 WHERE hanzi = "南流乡" AND population > 24 OFFSET 802</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 park is Boardwalk Bullet located in? ### Context: CREATE TABLE table_2665085_1 (park VARCHAR, name VARCHAR) ### Response: ### Response: SELECT park FROM table_2665085_1 WHERE name = "Boardwalk Bullet"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par of the United States, when the Total was 145, in 2004? ### Context: CREATE TABLE table_name_21 (to_par VARCHAR, year_s__won VARCHAR, country VARCHAR, total VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_21 WHERE country = "united states" AND total = 145 AND year_s__won = "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 Record for April 13? ### Context: CREATE TABLE table_name_14 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_14 WHERE date = "april 13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the language/dialect when basikal is sepeda and boleh is bulih? ### Context: CREATE TABLE table_name_63 (language_dialect VARCHAR, basikal VARCHAR, boleh VARCHAR) ### Response: ### Response: SELECT language_dialect FROM table_name_63 WHERE basikal = "sepeda" AND boleh = "bulih"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Home team of geelong? ### Context: CREATE TABLE table_name_45 (venue VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_45 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: Which Linda McCartney has a Stuart of electric guitar? ### Context: CREATE TABLE table_name_80 (linda_mccartney VARCHAR, stuart VARCHAR) ### Response: ### Response: SELECT linda_mccartney FROM table_name_80 WHERE stuart = "electric guitar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 chassis is from 1974 and was an entrant of Goldie Hexagon racing? ### Context: CREATE TABLE table_name_35 (chassis VARCHAR, year VARCHAR, entrant VARCHAR) ### Response: ### Response: SELECT chassis FROM table_name_35 WHERE year = 1974 AND entrant = "goldie hexagon racing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 special weapon is glass egg, what is the close ranged weapon? ### Context: CREATE TABLE table_27704991_1 (close_ranged_weapons VARCHAR, special_weapon VARCHAR) ### Response: ### Response: SELECT close_ranged_weapons FROM table_27704991_1 WHERE special_weapon = "Glass egg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall record in the season where average attendance was 16720? ### Context: CREATE TABLE table_2771237_1 (overall_record VARCHAR, average_attendance VARCHAR) ### Response: ### Response: SELECT overall_record FROM table_2771237_1 WHERE average_attendance = 16720</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 status in the style of ballet/ gymnastics? ### Context: CREATE TABLE table_name_73 (status VARCHAR, style VARCHAR) ### Response: ### Response: SELECT status FROM table_name_73 WHERE style = "ballet/ gymnastics"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the percentage of muslims during a time where there were 614 registered mosques? ### Context: CREATE TABLE table_1532779_1 (muslim___percentage_of_total_population_ VARCHAR, registered_mosques VARCHAR) ### Response: ### Response: SELECT muslim___percentage_of_total_population_ FROM table_1532779_1 WHERE registered_mosques = 614</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the game played where the home team was Collingwood? ### Context: CREATE TABLE table_name_29 (venue VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_29 WHERE home_team = "collingwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the high points 31-27 ### Context: CREATE TABLE table_22669044_9 (high_points VARCHAR, record VARCHAR) ### Response: ### Response: SELECT high_points FROM table_22669044_9 WHERE record = "31-27"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 code of 1.5 dci 110, which has a capacity of 1,461cc? ### Context: CREATE TABLE table_name_7 (code VARCHAR, capacity VARCHAR, name VARCHAR) ### Response: ### Response: SELECT code FROM table_name_7 WHERE capacity = "1,461cc" AND name = "1.5 dci 110"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team is located in missouri and was established in 1963? ### Context: CREATE TABLE table_name_99 (team VARCHAR, state_province VARCHAR, est VARCHAR) ### Response: ### Response: SELECT team FROM table_name_99 WHERE state_province = "missouri" AND est = "1963"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ticket sales gross in dollars of films? ### Context: CREATE TABLE film (Gross_in_dollar INTEGER) ### Response: ### Response: SELECT AVG(Gross_in_dollar) FROM film</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 directed the eposide that was watched by 1.95 million US viewers? ### Context: CREATE TABLE table_26736342_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_26736342_1 WHERE us_viewers__millions_ = "1.95"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 club did united states player ty harden play for? ### Context: CREATE TABLE table_name_55 (club VARCHAR, nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT club FROM table_name_55 WHERE nationality = "united states" AND player = "ty harden"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 chip with frequency larger than 10 ### Context: CREATE TABLE table_name_63 (chip VARCHAR, frequency_ VARCHAR, mhz VARCHAR) ### Response: ### Response: SELECT chip FROM table_name_63 WHERE frequency_[mhz] > 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Date of the Rodez, France Tournament? ### Context: CREATE TABLE table_name_63 (date VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT date FROM table_name_63 WHERE tournament = "rodez, france"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the final of the New England Patriots game? ### Context: CREATE TABLE table_name_66 (result VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_66 WHERE opponent = "new england patriots"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rounds when the engine is mercedes fo110m? ### Context: CREATE TABLE table_name_17 (rounds VARCHAR, engine_† VARCHAR) ### Response: ### Response: SELECT rounds FROM table_name_17 WHERE engine_† = "mercedes fo110m"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hanja for hangul of 주 ### Context: CREATE TABLE table_name_77 (hanja VARCHAR, hangul VARCHAR) ### Response: ### Response: SELECT hanja FROM table_name_77 WHERE hangul = "주"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Silver which has a Bronze of 19, and a Total larger than 58? ### Context: CREATE TABLE table_name_1 (silver INTEGER, bronze VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(silver) FROM table_name_1 WHERE bronze = 19 AND total > 58</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 have Mrs. briar as a villain ### Context: CREATE TABLE table_10470082_5 (no VARCHAR, villains VARCHAR) ### Response: ### Response: SELECT COUNT(no) FROM table_10470082_5 WHERE villains = "Mrs. Briar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the game when away team northampton town played? ### Context: CREATE TABLE table_name_43 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_43 WHERE away_team = "northampton town"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of finishes associated with an elimination of Adriana? ### Context: CREATE TABLE table_24122653_2 (finish VARCHAR, eliminated VARCHAR) ### Response: ### Response: SELECT COUNT(finish) FROM table_24122653_2 WHERE eliminated = "Adriana"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time on Monday August 23rd for Steve Linsdell 499cc royal enfield seeley? ### Context: CREATE TABLE table_26986076_3 (mon_23_aug VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT mon_23_aug FROM table_26986076_3 WHERE rider = "Steve Linsdell 499cc Royal Enfield Seeley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the gender of the student Linda Smith? ### Context: CREATE TABLE Student (Sex VARCHAR, Fname VARCHAR, Lname VARCHAR) ### Response: ### Response: SELECT Sex FROM Student WHERE Fname = "Linda" AND Lname = "Smith"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 long is the UK's Ballochmyle Viaduct? ### Context: CREATE TABLE table_name_97 (longest_span_in_s_metre___feet__ VARCHAR, land VARCHAR, name VARCHAR) ### Response: ### Response: SELECT longest_span_in_s_metre___feet__ FROM table_name_97 WHERE land = "uk" AND name = "ballochmyle viaduct"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: state the institution in glenside, pennsylvania ### Context: CREATE TABLE table_1974632_1 (institution VARCHAR, location VARCHAR) ### Response: ### Response: SELECT institution FROM table_1974632_1 WHERE location = "Glenside, Pennsylvania"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a Score of 5-2 and a Loss of Greinke (1-2)? ### Context: CREATE TABLE table_name_84 (date VARCHAR, score VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT date FROM table_name_84 WHERE score = "5-2" AND loss = "greinke (1-2)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the record when attendance 42827 ### Context: CREATE TABLE table_14945881_1 (record VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT record FROM table_14945881_1 WHERE attendance = 42827</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position did the team new york red bulls pick? ### Context: CREATE TABLE table_29626583_3 (position VARCHAR, mls_team VARCHAR) ### Response: ### Response: SELECT position FROM table_29626583_3 WHERE mls_team = "New York Red Bulls"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total are there? ### Context: CREATE TABLE table_24989925_2 (week INTEGER) ### Response: ### Response: SELECT MAX(week) FROM table_24989925_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 country has deltamac (hk) as the publisher? ### Context: CREATE TABLE table_name_34 (country VARCHAR, publisher VARCHAR) ### Response: ### Response: SELECT country FROM table_name_34 WHERE publisher = "deltamac (hk)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of pg won of the team with 64 goals conceded and more than 33 goals scored? ### Context: CREATE TABLE table_name_67 (won__pg_ VARCHAR, goals_conceded__gc_ VARCHAR, goals_scored__gf_ VARCHAR) ### Response: ### Response: SELECT COUNT(won__pg_) FROM table_name_67 WHERE goals_conceded__gc_ = 64 AND goals_scored__gf_ > 33</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 party for john randolph redistricted from the 15th district ### Context: CREATE TABLE table_2668367_21 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_2668367_21 WHERE incumbent = "John Randolph Redistricted from the 15th district"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of runs where the average is less than 27.22? ### Context: CREATE TABLE table_name_87 (runs VARCHAR, average INTEGER) ### Response: ### Response: SELECT COUNT(runs) FROM table_name_87 WHERE average < 27.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 is the highest lane number for johan wissman when the react is less than 0.242? ### Context: CREATE TABLE table_name_48 (lane INTEGER, name VARCHAR, react VARCHAR) ### Response: ### Response: SELECT MAX(lane) FROM table_name_48 WHERE name = "johan wissman" AND react < 0.242</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Kings game when they had a record of 8–11–1? ### Context: CREATE TABLE table_name_27 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_27 WHERE record = "8–11–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 games were played in the season? ### Context: CREATE TABLE table_15873014_3 (game INTEGER) ### Response: ### Response: SELECT MAX(game) FROM table_15873014_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 the 2008/2009 season one team had 39 tries against, how many losing bonuses did they have that year? ### Context: CREATE TABLE table_13399573_4 (losing_bonus VARCHAR, tries_against VARCHAR) ### Response: ### Response: SELECT losing_bonus FROM table_13399573_4 WHERE tries_against = "39"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Indian population? ### Context: CREATE TABLE table_10118412_6 (indian INTEGER) ### Response: ### Response: SELECT MAX(indian) FROM table_10118412_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 player was born in 1983? ### Context: CREATE TABLE table_12962773_16 (player VARCHAR, year_born VARCHAR) ### Response: ### Response: SELECT player FROM table_12962773_16 WHERE year_born = 1983</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 spaceport location that houses the LC34 complex and uses the Saturn IB launcher? ### Context: CREATE TABLE table_name_82 (spaceport VARCHAR, launcher VARCHAR, launch_complex VARCHAR) ### Response: ### Response: SELECT spaceport FROM table_name_82 WHERE launcher = "saturn ib" AND launch_complex = "lc34"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mountains classification has a General classification of egoi martínez, and a Stage of 9? ### Context: CREATE TABLE table_name_42 (mountains_classification VARCHAR, general_classification VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT mountains_classification FROM table_name_42 WHERE general_classification = "egoi martínez" AND stage = "9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which venue is rank 3? ### Context: CREATE TABLE table_name_38 (venue VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_38 WHERE 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: What is the english title that has finale as 33 and peak as 42? ### Context: CREATE TABLE table_11173827_1 (english_title VARCHAR, finale VARCHAR, peak VARCHAR) ### Response: ### Response: SELECT english_title FROM table_11173827_1 WHERE finale = 33 AND peak = 42</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of runs for the player with fewer than 9 Inns? ### Context: CREATE TABLE table_name_82 (runs VARCHAR, inns INTEGER) ### Response: ### Response: SELECT COUNT(runs) FROM table_name_82 WHERE inns < 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 was the group in the British Champion Stakes? ### Context: CREATE TABLE table_24850630_4 (group VARCHAR, race VARCHAR) ### Response: ### Response: SELECT group FROM table_24850630_4 WHERE race = "British Champion Stakes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent of the veterans stadium ### Context: CREATE TABLE table_12944805_15 (opponent VARCHAR, game_site VARCHAR) ### Response: ### Response: SELECT opponent FROM table_12944805_15 WHERE game_site = "Veterans Stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a race with 301* laps? ### Context: CREATE TABLE table_22648285_1 (year VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT year FROM table_22648285_1 WHERE laps = "301*"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 exit date of the player who transferred to Cardiff City? ### Context: CREATE TABLE table_name_9 (exit_date VARCHAR, to_club VARCHAR) ### Response: ### Response: SELECT exit_date FROM table_name_9 WHERE to_club = "cardiff city"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 titles does the episode written by Joe Toplyn have? ### Context: CREATE TABLE table_25716397_1 (title VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT COUNT(title) FROM table_25716397_1 WHERE written_by = "Joe Toplyn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Biddle's DOB? ### Context: CREATE TABLE table_name_5 (dob VARCHAR, surname VARCHAR) ### Response: ### Response: SELECT dob FROM table_name_5 WHERE surname = "biddle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 September 30, 1979, in a week before week 8, what was the result? ### Context: CREATE TABLE table_name_71 (result VARCHAR, week VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_71 WHERE week < 8 AND date = "september 30, 1979"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game number on march 27? ### Context: CREATE TABLE table_27712702_11 (game INTEGER, date VARCHAR) ### Response: ### Response: SELECT MIN(game) FROM table_27712702_11 WHERE date = "March 27"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank that when Serbia is the nation, and gold is larger than 0? ### Context: CREATE TABLE table_name_10 (rank INTEGER, nation VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT SUM(rank) FROM table_name_10 WHERE nation = "serbia" AND gold > 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: Name the least frequency Mhz with call sign of k202ag ### Context: CREATE TABLE table_name_24 (frequency_mhz INTEGER, call_sign VARCHAR) ### Response: ### Response: SELECT MIN(frequency_mhz) FROM table_name_24 WHERE call_sign = "k202ag"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average Bronze when silver is more than 3, gold is more than 1 and the total is 14 ### Context: CREATE TABLE table_name_52 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR) ### Response: ### Response: SELECT AVG(bronze) FROM table_name_52 WHERE gold > 1 AND total = 14 AND silver > 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position is Kentucky State sitting in? ### Context: CREATE TABLE table_name_77 (position VARCHAR, school VARCHAR) ### Response: ### Response: SELECT position FROM table_name_77 WHERE school = "kentucky state"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 peaks where for the chinese episode named 萬凰之王 ### Context: CREATE TABLE table_29633639_1 (peak VARCHAR, chinese_title VARCHAR) ### Response: ### Response: SELECT COUNT(peak) FROM table_29633639_1 WHERE chinese_title = "萬凰之王"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which date was hermanos rodríguez the location? ### Context: CREATE TABLE table_name_37 (date VARCHAR, location VARCHAR) ### Response: ### Response: SELECT date FROM table_name_37 WHERE location = "hermanos rodríguez"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least value for total population in 2001 with a growth rate in 1991-01 of 33.08? ### Context: CREATE TABLE table_19589113_5 (total_population_2001 INTEGER, growth_rate_1991_01 VARCHAR) ### Response: ### Response: SELECT MIN(total_population_2001) FROM table_19589113_5 WHERE growth_rate_1991_01 = "33.08"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Drawn does the team Portuguesa Santista have? ### Context: CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR) ### Response: ### Response: SELECT drawn FROM table_15352382_1 WHERE team = "Portuguesa Santista"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tournament with a Margin of victory that was 4 strokes? ### Context: CREATE TABLE table_name_57 (tournament VARCHAR, margin_of_victory VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_57 WHERE margin_of_victory = "4 strokes"</s>