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: How many matches did goalkeeper Wilfredo Caballero have an average less than 1.11? ### Context: CREATE TABLE table_name_74 (matches INTEGER, goalkeeper VARCHAR, average VARCHAR) ### Response: ### Response: SELECT SUM(matches) FROM table_name_74 WHERE goalkeeper = "wilfredo caballero" AND average < 1.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: How many episodes aired on 25 october 2012? ### Context: CREATE TABLE table_25721_3 (total_viewers VARCHAR, airdate VARCHAR) ### Response: ### Response: SELECT COUNT(total_viewers) FROM table_25721_3 WHERE airdate = "25 October 2012"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 win percentage when John Gartin is coach, the record is 11-0, and the year is 2009? ### Context: CREATE TABLE table_name_80 (win__percentage INTEGER, year VARCHAR, coach VARCHAR, record VARCHAR) ### Response: ### Response: SELECT MAX(win__percentage) FROM table_name_80 WHERE coach = "john gartin" AND record = "11-0" AND year = "2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date was the format of ed remaster cd? ### Context: CREATE TABLE table_name_97 (date VARCHAR, format VARCHAR) ### Response: ### Response: SELECT date FROM table_name_97 WHERE format = "ed remaster cd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the model for Thor's Hammer which is listed as operating? ### Context: CREATE TABLE table_name_16 (model VARCHAR, status VARCHAR, name VARCHAR) ### Response: ### Response: SELECT model FROM table_name_16 WHERE status = "operating" AND name = "thor's hammer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nominee of best musical ### Context: CREATE TABLE table_name_67 (nominee VARCHAR, category VARCHAR) ### Response: ### Response: SELECT nominee FROM table_name_67 WHERE category = "best musical"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tra k was the march 19 race held? ### Context: CREATE TABLE table_2454550_1 (track VARCHAR, date VARCHAR) ### Response: ### Response: SELECT track FROM table_2454550_1 WHERE date = "March 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: What was the week 5 opponent for the year with a week 10 opponent of Maryland (6-2)? ### Context: CREATE TABLE table_name_81 (week_5_sept_28 VARCHAR, week_10_nov_2 VARCHAR) ### Response: ### Response: SELECT week_5_sept_28 FROM table_name_81 WHERE week_10_nov_2 = "maryland (6-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: When did the 113 episode air? ### Context: CREATE TABLE table_10718631_2 (original_air_date VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_10718631_2 WHERE no_in_series = 113</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 country for Sam Snead? ### Context: CREATE TABLE table_name_58 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_58 WHERE player = "sam snead"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Host team that has a chicago bears as a visiting team? ### Context: CREATE TABLE table_name_61 (host_team VARCHAR, visiting_team VARCHAR) ### Response: ### Response: SELECT host_team FROM table_name_61 WHERE visiting_team = "chicago bears"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the status for the opposing team South Africa? ### Context: CREATE TABLE table_name_9 (status VARCHAR, opposing_teams VARCHAR) ### Response: ### Response: SELECT status FROM table_name_9 WHERE opposing_teams = "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: On October 17, 1937 what was maximum number or attendants. ### Context: CREATE TABLE table_14608759_1 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_14608759_1 WHERE date = "October 17, 1937"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 games for the opponent in Washington? ### Context: CREATE TABLE table_name_89 (game VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_89 WHERE opponent = "washington"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What species has more than 2,030 genes? ### Context: CREATE TABLE table_name_22 (species VARCHAR, genes INTEGER) ### Response: ### Response: SELECT species FROM table_name_22 WHERE genes > 2 OFFSET 030</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location attendance for january 18 ### Context: CREATE TABLE table_23286112_8 (location_attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_23286112_8 WHERE date = "January 18"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most game with opponent of hartford whalers ### Context: CREATE TABLE table_name_75 (game INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_name_75 WHERE opponent = "hartford whalers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Skip has a Third of sara carlsson? ### Context: CREATE TABLE table_name_39 (skip VARCHAR, third VARCHAR) ### Response: ### Response: SELECT skip FROM table_name_39 WHERE third = "sara carlsson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 2007 value with NMS in 2011? ### Context: CREATE TABLE table_name_87 (Id VARCHAR) ### Response: ### Response: SELECT 2007 FROM table_name_87 WHERE 2011 = "nms"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What rank did Myleene Klass finish? ### Context: CREATE TABLE table_name_77 (finished VARCHAR, celebrity VARCHAR) ### Response: ### Response: SELECT finished FROM table_name_77 WHERE celebrity = "myleene klass"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1st ship delivery date of 6 ways? ### Context: CREATE TABLE table_name_87 (total_number_of_ways VARCHAR) ### Response: ### Response: SELECT 1 AS st_ship_delivery_date FROM table_name_87 WHERE total_number_of_ways = "6 ways"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which driver drove a Ferrari in the 2007 European Grand Prix with a grid less than 3? ### Context: CREATE TABLE table_name_78 (driver VARCHAR, constructor VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_78 WHERE constructor = "ferrari" AND grid < 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 was the date that Elvir Krehmic made a high jump record? ### Context: CREATE TABLE table_name_78 (date VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT date FROM table_name_78 WHERE athlete = "elvir krehmic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 no. 32 play for grizzles ### Context: CREATE TABLE table_16494599_5 (years_for_grizzlies VARCHAR, no VARCHAR) ### Response: ### Response: SELECT years_for_grizzlies FROM table_16494599_5 WHERE no = 32</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 method of the match with a win res., 1 round, and a 3-2 record? ### Context: CREATE TABLE table_name_44 (method VARCHAR, record VARCHAR, res VARCHAR, round VARCHAR) ### Response: ### Response: SELECT method FROM table_name_44 WHERE res = "win" AND round = 1 AND record = "3-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: Show the police force shared by counties with location on the east and west. ### Context: CREATE TABLE county_public_safety (Police_force VARCHAR, LOCATION VARCHAR) ### Response: ### Response: SELECT Police_force FROM county_public_safety WHERE LOCATION = "East" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION = "West"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank for april 2013 for 2012 ran kbeing 225 ### Context: CREATE TABLE table_24307126_3 (april_2013_cum_rank VARCHAR, rank_2012 VARCHAR) ### Response: ### Response: SELECT COUNT(april_2013_cum_rank) FROM table_24307126_3 WHERE rank_2012 = 225</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 on February 17? ### Context: CREATE TABLE table_name_77 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_77 WHERE date = "february 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 barony and an area of 560? ### Context: CREATE TABLE table_30120560_1 (barony VARCHAR, area__acres__ VARCHAR) ### Response: ### Response: SELECT barony FROM table_30120560_1 WHERE area__acres__ = 560</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the game played on 20 may? ### Context: CREATE TABLE table_name_19 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_19 WHERE date = "20 may"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 highest grid for a time/retired of +19.1 secs? ### Context: CREATE TABLE table_name_50 (grid INTEGER, time_retired VARCHAR) ### Response: ### Response: SELECT MAX(grid) FROM table_name_50 WHERE time_retired = "+19.1 secs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 former codes for merged into panama ( pa , pan , 591 ) ### Context: CREATE TABLE table_222666_1 (former_codes VARCHAR, new_country_names_and_codes VARCHAR) ### Response: ### Response: SELECT former_codes FROM table_222666_1 WHERE new_country_names_and_codes = "Merged into Panama ( PA , PAN , 591 )"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 title of the representative appointed by James K. Polk? ### Context: CREATE TABLE table_name_52 (title VARCHAR, appointed_by VARCHAR) ### Response: ### Response: SELECT title FROM table_name_52 WHERE appointed_by = "james k. polk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 district is the incumbent John Bell Williams? ### Context: CREATE TABLE table_1341930_24 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_1341930_24 WHERE incumbent = "John Bell Williams"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 goal for a GEO nat., that ended after 2010? ### Context: CREATE TABLE table_name_6 (goals INTEGER, nat VARCHAR, ends VARCHAR) ### Response: ### Response: SELECT MAX(goals) FROM table_name_6 WHERE nat = "geo" AND ends > 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 the to par when the winning score was 67-68-70-66=271? ### Context: CREATE TABLE table_name_76 (to_par VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_76 WHERE winning_score = 67 - 68 - 70 - 66 = 271</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the Result of new zealand Nationality / Opponent? ### Context: CREATE TABLE table_name_56 (result VARCHAR, nationality___opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_56 WHERE nationality___opponent = "new zealand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Team classification has a General classification of Vladimir Karpets and a Mountains classification of No Award? ### Context: CREATE TABLE table_name_88 (team_classification VARCHAR, general_classification VARCHAR, mountains_classification VARCHAR) ### Response: ### Response: SELECT team_classification FROM table_name_88 WHERE general_classification = "vladimir karpets" AND mountains_classification = "no award"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the final episode for Dea Agent? ### Context: CREATE TABLE table_11210576_3 (final_episode VARCHAR, position VARCHAR) ### Response: ### Response: SELECT final_episode FROM table_11210576_3 WHERE position = "DEA Agent"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attended the game at Busch Stadium (ii) when the time was 3:54? ### Context: CREATE TABLE table_name_88 (attendance VARCHAR, location VARCHAR, time VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_88 WHERE location = "busch stadium (ii)" AND time = "3:54"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Location is in the second division and has 4th, third division (promoted) as its Position in 2012-13? ### Context: CREATE TABLE table_name_67 (location VARCHAR, league_division VARCHAR, position_in_2012_13 VARCHAR) ### Response: ### Response: SELECT location FROM table_name_67 WHERE league_division = "second division" AND position_in_2012_13 = "4th, third division (promoted)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of moto2 winners for laguna seca ### Context: CREATE TABLE table_27948565_1 (moto2_winner VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT COUNT(moto2_winner) FROM table_27948565_1 WHERE circuit = "Laguna Seca"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 are all the players who've bowled more than 4969 balls? ### Context: CREATE TABLE table_2482547_5 (name VARCHAR, balls_bowled VARCHAR) ### Response: ### Response: SELECT name FROM table_2482547_5 WHERE balls_bowled = 4969</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 happened in 1988? ### Context: CREATE TABLE table_name_91 (name VARCHAR, year VARCHAR) ### Response: ### Response: SELECT name FROM table_name_91 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: How many players are on this list? ### Context: CREATE TABLE table_197638_6 (_number INTEGER) ### Response: ### Response: SELECT MAX(_number) FROM table_197638_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 total number of John Merrick as a runner up? ### Context: CREATE TABLE table_19630743_2 (no VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT COUNT(no) FROM table_19630743_2 WHERE runner_s__up = "John Merrick"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: display the full name (first and last name), and salary of those employees who working in any department located in London. ### Context: CREATE TABLE locations (location_id VARCHAR, city VARCHAR); CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR) ### Response: ### Response: SELECT first_name, last_name, salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crew for the Falcon? ### Context: CREATE TABLE table_name_87 (crew VARCHAR, lunar_lander VARCHAR) ### Response: ### Response: SELECT crew FROM table_name_87 WHERE lunar_lander = "falcon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 last yr with an l plyf less than 0? ### Context: CREATE TABLE table_name_98 (last_yr INTEGER, l_plyf INTEGER) ### Response: ### Response: SELECT AVG(last_yr) FROM table_name_98 WHERE l_plyf < 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: Show all video game types. ### Context: CREATE TABLE Video_games (gtype VARCHAR) ### Response: ### Response: SELECT DISTINCT gtype FROM Video_games</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 latest year of last final for the club whose last title was in 1994? ### Context: CREATE TABLE table_2869837_1 (last_final INTEGER, last_title VARCHAR) ### Response: ### Response: SELECT MAX(last_final) FROM table_2869837_1 WHERE last_title = "1994"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which sport has 17 as the medal count? ### Context: CREATE TABLE table_name_4 (sport VARCHAR, medal_count VARCHAR) ### Response: ### Response: SELECT sport FROM table_name_4 WHERE medal_count = 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: Which date had a score of 5-1? ### Context: CREATE TABLE table_name_20 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_20 WHERE score = "5-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 round number for East Carolina? ### Context: CREATE TABLE table_name_2 (round INTEGER, school VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_2 WHERE school = "east carolina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 color analyst for terry bowden and 17.2 ### Context: CREATE TABLE table_2724704_5 (color_analyst_s_ VARCHAR, studio_analyst_s_ VARCHAR, tv_rating VARCHAR) ### Response: ### Response: SELECT color_analyst_s_ FROM table_2724704_5 WHERE studio_analyst_s_ = "Terry Bowden" AND tv_rating = "17.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 day was the record 14-27? ### Context: CREATE TABLE table_23274514_6 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_23274514_6 WHERE record = "14-27"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of unique official languages spoken in the countries that are founded before 1930? ### Context: CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = "T"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 interview of Texas, with an average larger than 9.531? ### Context: CREATE TABLE table_name_86 (interview INTEGER, state VARCHAR, average VARCHAR) ### Response: ### Response: SELECT MIN(interview) FROM table_name_86 WHERE state = "texas" AND average > 9.531</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 signed year for the Chinese name 蘇永康 who separated in 1987? ### Context: CREATE TABLE table_name_82 (year_signed VARCHAR, year_separated VARCHAR, chinese_name VARCHAR) ### Response: ### Response: SELECT year_signed FROM table_name_82 WHERE year_separated = "1987" AND chinese_name = "蘇永康"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the runs for the opponent from the West Indies? ### Context: CREATE TABLE table_name_64 (runs VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT runs FROM table_name_64 WHERE opponent = "west indies"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What chassis has more than 0 points? ### Context: CREATE TABLE table_name_40 (chassis VARCHAR, points INTEGER) ### Response: ### Response: SELECT chassis FROM table_name_40 WHERE points > 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 tournament has yvonne vermaak as the opponent? ### Context: CREATE TABLE table_name_5 (tournament VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_5 WHERE opponent = "yvonne vermaak"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many have a class of 330? ### Context: CREATE TABLE table_name_97 (quantity_made VARCHAR, class VARCHAR) ### Response: ### Response: SELECT quantity_made FROM table_name_97 WHERE class = "330"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 themes of parties in ascending order of number of hosts. ### Context: CREATE TABLE party (Party_Theme VARCHAR, Number_of_hosts VARCHAR) ### Response: ### Response: SELECT Party_Theme FROM party ORDER BY Number_of_hosts</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2005 the earnings is less than 615,499 with less than 2 LPGA wins and what smallest Money list rank? ### Context: CREATE TABLE table_name_2 (money_list_rank INTEGER, earnings__$_ VARCHAR, lpga_wins VARCHAR, year VARCHAR) ### Response: ### Response: SELECT MIN(money_list_rank) FROM table_name_2 WHERE lpga_wins < 2 AND year = 2005 AND earnings__$_ < 615 OFFSET 499</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 urban area has a 2011 population of 5010? ### Context: CREATE TABLE table_1940144_1 (urban_area VARCHAR, population_2011 VARCHAR) ### Response: ### Response: SELECT urban_area FROM table_1940144_1 WHERE population_2011 = 5010</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 which apparatus did Kanayeva have a final score smaller than 75.5 and a qualifying score smaller than 18.7? ### Context: CREATE TABLE table_name_68 (apparatus VARCHAR, score_final VARCHAR, score_qualifying VARCHAR) ### Response: ### Response: SELECT apparatus FROM table_name_68 WHERE score_final < 75.5 AND score_qualifying < 18.7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Label has a Catalog of 7243 8 49494 2 6? ### Context: CREATE TABLE table_name_98 (label VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT label FROM table_name_98 WHERE catalog = "7243 8 49494 2 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: For the ship that was a brig and located in the English Channel, what was the disposition of ship? ### Context: CREATE TABLE table_name_57 (disposition_of_ship VARCHAR, ship_type VARCHAR, location VARCHAR) ### Response: ### Response: SELECT disposition_of_ship FROM table_name_57 WHERE ship_type = "brig" AND location = "english channel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date was the game that had a score of 7–0? ### Context: CREATE TABLE table_name_91 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_91 WHERE score = "7–0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who was the director of the episode with production code ad1a26? ### Context: CREATE TABLE table_name_38 (directed_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_name_38 WHERE production_code = "ad1a26"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latitude is 76°25′n, what is the longitude? ### Context: CREATE TABLE table_name_52 (longitude VARCHAR, latitude VARCHAR) ### Response: ### Response: SELECT longitude FROM table_name_52 WHERE latitude = "76°25′n"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winners scored exactly 202 (-11)? ### Context: CREATE TABLE table_21260421_1 (winner VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(winner) FROM table_21260421_1 WHERE score = "202 (-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: In connecticut the school/club team/country had a set height in ft. what is true for them? ### Context: CREATE TABLE table_11734041_10 (height_in_ft VARCHAR, school_club_team_country VARCHAR) ### Response: ### Response: SELECT height_in_ft FROM table_11734041_10 WHERE school_club_team_country = "Connecticut"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of game 26 with beno udrih (4) as the highest assists? ### Context: CREATE TABLE table_name_41 (record VARCHAR, high_assists VARCHAR, game VARCHAR) ### Response: ### Response: SELECT record FROM table_name_41 WHERE high_assists = "beno udrih (4)" AND game = 26</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what Date is Alexandra Fusai a Partner with a Score of 4–6, 6–3, 6–1? ### Context: CREATE TABLE table_name_46 (date VARCHAR, partner VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_46 WHERE partner = "alexandra fusai" AND score = "4–6, 6–3, 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: Who was the Locomotive superintendent has a NER class of d45? ### Context: CREATE TABLE table_name_45 (locomotive_superintendent VARCHAR, lner_class VARCHAR) ### Response: ### Response: SELECT locomotive_superintendent FROM table_name_45 WHERE lner_class = "d45"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result of the Australian Championships? ### Context: CREATE TABLE table_2139023_2 (outcome VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT outcome FROM table_2139023_2 WHERE championship = "Australian championships"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outgoing manager for rijeka ### Context: CREATE TABLE table_27225944_3 (outgoing_manager VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(outgoing_manager) FROM table_27225944_3 WHERE team = "Rijeka"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 replaced by where date of vacancy is 31 december 2008 where position in table is 1st ### Context: CREATE TABLE table_17039232_3 (replaced_by VARCHAR, date_of_vacancy VARCHAR, position_in_table VARCHAR) ### Response: ### Response: SELECT replaced_by FROM table_17039232_3 WHERE date_of_vacancy = "31 December 2008" AND position_in_table = "1st"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 segment b is dining room tables what is segment d? ### Context: CREATE TABLE table_15187735_5 (segment_d VARCHAR, segment_b VARCHAR) ### Response: ### Response: SELECT segment_d FROM table_15187735_5 WHERE segment_b = "Dining Room Tables"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 distinct visit dates? ### Context: CREATE TABLE VISITS (Visit_Date VARCHAR) ### Response: ### Response: SELECT DISTINCT Visit_Date FROM VISITS</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What years is the private school in upper hutt? ### Context: CREATE TABLE table_name_90 (years VARCHAR, area VARCHAR, authority VARCHAR) ### Response: ### Response: SELECT years FROM table_name_90 WHERE area = "upper hutt" AND authority = "private"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 character was nominated in the 2010 Indian Television Academy Awards? ### Context: CREATE TABLE table_name_1 (character VARCHAR, year VARCHAR, award_ceremony VARCHAR) ### Response: ### Response: SELECT character FROM table_name_1 WHERE year = 2010 AND award_ceremony = "indian television academy awards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Venue has a League of ncaa, and a Founded smaller than 1965, and a Club of penn state nittany lions men's ice hockey? ### Context: CREATE TABLE table_name_24 (venue VARCHAR, club VARCHAR, league VARCHAR, founded VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_24 WHERE league = "ncaa" AND founded < 1965 AND club = "penn state nittany lions men's ice hockey"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 league apps for total apps of 5 ### Context: CREATE TABLE table_27086613_5 (league_apps INTEGER, total_apps VARCHAR) ### Response: ### Response: SELECT MIN(league_apps) FROM table_27086613_5 WHERE total_apps = 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: When was the Mallala race held? ### Context: CREATE TABLE table_name_57 (date VARCHAR, race_title VARCHAR) ### Response: ### Response: SELECT date FROM table_name_57 WHERE race_title = "mallala"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Name has a Reserved for of none, and a Constituency number of 7? ### Context: CREATE TABLE table_name_96 (name VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) ### Response: ### Response: SELECT name FROM table_name_96 WHERE reserved_for___sc___st__none_ = "none" AND constituency_number = "7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 launch date is 14.09.2005, and the frequency is 900mhz and 1800mhz, how many carriers are there? ### Context: CREATE TABLE table_19246_1 (carrier VARCHAR, frequency VARCHAR, launch_date__ddmmyyyy_ VARCHAR) ### Response: ### Response: SELECT COUNT(carrier) FROM table_19246_1 WHERE frequency = "900MHz and 1800MHz" AND launch_date__ddmmyyyy_ = "14.09.2005"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tournament has a Winning score of e (72-69-71-68=280)? ### Context: CREATE TABLE table_name_15 (tournament VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_15 WHERE winning_score = E(72 - 69 - 71 - 68 = 280)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 different records were there in the games that ended in w 70-66? ### Context: CREATE TABLE table_18904831_5 (record VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(record) FROM table_18904831_5 WHERE score = "W 70-66"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 knots did the Ms Moby Vincent have when passengers was less than 1.6? ### Context: CREATE TABLE table_name_11 (knots VARCHAR, ship VARCHAR, passengers VARCHAR) ### Response: ### Response: SELECT COUNT(knots) FROM table_name_11 WHERE ship = "ms moby vincent" AND passengers < 1.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's the first elected with district being florida 7 ### Context: CREATE TABLE table_1341604_10 (first_elected VARCHAR, district VARCHAR) ### Response: ### Response: SELECT first_elected FROM table_1341604_10 WHERE district = "Florida 7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of opponets for 05/09/2009 ### Context: CREATE TABLE table_21269143_1 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(opponent) FROM table_21269143_1 WHERE date = "05/09/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: If Wed Aug 25 is —— no time, what is Sat aug 21? ### Context: CREATE TABLE table_26986076_1 (sat_21_aug VARCHAR, wed_25_aug VARCHAR) ### Response: ### Response: SELECT sat_21_aug FROM table_26986076_1 WHERE wed_25_aug = "—— No Time"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +? ### Context: CREATE TABLE table_name_41 (particle VARCHAR, isospin_i VARCHAR, commonly_decays_to VARCHAR) ### Response: ### Response: SELECT particle FROM table_name_41 WHERE isospin_i = "1" AND commonly_decays_to = "p + + π 0 or n 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 Teleplay, when Season is greater than 1.1, and when First Broadcast is "February 20, 1981"? ### Context: CREATE TABLE table_name_37 (teleplay VARCHAR, season VARCHAR, first_broadcast VARCHAR) ### Response: ### Response: SELECT teleplay FROM table_name_37 WHERE season > 1.1 AND first_broadcast = "february 20, 1981"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 0.00% in 2004? ### Context: CREATE TABLE table_name_71 (party VARCHAR, results_2004 VARCHAR) ### Response: ### Response: SELECT party FROM table_name_71 WHERE results_2004 = "0.00%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 College has a Round of 11, and a Position of wr? ### Context: CREATE TABLE table_name_42 (college VARCHAR, round VARCHAR, position VARCHAR) ### Response: ### Response: SELECT college FROM table_name_42 WHERE round = 11 AND position = "wr"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Gaelic Athletic Association stadium is located in Carrick-on-Shannon? ### Context: CREATE TABLE table_name_72 (stadium VARCHAR, location VARCHAR) ### Response: ### Response: SELECT stadium FROM table_name_72 WHERE location = "carrick-on-shannon"</s>