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 TV Companions Featured, when Author is "William Emms"? ### Context: CREATE TABLE table_name_95 (tv_companions_featured VARCHAR, author VARCHAR) ### Response: ### Response: SELECT tv_companions_featured FROM table_name_95 WHERE author = "william emms"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Muzzle energy, when Source is hornady? ### Context: CREATE TABLE table_name_16 (muzzle_energy VARCHAR, source VARCHAR) ### Response: ### Response: SELECT muzzle_energy FROM table_name_16 WHERE source = "hornady"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 playing at the Kardinia Park; what was the home teams score? ### Context: CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_39 WHERE venue = "kardinia park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 class of the co-driver emanuele pirro jj lehto? ### Context: CREATE TABLE table_name_58 (class VARCHAR, co_drivers VARCHAR) ### Response: ### Response: SELECT class FROM table_name_58 WHERE co_drivers = "emanuele pirro jj lehto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 viewers, in millions, were for the episode directed by Tawnia McKiernan? ### Context: CREATE TABLE table_12159115_3 (us_viewers__millions_ VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT us_viewers__millions_ FROM table_12159115_3 WHERE directed_by = "Tawnia McKiernan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gender and occupation of players? ### Context: CREATE TABLE player (Gender VARCHAR, Occupation VARCHAR) ### Response: ### Response: SELECT Gender, Occupation FROM player</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 report includes Bobby Unser as the Pole Position and Rick Mears as the Winning driver? ### Context: CREATE TABLE table_name_33 (report VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) ### Response: ### Response: SELECT report FROM table_name_33 WHERE pole_position = "bobby unser" AND winning_driver = "rick mears"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 areas have a population of 703379? ### Context: CREATE TABLE table_2135222_2 (area VARCHAR, population VARCHAR) ### Response: ### Response: SELECT COUNT(area) FROM table_2135222_2 WHERE population = 703379</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Oriol Servia's average Grid on races with more than 43 laps? ### Context: CREATE TABLE table_name_10 (grid INTEGER, laps VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT AVG(grid) FROM table_name_10 WHERE laps > 43 AND driver = "oriol servia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Ken Walter's lowest pick number with an overall pick number larger than 195? ### Context: CREATE TABLE table_name_28 (pick__number INTEGER, name VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT MIN(pick__number) FROM table_name_28 WHERE name = "ken walter" AND overall > 195</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week 2's record? ### Context: CREATE TABLE table_name_92 (record VARCHAR, week VARCHAR) ### Response: ### Response: SELECT record FROM table_name_92 WHERE week = "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 Venue has an Away team of footscray? ### Context: CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_6 WHERE away_team = "footscray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player(s) is from South Africa? ### Context: CREATE TABLE table_name_76 (player VARCHAR, country VARCHAR) ### Response: ### Response: SELECT player FROM table_name_76 WHERE country = "south africa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the home team that played against the visiting team Minnesota? ### Context: CREATE TABLE table_name_63 (home VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT home FROM table_name_63 WHERE visitor = "minnesota"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team has a tie no of 20? ### Context: CREATE TABLE table_name_44 (home_team VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_44 WHERE tie_no = "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 venue hosted the 2003 event? ### Context: CREATE TABLE table_name_91 (venue VARCHAR, year VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_91 WHERE year = 2003</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For the week 1 show and order 2, what was the theme? ### Context: CREATE TABLE table_name_59 (theme VARCHAR, show VARCHAR, order VARCHAR) ### Response: ### Response: SELECT theme FROM table_name_59 WHERE show = "week 1" AND order = "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 of the copa libertadores group 3 competition round on 2 February 1994? ### Context: CREATE TABLE table_name_11 (score VARCHAR, competition_round VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_11 WHERE competition_round = "copa libertadores group 3" AND date = "2 february 1994"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the Result on November 9, 1958? ### Context: CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_77 WHERE date = "november 9, 1958"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Petrova's partner where she scored 6–2, 3–6, 6–7 (7-9)? ### Context: CREATE TABLE table_27611593_5 (partner VARCHAR, score VARCHAR) ### Response: ### Response: SELECT partner FROM table_27611593_5 WHERE score = "6–2, 3–6, 6–7 (7-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 Losses have a Season larger than 1941, and a Team of hamilton wildcats, and Ties of 0? ### Context: CREATE TABLE table_name_95 (losses VARCHAR, ties VARCHAR, season VARCHAR, team VARCHAR) ### Response: ### Response: SELECT losses FROM table_name_95 WHERE season > 1941 AND team = "hamilton wildcats" AND ties = 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many medals for spain that has 1 silver and 1 bronze? ### Context: CREATE TABLE table_name_62 (total VARCHAR, nation VARCHAR, silver VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_62 WHERE silver = "1" AND bronze = "1" AND nation = "spain"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population of сурдук in 2011? ### Context: CREATE TABLE table_2562572_53 (population__2011_ VARCHAR, cyrillic_name VARCHAR) ### Response: ### Response: SELECT COUNT(population__2011_) FROM table_2562572_53 WHERE cyrillic_name = "Сурдук"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the semi finalists when the runner-up was Alexandra Fusai Wiltrud Probst? ### Context: CREATE TABLE table_name_92 (semi_finalists VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT semi_finalists FROM table_name_92 WHERE runner_up = "alexandra fusai wiltrud probst"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the daytona international speedway? ### Context: CREATE TABLE table_1245148_1 (location VARCHAR, track_name VARCHAR) ### Response: ### Response: SELECT location FROM table_1245148_1 WHERE track_name = "Daytona International Speedway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many byes when there are more than 16 wins? ### Context: CREATE TABLE table_name_50 (byes INTEGER, wins INTEGER) ### Response: ### Response: SELECT AVG(byes) FROM table_name_50 WHERE wins > 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: What is the surface of the tournament with cédric pioline as the opponent in the final? ### Context: CREATE TABLE table_name_37 (surface VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_37 WHERE opponent_in_the_final = "cédric pioline"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the builder for date built is january 1910 ### Context: CREATE TABLE table_1748444_1 (builder VARCHAR, date_built VARCHAR) ### Response: ### Response: SELECT builder FROM table_1748444_1 WHERE date_built = "January 1910"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 division for the season earlier than 2004? ### Context: CREATE TABLE table_name_60 (division VARCHAR, season INTEGER) ### Response: ### Response: SELECT division FROM table_name_60 WHERE season < 2004</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total amount of payment? ### Context: CREATE TABLE Payments (Amount_Payment INTEGER) ### Response: ### Response: SELECT SUM(Amount_Payment) FROM Payments</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Reading play at home? ### Context: CREATE TABLE table_name_2 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_2 WHERE home_team = "reading"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 metrical equivalence for linha ### Context: CREATE TABLE table_26538461_2 (metrical_equivalence VARCHAR, portuguese_name VARCHAR) ### Response: ### Response: SELECT metrical_equivalence FROM table_26538461_2 WHERE portuguese_name = "Linha"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player name, number of matches, and information source for players who do not suffer from injury of 'Knee problem'? ### Context: CREATE TABLE injury_accident (player VARCHAR, number_of_matches VARCHAR, SOURCE VARCHAR, injury VARCHAR) ### Response: ### Response: SELECT player, number_of_matches, SOURCE FROM injury_accident WHERE injury <> 'Knee problem'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Standard cost (USD) of Kwin team creator? ### Context: CREATE TABLE table_name_95 (standard_cost__usd_ VARCHAR, creator VARCHAR) ### Response: ### Response: SELECT standard_cost__usd_ FROM table_name_95 WHERE creator = "kwin team"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the club with less than 9 draws, 11 wins, and more than 40 goals? ### Context: CREATE TABLE table_name_28 (points INTEGER, goals_for VARCHAR, draws VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_28 WHERE draws < 9 AND wins = 11 AND goals_for > 40</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 integrated where allied-related is shared? ### Context: CREATE TABLE table_11944282_1 (component VARCHAR, allied_related VARCHAR) ### Response: ### Response: SELECT component FROM table_11944282_1 WHERE allied_related = "Shared"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 order number of the song originally performed by Rickie Lee Jones? ### Context: CREATE TABLE table_12310814_1 (order__number VARCHAR, original_artist VARCHAR) ### Response: ### Response: SELECT order__number FROM table_12310814_1 WHERE original_artist = "Rickie Lee Jones"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 kickoff time for the Miami Dolphins? ### Context: CREATE TABLE table_name_81 (kickoff VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT kickoff FROM table_name_81 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 2007 value with 1r in 2009 and 2r in 2011 at the Tournament of Wimbledon? ### Context: CREATE TABLE table_name_36 (tournament VARCHAR) ### Response: ### Response: SELECT 2007 FROM table_name_36 WHERE 2009 = "1r" AND 2011 = "2r" AND tournament = "wimbledon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country that has a music writer of Angelo Francesco Lavagnino, written in 1969? ### Context: CREATE TABLE table_name_57 (country VARCHAR, music VARCHAR, year VARCHAR) ### Response: ### Response: SELECT country FROM table_name_57 WHERE music = "angelo francesco lavagnino" AND year = 1969</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average survived with a to Iran less than 1, more than 1 destroyed, and a brazil tucano aircraft? ### Context: CREATE TABLE table_name_53 (survived INTEGER, destroyed VARCHAR, to_iran VARCHAR, aircraft VARCHAR) ### Response: ### Response: SELECT AVG(survived) FROM table_name_53 WHERE to_iran < 1 AND aircraft = "brazil tucano" AND destroyed > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the performance zhu xiaoming performed? ### Context: CREATE TABLE table_28180840_15 (act VARCHAR, name_name_of_act VARCHAR) ### Response: ### Response: SELECT act FROM table_28180840_15 WHERE name_name_of_act = "Zhu Xiaoming"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gold medals when the bronze medals was less than 1, silver medals being 0 and total medals more than 1 ### Context: CREATE TABLE table_name_82 (gold_medals INTEGER, total_medals VARCHAR, bronze_medals VARCHAR, silver_medals VARCHAR) ### Response: ### Response: SELECT AVG(gold_medals) FROM table_name_82 WHERE bronze_medals < 1 AND silver_medals = 0 AND total_medals > 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 position is associated with an overall value of 126? ### Context: CREATE TABLE table_11803648_20 (position VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT position FROM table_11803648_20 WHERE overall = "126"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is Gene Littler from? ### Context: CREATE TABLE table_name_60 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_60 WHERE player = "gene littler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Type, when Works Number is "unknown"? ### Context: CREATE TABLE table_name_50 (type VARCHAR, works_number VARCHAR) ### Response: ### Response: SELECT type FROM table_name_50 WHERE works_number = "unknown"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bunky Henry placed t8, what was his To par? ### Context: CREATE TABLE table_name_75 (to_par VARCHAR, place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_75 WHERE place = "t8" AND player = "bunky henry"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pick has a Year larger than 1983, and a Player name of brian jozwiak? ### Context: CREATE TABLE table_name_56 (pick VARCHAR, year VARCHAR, player_name VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_56 WHERE year > 1983 AND player_name = "brian jozwiak"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode with production code 4akj01? ### Context: CREATE TABLE table_19929970_1 (directed_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_19929970_1 WHERE production_code = "4AKJ01"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points for entrants with a Jordan 192 chassis? ### Context: CREATE TABLE table_name_98 (pts INTEGER, chassis VARCHAR) ### Response: ### Response: SELECT SUM(pts) FROM table_name_98 WHERE chassis = "jordan 192"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd leg result in the round where team #1 is Iraklis? ### Context: CREATE TABLE table_19130829_4 (team__number1 VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_19130829_4 WHERE team__number1 = "Iraklis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tournament, when Result is 2nd, and when Year is 2009? ### Context: CREATE TABLE table_name_74 (tournament VARCHAR, result VARCHAR, year VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_74 WHERE result = "2nd" AND year = 2009</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total of Golds with more bronzes than 1 and totaled larger than 4? ### Context: CREATE TABLE table_name_64 (gold VARCHAR, bronze VARCHAR, total VARCHAR) ### Response: ### Response: SELECT COUNT(gold) FROM table_name_64 WHERE bronze > 1 AND total > 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was the result l 14–24? ### Context: CREATE TABLE table_name_71 (date VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_71 WHERE result = "l 14–24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the greatest number of Pakistanis admitted to Canada during those times when the number of Nepalis admitted was 627? ### Context: CREATE TABLE table_1717824_3 (pakistanis_admitted INTEGER, nepalis_admitted VARCHAR) ### Response: ### Response: SELECT MAX(pakistanis_admitted) FROM table_1717824_3 WHERE nepalis_admitted = 627</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 aggregate score for the match won by Brive? ### Context: CREATE TABLE table_28068063_2 (aggregate_score VARCHAR, winners VARCHAR) ### Response: ### Response: SELECT aggregate_score FROM table_28068063_2 WHERE winners = "Brive"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance of the match with maidsone united as the away team? ### Context: CREATE TABLE table_name_13 (attendance VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_13 WHERE away_team = "maidsone united"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest number of Brisbane viewers? ### Context: CREATE TABLE table_24291077_4 (brisbane INTEGER) ### Response: ### Response: SELECT MAX(brisbane) FROM table_24291077_4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the Result in Green Lane with Kirkburton as the Runner-up? ### Context: CREATE TABLE table_name_94 (result VARCHAR, runner_up VARCHAR, final_venue VARCHAR) ### Response: ### Response: SELECT result FROM table_name_94 WHERE runner_up = "kirkburton" AND final_venue = "green lane"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the incumbent that retired to run for the senate democratic hold? ### Context: CREATE TABLE table_name_82 (incumbent VARCHAR, result VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_name_82 WHERE result = "retired to run for the senate democratic hold"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the fight against Zaza Tkeshelashvili? ### Context: CREATE TABLE table_name_26 (location VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT location FROM table_name_26 WHERE opponent = "zaza tkeshelashvili"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Termination of Mission listed that has a Presentation of Credentials for August 29, 1859? ### Context: CREATE TABLE table_name_34 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR) ### Response: ### Response: SELECT termination_of_mission FROM table_name_34 WHERE presentation_of_credentials = "august 29, 1859"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue was the 1978 FIFA world cup qualification played in? ### Context: CREATE TABLE table_name_48 (venue VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_48 WHERE competition = "1978 fifa world cup qualification"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 dead end type ranked 22? ### Context: CREATE TABLE table_name_42 (name VARCHAR, type VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT name FROM table_name_42 WHERE type = "dead end" AND rank = "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: Which driver had a time/retired of fuel system? ### Context: CREATE TABLE table_name_2 (driver VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_2 WHERE time_retired = "fuel system"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position has a Pick smaller than 29, and a School/Club Team of arizona? ### Context: CREATE TABLE table_name_85 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT position FROM table_name_85 WHERE pick < 29 AND school_club_team = "arizona"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sources for Bandung? ### Context: CREATE TABLE table_name_37 (sources_of_pop___area VARCHAR, city VARCHAR) ### Response: ### Response: SELECT sources_of_pop___area FROM table_name_37 WHERE city = "bandung"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constituency number of the Seoni district and has none reserved? ### Context: CREATE TABLE table_name_94 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, district VARCHAR) ### Response: ### Response: SELECT constituency_number FROM table_name_94 WHERE reserved_for___sc___st__none_ = "none" AND district = "seoni"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the composition by Mejo Joseph? ### Context: CREATE TABLE table_name_7 (year VARCHAR, composer VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_7 WHERE composer = "mejo joseph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latitude for townships in Dickey county with water under 2.106 sqmi and population under 95? ### Context: CREATE TABLE table_name_15 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR, county VARCHAR) ### Response: ### Response: SELECT AVG(latitude) FROM table_name_15 WHERE water__sqmi_ < 2.106 AND county = "dickey" AND pop__2010_ < 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: Tell me the category of na director ### Context: CREATE TABLE table_name_75 (category VARCHAR, director VARCHAR) ### Response: ### Response: SELECT category FROM table_name_75 WHERE director = "na"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 max speed when the vessel is gallion? ### Context: CREATE TABLE table_28132970_5 (max_speed VARCHAR, vessel VARCHAR) ### Response: ### Response: SELECT max_speed FROM table_28132970_5 WHERE vessel = "Gallion"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the player with a t71 finish win? ### Context: CREATE TABLE table_name_68 (year_s__won VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT year_s__won FROM table_name_68 WHERE finish = "t71"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum l&cr number for archimedes? ### Context: CREATE TABLE table_1184344_1 (cr_no VARCHAR, l INTEGER, name VARCHAR) ### Response: ### Response: SELECT MAX(l) & cr_no FROM table_1184344_1 WHERE name = "Archimedes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Total that has a FA Trophy of 0 and a Player of charlie butler? ### Context: CREATE TABLE table_name_99 (total VARCHAR, fa_trophy VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_99 WHERE fa_trophy = 0 AND player = "charlie butler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the score of 2-0 take place? ### Context: CREATE TABLE table_name_29 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_29 WHERE score = "2-0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the winner of the race that had a distance of 175.6km? ### Context: CREATE TABLE table_name_70 (winner VARCHAR, distance VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_70 WHERE distance = "175.6km"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the largest crowd size at a match against the Chicago Cardinals after Week 10 of the season? ### Context: CREATE TABLE table_name_20 (attendance INTEGER, opponent VARCHAR, week VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_20 WHERE opponent = "chicago cardinals" AND week > 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 three-mora word with a low tone accented mora and a one mora of 2? ### Context: CREATE TABLE table_name_18 (three_mora_word VARCHAR, one_mora VARCHAR, accented_mora VARCHAR) ### Response: ### Response: SELECT three_mora_word FROM table_name_18 WHERE NOT accented_mora = "low tone" AND one_mora = "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 was the nationality of the winner on December 8, 1968? ### Context: CREATE TABLE table_name_99 (country VARCHAR, date VARCHAR) ### Response: ### Response: SELECT country FROM table_name_99 WHERE date = "december 8, 1968"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is team 2 if Team 1 is Numancia? ### Context: CREATE TABLE table_name_61 (team_2 VARCHAR, team_1 VARCHAR) ### Response: ### Response: SELECT team_2 FROM table_name_61 WHERE team_1 = "numancia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 model number introduced May 1999? ### Context: CREATE TABLE table_10528691_4 (model INTEGER, introduction VARCHAR) ### Response: ### Response: SELECT MAX(model) FROM table_10528691_4 WHERE introduction = "May 1999"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game on February 12? ### Context: CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_79 WHERE date = "february 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: How many years have runner-up as the outcome, and indian wells as the championship? ### Context: CREATE TABLE table_name_83 (year INTEGER, outcome VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT SUM(year) FROM table_name_83 WHERE outcome = "runner-up" AND championship = "indian wells"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent of game 54, which was in Los Angeles and was before day 18? ### Context: CREATE TABLE table_name_26 (opponent VARCHAR, game VARCHAR, location_attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_26 WHERE location_attendance = "los angeles" AND date < 18 AND game = 54</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 entries for Italian correspond to the Conservative Central Italian of Unu? ### Context: CREATE TABLE table_25401_15 (italian VARCHAR, conservative_central_italian_1 VARCHAR) ### Response: ### Response: SELECT COUNT(italian) FROM table_25401_15 WHERE conservative_central_italian_1 = "unu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the home team was Toronto? ### Context: CREATE TABLE table_name_89 (score VARCHAR, home VARCHAR) ### Response: ### Response: SELECT score FROM table_name_89 WHERE home = "toronto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick for the player with 2 years in the NBA and who plays for the Utah Jazz? ### Context: CREATE TABLE table_name_68 (pick VARCHAR, previous_team VARCHAR, nba_years_ VARCHAR, a_ VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_68 WHERE nba_years_[a_] = "2" AND previous_team = "utah jazz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 F/Laps value associated with a position of 3rd? ### Context: CREATE TABLE table_name_97 (f_laps VARCHAR, position VARCHAR) ### Response: ### Response: SELECT f_laps FROM table_name_97 WHERE position = "3rd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 only lasted for 3 rounds against Fernando Terere? ### Context: CREATE TABLE table_name_50 (event VARCHAR, round VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT event FROM table_name_50 WHERE round = 3 AND opponent = "fernando terere"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Japanese constructors that have once earned more than 5 points? ### Context: CREATE TABLE constructorstandings (constructorid VARCHAR, points VARCHAR); CREATE TABLE constructors (name VARCHAR, constructorid VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = "Japanese" AND T2.points > 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the nationality of the player from Drexel who had a pick larger than 183? ### Context: CREATE TABLE table_name_9 (nationality VARCHAR, pick VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_9 WHERE pick > 183 AND school_club_team = "drexel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Universal Studio's film Xanadu gross? ### Context: CREATE TABLE table_name_79 (gross VARCHAR, studio VARCHAR, title VARCHAR) ### Response: ### Response: SELECT gross FROM table_name_79 WHERE studio = "universal" AND title = "xanadu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final for middleweight –75 kg? ### Context: CREATE TABLE table_name_88 (final VARCHAR, event VARCHAR) ### Response: ### Response: SELECT final FROM table_name_88 WHERE event = "middleweight –75 kg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ERP W is the highest one that has a Call sign of w255bi? ### Context: CREATE TABLE table_name_3 (erp_w INTEGER, call_sign VARCHAR) ### Response: ### Response: SELECT MAX(erp_w) FROM table_name_3 WHERE call_sign = "w255bi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on April 3? ### Context: CREATE TABLE table_name_86 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_86 WHERE date = "april 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 team had a season 1954-55? ### Context: CREATE TABLE table_name_80 (teams VARCHAR, season VARCHAR) ### Response: ### Response: SELECT teams FROM table_name_80 WHERE season = "1954-55"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What time did the game start on saturday, april 20? ### Context: CREATE TABLE table_24481478_1 (kickoff VARCHAR, date VARCHAR) ### Response: ### Response: SELECT kickoff FROM table_24481478_1 WHERE date = "Saturday, April 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 is John Crawford's Nationality? ### Context: CREATE TABLE table_name_47 (nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_47 WHERE player = "john crawford"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 where killed under Major-General Jean Victor de Constant Rebecque's command? ### Context: CREATE TABLE table_11793221_2 (killed VARCHAR, commander VARCHAR) ### Response: ### Response: SELECT killed FROM table_11793221_2 WHERE commander = "Major-General Jean Victor de Constant Rebecque"</s>