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 lengths did Phoenix International Raceway host? ### Context: CREATE TABLE table_22669816_1 (length VARCHAR, track VARCHAR) ### Response: ### Response: SELECT length FROM table_22669816_1 WHERE track = "Phoenix International 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: Which Television service has a Content of general television? ### Context: CREATE TABLE table_name_49 (television_service VARCHAR, content VARCHAR) ### Response: ### Response: SELECT television_service FROM table_name_49 WHERE content = "general television"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 highest capacity for a position of 5 in 2004? ### Context: CREATE TABLE table_name_81 (capacity INTEGER, position_in_2004 VARCHAR) ### Response: ### Response: SELECT MAX(capacity) FROM table_name_81 WHERE position_in_2004 = "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's the quantity made when the manufacturer was 4-6-2 — oooooo — pacific? ### Context: CREATE TABLE table_name_7 (quantity_made VARCHAR, manufacturer VARCHAR) ### Response: ### Response: SELECT quantity_made FROM table_name_7 WHERE manufacturer = "4-6-2 — oooooo — pacific"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bp comp 2 for % wt comp 1 of 76 ### Context: CREATE TABLE table_name_32 (bp_comp_2__˚c_ VARCHAR, _percentage_wt_comp_1 VARCHAR) ### Response: ### Response: SELECT bp_comp_2__˚c_ FROM table_name_32 WHERE _percentage_wt_comp_1 = 76</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When hermann uhde is the count who is the conductor? ### Context: CREATE TABLE table_29728787_1 (conductor VARCHAR, count VARCHAR) ### Response: ### Response: SELECT conductor FROM table_29728787_1 WHERE count = "Hermann Uhde"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Country of the Player in Place 1? ### Context: CREATE TABLE table_name_39 (country VARCHAR, place VARCHAR) ### Response: ### Response: SELECT country FROM table_name_39 WHERE place = "1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many assists did Delisha Milton-Jones make? ### Context: CREATE TABLE table_19722664_5 (assists VARCHAR, player VARCHAR) ### Response: ### Response: SELECT assists FROM table_19722664_5 WHERE player = "DeLisha Milton-Jones"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the lead on the Europe team that has a Liudmila Privivkova as the skip? ### Context: CREATE TABLE table_name_18 (lead VARCHAR, team VARCHAR, skip VARCHAR) ### Response: ### Response: SELECT lead FROM table_name_18 WHERE team = "europe" AND skip = "liudmila privivkova"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most common apartment type code. ### Context: CREATE TABLE Apartments (apt_type_code VARCHAR) ### Response: ### Response: SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the compression ratio whre the torque is 208? ### Context: CREATE TABLE table_23722304_2 (compression_ratio VARCHAR, torque__n_m_ VARCHAR) ### Response: ### Response: SELECT compression_ratio FROM table_23722304_2 WHERE torque__n_m_ = 208</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date was the opponent the Boston Yanks? ### Context: CREATE TABLE table_name_44 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_44 WHERE opponent = "boston yanks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 class for admiral and hms frobisher ### Context: CREATE TABLE table_name_35 (class VARCHAR, rank VARCHAR, ship VARCHAR) ### Response: ### Response: SELECT class FROM table_name_35 WHERE rank = "admiral" AND ship = "hms frobisher"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total goals have a FA Cup Apps larger than 1, and a Total Apps of 37, and a League Apps smaller than 30?, what is the total number? ### Context: CREATE TABLE table_name_20 (total_goals VARCHAR, league_apps VARCHAR, fa_cup_apps VARCHAR, total_apps VARCHAR) ### Response: ### Response: SELECT COUNT(total_goals) FROM table_name_20 WHERE fa_cup_apps > 1 AND total_apps = 37 AND league_apps < 30</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sport for canada in 2004 ### Context: CREATE TABLE table_name_40 (sport VARCHAR, country VARCHAR, year VARCHAR) ### Response: ### Response: SELECT sport FROM table_name_40 WHERE country = "canada" AND year = 2004</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What episode premier received 0.680 million viewers? ### Context: CREATE TABLE table_23392257_4 (original_airdate VARCHAR, viewers__millions_ VARCHAR) ### Response: ### Response: SELECT original_airdate FROM table_23392257_4 WHERE viewers__millions_ = "0.680"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Before the year 2012, what award was given to the artist in the category of revelación pop del año? ### Context: CREATE TABLE table_name_49 (award VARCHAR, year VARCHAR, category VARCHAR) ### Response: ### Response: SELECT award FROM table_name_49 WHERE year < 2012 AND category = "revelación pop del año"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 original artist when the vocal percussionist is Alexei Kalveks? ### Context: CREATE TABLE table_28715942_5 (original_artist VARCHAR, vocal_percussionist VARCHAR) ### Response: ### Response: SELECT original_artist FROM table_28715942_5 WHERE vocal_percussionist = "Alexei Kalveks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 draws were there with goals against that did not qualify for UEFA competitions? ### Context: CREATE TABLE table_name_56 (drew VARCHAR, goals_against VARCHAR) ### Response: ### Response: SELECT drew FROM table_name_56 WHERE goals_against = "did not qualify for uefa competitions"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What week did the dallas cowboys play? ### Context: CREATE TABLE table_name_78 (week INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT SUM(week) FROM table_name_78 WHERE opponent = "dallas cowboys"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 battles did not lose any ship with tonnage '225'? ### Context: CREATE TABLE ship (id VARCHAR, lost_in_battle VARCHAR, tonnage VARCHAR); CREATE TABLE battle (id VARCHAR, lost_in_battle VARCHAR, tonnage VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM battle WHERE NOT id IN (SELECT lost_in_battle FROM ship WHERE tonnage = '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: Which Ratio has a Name of ansi e? ### Context: CREATE TABLE table_name_67 (ratio INTEGER, name VARCHAR) ### Response: ### Response: SELECT MIN(ratio) FROM table_name_67 WHERE name = "ansi e"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 candidates when Jack Fields was the incumbent? ### Context: CREATE TABLE table_1341577_44 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1341577_44 WHERE incumbent = "Jack Fields"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 losses for teams with points of 53 and more than 73 goals for? ### Context: CREATE TABLE table_name_23 (lost INTEGER, points_1 VARCHAR, goals_for VARCHAR) ### Response: ### Response: SELECT MIN(lost) FROM table_name_23 WHERE points_1 = "53" AND goals_for > 73</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who has the high assists when 50-26 is the record? ### Context: CREATE TABLE table_23284271_10 (high_assists VARCHAR, record VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_23284271_10 WHERE record = "50-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: When sylvania, oh is the location what is the team nickname? ### Context: CREATE TABLE table_28211213_2 (team_nickname VARCHAR, location VARCHAR) ### Response: ### Response: SELECT team_nickname FROM table_28211213_2 WHERE location = "Sylvania, OH"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 label that has the most albums? ### Context: CREATE TABLE albums (label VARCHAR) ### Response: ### Response: SELECT label FROM albums GROUP BY label ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: At time 15:29.69 what was the heat? ### Context: CREATE TABLE table_name_1 (heat VARCHAR, time VARCHAR) ### Response: ### Response: SELECT heat FROM table_name_1 WHERE time = "15:29.69"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 minimum score for r2? ### Context: CREATE TABLE table_18812411_3 (r2 INTEGER) ### Response: ### Response: SELECT MIN(r2) FROM table_18812411_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 QLD Cup Premierships if team is Gold Coast Vikings? ### Context: CREATE TABLE table_2383498_4 (qld_cup_premierships VARCHAR, team VARCHAR) ### Response: ### Response: SELECT qld_cup_premierships FROM table_2383498_4 WHERE team = "Gold Coast Vikings"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date did Delage win? ### Context: CREATE TABLE table_name_34 (date VARCHAR, winning_constructor VARCHAR) ### Response: ### Response: SELECT date FROM table_name_34 WHERE winning_constructor = "delage"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 most sets won with less than 1 legs won? ### Context: CREATE TABLE table_name_25 (sets_won INTEGER, legs_won INTEGER) ### Response: ### Response: SELECT MAX(sets_won) FROM table_name_25 WHERE legs_won < 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 percentage of growth in 2000-2008 in ethiopia? ### Context: CREATE TABLE table_10733530_3 (_percentage_growth__2000_2008_ VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT _percentage_growth__2000_2008_ FROM table_10733530_3 WHERE nation = "Ethiopia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the English word for twie? ### Context: CREATE TABLE table_name_43 (english VARCHAR, twie VARCHAR, Limburgish VARCHAR) ### Response: ### Response: SELECT english FROM table_name_43 WHERE DUTCH(Limburgish) = twie</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 swimsuit with Preliminaries smaller than 8.27? ### Context: CREATE TABLE table_name_48 (swimsuit INTEGER, preliminaries INTEGER) ### Response: ### Response: SELECT SUM(swimsuit) FROM table_name_48 WHERE preliminaries < 8.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: Who played on clay and had a score of 6–1, 7–6? ### Context: CREATE TABLE table_name_31 (opponent VARCHAR, surface VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_31 WHERE surface = "clay" AND score = "6–1, 7–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: How many drivers drove 300 laps at average speed of 103.594? ### Context: CREATE TABLE table_2175858_1 (driver VARCHAR, laps VARCHAR, average_speed__mph_ VARCHAR) ### Response: ### Response: SELECT COUNT(driver) FROM table_2175858_1 WHERE laps = "300" AND average_speed__mph_ = "103.594"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Player, when To Par is greater than 6, and when Year(s) Won is "1962 , 1967"? ### Context: CREATE TABLE table_name_41 (player VARCHAR, to_par VARCHAR, year_s__won VARCHAR) ### Response: ### Response: SELECT player FROM table_name_41 WHERE to_par > 6 AND year_s__won = "1962 , 1967"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tie #26 played? ### Context: CREATE TABLE table_name_90 (date VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT date FROM table_name_90 WHERE tie_no = "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: What is the the name of the NHL team that is in the same market as the NBA team, Nuggets? ### Context: CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, nba_team_s_ VARCHAR) ### Response: ### Response: SELECT nhl_team_s_ FROM table_1205598_1 WHERE nba_team_s_ = "Nuggets"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did South Melbourne play as the away team? ### Context: CREATE TABLE table_name_74 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_74 WHERE away_team = "south melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the least laps for driver gerhard berger with a grid more than 6? ### Context: CREATE TABLE table_name_35 (laps INTEGER, driver VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_35 WHERE driver = "gerhard berger" AND grid > 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: On which date did Richmond play as an away team? ### Context: CREATE TABLE table_name_4 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_4 WHERE away_team = "richmond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position did the school of alabama draft? ### Context: CREATE TABLE table_name_21 (position VARCHAR, school VARCHAR) ### Response: ### Response: SELECT position FROM table_name_21 WHERE school = "alabama"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 music is jive? ### Context: CREATE TABLE table_name_20 (music VARCHAR, style VARCHAR) ### Response: ### Response: SELECT music FROM table_name_20 WHERE style = "jive"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 solar eclipse during August 21-22 where June 10-11 on June 11, 1983? ### Context: CREATE TABLE table_25287007_2 (august_21_22 VARCHAR, june_10_11 VARCHAR) ### Response: ### Response: SELECT COUNT(august_21_22) FROM table_25287007_2 WHERE june_10_11 = "June 11, 1983"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the rank for laps less than 130 and year of 1951 ### Context: CREATE TABLE table_name_31 (rank VARCHAR, laps VARCHAR, year VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_31 WHERE laps < 130 AND year = "1951"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wheels does the train owned by Texas and New Orleans Railroad #319 have? ### Context: CREATE TABLE table_1057316_1 (wheel_arrangement___whyte_notation__ VARCHAR, operational_owner_s_ VARCHAR) ### Response: ### Response: SELECT COUNT(wheel_arrangement___whyte_notation__) FROM table_1057316_1 WHERE operational_owner_s_ = "Texas and New Orleans Railroad #319"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent on November 15, 1981? ### Context: CREATE TABLE table_name_70 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_70 WHERE date = "november 15, 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: What is the total number of laps for a team of team player's, and has a grid of 9, and points larger than 10? ### Context: CREATE TABLE table_name_12 (laps VARCHAR, points VARCHAR, team VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT COUNT(laps) FROM table_name_12 WHERE team = "team player's" AND grid = 9 AND points > 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: Who did the Raptors play against when their record was 13-48? ### Context: CREATE TABLE table_13619053_8 (team VARCHAR, record VARCHAR) ### Response: ### Response: SELECT team FROM table_13619053_8 WHERE record = "13-48"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average and minimum age of captains in different class? ### Context: CREATE TABLE captain (CLASS VARCHAR, age INTEGER) ### Response: ### Response: SELECT AVG(age), MIN(age), CLASS FROM captain GROUP BY CLASS</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: During which Game 4, did Brett Kenny play Game 2? ### Context: CREATE TABLE table_name_52 (game_4 VARCHAR, game_2 VARCHAR) ### Response: ### Response: SELECT game_4 FROM table_name_52 WHERE game_2 = "brett kenny"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 entrant with a chassis of m185b m186? ### Context: CREATE TABLE table_name_65 (entrant VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT entrant FROM table_name_65 WHERE chassis = "m185b m186"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What game did the Buffalo Bills' opponents earn more than 28 points? ### Context: CREATE TABLE table_name_59 (game VARCHAR, opponents INTEGER) ### Response: ### Response: SELECT game FROM table_name_59 WHERE opponents > 28</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 original air date of Stargate SG-1 written by Peter Deluise? ### Context: CREATE TABLE table_15431959_1 (original_air_date VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_15431959_1 WHERE written_by = "Peter DeLuise"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 document type name for the document with name "How to read a book"? ### Context: CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_code VARCHAR); CREATE TABLE All_documents (document_type_code VARCHAR, document_name VARCHAR) ### Response: ### Response: SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = "How to read a book"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 swimmer from the United States in a lane less than 5, had what as the average time? ### Context: CREATE TABLE table_name_8 (time INTEGER, nationality VARCHAR, lane VARCHAR) ### Response: ### Response: SELECT AVG(time) FROM table_name_8 WHERE nationality = "united states" AND lane < 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: Show all the distinct institution types. ### Context: CREATE TABLE institution (TYPE VARCHAR) ### Response: ### Response: SELECT DISTINCT TYPE FROM institution</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score for game 5 ### Context: CREATE TABLE table_27539272_4 (score VARCHAR, game VARCHAR) ### Response: ### Response: SELECT score FROM table_27539272_4 WHERE game = 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 were the authors of the episode first broadcast on August 10, 2012? ### Context: CREATE TABLE table_28081876_6 (written_by VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT written_by FROM table_28081876_6 WHERE original_air_date = "August 10, 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: Which home team played against Hawthorn? ### Context: CREATE TABLE table_name_49 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_49 WHERE away_team = "hawthorn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 video ratio on channel 14.2? ### Context: CREATE TABLE table_name_75 (video VARCHAR, channel VARCHAR) ### Response: ### Response: SELECT video FROM table_name_75 WHERE channel = 14.2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the score for the 5th position and a score less than 7 ### Context: CREATE TABLE table_name_40 (b_score INTEGER, position VARCHAR, a_score VARCHAR) ### Response: ### Response: SELECT MIN(b_score) FROM table_name_40 WHERE position = "5th" AND a_score < 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: What was the loss when the score was 7-1? ### Context: CREATE TABLE table_name_26 (loss VARCHAR, score VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_26 WHERE score = "7-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 Airport in Oslo? ### Context: CREATE TABLE table_name_64 (airport VARCHAR, city VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_64 WHERE city = "oslo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 trinidad for yellow-bellied puffing snake ### Context: CREATE TABLE table_1850282_7 (trinidad VARCHAR, common_name VARCHAR) ### Response: ### Response: SELECT trinidad FROM table_1850282_7 WHERE common_name = "Yellow-bellied puffing snake"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Draws has a Wins smaller than 17, and an Against smaller than 1158? ### Context: CREATE TABLE table_name_64 (draws VARCHAR, wins VARCHAR, against VARCHAR) ### Response: ### Response: SELECT COUNT(draws) FROM table_name_64 WHERE wins < 17 AND against < 1158</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What TV network is the series aistrų žemė aired on? ### Context: CREATE TABLE table_name_21 (tv_network_s_ VARCHAR, alternate_title_translation VARCHAR) ### Response: ### Response: SELECT tv_network_s_ FROM table_name_21 WHERE alternate_title_translation = "aistrų žemė"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Source, when Cartridge is .375 remington ultra magnum? ### Context: CREATE TABLE table_name_62 (source VARCHAR, cartridge VARCHAR) ### Response: ### Response: SELECT source FROM table_name_62 WHERE cartridge = ".375 remington ultra magnum"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Year larger than 2001 has what average points? ### Context: CREATE TABLE table_name_92 (points INTEGER, year INTEGER) ### Response: ### Response: SELECT AVG(points) FROM table_name_92 WHERE year > 2001</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Meet of 2007 Pan American Games with a Time of 1:07.78? ### Context: CREATE TABLE table_name_66 (date VARCHAR, meet VARCHAR, time VARCHAR) ### Response: ### Response: SELECT date FROM table_name_66 WHERE meet = "2007 pan american games" AND time = "1:07.78"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: From what catalog was the release from Sundazed label? ### Context: CREATE TABLE table_name_33 (catalog VARCHAR, label VARCHAR) ### Response: ### Response: SELECT catalog FROM table_name_33 WHERE label = "sundazed"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for pennsylvania 8 ### Context: CREATE TABLE table_2668352_14 (result VARCHAR, district VARCHAR) ### Response: ### Response: SELECT result FROM table_2668352_14 WHERE district = "Pennsylvania 8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the centerfold model when the issue's pictorial was amanda beard, reby sky , girls of montauk ? ### Context: CREATE TABLE table_1566852_8 (centerfold_model VARCHAR, pictorials VARCHAR) ### Response: ### Response: SELECT centerfold_model FROM table_1566852_8 WHERE pictorials = "Amanda Beard, Reby Sky , Girls of Montauk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd for essendon ### Context: CREATE TABLE table_16388439_1 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_16388439_1 WHERE away_team = "Essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Total has Gold of 2? ### Context: CREATE TABLE table_name_60 (total INTEGER, gold VARCHAR) ### Response: ### Response: SELECT MAX(total) FROM table_name_60 WHERE gold = 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date of the game that led to a 48-21-6 record? ### Context: CREATE TABLE table_name_33 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_33 WHERE record = "48-21-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: Which HMO has a conventional plan of 3% in 2005? ### Context: CREATE TABLE table_name_96 (hmos VARCHAR, conventional_plans VARCHAR, year VARCHAR) ### Response: ### Response: SELECT hmos FROM table_name_96 WHERE conventional_plans = "3%" AND year = 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: What is the Opponent at the Honda Center on March 29? ### Context: CREATE TABLE table_name_66 (opponent VARCHAR, arena VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_66 WHERE arena = "honda center" AND date = "march 29"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 candidate in the 2012 election? ### Context: CREATE TABLE table_name_50 (candidate VARCHAR, election VARCHAR) ### Response: ### Response: SELECT candidate FROM table_name_50 WHERE election = "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: Who are the opponents for games on Sunday, June 9? ### Context: CREATE TABLE table_24918268_2 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_24918268_2 WHERE date = "Sunday, June 9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Year has a Best Film of mystery? ### Context: CREATE TABLE table_name_80 (year VARCHAR, best_film VARCHAR) ### Response: ### Response: SELECT year FROM table_name_80 WHERE best_film = "mystery"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the league cup in the 2007-08 season? ### Context: CREATE TABLE table_name_90 (score VARCHAR, competition VARCHAR, season VARCHAR) ### Response: ### Response: SELECT score FROM table_name_90 WHERE competition = "league cup" AND season = "2007-08"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score when the partner is Rafael Osuna? ### Context: CREATE TABLE table_2215159_2 (score VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT score FROM table_2215159_2 WHERE partner = "Rafael Osuna"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the position is 1/22 promoted and the leading scorer is james dean (27)? ### Context: CREATE TABLE table_name_81 (year VARCHAR, position VARCHAR, leading_scorer VARCHAR) ### Response: ### Response: SELECT year FROM table_name_81 WHERE position = "1/22 promoted" AND leading_scorer = "james dean (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 was the original air date of the episode written by Michelle Offen? ### Context: CREATE TABLE table_19517621_4 (original_airdate VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT original_airdate FROM table_19517621_4 WHERE written_by = "Michelle Offen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Tie no when the date is Birmingham City? ### Context: CREATE TABLE table_name_22 (tie_no INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(tie_no) FROM table_name_22 WHERE date = "birmingham city"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What percentage of users were using Netscape during the period in which 63.67% were using Internet Explorer? ### Context: CREATE TABLE table_name_54 (netscape VARCHAR, internet_explorer VARCHAR) ### Response: ### Response: SELECT netscape FROM table_name_54 WHERE internet_explorer = "63.67%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year(s) won with a To par of 12? ### Context: CREATE TABLE table_name_84 (year_s__won VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT year_s__won FROM table_name_84 WHERE to_par = 12</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Record with a Leading scorer with andrew bogut (29)? ### Context: CREATE TABLE table_name_49 (record VARCHAR, leading_scorer VARCHAR) ### Response: ### Response: SELECT record FROM table_name_49 WHERE leading_scorer = "andrew bogut (29)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 away team's score at brunswick street oval? ### Context: CREATE TABLE table_name_80 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_80 WHERE venue = "brunswick street oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What away team plays at Arden Street Oval? ### Context: CREATE TABLE table_name_82 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_82 WHERE venue = "arden street oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the customer id of the customer who has the most orders? ### Context: CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR) ### Response: ### Response: SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What college team did draft pick 18 come from? ### Context: CREATE TABLE table_2850912_1 (college_junior_club_team VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT college_junior_club_team FROM table_2850912_1 WHERE pick__number = 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: What grid has 24 points? ### Context: CREATE TABLE table_name_88 (grid VARCHAR, points VARCHAR) ### Response: ### Response: SELECT grid FROM table_name_88 WHERE points = "24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's the country with es mulatto being 3.5% ### Context: CREATE TABLE table_1333612_1 (country VARCHAR, es_mulatto VARCHAR) ### Response: ### Response: SELECT country FROM table_1333612_1 WHERE es_mulatto = "3.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 team was the away team at Junction Oval? ### Context: CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_20 WHERE venue = "junction oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who produced the track that is 4:16 long? ### Context: CREATE TABLE table_name_25 (producer_s_ VARCHAR, length VARCHAR) ### Response: ### Response: SELECT producer_s_ FROM table_name_25 WHERE length = "4:16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What competition has 17-1 as the result? ### Context: CREATE TABLE table_name_71 (competition VARCHAR, result VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_71 WHERE result = "17-1"</s>