inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the time/retired if the driver is Ed Carpenter? ### Context: CREATE TABLE table_17693171_1 (time_retired VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_17693171_1 WHERE driver = "Ed Carpenter"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of draws for the team with a points difference of -210? ### Context: CREATE TABLE table_name_12 (drawn VARCHAR, points_difference VARCHAR) ### Response: ### Response: SELECT drawn FROM table_name_12 WHERE points_difference = "-210"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Losses, when Position is greater than 8, when Goals For is greater than 34, when Points is "25", and when Draws is less than 5? ### Context: CREATE TABLE table_name_13 (losses VARCHAR, draws VARCHAR, points VARCHAR, position VARCHAR, goals_for VARCHAR) ### Response: ### Response: SELECT COUNT(losses) FROM table_name_13 WHERE position > 8 AND goals_for > 34 AND points = 25 AND draws < 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 surface for the riverhead raceway? ### Context: CREATE TABLE table_name_84 (surface VARCHAR, track VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_84 WHERE track = "riverhead raceway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 years Andy Murray was at Wimbledon? ### Context: CREATE TABLE table_name_27 (year VARCHAR, wimbledon VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_27 WHERE wimbledon = "andy murray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT IS THE RESULT FOR THE SONG WHERE THE ORIGINAL ARTIST IS BETTY EVERETT? ### Context: CREATE TABLE table_15778392_1 (result VARCHAR, original_artist VARCHAR) ### Response: ### Response: SELECT result FROM table_15778392_1 WHERE original_artist = "Betty Everett"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week has a Result of l 10–30, and an Attendance larger than 57,312? ### Context: CREATE TABLE table_name_84 (week INTEGER, result VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT AVG(week) FROM table_name_84 WHERE result = "l 10–30" AND attendance > 57 OFFSET 312</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 production company that has a year of 2008-2009? ### Context: CREATE TABLE table_name_19 (production_company VARCHAR, year VARCHAR) ### Response: ### Response: SELECT production_company FROM table_name_19 WHERE year = "2008-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 1995 Album? ### Context: CREATE TABLE table_name_22 (album VARCHAR, year VARCHAR) ### Response: ### Response: SELECT album FROM table_name_22 WHERE year = 1995</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Drawn has a Points of 6, and a Against larger than 16? ### Context: CREATE TABLE table_name_17 (drawn INTEGER, points VARCHAR, against VARCHAR) ### Response: ### Response: SELECT SUM(drawn) FROM table_name_17 WHERE points = 6 AND against > 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: List the name and the number of stations for all the cities that have at least 15 stations. ### Context: CREATE TABLE station (city VARCHAR) ### Response: ### Response: SELECT city, COUNT(*) FROM station GROUP BY city HAVING COUNT(*) >= 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average total when gold is 0, bronze is 0, and silver is smaller than 1? ### Context: CREATE TABLE table_name_54 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_54 WHERE gold = 0 AND bronze = 0 AND silver < 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 money list rank for 1966? ### Context: CREATE TABLE table_13026799_3 (money_list_rank VARCHAR, year VARCHAR) ### Response: ### Response: SELECT money_list_rank FROM table_13026799_3 WHERE year = 1966</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 # Of National Votes, when the Election is before 1992, when the % Of Prefectural Vote is 39.5%, when Leader is Takeo Fukuda, and when # Of Seats Won is greater than 63? ### Context: CREATE TABLE table_name_30 (_number_of_national_votes INTEGER, _number_of_seats_won VARCHAR, leader VARCHAR, election VARCHAR, _percentage_of_prefectural_vote VARCHAR) ### Response: ### Response: SELECT AVG(_number_of_national_votes) FROM table_name_30 WHERE election < 1992 AND _percentage_of_prefectural_vote = "39.5%" AND leader = "takeo fukuda" AND _number_of_seats_won > 63</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I want to know the city for guelferbytanus b and the 5th ### Context: CREATE TABLE table_name_6 (city VARCHAR, date VARCHAR, name VARCHAR) ### Response: ### Response: SELECT city FROM table_name_6 WHERE date = "5th" AND name = "guelferbytanus b"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT SAN PAULO CAREER HAD SMALLER THAN 201 APPEARANCES, SMALLER THAN 2 GOALS, AND FOR RICARDO ROCHA? ### Context: CREATE TABLE table_name_45 (são_paulo_career VARCHAR, name VARCHAR, appearances VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT são_paulo_career FROM table_name_45 WHERE appearances < 201 AND goals < 2 AND name = "ricardo rocha"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 yards did Davin Meggett have with more than 9 Rec.? ### Context: CREATE TABLE table_name_62 (yards INTEGER, player VARCHAR, rec VARCHAR) ### Response: ### Response: SELECT SUM(yards) FROM table_name_62 WHERE player = "davin meggett" AND rec > 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: How many 5K wins did Emily Chebet, who had more than 2 total, have? ### Context: CREATE TABLE table_name_14 (runner VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(5 AS k_wins) FROM table_name_14 WHERE runner = "emily chebet" AND total > 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 week 15 result for the team that had a week 9 result of Washington (6-1)? ### Context: CREATE TABLE table_name_98 (week_15__final__dec_9 VARCHAR, week_9_oct_29 VARCHAR) ### Response: ### Response: SELECT week_15__final__dec_9 FROM table_name_98 WHERE week_9_oct_29 = "washington (6-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 lead for the Election Results polling firm and has a PSOE of 39.6% 175? ### Context: CREATE TABLE table_name_8 (lead VARCHAR, polling_firm VARCHAR, psoe VARCHAR) ### Response: ### Response: SELECT lead FROM table_name_8 WHERE polling_firm = "election results" AND psoe = "39.6% 175"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Outcome when çağla büyükakçay was the opponent in the final? ### Context: CREATE TABLE table_name_73 (outcome VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_73 WHERE opponent_in_the_final = "çağla büyükakçay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 title of episode 3? ### Context: CREATE TABLE table_23730973_5 (episode VARCHAR, no VARCHAR) ### Response: ### Response: SELECT episode FROM table_23730973_5 WHERE no = 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 Proto-Oceanic has a Proto-Polynesian of *lima? ### Context: CREATE TABLE table_name_85 (proto_oceanic VARCHAR, proto_polynesian VARCHAR) ### Response: ### Response: SELECT proto_oceanic FROM table_name_85 WHERE proto_polynesian = "*lima"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 production number? ### Context: CREATE TABLE table_1439096_1 (production_no INTEGER) ### Response: ### Response: SELECT MIN(production_no) FROM table_1439096_1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which party won less than 21 seats, has 0 percent of seats, and 69757 votes cast? ### Context: CREATE TABLE table_name_94 (party VARCHAR, votes_cast VARCHAR, seats_won VARCHAR, percent_of_seats VARCHAR) ### Response: ### Response: SELECT party FROM table_name_94 WHERE seats_won < 21 AND percent_of_seats = 0 AND votes_cast = 69757</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Draws for a season later than 1919 with more than 0 wins? ### Context: CREATE TABLE table_name_86 (draws INTEGER, season VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT MIN(draws) FROM table_name_86 WHERE season > 1919 AND wins > 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: I want the date for nihat kahveci ### Context: CREATE TABLE table_name_93 (date VARCHAR, turkey_scorers VARCHAR) ### Response: ### Response: SELECT date FROM table_name_93 WHERE turkey_scorers = "nihat kahveci"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what Date is the match played on Clay Surface with a Score in the final of 6–2, 7–5? ### Context: CREATE TABLE table_name_32 (date VARCHAR, surface VARCHAR, score_in_the_final VARCHAR) ### Response: ### Response: SELECT date FROM table_name_32 WHERE surface = "clay" AND score_in_the_final = "6–2, 7–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: Who won bronze is 2006? ### Context: CREATE TABLE table_name_7 (bronze VARCHAR, year VARCHAR) ### Response: ### Response: SELECT bronze FROM table_name_7 WHERE year = 2006</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the least games played for 6 points ### Context: CREATE TABLE table_27816332_2 (games_played INTEGER, total_points VARCHAR) ### Response: ### Response: SELECT MIN(games_played) FROM table_27816332_2 WHERE total_points = 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the nationality of the athlete that ran the 10000 m event? ### Context: CREATE TABLE table_name_75 (nationality VARCHAR, event VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_75 WHERE event = "10000 m"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which teams were in the 2006-07 season? ### Context: CREATE TABLE table_name_41 (teams VARCHAR, season VARCHAR) ### Response: ### Response: SELECT teams FROM table_name_41 WHERE season = "2006-07"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: The stenhousemuir team had how many highest attendances? ### Context: CREATE TABLE table_11206916_1 (highest VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(highest) FROM table_11206916_1 WHERE team = "Stenhousemuir"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What type is You from the state of Chen? ### Context: CREATE TABLE table_name_91 (type VARCHAR, state VARCHAR, name VARCHAR) ### Response: ### Response: SELECT type FROM table_name_91 WHERE state = "chen" AND name = "you"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1st air date for the show where the writers are russel friend & garrett lerner. ### Context: CREATE TABLE table_22904780_1 (original_air_date VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_22904780_1 WHERE written_by = "Russel Friend & Garrett Lerner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 locomotive had a 2-8-2t type, entered service year prior to 1915, and which was built after 1911? ### Context: CREATE TABLE table_name_9 (locomotive VARCHAR, built VARCHAR, type VARCHAR, entered_service VARCHAR) ### Response: ### Response: SELECT locomotive FROM table_name_9 WHERE type = "2-8-2t" AND entered_service < 1915 AND built > 1911</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rounds with a 4-0 record? ### Context: CREATE TABLE table_name_57 (round VARCHAR, record VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_57 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: What is the Average for Silver medals that have more than 17 Golds? ### Context: CREATE TABLE table_name_50 (silver INTEGER, gold INTEGER) ### Response: ### Response: SELECT AVG(silver) FROM table_name_50 WHERE gold > 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: How many series had a production code of 202? ### Context: CREATE TABLE table_23799417_1 (no_in_series VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT COUNT(no_in_series) FROM table_23799417_1 WHERE production_code = 202</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Great Britain's lane with a heat less than 3? ### Context: CREATE TABLE table_name_40 (lane INTEGER, nationality VARCHAR, heat VARCHAR) ### Response: ### Response: SELECT AVG(lane) FROM table_name_40 WHERE nationality = "great britain" AND heat < 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the least bronze when the nation is soviet union and the total is less than 11? ### Context: CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(bronze) FROM table_name_51 WHERE nation = "soviet union" AND total < 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the product names that are colored 'white' but do not have unit of measurement "Handful". ### Context: CREATE TABLE products (product_name VARCHAR, product_category_code VARCHAR, color_code VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE ref_product_categories (product_category_code VARCHAR, unit_of_measure VARCHAR) ### Response: ### Response: SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code = t3.color_code WHERE t3.color_description = "white" AND t2.unit_of_measure <> "Handful"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 College of Rice's highest overall for the guard position? ### Context: CREATE TABLE table_name_62 (overall INTEGER, position VARCHAR, college VARCHAR) ### Response: ### Response: SELECT MAX(overall) FROM table_name_62 WHERE position = "guard" AND college = "rice"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 it is season 10 who are the writers? ### Context: CREATE TABLE table_20967430_3 (written_by VARCHAR, season VARCHAR) ### Response: ### Response: SELECT written_by FROM table_20967430_3 WHERE season = 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 power in kW corresponding to the station that covers General Santos? ### Context: CREATE TABLE table_name_63 (power__kw_ VARCHAR, coverage VARCHAR) ### Response: ### Response: SELECT power__kw_ FROM table_name_63 WHERE coverage = "general santos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 production stage managers worked with Gabriel di Chiara as the Male Rep? ### Context: CREATE TABLE table_22410780_1 (production_stagemanager VARCHAR, male_rep VARCHAR) ### Response: ### Response: SELECT COUNT(production_stagemanager) FROM table_22410780_1 WHERE male_rep = "Gabriel Di Chiara"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the opponent is washington redskins? ### Context: CREATE TABLE table_18847692_2 (record VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT record FROM table_18847692_2 WHERE opponent = "Washington Redskins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 enrollment amount where Hispanic (%) is 3.6? ### Context: CREATE TABLE table_14754471_1 (enrollment VARCHAR, hispanic___percentage_ VARCHAR) ### Response: ### Response: SELECT enrollment FROM table_14754471_1 WHERE hispanic___percentage_ = "3.6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the grand final dual television commentator status of the year when Amaury Vassili was the spokesperson? ### Context: CREATE TABLE table_name_52 (grand_final_dual_television_commentator VARCHAR, spokesperson VARCHAR) ### Response: ### Response: SELECT grand_final_dual_television_commentator FROM table_name_52 WHERE spokesperson = "amaury vassili"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 silvers did Turkey get? ### Context: CREATE TABLE table_name_78 (silver VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT silver FROM table_name_78 WHERE nation = "turkey"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Joanne Carner's average score in Canadian Women's Open games that she has won? ### Context: CREATE TABLE table_name_70 (score INTEGER, champion VARCHAR) ### Response: ### Response: SELECT AVG(score) FROM table_name_70 WHERE champion = "joanne carner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 time for 18 laps and 5 grids? ### Context: CREATE TABLE table_name_52 (time VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time FROM table_name_52 WHERE laps = 18 AND grid = 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 name when death is november 10, 1842? ### Context: CREATE TABLE table_name_80 (name VARCHAR, death VARCHAR) ### Response: ### Response: SELECT name FROM table_name_80 WHERE death = "november 10, 1842"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 UK broadcast date of the episode with Ben Okri as the presenter? ### Context: CREATE TABLE table_name_87 (uk_broadcast_date VARCHAR, presenter VARCHAR) ### Response: ### Response: SELECT uk_broadcast_date FROM table_name_87 WHERE presenter = "ben okri"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 swimmer in the lane less than 4, and is ranked greater than 4 what was the time? ### Context: CREATE TABLE table_name_42 (time VARCHAR, lane VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT time FROM table_name_42 WHERE lane < 4 AND rank > 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: Opponent of andry laffita had what score? ### Context: CREATE TABLE table_name_7 (score VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_7 WHERE opponent = "andry laffita"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 clock multiplier if the voltage range (v) is 3.3 - 3.6; input clock (mhz) is 33 x 3 / 50 x 2; and part number is a80486dx4-100? ### Context: CREATE TABLE table_15261_1 (clock_multiplier VARCHAR, part_number VARCHAR, voltage_range__v_ VARCHAR, input_clock__mhz_ VARCHAR) ### Response: ### Response: SELECT clock_multiplier FROM table_15261_1 WHERE voltage_range__v_ = "3.3 - 3.6" AND input_clock__mhz_ = "33 X 3 / 50 X 2" AND part_number = "A80486DX4-100"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round was Grant Long Drafted? ### Context: CREATE TABLE table_name_6 (round INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_6 WHERE player = "grant long"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 distinct winery of wines having price between 50 and 100. ### Context: CREATE TABLE WINE (Winery VARCHAR, Price INTEGER) ### Response: ### Response: SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 plural for the Meaning of night? ### Context: CREATE TABLE table_name_85 (plural VARCHAR, meaning VARCHAR) ### Response: ### Response: SELECT plural FROM table_name_85 WHERE meaning = "night"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 countries visited had an episode number of less than 7 when Ray Gosling was the writer? ### Context: CREATE TABLE table_name_26 (countries_visited VARCHAR, episode_no VARCHAR, writer VARCHAR) ### Response: ### Response: SELECT countries_visited FROM table_name_26 WHERE episode_no < 7 AND writer = "ray gosling"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 circuit in round 2? ### Context: CREATE TABLE table_24852622_1 (circuit VARCHAR, round VARCHAR) ### Response: ### Response: SELECT circuit FROM table_24852622_1 WHERE round = "2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the Manchester performer of Lisa Davina Phillip's character? ### Context: CREATE TABLE table_22460085_1 (original_manchester_performer VARCHAR, original_west_end_performer VARCHAR) ### Response: ### Response: SELECT original_manchester_performer FROM table_22460085_1 WHERE original_west_end_performer = "Lisa Davina Phillip"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 episode number of the episode that originally aired on January 26, 2009 and had a production number smaller than 38? ### Context: CREATE TABLE table_name_53 (episode_no VARCHAR, original_airdate VARCHAR, production_no VARCHAR) ### Response: ### Response: SELECT COUNT(episode_no) FROM table_name_53 WHERE original_airdate = "january 26, 2009" AND production_no < 38</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the lowest amount of laps with a start of 21? ### Context: CREATE TABLE table_name_32 (laps INTEGER, start VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_32 WHERE start = "21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year were howard cosell and jack whitaker reporters and s analyst is bill hartack? ### Context: CREATE TABLE table_22514845_4 (year INTEGER, reporters VARCHAR, s_analyst VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_22514845_4 WHERE reporters = "Howard Cosell and Jack Whitaker" AND s_analyst = "Bill Hartack"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 GDP for 2002-2005 for the construction center? ### Context: CREATE TABLE table_25282151_1 (supply_sector___percentage_of_gdp_in_current_prices_ VARCHAR) ### Response: ### Response: SELECT 2002 AS _2005 FROM table_25282151_1 WHERE supply_sector___percentage_of_gdp_in_current_prices_ = "Construction"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many values for founded when enrollment is 850? ### Context: CREATE TABLE table_22043925_1 (founded VARCHAR, enrolment VARCHAR) ### Response: ### Response: SELECT COUNT(founded) FROM table_22043925_1 WHERE enrolment = 850</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 locomotives were made that were withdrawn in 1913? ### Context: CREATE TABLE table_name_97 (quantity_made VARCHAR, withdrawn VARCHAR) ### Response: ### Response: SELECT quantity_made FROM table_name_97 WHERE withdrawn = "1913"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 plays at Victoria Park? ### Context: CREATE TABLE table_name_14 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_14 WHERE venue = "victoria 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 fewest minutes played for the player with exactly 638 good passes? ### Context: CREATE TABLE table_28461589_2 (mins_played INTEGER, good_passes VARCHAR) ### Response: ### Response: SELECT MIN(mins_played) FROM table_28461589_2 WHERE good_passes = 638</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the city with the top 5 white percentages. ### Context: CREATE TABLE city (Name VARCHAR, White VARCHAR) ### Response: ### Response: SELECT Name FROM city ORDER BY White DESC LIMIT 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who won the cup on 30.11.2008? ### Context: CREATE TABLE table_20462111_1 (winner VARCHAR, date VARCHAR) ### Response: ### Response: SELECT winner FROM table_20462111_1 WHERE date = "30.11.2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who wrote the program that originally aired on June 6, 1999? ### Context: CREATE TABLE table_name_90 (written_by VARCHAR, original_airdate VARCHAR) ### Response: ### Response: SELECT written_by FROM table_name_90 WHERE original_airdate = "june 6, 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: Name the years for marton and decile of 3 for turakina maori girls' college? ### Context: CREATE TABLE table_name_91 (years VARCHAR, name VARCHAR, area VARCHAR, decile VARCHAR) ### Response: ### Response: SELECT years FROM table_name_91 WHERE area = "marton" AND decile = 3 AND name = "turakina maori girls' college"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 scored 71-69=140? ### Context: CREATE TABLE table_name_30 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_30 WHERE score = 71 - 69 = 140</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Time has a Lane smaller than 2, and a Nationality of spain? ### Context: CREATE TABLE table_name_73 (time VARCHAR, lane VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT time FROM table_name_73 WHERE lane < 2 AND nationality = "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: When the points scored was over 110.25%, what's the average amount lost? ### Context: CREATE TABLE table_name_69 (lost INTEGER, _percentage_pts INTEGER) ### Response: ### Response: SELECT AVG(lost) FROM table_name_69 WHERE _percentage_pts > 110.25</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the player with playoff money from the United States? ### Context: CREATE TABLE table_name_87 (player VARCHAR, money___£__ VARCHAR, country VARCHAR) ### Response: ### Response: SELECT player FROM table_name_87 WHERE money___£__ = "playoff" AND country = "united states"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 democratic incumbent in the Illinois 11 district who was re-elected? ### Context: CREATE TABLE table_1341707_15 (incumbent VARCHAR, district VARCHAR, party VARCHAR, result VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_1341707_15 WHERE party = "Democratic" AND result = "Re-elected" AND district = "Illinois 11"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the high assists when the opponent was Indiana? ### Context: CREATE TABLE table_27882867_9 (high_assists VARCHAR, team VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_27882867_9 WHERE team = "Indiana"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the 18 to 49 rating when 9.50 million watched? ### Context: CREATE TABLE table_24689168_5 (rating__18_49_ VARCHAR, viewers__millions_ VARCHAR) ### Response: ### Response: SELECT rating__18_49_ FROM table_24689168_5 WHERE viewers__millions_ = "9.50"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Opponent with a Round of q2, in the 2005–06 season? ### Context: CREATE TABLE table_name_75 (opponent VARCHAR, round VARCHAR, season VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_75 WHERE round = "q2" AND season = "2005–06"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 live births were there in 2006 in South Yorkshire (met county)? ### Context: CREATE TABLE table_12251936_1 (live_births_2006 VARCHAR, county VARCHAR) ### Response: ### Response: SELECT live_births_2006 FROM table_12251936_1 WHERE county = "South Yorkshire (Met county)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Years Exp, when Height is "7-2"? ### Context: CREATE TABLE table_name_94 (years_exp VARCHAR, height VARCHAR) ### Response: ### Response: SELECT years_exp FROM table_name_94 WHERE height = "7-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 Colorado College's lowest pick number? ### Context: CREATE TABLE table_name_9 (pick__number INTEGER, college VARCHAR) ### Response: ### Response: SELECT MIN(pick__number) FROM table_name_9 WHERE college = "colorado"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grade for şımarık tarkan ### Context: CREATE TABLE table_21829580_1 (average_grade VARCHAR, song VARCHAR) ### Response: ### Response: SELECT average_grade FROM table_21829580_1 WHERE song = "Şımarık Tarkan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 michelob ultra mountains classification for darren lill ### Context: CREATE TABLE table_13223187_1 (michelob_ultra_mountains_classification_gold_polka_dot_jersey VARCHAR, drury_hotels_most_aggressive_rider_red_jersey VARCHAR) ### Response: ### Response: SELECT COUNT(michelob_ultra_mountains_classification_gold_polka_dot_jersey) FROM table_13223187_1 WHERE drury_hotels_most_aggressive_rider_red_jersey = "Darren Lill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What pick was Greg Strome? ### Context: CREATE TABLE table_2850912_6 (pick__number INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(pick__number) FROM table_2850912_6 WHERE player = "Greg Strome"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 quarterfinalists for the runner-ups of mike de palmer gary donnelly? ### Context: CREATE TABLE table_21584646_10 (quarterfinalists VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT quarterfinalists FROM table_21584646_10 WHERE runner_up = "Mike De Palmer Gary Donnelly"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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(s) when the city is kunming? ### Context: CREATE TABLE table_name_59 (year_s_ VARCHAR, city VARCHAR) ### Response: ### Response: SELECT year_s_ FROM table_name_59 WHERE city = "kunming"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 runs conceded for brett lee ### Context: CREATE TABLE table_15700367_4 (runs_conceded INTEGER, name VARCHAR) ### Response: ### Response: SELECT MIN(runs_conceded) FROM table_15700367_4 WHERE name = "Brett Lee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the surface of 2 december 1974 ### Context: CREATE TABLE table_name_58 (surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_58 WHERE date = "2 december 1974"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Number has a Language listed as other? ### Context: CREATE TABLE table_name_33 (number VARCHAR, language VARCHAR) ### Response: ### Response: SELECT number FROM table_name_33 WHERE language = "other"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Wednesday when day 3 is math? ### Context: CREATE TABLE table_name_24 (wednesday VARCHAR, day_3 VARCHAR) ### Response: ### Response: SELECT wednesday FROM table_name_24 WHERE day_3 = "math"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament for outcome of winner and score of 4-6 6-3 10-5 ### Context: CREATE TABLE table_name_90 (tournament VARCHAR, outcome VARCHAR, score VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_90 WHERE outcome = "winner" AND score = "4-6 6-3 10-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 type of institution is alvernia university ### Context: CREATE TABLE table_1974632_1 (type VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT type FROM table_1974632_1 WHERE institution = "Alvernia University"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What shows for gold when the rank is less than 3, and silver less than 1? ### Context: CREATE TABLE table_name_62 (gold INTEGER, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT SUM(gold) FROM table_name_62 WHERE rank < 3 AND silver < 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's the average grid that has a time/retired piston and laps smaller than 15? ### Context: CREATE TABLE table_name_81 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT AVG(grid) FROM table_name_81 WHERE time_retired = "piston" AND laps < 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the catalog number of Venus Demilo's A-side? ### Context: CREATE TABLE table_name_30 (catalog_number VARCHAR, a_side VARCHAR) ### Response: ### Response: SELECT catalog_number FROM table_name_30 WHERE a_side = "venus demilo"</s>