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 sum of the pick from texas a&i college with a round greater than 1? ### Context: CREATE TABLE table_name_3 (pick INTEGER, college VARCHAR, round VARCHAR) ### Response: ### Response: SELECT SUM(pick) FROM table_name_3 WHERE college = "texas a&i" AND round > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the guernsey record set with a fish caught at Bordeaux Harbour? ### Context: CREATE TABLE table_name_80 (guernsey_record VARCHAR, location VARCHAR) ### Response: ### Response: SELECT guernsey_record FROM table_name_80 WHERE location = "bordeaux harbour"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for Monday August 24 if Friday August 28 is 26' 04.60 86.814mph? ### Context: CREATE TABLE table_23465864_5 (mon_24_aug VARCHAR, fri_28_aug VARCHAR) ### Response: ### Response: SELECT mon_24_aug FROM table_23465864_5 WHERE fri_28_aug = "26' 04.60 86.814mph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: With a Division II of Portsmouth, what is the Division IV? ### Context: CREATE TABLE table_name_35 (division_iV VARCHAR, division_iII VARCHAR, portsmouth VARCHAR) ### Response: ### Response: SELECT division_iV FROM table_name_35 WHERE division_iII = portsmouth</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of Gold the Nation of Italy had when it ranked other than 1, and had more than 0 Silver? ### Context: CREATE TABLE table_name_25 (gold INTEGER, silver VARCHAR, rank VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT MIN(gold) FROM table_name_25 WHERE rank > 1 AND nation = "italy" AND silver > 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 dances placed below 1 with a point total of 40? ### Context: CREATE TABLE table_name_69 (number_of_dances VARCHAR, place VARCHAR, total_points VARCHAR) ### Response: ### Response: SELECT number_of_dances FROM table_name_69 WHERE place > 1 AND total_points = 40</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of medals of the nation with less than 1 bronzes and less than 0 silver medals? ### Context: CREATE TABLE table_name_21 (total INTEGER, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT MAX(total) FROM table_name_21 WHERE bronze < 1 AND silver < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the Democratic incumbent in the South Carolina 5 District? ### Context: CREATE TABLE table_name_84 (incumbent VARCHAR, party VARCHAR, district VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_name_84 WHERE party = "democratic" AND district = "south carolina 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 highest Taper (in/ft), when Size is 8? ### Context: CREATE TABLE table_name_20 (taper__in_ft_ INTEGER, size VARCHAR) ### Response: ### Response: SELECT MAX(taper__in_ft_) FROM table_name_20 WHERE size = 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Pronunciation Spelled Free, when Pronunciation Spelled Checked is "ʏ"? ### Context: CREATE TABLE table_name_8 (pronunciation_spelled_free VARCHAR, pronunciation_spelled_checked VARCHAR) ### Response: ### Response: SELECT pronunciation_spelled_free FROM table_name_8 WHERE pronunciation_spelled_checked = "ʏ"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor for driver Niki Lauda and a chassis of mp4/1c? ### Context: CREATE TABLE table_name_91 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_91 WHERE chassis = "mp4/1c" AND driver = "niki lauda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the Havaianas Beachley Classic, held in Australia? ### Context: CREATE TABLE table_name_99 (location VARCHAR, country VARCHAR, event VARCHAR) ### Response: ### Response: SELECT location FROM table_name_99 WHERE country = "australia" AND event = "havaianas beachley classic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 term from the 2007 election with the position of chairperson? ### Context: CREATE TABLE table_name_94 (term INTEGER, elected VARCHAR, position VARCHAR) ### Response: ### Response: SELECT MIN(term) FROM table_name_94 WHERE elected = 2007 AND position = "chairperson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 measures had a yes vote of 216545? ### Context: CREATE TABLE table_256286_39 (passed VARCHAR, yes_votes VARCHAR) ### Response: ### Response: SELECT COUNT(passed) FROM table_256286_39 WHERE yes_votes = 216545</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the title for the Maserati A6GCS? ### Context: CREATE TABLE table_name_81 (race_title VARCHAR, vehicle VARCHAR) ### Response: ### Response: SELECT race_title FROM table_name_81 WHERE vehicle = "maserati a6gcs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who wrote episode 122 in the series? ### Context: CREATE TABLE table_26866434_1 (writer VARCHAR, series__number VARCHAR) ### Response: ### Response: SELECT writer FROM table_26866434_1 WHERE series__number = 122</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 championship for 1980 hard surface ### Context: CREATE TABLE table_22597626_6 (championship VARCHAR, year VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT championship FROM table_22597626_6 WHERE year = 1980 AND surface = "Hard"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on 14 december 1974 and the away team is crystal palace? ### Context: CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_69 WHERE date = "14 december 1974" AND away_team = "crystal palace"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Internet Explorer during the period in which 2.1% were using mobile browsers? ### Context: CREATE TABLE table_name_66 (internet_explorer VARCHAR, mobile VARCHAR) ### Response: ### Response: SELECT internet_explorer FROM table_name_66 WHERE mobile = "2.1%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Adelaide's Melbourne and Perth were yes when Auckland was no? ### Context: CREATE TABLE table_name_20 (adelaide VARCHAR, perth VARCHAR, melbourne VARCHAR, auckland VARCHAR) ### Response: ### Response: SELECT adelaide FROM table_name_20 WHERE melbourne = "yes" AND auckland = "no" AND perth = "yes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 who directed the episode that was viewed by 4.22 million ### Context: CREATE TABLE table_18569389_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_18569389_1 WHERE us_viewers__million_ = "4.22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface was the tournament played on against Steven Diez? ### Context: CREATE TABLE table_name_96 (surface VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_96 WHERE opponent_in_the_final = "steven diez"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sites entry for Microsoft Sharepoint? ### Context: CREATE TABLE table_name_59 (team_sites VARCHAR, name VARCHAR) ### Response: ### Response: SELECT team_sites FROM table_name_59 WHERE name = "microsoft sharepoint"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What shows for shoots for craig peacock a? ### Context: CREATE TABLE table_name_62 (shoots VARCHAR, player VARCHAR) ### Response: ### Response: SELECT shoots FROM table_name_62 WHERE player = "craig peacock 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: who is the writer where viewers is 5.16m ### Context: CREATE TABLE table_12148018_2 (writer VARCHAR, viewers VARCHAR) ### Response: ### Response: SELECT writer FROM table_12148018_2 WHERE viewers = "5.16m"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 weekly rank for sunday, june 14, 2009 ### Context: CREATE TABLE table_name_43 (weekly_rank VARCHAR, airdate VARCHAR) ### Response: ### Response: SELECT weekly_rank FROM table_name_43 WHERE airdate = "sunday, june 14, 2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of golds having a total of 1, bronzes of 0, and from West Germany? ### Context: CREATE TABLE table_name_61 (gold VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT COUNT(gold) FROM table_name_61 WHERE total = 1 AND bronze < 1 AND nation = "west germany"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 launch date of 栗? ### Context: CREATE TABLE table_name_70 (launched VARCHAR, kanji VARCHAR) ### Response: ### Response: SELECT launched FROM table_name_70 WHERE kanji = "栗"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Wat episode number had 5.46 million viewers? ### Context: CREATE TABLE table_27846651_1 (episode__number VARCHAR, viewers__millions_ VARCHAR) ### Response: ### Response: SELECT episode__number FROM table_27846651_1 WHERE viewers__millions_ = "5.46"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Age of dorothy Peel as of 1 February 2014 ? ### Context: CREATE TABLE table_name_18 (age_as_of_1_february_2014 VARCHAR, name VARCHAR) ### Response: ### Response: SELECT age_as_of_1_february_2014 FROM table_name_18 WHERE name = "dorothy peel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a walking data of 3:10:48+? ### Context: CREATE TABLE table_name_11 (athlete VARCHAR, data VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_11 WHERE data = "3:10: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 is the average price for each type of product? ### Context: CREATE TABLE products (product_type_code VARCHAR, product_price INTEGER) ### Response: ### Response: SELECT product_type_code, AVG(product_price) FROM products GROUP BY product_type_code</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 man of the match for match number 5? ### Context: CREATE TABLE table_17103566_1 (man_of_the_match VARCHAR, match_number VARCHAR) ### Response: ### Response: SELECT man_of_the_match FROM table_17103566_1 WHERE match_number = 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: Name the chassis for ludwig fischer ### Context: CREATE TABLE table_28578594_1 (chassis VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT chassis FROM table_28578594_1 WHERE driver = "Ludwig Fischer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome for dunlop world challenge ### Context: CREATE TABLE table_name_58 (outcome VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_58 WHERE tournament = "dunlop world challenge"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title of the film directed by Fernando Meirelles? ### Context: CREATE TABLE table_name_53 (english_title VARCHAR, director_s_ VARCHAR) ### Response: ### Response: SELECT english_title FROM table_name_53 WHERE director_s_ = "fernando meirelles"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Equipment that has a Point bigger than 256, and a Position of 3? ### Context: CREATE TABLE table_name_46 (equipment VARCHAR, points VARCHAR, position VARCHAR) ### Response: ### Response: SELECT equipment FROM table_name_46 WHERE points > 256 AND position = 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 lane has a time of 24.83 and a heat less than 11? ### Context: CREATE TABLE table_name_73 (lane INTEGER, time VARCHAR, heat VARCHAR) ### Response: ### Response: SELECT SUM(lane) FROM table_name_73 WHERE time = "24.83" AND heat < 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which College has a Round smaller than 7, and a Pick # smaller than 27, and a Name of anthony maddox? ### Context: CREATE TABLE table_name_37 (college VARCHAR, name VARCHAR, round VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT college FROM table_name_37 WHERE round < 7 AND pick__number < 27 AND name = "anthony maddox"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team when Hawthorn was the home team? ### Context: CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_23 WHERE home_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: Who was the opponent in round 2 of the UFC 49 event? ### Context: CREATE TABLE table_name_1 (opponent VARCHAR, round VARCHAR, event VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_1 WHERE round = "2" AND event = "ufc 49"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who wrote the episodes that were directed by Peter O'Fallon? ### Context: CREATE TABLE table_28561455_1 (written_by VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT written_by FROM table_28561455_1 WHERE directed_by = "Peter O'Fallon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the enrollment for Lakeland College? ### Context: CREATE TABLE table_1974443_1 (enrollment VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT enrollment FROM table_1974443_1 WHERE institution = "Lakeland College"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of laps for Grid 14? ### Context: CREATE TABLE table_name_88 (laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT COUNT(laps) FROM table_name_88 WHERE grid = 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the branding name for channel tv-62. ### Context: CREATE TABLE table_2523809_1 (branding VARCHAR, channel VARCHAR) ### Response: ### Response: SELECT branding FROM table_2523809_1 WHERE channel = "TV-62"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Model Number which has a FSB Speed of 400 mhz? ### Context: CREATE TABLE table_name_59 (model_number VARCHAR, fsb_speed VARCHAR) ### Response: ### Response: SELECT model_number FROM table_name_59 WHERE fsb_speed = "400 mhz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match total for a score over 299 and under 412 innings? ### Context: CREATE TABLE table_name_26 (matches INTEGER, high_score VARCHAR, innings VARCHAR) ### Response: ### Response: SELECT SUM(matches) FROM table_name_26 WHERE high_score = "299" AND innings < 412</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 navigator for James? ### Context: CREATE TABLE table_name_3 (navigator VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT navigator FROM table_name_3 WHERE driver = "james"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Sweet Sixteen team is in the Colonial conference? ### Context: CREATE TABLE table_name_95 (sweet_sixteen VARCHAR, conference VARCHAR) ### Response: ### Response: SELECT sweet_sixteen FROM table_name_95 WHERE conference = "colonial"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick number for School of lsu? ### Context: CREATE TABLE table_name_7 (pick INTEGER, school VARCHAR) ### Response: ### Response: SELECT SUM(pick) FROM table_name_7 WHERE school = "lsu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank of the candidate with more than 2,211 votes? ### Context: CREATE TABLE table_name_22 (rank VARCHAR, votes INTEGER) ### Response: ### Response: SELECT rank FROM table_name_22 WHERE votes > 2 OFFSET 211</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the distinct police forces of counties whose location is not on east side. ### Context: CREATE TABLE county_public_safety (Police_force VARCHAR, LOCATION VARCHAR) ### Response: ### Response: SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION <> "East"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which team had fewer than 2 losses and a position number more than 1? ### Context: CREATE TABLE table_name_37 (team VARCHAR, losses VARCHAR, pos VARCHAR) ### Response: ### Response: SELECT team FROM table_name_37 WHERE losses < 2 AND pos > 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: Name the nationality for pick of 16 ### Context: CREATE TABLE table_name_12 (nationality VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_12 WHERE pick = 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: Which tournament was played on September 25, 1995? ### Context: CREATE TABLE table_name_46 (tournament VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_46 WHERE date = "september 25, 1995"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was Blackburn Point Bridge built? ### Context: CREATE TABLE table_name_55 (built VARCHAR, name VARCHAR) ### Response: ### Response: SELECT built FROM table_name_55 WHERE name = "blackburn point bridge"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 international tourist arrivals in 2010 where change from 2010 to 2011 is +11.2% ? ### Context: CREATE TABLE table_14752049_2 (international_tourist_arrivals__2010_ VARCHAR, change__2010_to_2011_ VARCHAR) ### Response: ### Response: SELECT international_tourist_arrivals__2010_ FROM table_14752049_2 WHERE change__2010_to_2011_ = "+11.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 numer of the game when the record was 4-0? ### Context: CREATE TABLE table_21034801_1 (game INTEGER, record VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_21034801_1 WHERE record = "4-0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the goals for in the season that the pct % was 0.604? ### Context: CREATE TABLE table_2110959_1 (goals_for INTEGER, pct__percentage VARCHAR) ### Response: ### Response: SELECT MAX(goals_for) FROM table_2110959_1 WHERE pct__percentage = "0.604"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round that has a Position of Tackle and the Player Fred Neilsen? ### Context: CREATE TABLE table_name_91 (round INTEGER, position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT MAX(round) FROM table_name_91 WHERE position = "tackle" AND player = "fred neilsen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 8TH THAT HAS A 7TH OF AUDIO BULLYS? ### Context: CREATE TABLE table_name_61 (eighth VARCHAR, seventh VARCHAR) ### Response: ### Response: SELECT eighth FROM table_name_61 WHERE seventh = "audio bullys"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 reporters for the year of 1984? ### Context: CREATE TABLE table_22514845_4 (reporters VARCHAR, year VARCHAR) ### Response: ### Response: SELECT reporters FROM table_22514845_4 WHERE year = 1984</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the away team score at victoria park? ### Context: CREATE TABLE table_name_57 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_57 WHERE venue = "victoria park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the date for 17-32 ### Context: CREATE TABLE table_23274514_7 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_23274514_7 WHERE record = "17-32"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the listed opponent in Week 2? ### Context: CREATE TABLE table_name_24 (opponent VARCHAR, week VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_24 WHERE week = 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 population in 2011 of banatski karlovac? ### Context: CREATE TABLE table_2562572_44 (population__2011_ VARCHAR, settlement VARCHAR) ### Response: ### Response: SELECT population__2011_ FROM table_2562572_44 WHERE settlement = "Banatski Karlovac"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 clubs were involved in the second round? ### Context: CREATE TABLE table_28039032_1 (clubs_involved VARCHAR, round VARCHAR) ### Response: ### Response: SELECT clubs_involved FROM table_28039032_1 WHERE round = "Second round"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 against New Orleans? ### Context: CREATE TABLE table_23248967_5 (score VARCHAR, team VARCHAR) ### Response: ### Response: SELECT score FROM table_23248967_5 WHERE team = "New Orleans"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 leading lady for Uni studio and Frank Strayer? ### Context: CREATE TABLE table_name_71 (leading_lady VARCHAR, studio VARCHAR, director VARCHAR) ### Response: ### Response: SELECT leading_lady FROM table_name_71 WHERE studio = "uni" AND director = "frank strayer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tries for did the team with a try bonus of 5 score? ### Context: CREATE TABLE table_name_49 (tries_for VARCHAR, try_bonus VARCHAR) ### Response: ### Response: SELECT tries_for FROM table_name_49 WHERE try_bonus = "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 Time/Retired has a Laps of 86 and the Team of HVM Racing? ### Context: CREATE TABLE table_name_73 (time_retired VARCHAR, laps VARCHAR, team VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_73 WHERE laps = 86 AND team = "hvm racing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 left of the Lady Pilots. ### Context: CREATE TABLE table_10577579_3 (left VARCHAR, women’s_nickname VARCHAR) ### Response: ### Response: SELECT left FROM table_10577579_3 WHERE women’s_nickname = "Lady Pilots"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: With a Type of 4-6-4t, what is the sum Withdrawn? ### Context: CREATE TABLE table_name_43 (withdrawn INTEGER, type VARCHAR) ### Response: ### Response: SELECT SUM(withdrawn) FROM table_name_43 WHERE type = "4-6-4t"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Driver, when the Engine was 7.1 l6, and when the Chassis was Mercedes-Benz SSK l? ### Context: CREATE TABLE table_name_3 (driver VARCHAR, engine VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_3 WHERE engine = "7.1 l6" AND chassis = "mercedes-benz ssk l"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 John Jones's pick#? ### Context: CREATE TABLE table_name_30 (pick INTEGER, player VARCHAR) ### Response: ### Response: SELECT SUM(pick) FROM table_name_30 WHERE player = "john 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: How many Matches have an S/Rate smaller than 133.72, and a Team of yorkshire carnegie? ### Context: CREATE TABLE table_name_96 (matches VARCHAR, s_rate VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(matches) FROM table_name_96 WHERE s_rate < 133.72 AND team = "yorkshire carnegie"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team was hawthorn, what was the date? ### Context: CREATE TABLE table_name_44 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_44 WHERE home_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 Set 3, when Set 4 is 25-21, and when Date is Jun 14? ### Context: CREATE TABLE table_name_79 (set_3 VARCHAR, set_4 VARCHAR, date VARCHAR) ### Response: ### Response: SELECT set_3 FROM table_name_79 WHERE set_4 = "25-21" AND date = "jun 14"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the Episode of all TV series showed on TV Channel with series name "Sky Radio". ### Context: CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR); CREATE TABLE TV_series (Episode VARCHAR, Channel VARCHAR) ### Response: ### Response: SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 # has govinda & david dhawan as the eliminated contestant? ### Context: CREATE TABLE table_name_66 (episode__number VARCHAR, eliminated_contestant VARCHAR) ### Response: ### Response: SELECT episode__number FROM table_name_66 WHERE eliminated_contestant = "govinda & david dhawan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 party events do we have? ### Context: CREATE TABLE party_events (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM party_events</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player was from the British Columbia college? ### Context: CREATE TABLE table_name_23 (player VARCHAR, college VARCHAR) ### Response: ### Response: SELECT player FROM table_name_23 WHERE college = "british columbia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 kickoff time on week 1? ### Context: CREATE TABLE table_name_53 (kickoff_time VARCHAR, week VARCHAR) ### Response: ### Response: SELECT kickoff_time FROM table_name_53 WHERE week = 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: Find the branch name of the bank that has the most number of customers. ### Context: CREATE TABLE bank (bname VARCHAR, no_of_customers VARCHAR) ### Response: ### Response: SELECT bname FROM bank ORDER BY no_of_customers 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's the call sign that has 20kw of power? ### Context: CREATE TABLE table_name_17 (call_sign VARCHAR, power__kw_ VARCHAR) ### Response: ### Response: SELECT call_sign FROM table_name_17 WHERE power__kw_ = "20kw"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team at the Junction Oval venue? ### Context: CREATE TABLE table_name_14 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_14 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: When 1 active, 1 inactive is the canadian chapters how many founding dates are there? ### Context: CREATE TABLE table_28436909_4 (founding_date VARCHAR, canadian_chapters VARCHAR) ### Response: ### Response: SELECT COUNT(founding_date) FROM table_28436909_4 WHERE canadian_chapters = "1 Active, 1 Inactive"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick number for New Mexico? ### Context: CREATE TABLE table_name_34 (pick INTEGER, college VARCHAR) ### Response: ### Response: SELECT AVG(pick) FROM table_name_34 WHERE college = "new mexico"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Race on July 30, 1950 with a Formula 2 Fia, non-championship? ### Context: CREATE TABLE table_name_47 (race VARCHAR, category VARCHAR, date VARCHAR) ### Response: ### Response: SELECT race FROM table_name_47 WHERE category = "formula 2 fia, non-championship" AND date = "july 30, 1950"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 losses did the club with 47 points have ? ### Context: CREATE TABLE table_name_7 (lost VARCHAR, points VARCHAR) ### Response: ### Response: SELECT lost FROM table_name_7 WHERE points = "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 was the successor for vacant alabama 3rd? ### Context: CREATE TABLE table_2417340_4 (successor VARCHAR, vacator VARCHAR, district VARCHAR) ### Response: ### Response: SELECT successor FROM table_2417340_4 WHERE vacator = "Vacant" AND district = "Alabama 3rd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 4th place that has 3 appearances for 3, and a more than 0 silver medals, and no gold medals? ### Context: CREATE TABLE table_name_27 (gold_medals VARCHAR, appearances VARCHAR, silver_medals VARCHAR) ### Response: ### Response: SELECT COUNT(4 AS th_place) FROM table_name_27 WHERE appearances = 3 AND silver_medals > 0 AND gold_medals < 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: When the Away team was hawthorn, what's the Home team? ### Context: CREATE TABLE table_name_84 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_84 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 language is Sky Cinema Passion television service n. 308? ### Context: CREATE TABLE table_15887683_5 (language VARCHAR, television_service VARCHAR, n° VARCHAR) ### Response: ### Response: SELECT language FROM table_15887683_5 WHERE television_service = "Sky Cinema Passion" AND n° = "308"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average total in the county of tipperary with a rank less than 1? ### Context: CREATE TABLE table_name_47 (average VARCHAR, county VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(average) FROM table_name_47 WHERE county = "tipperary" AND rank < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which mlb team is located in maryland? ### Context: CREATE TABLE table_name_95 (team VARCHAR, state_province VARCHAR, league VARCHAR) ### Response: ### Response: SELECT team FROM table_name_95 WHERE state_province = "maryland" AND league = "mlb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST? ### Context: CREATE TABLE table_name_68 (europe VARCHAR, head_coach VARCHAR, regional_competitions VARCHAR) ### Response: ### Response: SELECT europe FROM table_name_68 WHERE head_coach = "vainauskas , sakalauskas" AND regional_competitions = "nebl finalist"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pre-season game record achieved? ### Context: CREATE TABLE table_21436373_10 (date_year VARCHAR, type_of_record VARCHAR) ### Response: ### Response: SELECT date_year FROM table_21436373_10 WHERE type_of_record = "Pre-season game"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 description and credit for the course QM-261? ### Context: CREATE TABLE course (crs_credit VARCHAR, crs_description VARCHAR, crs_code VARCHAR) ### Response: ### Response: SELECT crs_credit, crs_description FROM course WHERE crs_code = 'QM-261'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 against has the lowest when byes are larger than 0? ### Context: CREATE TABLE table_name_99 (against INTEGER, byes INTEGER) ### Response: ### Response: SELECT MIN(against) FROM table_name_99 WHERE byes > 0</s>