inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest game number with a record of 12-8-1? ### Context: CREATE TABLE table_name_29 (game INTEGER, record VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_name_29 WHERE record = "12-8-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 attendances had the Detroit Lions as opponents? ### Context: CREATE TABLE table_name_11 (attendance INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_11 WHERE opponent = "detroit lions"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where is the school whose students are nicknamed falcons located? ### Context: CREATE TABLE table_1974545_2 (location VARCHAR, nickname VARCHAR) ### Response: ### Response: SELECT location FROM table_1974545_2 WHERE nickname = "Falcons"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Is Blonanserin MHRA approved? ### Context: CREATE TABLE table_name_24 (mhra_approved VARCHAR, generic_name VARCHAR) ### Response: ### Response: SELECT mhra_approved FROM table_name_24 WHERE generic_name = "blonanserin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 june 10-11 when august 21-22 is august 21, 2017? ### Context: CREATE TABLE table_25355392_2 (june_10_11 VARCHAR, august_21_22 VARCHAR) ### Response: ### Response: SELECT june_10_11 FROM table_25355392_2 WHERE august_21_22 = "August 21, 2017"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Run 1, when Team is "Italy (ITA) Italy I"? ### Context: CREATE TABLE table_name_15 (run_1 VARCHAR, team VARCHAR) ### Response: ### Response: SELECT run_1 FROM table_name_15 WHERE team = "italy (ita) italy i"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season finale that ranked 20th? ### Context: CREATE TABLE table_27553627_2 (season VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT season AS finale FROM table_27553627_2 WHERE rank = "20th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 First Elected, when District is "Massachusetts 10"? ### Context: CREATE TABLE table_name_40 (first_elected INTEGER, district VARCHAR) ### Response: ### Response: SELECT MIN(first_elected) FROM table_name_40 WHERE district = "massachusetts 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: Where were the 2009 and 2011 Grand Slam Tournaments? ### Context: CREATE TABLE table_name_86 (Id VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_86 WHERE 2009 = "grand slam tournaments"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many were in attendance during the game on January 9, 1988? ### Context: CREATE TABLE table_16119656_1 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_16119656_1 WHERE date = "January 9, 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: What is the height in inches of contestants who are from the province of La Rioja? ### Context: CREATE TABLE table_23476629_2 (height__in_ VARCHAR, province VARCHAR) ### Response: ### Response: SELECT height__in_ FROM table_23476629_2 WHERE province = "La Rioja"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 finish is 66? ### Context: CREATE TABLE table_name_32 (to_par VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_32 WHERE finish = "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: Count the sum of Pop (2004) which has a Governorate of al mahrah with an Area km² smaller than 78,073? ### Context: CREATE TABLE table_name_15 (pop__2004_ INTEGER, governorate VARCHAR, area_km² VARCHAR) ### Response: ### Response: SELECT SUM(pop__2004_) FROM table_name_15 WHERE governorate = "al mahrah" AND area_km² < 78 OFFSET 073</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 draw when the tries against was 69? ### Context: CREATE TABLE table_name_75 (drawn VARCHAR, tries_against VARCHAR) ### Response: ### Response: SELECT drawn FROM table_name_75 WHERE tries_against = "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 is the hawthorn score at the year 2000? ### Context: CREATE TABLE table_28211103_1 (hawthorn_score VARCHAR, year VARCHAR) ### Response: ### Response: SELECT hawthorn_score FROM table_28211103_1 WHERE year = 2000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much Overall has a Pick # of 26? ### Context: CREATE TABLE table_name_25 (overall INTEGER, pick__number VARCHAR) ### Response: ### Response: SELECT SUM(overall) FROM table_name_25 WHERE pick__number = 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 reference is used with the title アイシテル? ### Context: CREATE TABLE table_name_39 (reference VARCHAR, japanese_title VARCHAR) ### Response: ### Response: SELECT reference FROM table_name_39 WHERE japanese_title = "アイシテル"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 laps did Jeff Burton have when he drove car with a # over 9 and more than 118 points? ### Context: CREATE TABLE table_name_82 (laps VARCHAR, points VARCHAR, car__number VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT COUNT(laps) FROM table_name_82 WHERE car__number > 9 AND driver = "jeff burton" AND points > 118</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Away team is north melbourne, what's the Home team score? ### Context: CREATE TABLE table_name_18 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_18 WHERE away_team = "north 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 Player, when Round is greater than 8, when Pick # is greater than 234, and when College is "Louisville"? ### Context: CREATE TABLE table_name_22 (player VARCHAR, college VARCHAR, round VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT player FROM table_name_22 WHERE round > 8 AND pick__number > 234 AND college = "louisville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was the game played at Robert f. Kennedy memorial stadium with more than 54,633 people in attendance? ### Context: CREATE TABLE table_name_71 (week VARCHAR, game_site VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT COUNT(week) FROM table_name_71 WHERE game_site = "robert f. kennedy memorial stadium" AND attendance > 54 OFFSET 633</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Icelandic title for the Norweigan titled galgeblomsten? ### Context: CREATE TABLE table_name_28 (icelandic_title VARCHAR, norwegian_title VARCHAR) ### Response: ### Response: SELECT icelandic_title FROM table_name_28 WHERE norwegian_title = "galgeblomsten"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 puma is 12, what is camper? ### Context: CREATE TABLE table_26894949_2 (camper INTEGER, puma VARCHAR) ### Response: ### Response: SELECT MIN(camper) FROM table_26894949_2 WHERE puma = "12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many different total number of transit passengers are there in London Luton? ### Context: CREATE TABLE table_13836704_7 (transit_passengers VARCHAR, airport VARCHAR) ### Response: ### Response: SELECT COUNT(transit_passengers) FROM table_13836704_7 WHERE airport = "London Luton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What round did Mitch Davis, with an overall higher than 118, have? ### Context: CREATE TABLE table_name_50 (round INTEGER, name VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT SUM(round) FROM table_name_50 WHERE name = "mitch davis" AND overall < 118</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hosts for the 2004 event? ### Context: CREATE TABLE table_name_2 (hosts VARCHAR, year VARCHAR) ### Response: ### Response: SELECT hosts FROM table_name_2 WHERE 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 is the party of the district incumbent Jim Saxton? ### Context: CREATE TABLE table_1341453_32 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1341453_32 WHERE incumbent = "Jim Saxton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 points before 1963? ### Context: CREATE TABLE table_name_47 (points INTEGER, year INTEGER) ### Response: ### Response: SELECT SUM(points) FROM table_name_47 WHERE year < 1963</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mission has a Launch Date of december 30, 1970; 14:50 gmt? ### Context: CREATE TABLE table_name_47 (mission VARCHAR, launch_date VARCHAR) ### Response: ### Response: SELECT mission FROM table_name_47 WHERE launch_date = "december 30, 1970; 14:50 gmt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 how many districts was the incumbent David Delano Glover? ### Context: CREATE TABLE table_1342338_5 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(district) FROM table_1342338_5 WHERE incumbent = "David Delano Glover"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 dimensions of the coin worth ₩200? ### Context: CREATE TABLE table_298883_5 (dimensions VARCHAR, value VARCHAR) ### Response: ### Response: SELECT dimensions FROM table_298883_5 WHERE value = "₩200"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the opponent with round of 1 and time of n/a ### Context: CREATE TABLE table_name_37 (opponent VARCHAR, round VARCHAR, time VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_37 WHERE round = "1" AND time = "n/a"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 region had the year May 1974? ### Context: CREATE TABLE table_name_77 (region VARCHAR, year VARCHAR) ### Response: ### Response: SELECT region FROM table_name_77 WHERE year = "may 1974"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many laps did Duke Nelson complete when his qualifying time was 122.951? ### Context: CREATE TABLE table_name_29 (laps INTEGER, qual VARCHAR) ### Response: ### Response: SELECT SUM(laps) FROM table_name_29 WHERE qual = "122.951"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 place when the score was 67-73-73=213? ### Context: CREATE TABLE table_name_23 (place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT place FROM table_name_23 WHERE score = 67 - 73 - 73 = 213</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT IS THE DEATH WHEN BIRTH DATE IS 2 AUGUST 1424? ### Context: CREATE TABLE table_name_96 (death VARCHAR, birth VARCHAR) ### Response: ### Response: SELECT death FROM table_name_96 WHERE birth = "2 august 1424"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population density people where population % eu for 1.7% ### Context: CREATE TABLE table_1606824_1 (pop_density_people_km_2 VARCHAR, population__percentage_of_eu VARCHAR) ### Response: ### Response: SELECT COUNT(pop_density_people_km_2) FROM table_1606824_1 WHERE population__percentage_of_eu = "1.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 position in the Vancouver Canucks has a Pick # of 101? ### Context: CREATE TABLE table_name_43 (position VARCHAR, nhl_team VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT position FROM table_name_43 WHERE nhl_team = "vancouver canucks" AND pick__number = "101"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score for the player than won $450? ### Context: CREATE TABLE table_name_64 (score VARCHAR, money___$__ VARCHAR) ### Response: ### Response: SELECT score FROM table_name_64 WHERE money___$__ = 450</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of wins for gp2 series for racing engineering? ### Context: CREATE TABLE table_10420426_1 (wins VARCHAR, series VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(wins) FROM table_10420426_1 WHERE series = "GP2 series" AND team = "Racing Engineering"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 College/Team, when Round is less than 2, and when Nationality is "United States"? ### Context: CREATE TABLE table_name_18 (college_team VARCHAR, round VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT college_team FROM table_name_18 WHERE round < 2 AND nationality = "united states"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the week with w 31-21 result? ### Context: CREATE TABLE table_name_7 (week VARCHAR, result VARCHAR) ### Response: ### Response: SELECT week FROM table_name_7 WHERE result = "w 31-21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Party, when District is less than 10, when Took Office is less than 1991, and when Home Town is Mount Pleasant? ### Context: CREATE TABLE table_name_22 (party VARCHAR, home_town VARCHAR, district VARCHAR, took_office VARCHAR) ### Response: ### Response: SELECT party FROM table_name_22 WHERE district < 10 AND took_office < 1991 AND home_town = "mount pleasant"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 names of shops and the carriers of devices they have in stock. ### Context: CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Device_ID VARCHAR, Shop_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR) ### Response: ### Response: SELECT T3.Shop_Name, T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 WITH A WEEK LARGER THAN 13, AND VISITOR TEAM MONTREAL ALOUETTES? ### Context: CREATE TABLE table_name_39 (score VARCHAR, week VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT score FROM table_name_39 WHERE week > 13 AND visitor = "montreal alouettes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 most losses when there are 5 wins and draws less than 0? ### Context: CREATE TABLE table_name_7 (losses INTEGER, wins VARCHAR, draws VARCHAR) ### Response: ### Response: SELECT MAX(losses) FROM table_name_7 WHERE wins = 5 AND draws < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the host in a year greater than 1989 and when the venue is the Staples Center located in California? ### Context: CREATE TABLE table_name_12 (host VARCHAR, venue VARCHAR, year VARCHAR, state VARCHAR) ### Response: ### Response: SELECT host FROM table_name_12 WHERE year > 1989 AND state = "california" AND venue = "staples center"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What engine has an output of ps (kw; hp) @4700 rpm? ### Context: CREATE TABLE table_name_85 (engine VARCHAR, output VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_85 WHERE output = "ps (kw; hp) @4700 rpm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the number of vocal types used in song "Demon Kitty Rag"? ### Context: CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in London, England in a round less than 2? ### Context: CREATE TABLE table_name_62 (opponent VARCHAR, location VARCHAR, round VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_62 WHERE location = "london, england" AND round < 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What season was the Formula BMW USA in? ### Context: CREATE TABLE table_name_87 (season VARCHAR, series VARCHAR) ### Response: ### Response: SELECT season FROM table_name_87 WHERE series = "formula bmw usa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 opposing team Milwaukee? ### Context: CREATE TABLE table_17001658_7 (date VARCHAR, team VARCHAR) ### Response: ### Response: SELECT date FROM table_17001658_7 WHERE team = "Milwaukee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 lens zoom and aperture for the coolpix 5400? ### Context: CREATE TABLE table_name_79 (lens__35mm_equiv__zoom VARCHAR, _aperture VARCHAR, model VARCHAR) ### Response: ### Response: SELECT lens__35mm_equiv__zoom, _aperture FROM table_name_79 WHERE model = "coolpix 5400"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tie number for team 2 osijek ### Context: CREATE TABLE table_20819379_2 (tie_no VARCHAR, team_2 VARCHAR) ### Response: ### Response: SELECT COUNT(tie_no) FROM table_20819379_2 WHERE team_2 = "Osijek"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match points rotherham lose ### Context: CREATE TABLE table_27987767_2 (match_points VARCHAR, losers VARCHAR) ### Response: ### Response: SELECT match_points FROM table_27987767_2 WHERE losers = "Rotherham"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 production code that was written by matt robinson? ### Context: CREATE TABLE table_2818164_7 (production_code VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT production_code FROM table_2818164_7 WHERE written_by = "Matt Robinson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Week has an Opponent of washington redskins, and an Attendance larger than 56,077? ### Context: CREATE TABLE table_name_74 (week VARCHAR, opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT COUNT(week) FROM table_name_74 WHERE opponent = "washington redskins" AND attendance > 56 OFFSET 077</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 no. 9 team that has a no. 6 player of paulo? ### Context: CREATE TABLE table_name_85 (no9 VARCHAR, no6 VARCHAR) ### Response: ### Response: SELECT no9 FROM table_name_85 WHERE no6 = "paulo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total wins for Wentworth with less than 0 byes? ### Context: CREATE TABLE table_name_45 (wins VARCHAR, sunrayia_fl VARCHAR, byes VARCHAR) ### Response: ### Response: SELECT COUNT(wins) FROM table_name_45 WHERE sunrayia_fl = "wentworth" AND byes < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many votes in Brooklyn were won by the candidate who won 321 votes in Manhattan? ### Context: CREATE TABLE table_1108394_47 (brooklyn VARCHAR, manhattan VARCHAR) ### Response: ### Response: SELECT brooklyn FROM table_1108394_47 WHERE manhattan = "321"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 record achieved in the gamed played at BC Place Stadium? ### Context: CREATE TABLE table_21796261_4 (record VARCHAR, location VARCHAR) ### Response: ### Response: SELECT record FROM table_21796261_4 WHERE location = "BC Place Stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 visitors have a leading scorer of roy : 25 ### Context: CREATE TABLE table_11964047_7 (visitor VARCHAR, leading_scorer VARCHAR) ### Response: ### Response: SELECT visitor FROM table_11964047_7 WHERE leading_scorer = "Roy : 25"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who reported the game on 6 october? ### Context: CREATE TABLE table_name_67 (report VARCHAR, date VARCHAR) ### Response: ### Response: SELECT report FROM table_name_67 WHERE date = "6 october"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 remarks for sawhouse ### Context: CREATE TABLE table_211791_1 (remarks VARCHAR, nato_reporting_name VARCHAR) ### Response: ### Response: SELECT remarks FROM table_211791_1 WHERE nato_reporting_name = "SAWHOUSE"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Away team was south melbourne what was the home team? ### Context: CREATE TABLE table_name_52 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_52 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 was the away team score at Windy Hill? ### Context: CREATE TABLE table_name_25 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_25 WHERE venue = "windy hill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 march 29, 1997 ### Context: CREATE TABLE table_20745759_1 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_20745759_1 WHERE date = "March 29, 1997"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 object dates have origin in Samoa? ### Context: CREATE TABLE table_29635868_1 (object_date VARCHAR, origin VARCHAR) ### Response: ### Response: SELECT COUNT(object_date) FROM table_29635868_1 WHERE origin = "Samoa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 losing bonus for the team that has 33 tries against and 5 lost? ### Context: CREATE TABLE table_name_35 (losing_bonus VARCHAR, tries_against VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT losing_bonus FROM table_name_35 WHERE tries_against = "33" AND lost = "5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Date of the game when the Record is 32–31–6? ### Context: CREATE TABLE table_name_8 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_8 WHERE record = "32–31–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 of the ranks that did not participate? ### Context: CREATE TABLE table_name_88 (total VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT total FROM table_name_88 WHERE rank = "did not participate"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game number that took place on April 27? ### Context: CREATE TABLE table_name_50 (game VARCHAR, date VARCHAR) ### Response: ### Response: SELECT game FROM table_name_50 WHERE date = "april 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's the population with a code more than 90902 and an area less than 1,335.47? ### Context: CREATE TABLE table_name_19 (population INTEGER, code VARCHAR, area__km_2__ VARCHAR) ### Response: ### Response: SELECT MIN(population) FROM table_name_19 WHERE code > 90902 AND area__km_2__ < 1 OFFSET 335.47</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 goals against for teams with more than 27 losses? ### Context: CREATE TABLE table_name_97 (goals_against INTEGER, lost INTEGER) ### Response: ### Response: SELECT MIN(goals_against) FROM table_name_97 WHERE lost > 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: How many silver medals when the total was 2 and less than 1 bronze? ### Context: CREATE TABLE table_name_37 (silver INTEGER, bronze VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(silver) FROM table_name_37 WHERE bronze < 1 AND total = 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many tenants are there in the city of Samsun? ### Context: CREATE TABLE table_10601843_2 (tenant VARCHAR, city VARCHAR) ### Response: ### Response: SELECT COUNT(tenant) FROM table_10601843_2 WHERE city = "Samsun"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Karl Wendlinger's total grid #? ### Context: CREATE TABLE table_name_57 (grid VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT COUNT(grid) FROM table_name_57 WHERE driver = "karl wendlinger"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What venue featured north melbourne as the away side? ### Context: CREATE TABLE table_name_27 (venue VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_27 WHERE away_team = "north 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: Which English has German of leben? ### Context: CREATE TABLE table_name_26 (english VARCHAR, german VARCHAR) ### Response: ### Response: SELECT english FROM table_name_26 WHERE german = "leben"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Label, when Format is Double CD? ### Context: CREATE TABLE table_name_33 (label VARCHAR, format VARCHAR) ### Response: ### Response: SELECT label FROM table_name_33 WHERE format = "double 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 average of the top-25 with 16 cuts and less than 23 events? ### Context: CREATE TABLE table_name_79 (top_25 INTEGER, cuts_made VARCHAR, events VARCHAR) ### Response: ### Response: SELECT AVG(top_25) FROM table_name_79 WHERE cuts_made = 16 AND events < 23</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which position was active in Jazz in 2002-03? ### Context: CREATE TABLE table_name_59 (position VARCHAR, years_for_jazz VARCHAR) ### Response: ### Response: SELECT position FROM table_name_59 WHERE years_for_jazz = "2002-03"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Score, when Competition is "Friendly", and when Date is "30 April"? ### Context: CREATE TABLE table_name_46 (score VARCHAR, competition VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_46 WHERE competition = "friendly" AND date = "30 april"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 captain of the 2012 NRL season competition? ### Context: CREATE TABLE table_name_75 (captain_s_ VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT captain_s_ FROM table_name_75 WHERE competition = "2012 nrl season"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Years as tallest of the Building with a Height ft (m) of 145 (44)? ### Context: CREATE TABLE table_name_55 (years_as_tallest VARCHAR, height_ft__m_ VARCHAR) ### Response: ### Response: SELECT years_as_tallest FROM table_name_55 WHERE height_ft__m_ = "145 (44)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 webcast for website of • and frequency of 103.3 ### Context: CREATE TABLE table_name_5 (webcast VARCHAR, website VARCHAR, frequency VARCHAR) ### Response: ### Response: SELECT webcast FROM table_name_5 WHERE website = "•" AND frequency = 103.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: Find id of the candidate whose email is stanley.monahan@example.org? ### Context: CREATE TABLE candidates (candidate_id VARCHAR); CREATE TABLE people (person_id VARCHAR, email_address VARCHAR) ### Response: ### Response: SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = "stanley.monahan@example.org"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 sum for the Scottish cup that has player Damon Gray, and more than 1 league? ### Context: CREATE TABLE table_name_74 (scottish_cup INTEGER, player VARCHAR, league VARCHAR) ### Response: ### Response: SELECT SUM(scottish_cup) FROM table_name_74 WHERE player = "damon gray" AND league > 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 average number of draws for Mortlake club when they have less than 0 wins? ### Context: CREATE TABLE table_name_11 (draws INTEGER, club VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT AVG(draws) FROM table_name_11 WHERE club = "mortlake" AND wins < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the high lap total for a grid less than 6, and a Time/Retired of halfshaft? ### Context: CREATE TABLE table_name_68 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT MAX(laps) FROM table_name_68 WHERE grid < 6 AND time_retired = "halfshaft"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What match had 8 points? ### Context: CREATE TABLE table_name_91 (match VARCHAR, points VARCHAR) ### Response: ### Response: SELECT match FROM table_name_91 WHERE points = "8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What winning score has in-kyung kim as the runner(s)-up? ### Context: CREATE TABLE table_name_64 (winning_score VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT winning_score FROM table_name_64 WHERE runner_s__up = "in-kyung kim"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What ground has etobicoke kangaroos as the home? ### Context: CREATE TABLE table_name_88 (ground VARCHAR, home VARCHAR) ### Response: ### Response: SELECT ground FROM table_name_88 WHERE home = "etobicoke kangaroos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Round has h/a hurst ### Context: CREATE TABLE table_name_26 (round VARCHAR, h___a VARCHAR) ### Response: ### Response: SELECT round FROM table_name_26 WHERE h___a = "hurst"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lead has a Skip of ted appelman? ### Context: CREATE TABLE table_name_95 (lead VARCHAR, skip VARCHAR) ### Response: ### Response: SELECT lead FROM table_name_95 WHERE skip = "ted appelman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 time for someone on grid 9? ### Context: CREATE TABLE table_name_34 (time_retired VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_34 WHERE grid = "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: Who was the opponent before week 8 when the result was l 28-17? ### Context: CREATE TABLE table_name_49 (opponent VARCHAR, week VARCHAR, result VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_49 WHERE week < 8 AND result = "l 28-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: Name the location of ufc 98 ### Context: CREATE TABLE table_name_51 (location VARCHAR, event VARCHAR) ### Response: ### Response: SELECT location FROM table_name_51 WHERE event = "ufc 98"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd leg has pamesa valencia for team #2? ### Context: CREATE TABLE table_name_52 (team__number2 VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_name_52 WHERE team__number2 = "pamesa valencia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 team when alvin williams (6) has the high assists? ### Context: CREATE TABLE table_name_29 (team VARCHAR, high_assists VARCHAR) ### Response: ### Response: SELECT team FROM table_name_29 WHERE high_assists = "alvin williams (6)"</s>