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 team played in the 1964 Tokyo Games? ### Context: CREATE TABLE table_name_56 (name VARCHAR, games VARCHAR) ### Response: ### Response: SELECT name FROM table_name_56 WHERE games = "1964 tokyo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of silvers for ranks over 7? ### Context: CREATE TABLE table_name_88 (silver INTEGER, rank INTEGER) ### Response: ### Response: SELECT MAX(silver) FROM table_name_88 WHERE rank > 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 is the average year to begin making autos for a brand that joined GM in 1917? ### Context: CREATE TABLE table_name_30 (year_began_making_autos INTEGER, year_joined_gm VARCHAR) ### Response: ### Response: SELECT AVG(year_began_making_autos) FROM table_name_30 WHERE year_joined_gm = 1917</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 role was at the Sydney Film Festival in 2008? ### Context: CREATE TABLE table_name_4 (role VARCHAR, year VARCHAR, festival_organization VARCHAR) ### Response: ### Response: SELECT role FROM table_name_4 WHERE year = 2008 AND festival_organization = "sydney film festival"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Total Goals have a League Cup Goals larger than 0, and FA Cup Goals larger than 0? ### Context: CREATE TABLE table_name_82 (total_goals INTEGER, league_cup_goals VARCHAR, fa_cup_goals VARCHAR) ### Response: ### Response: SELECT AVG(total_goals) FROM table_name_82 WHERE league_cup_goals > 0 AND fa_cup_goals > 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: Which Score has a Series of flyers lead 3–2? ### Context: CREATE TABLE table_name_17 (score VARCHAR, series VARCHAR) ### Response: ### Response: SELECT score FROM table_name_17 WHERE series = "flyers lead 3–2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In Tangier Zone, what is the PCT route availibility? ### Context: CREATE TABLE table_2279413_1 (pct_route_available VARCHAR, country VARCHAR) ### Response: ### Response: SELECT pct_route_available FROM table_2279413_1 WHERE country = "Tangier Zone"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 GAME ON SEPTEMBER 13? ### Context: CREATE TABLE table_name_23 (game INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(game) FROM table_name_23 WHERE date = "september 13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 third at the 0.8km f sprint discipline? ### Context: CREATE TABLE table_name_32 (third VARCHAR, discipline VARCHAR) ### Response: ### Response: SELECT third FROM table_name_32 WHERE discipline = "0.8km f sprint"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the highest rank by average of a couple who had an average of 25.3 and had more than 10 dances? ### Context: CREATE TABLE table_name_27 (rank_by_average INTEGER, average VARCHAR, number_of_dances VARCHAR) ### Response: ### Response: SELECT MAX(rank_by_average) FROM table_name_27 WHERE average = 25.3 AND number_of_dances > 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: Which Year(s) won has a Total smaller than 285, and a Player of tom watson? ### Context: CREATE TABLE table_name_51 (year_s__won VARCHAR, total VARCHAR, player VARCHAR) ### Response: ### Response: SELECT year_s__won FROM table_name_51 WHERE total < 285 AND player = "tom watson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 money has Candidate Dennis Kucinich spent? ### Context: CREATE TABLE table_name_43 (money_spent VARCHAR, _3q VARCHAR, candidate VARCHAR) ### Response: ### Response: SELECT money_spent, _3q FROM table_name_43 WHERE candidate = "dennis kucinich"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Loser when the winner was los angeles lakers (10)? ### Context: CREATE TABLE table_name_18 (loser VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT loser FROM table_name_18 WHERE winner = "los angeles lakers (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: When 74804 is the attendance what week is it? ### Context: CREATE TABLE table_14941284_1 (week VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT week FROM table_14941284_1 WHERE attendance = 74804</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Award, when the Film/Show is East West 101, and when the year is before 2009, and when the Group is Logie Award? ### Context: CREATE TABLE table_name_96 (award VARCHAR, group VARCHAR, film_show VARCHAR, year VARCHAR) ### Response: ### Response: SELECT award FROM table_name_96 WHERE film_show = "east west 101" AND year < 2009 AND group = "logie award"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the GTO winning team when the TO winning team was #84 Camaro? ### Context: CREATE TABLE table_13642023_2 (gto_winning_team VARCHAR, to_winning_team VARCHAR) ### Response: ### Response: SELECT gto_winning_team FROM table_13642023_2 WHERE to_winning_team = "#84 Camaro"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 girl on week 5 that came after week 3's Shelly Louise? ### Context: CREATE TABLE table_name_21 (week_5 VARCHAR, week_3 VARCHAR) ### Response: ### Response: SELECT week_5 FROM table_name_21 WHERE week_3 = "shelly louise"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Year, when Role is "himself", and when Title is "Epik High's Love And Delusion"? ### Context: CREATE TABLE table_name_59 (year VARCHAR, role VARCHAR, title VARCHAR) ### Response: ### Response: SELECT year FROM table_name_59 WHERE role = "himself" AND title = "epik high's love and delusion"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 incumbents are there in Pennsylvania 5? ### Context: CREATE TABLE table_2668401_12 (incumbent VARCHAR, district VARCHAR) ### Response: ### Response: SELECT COUNT(incumbent) FROM table_2668401_12 WHERE district = "Pennsylvania 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 televote points for 0 jury points and 23 draws? ### Context: CREATE TABLE table_name_49 (televote_points VARCHAR, jury_points VARCHAR, draw VARCHAR) ### Response: ### Response: SELECT televote_points FROM table_name_49 WHERE jury_points = "0" AND draw = 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: How many nominees had a net voice of 15.17% ### Context: CREATE TABLE table_15162479_8 (nominee VARCHAR, net_vote VARCHAR) ### Response: ### Response: SELECT COUNT(nominee) FROM table_15162479_8 WHERE net_vote = "15.17%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date of vacancy when Viorel Moldovan replaced a manager? ### Context: CREATE TABLE table_17115950_2 (date_of_vacancy VARCHAR, replaced_by VARCHAR) ### Response: ### Response: SELECT date_of_vacancy FROM table_17115950_2 WHERE replaced_by = "Viorel Moldovan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's score at windy hill? ### Context: CREATE TABLE table_name_71 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_71 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 Place of england with a Score larger than 66? ### Context: CREATE TABLE table_name_3 (place VARCHAR, country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT place FROM table_name_3 WHERE country = "england" AND score > 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: What's the highest year than hawthorn won with a season result of preliminary finalist and a crowd smaller than 27,407? ### Context: CREATE TABLE table_name_18 (year INTEGER, crowd VARCHAR, winners VARCHAR, season_result VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_18 WHERE winners = "hawthorn" AND season_result = "preliminary finalist" AND crowd < 27 OFFSET 407</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of Tommy Bolt ### Context: CREATE TABLE table_name_23 (score INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(score) FROM table_name_23 WHERE player = "tommy bolt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what team had ricardo serrano for combativity prize? ### Context: CREATE TABLE table_22410316_17 (team_classification VARCHAR, combativity_prize VARCHAR) ### Response: ### Response: SELECT team_classification FROM table_22410316_17 WHERE combativity_prize = "Ricardo Serrano"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gues on 25.11.07 when home was stade nyonnais (1.l)? ### Context: CREATE TABLE table_name_67 (guest VARCHAR, date VARCHAR, home VARCHAR) ### Response: ### Response: SELECT guest FROM table_name_67 WHERE date = "25.11.07" AND home = "stade nyonnais (1.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: How many deposits had a Non-Interest Income of 0.9500000000000001 and number of branch/offices less than 17? ### Context: CREATE TABLE table_name_63 (deposits VARCHAR, non_interest_income VARCHAR, no_of_branches_offices VARCHAR) ### Response: ### Response: SELECT COUNT(deposits) FROM table_name_63 WHERE non_interest_income = 0.9500000000000001 AND no_of_branches_offices < 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which 2004 has a Tournament of french open? ### Context: CREATE TABLE table_name_41 (tournament VARCHAR) ### Response: ### Response: SELECT 2004 FROM table_name_41 WHERE tournament = "french open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pixel aspect ratio and nation of the tv channels that do not use English. ### Context: CREATE TABLE tv_channel (Pixel_aspect_ratio_PAR VARCHAR, country VARCHAR, LANGUAGE VARCHAR) ### Response: ### Response: SELECT Pixel_aspect_ratio_PAR, country FROM tv_channel WHERE LANGUAGE <> 'English'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the candidates when the winner was first elected in 1910? ### Context: CREATE TABLE table_1346137_4 (candidates VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1346137_4 WHERE first_elected = "1910"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak of 21? ### Context: CREATE TABLE table_name_1 (riaa_sales_certification VARCHAR, billboard_200_peak VARCHAR) ### Response: ### Response: SELECT riaa_sales_certification FROM table_name_1 WHERE billboard_200_peak = 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: Which player has a College of arizona? ### Context: CREATE TABLE table_name_83 (player VARCHAR, college VARCHAR) ### Response: ### Response: SELECT player FROM table_name_83 WHERE college = "arizona"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2005 has a 2004 of 3–2? ### Context: CREATE TABLE table_name_3 (Id VARCHAR) ### Response: ### Response: SELECT 2005 FROM table_name_3 WHERE 2004 = "3–2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What district did S. William Green belong to? ### Context: CREATE TABLE table_1341663_33 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_1341663_33 WHERE incumbent = "S. William Green"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sites when the headquarters are in columbus, ga and the rank is smaller than 4? ### Context: CREATE TABLE table_name_33 (sites INTEGER, headquarters VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MIN(sites) FROM table_name_33 WHERE headquarters = "columbus, ga" AND rank < 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the issue price (proof) where the issue price (bu) is 34.95? ### Context: CREATE TABLE table_11916083_1 (issue_price__proof_ VARCHAR, issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR) ### Response: ### Response: SELECT issue_price__proof_ FROM table_11916083_1 WHERE issue_price__bu_[_clarification_needed_] = "34.95"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 voting order when the commentator was renato tagliani? ### Context: CREATE TABLE table_name_95 (voting_order VARCHAR, commentator VARCHAR) ### Response: ### Response: SELECT voting_order FROM table_name_95 WHERE commentator = "renato tagliani"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the winner was sanyo wild knights, and a Runner-up of suntory sungoliath? ### Context: CREATE TABLE table_name_39 (score VARCHAR, winner VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT score FROM table_name_39 WHERE winner = "sanyo wild knights" AND runner_up = "suntory sungoliath"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Record of 22–20 involved what score? ### Context: CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_46 WHERE record = "22–20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position? ### Context: CREATE TABLE table_19412902_2 (pos INTEGER) ### Response: ### Response: SELECT MAX(pos) FROM table_19412902_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: Name the horizontal number for number 10 ### Context: CREATE TABLE table_25519358_1 (horizontal_0_a VARCHAR, number VARCHAR) ### Response: ### Response: SELECT COUNT(horizontal_0_a) FROM table_25519358_1 WHERE number = 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the average rating and resolution of songs that are in Bangla? ### Context: CREATE TABLE song (rating INTEGER, resolution INTEGER, languages VARCHAR) ### Response: ### Response: SELECT AVG(rating), AVG(resolution) FROM song WHERE languages = "bangla"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode that is production code 202? ### Context: CREATE TABLE table_26448179_3 (written_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT written_by FROM table_26448179_3 WHERE production_code = "202"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the name of the episode whose writers were jeff astrof & matt goldman? ### Context: CREATE TABLE table_27914606_1 (title VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT title FROM table_27914606_1 WHERE written_by = "Jeff Astrof & Matt Goldman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the result of the match against Ryan Schultz? ### Context: CREATE TABLE table_name_12 (res VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT res FROM table_name_12 WHERE opponent = "ryan schultz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lap of damon hill, with a Grid smaller than 1? ### Context: CREATE TABLE table_name_66 (laps INTEGER, driver VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT AVG(laps) FROM table_name_66 WHERE driver = "damon hill" AND grid < 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 percent did STARK get in upper austria? ### Context: CREATE TABLE table_name_58 (stark VARCHAR, state VARCHAR) ### Response: ### Response: SELECT stark FROM table_name_58 WHERE state = "upper austria"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament involved was the Transitions Championship? ### Context: CREATE TABLE table_name_45 (to_par VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_45 WHERE tournament = "transitions championship"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 are all winners share ($) in the year 2004? ### Context: CREATE TABLE table_15315816_1 (winners_share__$_ VARCHAR, year VARCHAR) ### Response: ### Response: SELECT winners_share__$_ FROM table_15315816_1 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 week was the opponent the San Diego Chargers? ### Context: CREATE TABLE table_name_71 (week INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT AVG(week) FROM table_name_71 WHERE opponent = "san diego chargers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most tier 1 capital for irish nationwide ### Context: CREATE TABLE table_22368322_2 (_€_million VARCHAR, tier_1_capital INTEGER, institution VARCHAR) ### Response: ### Response: SELECT MAX(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = "Irish Nationwide"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games have high assists as earl watson (11) and location attendance as Keyarena 16,841? ### Context: CREATE TABLE table_28768469_7 (game VARCHAR, high_assists VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_28768469_7 WHERE high_assists = "Earl Watson (11)" AND location_attendance = "KeyArena 16,841"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 base pair has 832 genes? ### Context: CREATE TABLE table_name_79 (base_pairs VARCHAR, genes VARCHAR) ### Response: ### Response: SELECT base_pairs FROM table_name_79 WHERE genes = 832</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the player from the United States with a 4 to par and a 74-73-72-69=288 score? ### Context: CREATE TABLE table_name_20 (player VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_20 WHERE country = "united states" AND to_par = 4 AND score = 74 - 73 - 72 - 69 = 288</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: At what date is the score 66-72-64-65=267? ### Context: CREATE TABLE table_1529260_2 (dates VARCHAR, score VARCHAR) ### Response: ### Response: SELECT dates FROM table_1529260_2 WHERE score = 66 - 72 - 64 - 65 = 267</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the game on December 22? ### Context: CREATE TABLE table_name_81 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_81 WHERE date = "december 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 is the highest amount of money a player with a score of 69-71-71-73=284 has? ### Context: CREATE TABLE table_name_76 (money___ INTEGER, score VARCHAR) ### Response: ### Response: SELECT MAX(money___) AS $__ FROM table_name_76 WHERE score = 69 - 71 - 71 - 73 = 284</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2010 PERFORMANCE THAT HAD 2009 0F 0, AND FINALS TOURNAMENT? ### Context: CREATE TABLE table_name_19 (tournament VARCHAR) ### Response: ### Response: SELECT 2010 FROM table_name_19 WHERE 2009 = "0" AND tournament = "finals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the country is ranked more than 4? ### Context: CREATE TABLE table_name_66 (country VARCHAR, rank INTEGER) ### Response: ### Response: SELECT country FROM table_name_66 WHERE rank > 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the result for november 14, 1965 ### Context: CREATE TABLE table_14977592_1 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_14977592_1 WHERE date = "November 14, 1965"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 silver medal count when there is 1 Bronze medal and 1 Gold medal? ### Context: CREATE TABLE table_name_86 (silver INTEGER, bronze VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT MAX(silver) FROM table_name_86 WHERE bronze = 1 AND gold = 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 Date had a Series of ATCC Round 6? ### Context: CREATE TABLE table_name_28 (date VARCHAR, series VARCHAR) ### Response: ### Response: SELECT date FROM table_name_28 WHERE series = "atcc round 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 sum of the pick numbers for the player that went to San Miguel Beermen who played at San Sebastian? ### Context: CREATE TABLE table_name_36 (pick INTEGER, pba_team VARCHAR, college VARCHAR) ### Response: ### Response: SELECT SUM(pick) FROM table_name_36 WHERE pba_team = "san miguel beermen" AND college = "san sebastian"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drafted by the calgary stampeders? ### Context: CREATE TABLE table_24540893_6 (player VARCHAR, cfl_team VARCHAR) ### Response: ### Response: SELECT player FROM table_24540893_6 WHERE cfl_team = "Calgary Stampeders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the game was at dnipro stadium , kremenchuk? ### Context: CREATE TABLE table_name_55 (rank VARCHAR, location VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_55 WHERE location = "dnipro stadium , kremenchuk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who played mens doubles for the 1999 kobe tour? ### Context: CREATE TABLE table_28138035_20 (mens_doubles VARCHAR, year_location VARCHAR) ### Response: ### Response: SELECT mens_doubles FROM table_28138035_20 WHERE year_location = "1999 Kobe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 low gold total for under 2 total and over 0 silvers? ### Context: CREATE TABLE table_name_57 (gold INTEGER, total VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT MIN(gold) FROM table_name_57 WHERE total < 2 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: When maker is the model what is the nupowr 167? ### Context: CREATE TABLE table_3002894_4 (nupowr_167 VARCHAR, model VARCHAR) ### Response: ### Response: SELECT nupowr_167 FROM table_3002894_4 WHERE model = "Maker"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 LOA (metres) of boat with sail number M10? ### Context: CREATE TABLE table_20854943_2 (loa__metres_ VARCHAR, sail_number VARCHAR) ### Response: ### Response: SELECT loa__metres_ FROM table_20854943_2 WHERE sail_number = "M10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of long for avg more than 9.8 with rec less than 5 and yards less than 20 ### Context: CREATE TABLE table_name_25 (long INTEGER, yards VARCHAR, avg VARCHAR, rec VARCHAR) ### Response: ### Response: SELECT SUM(long) FROM table_name_25 WHERE avg > 9.8 AND rec < 5 AND yards < 20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the positions of the players from the team with name "Ryley Goldner". ### Context: CREATE TABLE match_season (Position VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR) ### Response: ### Response: SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Ryley Goldner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 plant hardiness zone in the Northern region where the annual precipitation is 443mm (17.4in)? ### Context: CREATE TABLE table_name_36 (plant_hardiness_zone VARCHAR, region VARCHAR, annual_precipitation VARCHAR) ### Response: ### Response: SELECT plant_hardiness_zone FROM table_name_36 WHERE region = "northern" AND annual_precipitation = "443mm (17.4in)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 broadcast date of the episode on 16mm t/r that ran 23:25? ### Context: CREATE TABLE table_2101431_1 (broadcast_date VARCHAR, archive VARCHAR, run_time VARCHAR) ### Response: ### Response: SELECT broadcast_date FROM table_2101431_1 WHERE archive = "16mm t/r" AND run_time = "23: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: What is Score, when Money ( $ ) is 32,200, and when Player is Chip Beck? ### Context: CREATE TABLE table_name_2 (score VARCHAR, money___$__ VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_2 WHERE money___$__ = "32,200" AND player = "chip beck"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Time, when Round is less than 2, and when Opponent is "Valentijn Overeem"? ### Context: CREATE TABLE table_name_22 (time VARCHAR, round VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT time FROM table_name_22 WHERE round < 2 AND opponent = "valentijn overeem"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game that home team torquay united played? ### Context: CREATE TABLE table_name_76 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_76 WHERE home_team = "torquay united"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had 10.14 million viewers (U.S.)? ### Context: CREATE TABLE table_21550897_1 (_number INTEGER, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT MIN(_number) FROM table_21550897_1 WHERE us_viewers__million_ = "10.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: Which aggravated assault has the highest amount and the following criteria: crime rate per 1000 greater than 89.1,rape value of 23, and a crime index greater than 1590? ### Context: CREATE TABLE table_name_90 (aggravated_assault INTEGER, crime_index_total VARCHAR, crime_rate_per_1000 VARCHAR, rape VARCHAR) ### Response: ### Response: SELECT MAX(aggravated_assault) FROM table_name_90 WHERE crime_rate_per_1000 > 89.1 AND rape = 23 AND crime_index_total > 1590</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 report in the race where the winning team was Roush Fenway Racing? ### Context: CREATE TABLE table_2220432_1 (report VARCHAR, team VARCHAR) ### Response: ### Response: SELECT report FROM table_2220432_1 WHERE team = "Roush Fenway 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: What was the record when Vancouver was the visitor? ### Context: CREATE TABLE table_name_9 (record VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT record FROM table_name_9 WHERE visitor = "vancouver"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home/away game is on February 29, 2008? ### Context: CREATE TABLE table_name_19 (home_away VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home_away FROM table_name_19 WHERE date = "february 29, 2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title of Buena Vista Pictures? ### Context: CREATE TABLE table_name_4 (title VARCHAR, studio VARCHAR) ### Response: ### Response: SELECT title FROM table_name_4 WHERE studio = "buena vista pictures"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 division in the AFC Conference had a total of 10 wins and appeared more than 18 times? ### Context: CREATE TABLE table_name_90 (division VARCHAR, appearances VARCHAR, conference VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT division FROM table_name_90 WHERE conference = "afc" AND wins = 10 AND appearances > 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles. ### Context: CREATE TABLE film (title VARCHAR, replacement_cost INTEGER, LENGTH VARCHAR, rating VARCHAR) ### Response: ### Response: SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 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: What is the description of the treatment type that costs the least money in total? ### Context: CREATE TABLE Treatments (treatment_type_code VARCHAR); CREATE TABLE Treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR) ### Response: ### Response: SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY SUM(cost_of_treatment) 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: Which Rank has a Total larger than 9, and a Gold larger than 6? ### Context: CREATE TABLE table_name_24 (rank VARCHAR, total VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_24 WHERE total > 9 AND gold > 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was round 7's lowest overall? ### Context: CREATE TABLE table_name_72 (overall INTEGER, round VARCHAR) ### Response: ### Response: SELECT MIN(overall) FROM table_name_72 WHERE round = 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: How many entries are there for points for the 6th position? ### Context: CREATE TABLE table_27631002_1 (points VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_27631002_1 WHERE position = "6th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position, when Pick is 7? ### Context: CREATE TABLE table_name_80 (position VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT position FROM table_name_80 WHERE pick = "7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did the Score of 195 (-21) happen? ### Context: CREATE TABLE table_name_4 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_4 WHERE score = "195 (-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 the total number of fans attending the game on October 8, 1989 before week 5? ### Context: CREATE TABLE table_name_4 (attendance VARCHAR, date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_4 WHERE date = "october 8, 1989" AND week < 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: Which To par has a Score larger than 68? ### Context: CREATE TABLE table_name_42 (to_par VARCHAR, score INTEGER) ### Response: ### Response: SELECT to_par FROM table_name_42 WHERE score > 68</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 club or province is the player with 12 caps from? ### Context: CREATE TABLE table_name_49 (club_province VARCHAR, caps VARCHAR) ### Response: ### Response: SELECT club_province FROM table_name_49 WHERE caps = 12</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What party did the incumbent from the Arkansas 5 district belong to? ### Context: CREATE TABLE table_1342249_5 (party VARCHAR, district VARCHAR) ### Response: ### Response: SELECT party FROM table_1342249_5 WHERE district = "Arkansas 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 earliest year where playoffs was "did not qualify," regular season was "2nd, New England," and Open Canada Cup is "N/A"? ### Context: CREATE TABLE table_1999350_1 (year INTEGER, open_canada_cup VARCHAR, playoffs VARCHAR, regular_season VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_1999350_1 WHERE playoffs = "Did not qualify" AND regular_season = "2nd, New England" AND open_canada_cup = "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: what's the success where deadline for completion is october 7, 2007 ### Context: CREATE TABLE table_12078626_1 (success VARCHAR, deadline_for_completion VARCHAR) ### Response: ### Response: SELECT success FROM table_12078626_1 WHERE deadline_for_completion = "October 7, 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Against, when Date is "27/02/2005"? ### Context: CREATE TABLE table_name_63 (against VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(against) FROM table_name_63 WHERE date = "27/02/2005"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What IHSAA Football Class has 20 elkhart as the county? ### Context: CREATE TABLE table_name_39 (ihsaa_football_class VARCHAR, county VARCHAR) ### Response: ### Response: SELECT ihsaa_football_class FROM table_name_39 WHERE county = "20 elkhart"</s>