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: When 35 is the number what is the album? ### Context: CREATE TABLE table_18442691_2 (album VARCHAR, no VARCHAR) ### Response: ### Response: SELECT album FROM table_18442691_2 WHERE no = 35</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did the team play against Niagara? ### Context: CREATE TABLE table_23184448_3 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_23184448_3 WHERE opponent = "Niagara"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Home team has a Tie no of replay, a Date of 19 november 1985, and an Away team of tranmere rovers? ### Context: CREATE TABLE table_name_25 (home_team VARCHAR, away_team VARCHAR, tie_no VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_25 WHERE tie_no = "replay" AND date = "19 november 1985" AND away_team = "tranmere rovers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 minimum if 40 to 44? ### Context: CREATE TABLE table_16457934_5 (Id VARCHAR) ### Response: ### Response: SELECT MIN(40 AS _to_44) FROM table_16457934_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: On what dates did Jim Jarmusch win the Lifetime Achievement? ### Context: CREATE TABLE table_name_27 (dates VARCHAR, lifetime_achievement VARCHAR) ### Response: ### Response: SELECT dates FROM table_name_27 WHERE lifetime_achievement = "jim jarmusch"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 county is the unemployment rate 4.8%? ### Context: CREATE TABLE table_22815568_6 (county VARCHAR, unemployment_rate VARCHAR) ### Response: ### Response: SELECT county FROM table_22815568_6 WHERE unemployment_rate = "4.8%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest rank Mount Elbert has? ### Context: CREATE TABLE table_name_12 (rank INTEGER, mountain_peak VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_12 WHERE mountain_peak = "mount elbert"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the game against the phoenix suns? ### Context: CREATE TABLE table_name_18 (score VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_18 WHERE opponent = "phoenix suns"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the game that was played on a grass surface? ### Context: CREATE TABLE table_name_24 (score VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT score FROM table_name_24 WHERE surface = "grass"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 length of the race on August 15? ### Context: CREATE TABLE table_name_23 (length VARCHAR, date VARCHAR) ### Response: ### Response: SELECT length FROM table_name_23 WHERE date = "august 15"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where is the nationality of Arg Esp moving to? ### Context: CREATE TABLE table_name_15 (moving_to VARCHAR, nat VARCHAR) ### Response: ### Response: SELECT moving_to FROM table_name_15 WHERE nat = "arg esp"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the place of plyaer Tim Herron from the United States with a to par of +1? ### Context: CREATE TABLE table_name_15 (place VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT place FROM table_name_15 WHERE country = "united states" AND to_par = "+1" AND player = "tim herron"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the December 9, 1961 game with an attendance larger than 41,268? ### Context: CREATE TABLE table_name_64 (week VARCHAR, date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT COUNT(week) FROM table_name_64 WHERE date = "december 9, 1961" AND attendance > 41 OFFSET 268</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par, when Total is less than 148, and when Country is "South Africa"? ### Context: CREATE TABLE table_name_7 (to_par VARCHAR, total VARCHAR, country VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_7 WHERE total < 148 AND 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: What are the product id and product type of the cheapest product? ### Context: CREATE TABLE products (product_id VARCHAR, product_type_code VARCHAR, product_price VARCHAR) ### Response: ### Response: SELECT product_id, product_type_code FROM products ORDER BY product_price LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 3rd Edition for Episode 4? ### Context: CREATE TABLE table_name_90 (episode VARCHAR) ### Response: ### Response: SELECT 3 AS rd_edition FROM table_name_90 WHERE episode = "4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which opponent has a record of 52-52? ### Context: CREATE TABLE table_name_63 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_63 WHERE record = "52-52"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bowler when the batsmen was dwaraka ravi teja rp singh pragyan ojha? ### Context: CREATE TABLE table_22962745_35 (bowler VARCHAR, batsmen VARCHAR) ### Response: ### Response: SELECT bowler FROM table_22962745_35 WHERE batsmen = "Dwaraka Ravi Teja RP Singh Pragyan Ojha"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 artist sang the song that ingela hemming wrote? ### Context: CREATE TABLE table_23585197_3 (artist VARCHAR, songwriter_s_ VARCHAR) ### Response: ### Response: SELECT artist FROM table_23585197_3 WHERE songwriter_s_ = "Ingela Hemming"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 arena has the Milton Keynes Lions and a capacity of 800? ### Context: CREATE TABLE table_name_32 (arena VARCHAR, capacity VARCHAR, team VARCHAR) ### Response: ### Response: SELECT arena FROM table_name_32 WHERE capacity = "800" AND team = "milton keynes lions"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many players scored the most points when the opposing team was New Orleans/Oklahoma City? ### Context: CREATE TABLE table_13762472_3 (high_points VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(high_points) FROM table_13762472_3 WHERE team = "New Orleans/Oklahoma 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: Name the status with builder of orenstein and koppel ### Context: CREATE TABLE table_name_54 (status VARCHAR, builder VARCHAR) ### Response: ### Response: SELECT status FROM table_name_54 WHERE builder = "orenstein and koppel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2011 which has a 2002 of —, and a Model of seat marbella? ### Context: CREATE TABLE table_name_93 (model VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_93 WHERE 2002 = "—" AND model = "seat marbella"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of wins when against is 1314? ### Context: CREATE TABLE table_name_41 (wins INTEGER, against VARCHAR) ### Response: ### Response: SELECT MIN(wins) FROM table_name_41 WHERE against = 1314</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Frequency, when Model Number is Pentium II 400? ### Context: CREATE TABLE table_name_59 (frequency VARCHAR, model_number VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_59 WHERE model_number = "pentium ii 400"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capitals that have an area of exactly 1104 square km? ### Context: CREATE TABLE table_19605700_1 (capital VARCHAR, area_km² VARCHAR) ### Response: ### Response: SELECT COUNT(capital) FROM table_19605700_1 WHERE area_km² = 1104</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Latin word for the English word bone? ### Context: CREATE TABLE table_name_33 (latin VARCHAR, english VARCHAR) ### Response: ### Response: SELECT latin FROM table_name_33 WHERE english = "bone"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the heat is less than 3, the rank is less than 18, the nationality is east germany and the time is 2:35.31? ### Context: CREATE TABLE table_name_64 (name VARCHAR, time VARCHAR, nationality VARCHAR, heat VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT name FROM table_name_64 WHERE heat < 3 AND rank < 18 AND nationality = "east germany" AND time = "2:35.31"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average Year, when Outcome is "Winner"? ### Context: CREATE TABLE table_name_98 (year INTEGER, outcome VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_98 WHERE outcome = "winner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 phoneme for realizaiton of [ɪj] ### Context: CREATE TABLE table_name_13 (phoneme VARCHAR, realization VARCHAR) ### Response: ### Response: SELECT phoneme FROM table_name_13 WHERE realization = "[ɪj]"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1? ### Context: CREATE TABLE table_name_93 (races INTEGER, pole VARCHAR, season VARCHAR, flaps VARCHAR, podiums VARCHAR) ### Response: ### Response: SELECT SUM(races) FROM table_name_93 WHERE flaps = 0 AND podiums > 0 AND season = "2008" AND pole < 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 was the biggest crowd at punt road oval? ### Context: CREATE TABLE table_name_65 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_65 WHERE venue = "punt road 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 faith has a DCSF number bigger than 2448 in Holtsmere End? ### Context: CREATE TABLE table_name_44 (faith VARCHAR, dcsf_number VARCHAR, name VARCHAR) ### Response: ### Response: SELECT faith FROM table_name_44 WHERE dcsf_number > 2448 AND name = "holtsmere end"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor with location being hockenheimring ### Context: CREATE TABLE table_1140074_2 (constructor VARCHAR, location VARCHAR) ### Response: ### Response: SELECT constructor FROM table_1140074_2 WHERE location = "Hockenheimring"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 architecture version of Model 1b? ### Context: CREATE TABLE table_name_10 (architecture_version VARCHAR, model VARCHAR) ### Response: ### Response: SELECT architecture_version FROM table_name_10 WHERE model = "1b"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game 82? ### Context: CREATE TABLE table_name_91 (score VARCHAR, game VARCHAR) ### Response: ### Response: SELECT score FROM table_name_91 WHERE game = 82</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Name, when Royal House is "Ji", and when State is "Cai"? ### Context: CREATE TABLE table_name_93 (name VARCHAR, royal_house VARCHAR, state VARCHAR) ### Response: ### Response: SELECT name FROM table_name_93 WHERE royal_house = "ji" AND state = "cai"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played against Save Of Ni Fu-Deh? ### Context: CREATE TABLE table_name_4 (opponent VARCHAR, save VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_4 WHERE save = "ni fu-deh"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 which years did Zach Randolph play for the Grizzlies? ### Context: CREATE TABLE table_name_27 (years_for_grizzlies VARCHAR, player VARCHAR) ### Response: ### Response: SELECT years_for_grizzlies FROM table_name_27 WHERE player = "zach randolph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 moving to Metalurh Donetsk? ### Context: CREATE TABLE table_name_9 (name VARCHAR, moving_to VARCHAR) ### Response: ### Response: SELECT name FROM table_name_9 WHERE moving_to = "metalurh donetsk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 spring enrollment for sioux falls seminary ### Context: CREATE TABLE table_2076557_2 (enrollment__spring_2012_ VARCHAR, school VARCHAR) ### Response: ### Response: SELECT COUNT(enrollment__spring_2012_) FROM table_2076557_2 WHERE school = "Sioux Falls Seminary"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bristol & n. som where the somerset is ashcott and shapwick? ### Context: CREATE TABLE table_12043148_2 (bristol_ VARCHAR, _n_som VARCHAR, somerset VARCHAR) ### Response: ### Response: SELECT bristol_ & _n_som FROM table_12043148_2 WHERE somerset = "Ashcott and Shapwick"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nick Faldo's score? ### Context: CREATE TABLE table_name_73 (score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_73 WHERE player = "nick faldo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 weeks at number 1 for 1988 ### Context: CREATE TABLE table_27441210_5 (weeks_at__number1 INTEGER, year VARCHAR) ### Response: ### Response: SELECT MIN(weeks_at__number1) FROM table_27441210_5 WHERE year = 1988</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: where has a Score of match reports? ### Context: CREATE TABLE table_name_49 (location VARCHAR, score VARCHAR) ### Response: ### Response: SELECT location FROM table_name_49 WHERE score = "match reports"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name. ### Context: CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR); CREATE TABLE Maintenance_Engineers (company_id VARCHAR); CREATE TABLE Third_Party_Companies (company_id VARCHAR, company_name VARCHAR) ### Response: ### Response: SELECT T1.company_id, T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(*) >= 2 UNION SELECT T3.company_id, T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING COUNT(*) >= 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the number of races in the season in which the team placed on the 14th position? ### Context: CREATE TABLE table_19741316_1 (races INTEGER, position VARCHAR) ### Response: ### Response: SELECT MIN(races) FROM table_19741316_1 WHERE position = "14th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 manager who was replaced by Faraz Kamalvand? ### Context: CREATE TABLE table_22297140_3 (team VARCHAR, replaced_by VARCHAR) ### Response: ### Response: SELECT team FROM table_22297140_3 WHERE replaced_by = "Faraz Kamalvand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 work when the result is won and the year is after 2002? ### Context: CREATE TABLE table_name_91 (work VARCHAR, result VARCHAR, year VARCHAR) ### Response: ### Response: SELECT work FROM table_name_91 WHERE result = "won" AND year > 2002</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time period was the Cessna 208 built? ### Context: CREATE TABLE table_name_2 (period VARCHAR, model VARCHAR) ### Response: ### Response: SELECT period FROM table_name_2 WHERE model = "cessna 208"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rate limit when budget plans (£m) is limit agreed? ### Context: CREATE TABLE table_25316812_1 (rate_limit__p_ VARCHAR, budget_plans__£m_ VARCHAR) ### Response: ### Response: SELECT rate_limit__p_ FROM table_25316812_1 WHERE budget_plans__£m_ = "limit agreed"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What party was represented by incumbent Richard Coulter ? ### Context: CREATE TABLE table_2668243_20 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_2668243_20 WHERE incumbent = "Richard Coulter"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the names of conductors in ascending order of age. ### Context: CREATE TABLE conductor (Name VARCHAR, Age VARCHAR) ### Response: ### Response: SELECT Name FROM conductor ORDER BY Age</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average to par when Bud Holscher is the player? ### Context: CREATE TABLE table_name_38 (to_par INTEGER, player VARCHAR) ### Response: ### Response: SELECT AVG(to_par) FROM table_name_38 WHERE player = "bud holscher"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Ernie Els placed t2, what was his To par? ### Context: CREATE TABLE table_name_3 (to_par VARCHAR, place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_3 WHERE place = "t2" AND player = "ernie els"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week 17 game played on? ### Context: CREATE TABLE table_name_62 (date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT date FROM table_name_62 WHERE week = "17"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average Episode Number, when Original Airdate is March 21, 2010, and when Season is less than 3? ### Context: CREATE TABLE table_name_96 (episode INTEGER, original_airdate VARCHAR, season VARCHAR) ### Response: ### Response: SELECT AVG(episode) AS number FROM table_name_96 WHERE original_airdate = "march 21, 2010" AND season < 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What candidate is in Louisiana 6? ### Context: CREATE TABLE table_1342331_18 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342331_18 WHERE district = "Louisiana 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: List the first name and last name of customers have the amount of outstanding between 1000 and 3000. ### Context: CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, amount_outstanding INTEGER) ### Response: ### Response: SELECT first_name, last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many touchdowns did Sam Babcock get? ### Context: CREATE TABLE table_25642873_2 (touchdowns INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(touchdowns) FROM table_25642873_2 WHERE player = "Sam Babcock"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 which movie is Selva Nambi a co-singer? ### Context: CREATE TABLE table_name_20 (movie VARCHAR, co_singers VARCHAR) ### Response: ### Response: SELECT movie FROM table_name_20 WHERE co_singers = "selva nambi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 money requested in the episode first aired on 18 January 2005 by the company/product name IV Cam ### Context: CREATE TABLE table_name_96 (money_requested__ INTEGER, first_aired VARCHAR, company_or_product_name VARCHAR) ### Response: ### Response: SELECT AVG(money_requested__) AS £_ FROM table_name_96 WHERE first_aired = "18 january 2005" AND company_or_product_name = "iv cam"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tie #19, what was the name of the away team? ### Context: CREATE TABLE table_name_27 (away_team VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_27 WHERE tie_no = "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: When did tavárez lose? ### Context: CREATE TABLE table_name_64 (date VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT date FROM table_name_64 WHERE loss = "tavárez"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was there an attendance of 74,347? ### Context: CREATE TABLE table_name_63 (week INTEGER, attendance VARCHAR) ### Response: ### Response: SELECT SUM(week) FROM table_name_63 WHERE attendance = "74,347"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player is Jasmine Wynne, what is the minimum number of steals? ### Context: CREATE TABLE table_23346303_5 (steals INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(steals) FROM table_23346303_5 WHERE player = "Jasmine Wynne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first name and job id for all employees in the Finance department? ### Context: CREATE TABLE departments (department_id VARCHAR, department_name VARCHAR); CREATE TABLE employees (first_name VARCHAR, job_id VARCHAR, department_id VARCHAR) ### Response: ### Response: SELECT T1.first_name, T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drafted the player from the HC Lada Togliatti (Russia)? ### Context: CREATE TABLE table_2840500_5 (nhl_team VARCHAR, college_junior_club_team VARCHAR) ### Response: ### Response: SELECT nhl_team FROM table_2840500_5 WHERE college_junior_club_team = "HC Lada Togliatti (Russia)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 majority when the clone independence is no? ### Context: CREATE TABLE table_name_8 (majority VARCHAR, clone_independence VARCHAR) ### Response: ### Response: SELECT majority FROM table_name_8 WHERE clone_independence = "no"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall amount of poles? ### Context: CREATE TABLE table_25352318_1 (poles INTEGER) ### Response: ### Response: SELECT MIN(poles) FROM table_25352318_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 YEAR OF FLOETIC? ### Context: CREATE TABLE table_name_5 (year INTEGER, title VARCHAR) ### Response: ### Response: SELECT SUM(year) FROM table_name_5 WHERE title = "floetic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the opponent for october 2, 1983 ### Context: CREATE TABLE table_14940519_1 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_14940519_1 WHERE date = "October 2, 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: Where is Indian Creek school located? ### Context: CREATE TABLE table_name_79 (location VARCHAR, school VARCHAR) ### Response: ### Response: SELECT location FROM table_name_79 WHERE school = "indian creek"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that had Grand Slam Tournaments in 1976? ### Context: CREATE TABLE table_name_13 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_13 WHERE 1976 = "grand slam tournaments"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game with tie number of 10? ### Context: CREATE TABLE table_name_35 (date VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT date FROM table_name_35 WHERE tie_no = "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 part 4 with *hlaupaną *stautaną in part 1? ### Context: CREATE TABLE table_name_6 (part_4 VARCHAR, part_1 VARCHAR) ### Response: ### Response: SELECT part_4 FROM table_name_6 WHERE part_1 = "*hlaupaną *stautaną"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 busiest destination airport that runs most number of routes in China. ### Context: CREATE TABLE routes (dst_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR) ### Response: ### Response: SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Say the region for 6854 altitudes ### Context: CREATE TABLE table_name_97 (region VARCHAR, altitude__metres_ VARCHAR) ### Response: ### Response: SELECT region FROM table_name_97 WHERE altitude__metres_ = 6854</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 years when the soap opera is glenroe and the actor is mick lally? ### Context: CREATE TABLE table_name_21 (years VARCHAR, soap_opera VARCHAR, actor VARCHAR) ### Response: ### Response: SELECT years FROM table_name_21 WHERE soap_opera = "glenroe" AND actor = "mick lally"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 label in Japan? ### Context: CREATE TABLE table_name_14 (label VARCHAR, region VARCHAR) ### Response: ### Response: SELECT label FROM table_name_14 WHERE region = "japan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 melbourne was the away team, what was the lowest crowd turnout they had? ### Context: CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MIN(crowd) FROM table_name_75 WHERE away_team = "melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stuttgart is the town what is the type? ### Context: CREATE TABLE table_2803662_3 (type VARCHAR, town VARCHAR) ### Response: ### Response: SELECT type FROM table_2803662_3 WHERE town = "Stuttgart"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponent of newcastle united, and a Result of 2–1? ### Context: CREATE TABLE table_name_66 (date VARCHAR, opponent VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_66 WHERE opponent = "newcastle united" AND result = "2–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 total of wins when the cuts made is 76 and the events greater than 115? ### Context: CREATE TABLE table_name_3 (wins INTEGER, cuts_made VARCHAR, events VARCHAR) ### Response: ### Response: SELECT SUM(wins) FROM table_name_3 WHERE cuts_made = 76 AND events > 115</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 10th Iteration? ### Context: CREATE TABLE table_name_40 (location VARCHAR, iteration VARCHAR) ### Response: ### Response: SELECT location FROM table_name_40 WHERE iteration = "10th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lost, when Points For is "257"? ### Context: CREATE TABLE table_name_11 (lost VARCHAR, points_for VARCHAR) ### Response: ### Response: SELECT lost FROM table_name_11 WHERE points_for = "257"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 salary paid by team Boston Red Stockings in 2010? ### Context: CREATE TABLE salary (salary INTEGER, team_id VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR) ### Response: ### Response: SELECT SUM(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2010</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is every time(cet) for a time of 5:04.8? ### Context: CREATE TABLE table_21536557_2 (time__cet_ VARCHAR, time VARCHAR) ### Response: ### Response: SELECT time__cet_ FROM table_21536557_2 WHERE time = "5:04.8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When John Emanuel ran under the Socialist Labor ticket who ran under the Democratic ticket? ### Context: CREATE TABLE table_name_99 (democratic_ticket VARCHAR, socialist_labor_ticket VARCHAR) ### Response: ### Response: SELECT democratic_ticket FROM table_name_99 WHERE socialist_labor_ticket = "john emanuel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick by the Baltimore Colts in a round later than 10? ### Context: CREATE TABLE table_name_27 (pick INTEGER, nfl_club VARCHAR, round VARCHAR) ### Response: ### Response: SELECT MAX(pick) FROM table_name_27 WHERE nfl_club = "baltimore colts" AND round > 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 Haydon when Larter is 11 and Libweshya is 4? ### Context: CREATE TABLE table_11447995_2 (haydon VARCHAR, larter VARCHAR, libweshya VARCHAR) ### Response: ### Response: SELECT haydon FROM table_11447995_2 WHERE larter = "11" AND libweshya = "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: How many entries for prothrombin time are there where platelet count is "decreased or unaffected"? ### Context: CREATE TABLE table_1555308_1 (prothrombin_time VARCHAR, platelet_count VARCHAR) ### Response: ### Response: SELECT COUNT(prothrombin_time) FROM table_1555308_1 WHERE platelet_count = "Decreased or unaffected"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tries Against, when Points Against is 213? ### Context: CREATE TABLE table_name_78 (tries_against VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT tries_against FROM table_name_78 WHERE points_against = "213"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 womens doubles when the mixed doubles is jacco arends selena piek? ### Context: CREATE TABLE table_12171145_1 (womens_doubles VARCHAR, mixed_doubles VARCHAR) ### Response: ### Response: SELECT womens_doubles FROM table_12171145_1 WHERE mixed_doubles = "Jacco Arends Selena Piek"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 evening gown score a contestant with an average less than 8.23, an interview score of 8.11, and a swimsuit larger than 7.84 has? ### Context: CREATE TABLE table_name_17 (evening_gown INTEGER, swimsuit VARCHAR, average VARCHAR, interview VARCHAR) ### Response: ### Response: SELECT MIN(evening_gown) FROM table_name_17 WHERE average < 8.23 AND interview = 8.11 AND swimsuit > 7.84</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rhett Mclane's highest pick number? ### Context: CREATE TABLE table_name_94 (pick__number INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(pick__number) FROM table_name_94 WHERE player = "rhett mclane"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 led to a 4-0 record? ### Context: CREATE TABLE table_name_98 (event VARCHAR, record VARCHAR) ### Response: ### Response: SELECT event FROM table_name_98 WHERE record = "4-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 were first elected in the Arkansas 4 district? ### Context: CREATE TABLE table_1342233_5 (first_elected VARCHAR, district VARCHAR) ### Response: ### Response: SELECT COUNT(first_elected) FROM table_1342233_5 WHERE district = "Arkansas 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 Platense was the away team on 16 August 2008 how many people attended the game? ### Context: CREATE TABLE table_name_29 (attendance VARCHAR, date VARCHAR, away VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_29 WHERE date = "16 august 2008" AND away = "platense"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loss has a Date of april 26? ### Context: CREATE TABLE table_name_30 (loss VARCHAR, date VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_30 WHERE date = "april 26"</s>