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: Which Name has an Intra-molecular structure of no, and a Link of webserver, and a Comparative of no? ### Context: CREATE TABLE table_name_63 (name VARCHAR, comparative VARCHAR, intra_molecular_structure VARCHAR, link VARCHAR) ### Response: ### Response: SELECT name FROM table_name_63 WHERE intra_molecular_structure = "no" AND link = "webserver" AND comparative = "no"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 SCORE OF 71-64? ### Context: CREATE TABLE table_name_46 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_46 WHERE score = "71-64"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Position has a D.O.B. of 3 june 1989? ### Context: CREATE TABLE table_name_78 (position VARCHAR, dob VARCHAR) ### Response: ### Response: SELECT position FROM table_name_78 WHERE dob = "3 june 1989"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What kind of Modern equivalent has a Post-1009 province of gyeongsang -do, and a Administrative district of jinju -mok, and a Province of Silla of gangju? ### Context: CREATE TABLE table_name_88 (modern_equivalent VARCHAR, province_of_silla VARCHAR, post_1009_province VARCHAR, administrative_district VARCHAR) ### Response: ### Response: SELECT modern_equivalent FROM table_name_88 WHERE post_1009_province = "gyeongsang -do" AND administrative_district = "jinju -mok" AND province_of_silla = "gangju"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the defensive back? ### Context: CREATE TABLE table_12165135_1 (overall_pick__number VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(overall_pick__number) FROM table_12165135_1 WHERE position = "Defensive Back"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 amount of viewers if the series number is 14? ### Context: CREATE TABLE table_24639086_3 (viewers__in_millions_ VARCHAR, series__number VARCHAR) ### Response: ### Response: SELECT viewers__in_millions_ FROM table_24639086_3 WHERE series__number = 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: What is the average january number when the game number was higher than 39 and the opponent was the Vancouver Canucks? ### Context: CREATE TABLE table_name_72 (january INTEGER, opponent VARCHAR, game VARCHAR) ### Response: ### Response: SELECT AVG(january) FROM table_name_72 WHERE opponent = "vancouver canucks" AND game > 39</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title of the TV series in 2012? ### Context: CREATE TABLE table_name_70 (title VARCHAR, year VARCHAR) ### Response: ### Response: SELECT title FROM table_name_70 WHERE year = "2012"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Market Share that has Assets of 25 Million and a rank of 23? ### Context: CREATE TABLE table_name_53 (market_share VARCHAR, assets__usd__millions VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT market_share FROM table_name_53 WHERE assets__usd__millions = 25 AND rank = "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: What is the episode title of the show that had a production code of 3T5764? ### Context: CREATE TABLE table_11694832_1 (title VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT title FROM table_11694832_1 WHERE production_code = "3T5764"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor? ### Context: CREATE TABLE entrepreneur (Investor VARCHAR) ### Response: ### Response: SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points 2 has Drawn of 15, a Position larger than 20, and a Goals For smaller than 45? ### Context: CREATE TABLE table_name_35 (points_2 INTEGER, goals_for VARCHAR, drawn VARCHAR, position VARCHAR) ### Response: ### Response: SELECT SUM(points_2) FROM table_name_35 WHERE drawn = 15 AND position > 20 AND goals_for < 45</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with a tie no of 3? ### Context: CREATE TABLE table_name_14 (score VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT score FROM table_name_14 WHERE tie_no = "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 shows for 2013 when the 2012 is 2r, and a 2009 is 2r? ### Context: CREATE TABLE table_name_29 (Id VARCHAR) ### Response: ### Response: SELECT 2013 FROM table_name_29 WHERE 2012 = "2r" AND 2009 = "2r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total of laps with grid of 2 ### Context: CREATE TABLE table_name_5 (laps INTEGER, grid VARCHAR) ### Response: ### Response: SELECT SUM(laps) FROM table_name_5 WHERE grid = 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: Who is the percussionist for The Coral? ### Context: CREATE TABLE table_28715942_6 (vocal_percussionist VARCHAR, original_artist VARCHAR) ### Response: ### Response: SELECT vocal_percussionist FROM table_28715942_6 WHERE original_artist = "The Coral"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: The match against Mark Hunt had what result? ### Context: CREATE TABLE table_name_86 (res VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT res FROM table_name_86 WHERE opponent = "mark hunt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score for the away team at Glenferrie Oval? ### Context: CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_53 WHERE venue = "glenferrie oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are all values for male population in 2001 when sex ratio in 1991 is 896? ### Context: CREATE TABLE table_19589113_5 (male_population_2001 VARCHAR, sex_ratio_‡_1991 VARCHAR) ### Response: ### Response: SELECT male_population_2001 FROM table_19589113_5 WHERE sex_ratio_‡_1991 = 896</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 cause of death in the marriage that lasted 28 years? ### Context: CREATE TABLE table_24143253_4 (cause_of_death VARCHAR, length_of_marriage VARCHAR) ### Response: ### Response: SELECT cause_of_death FROM table_24143253_4 WHERE length_of_marriage = "28 years"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 every team with location attendance of Seattle Center Coliseum 14,180? ### Context: CREATE TABLE table_27902171_5 (team VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT team FROM table_27902171_5 WHERE location_attendance = "Seattle Center Coliseum 14,180"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 score when the home team is Essendon? ### Context: CREATE TABLE table_name_80 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_80 WHERE home_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest Rank for Jason Kreis, with less than 305 matches? ### Context: CREATE TABLE table_name_67 (rank INTEGER, name VARCHAR, matches VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_67 WHERE name = "jason kreis" AND matches < 305</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Canadian Grand Prix race winner had Didier Pironi in Pole Position? ### Context: CREATE TABLE table_name_11 (race VARCHAR, pole_position VARCHAR) ### Response: ### Response: SELECT race AS Winner FROM table_name_11 WHERE pole_position = "didier pironi" AND race = "canadian grand prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on 30 January 1988, when the home team was Everton? ### Context: CREATE TABLE table_name_45 (away_team VARCHAR, home_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_45 WHERE home_team = "everton" AND date = "30 january 1988"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the away team playing at Carlton? ### Context: CREATE TABLE table_16387653_1 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_16387653_1 WHERE home_team = "Carlton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total and average amount paid in claim headers. ### Context: CREATE TABLE claim_headers (amount_piad INTEGER) ### Response: ### Response: SELECT SUM(amount_piad), AVG(amount_piad) FROM claim_headers</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 times was the result was re-elected and the party was anti-masonic in the district Pennsylvania 24? ### Context: CREATE TABLE table_2668199_2 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR) ### Response: ### Response: SELECT COUNT(first_elected) FROM table_2668199_2 WHERE result = "Re-elected" AND party = "Anti-Masonic" AND district = "Pennsylvania 24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the attendance of tie no. 23? ### Context: CREATE TABLE table_name_34 (attendance VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_34 WHERE tie_no = "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: What is the attendance for a week smaller than 9 with a result of L 38-20? ### Context: CREATE TABLE table_name_67 (attendance INTEGER, result VARCHAR, week VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_67 WHERE result = "l 38-20" AND week < 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which segment a's netflix figure is s04e24? ### Context: CREATE TABLE table_name_77 (segment_a VARCHAR, netflix VARCHAR) ### Response: ### Response: SELECT segment_a FROM table_name_77 WHERE netflix = "s04e24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 employee id for all employees who earn more than the average salary. ### Context: CREATE TABLE employees (employee_id VARCHAR, salary INTEGER) ### Response: ### Response: SELECT employee_id FROM employees WHERE salary > (SELECT AVG(salary) FROM employees)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the place when the score was 65-70-72=207? ### Context: CREATE TABLE table_name_35 (place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT place FROM table_name_35 WHERE score = 65 - 70 - 72 = 207</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Week of the game with an Attendance of 64,900 and a Result of L 34-13? ### Context: CREATE TABLE table_name_83 (week INTEGER, attendance VARCHAR, result VARCHAR) ### Response: ### Response: SELECT MAX(week) FROM table_name_83 WHERE attendance = "64,900" AND result = "l 34-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: what's the date with game being 72 ### Context: CREATE TABLE table_13557843_7 (date VARCHAR, game VARCHAR) ### Response: ### Response: SELECT date FROM table_13557843_7 WHERE game = 72</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 million viewers watched episode 6? ### Context: CREATE TABLE table_17901155_4 (viewers__millions_ VARCHAR, no_in_season VARCHAR) ### Response: ### Response: SELECT viewers__millions_ FROM table_17901155_4 WHERE no_in_season = 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: find the names of museums which have more staff than the minimum staff number of all museums opened after 2010. ### Context: CREATE TABLE museum (name VARCHAR, num_of_staff INTEGER, open_year INTEGER) ### Response: ### Response: SELECT name FROM museum WHERE num_of_staff > (SELECT MIN(num_of_staff) FROM museum WHERE open_year > 2010)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average ties when the team is montreal victorias and the games played is more than 8? ### Context: CREATE TABLE table_name_73 (ties INTEGER, team VARCHAR, games_played VARCHAR) ### Response: ### Response: SELECT AVG(ties) FROM table_name_73 WHERE team = "montreal victorias" AND games_played > 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: Which opponent has an Outcome of winner, and a Date of 5 november 2011? ### Context: CREATE TABLE table_name_26 (opponent VARCHAR, outcome VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_26 WHERE outcome = "winner" AND date = "5 november 2011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 losses for entries that have 12 wins and a goal difference smaller than -14? ### Context: CREATE TABLE table_name_37 (losses VARCHAR, wins VARCHAR, goal_difference VARCHAR) ### Response: ### Response: SELECT COUNT(losses) FROM table_name_37 WHERE wins = 12 AND goal_difference < -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 Republican has a District of 10? ### Context: CREATE TABLE table_name_26 (republican VARCHAR, district VARCHAR) ### Response: ### Response: SELECT republican FROM table_name_26 WHERE district = 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who got the high rebounds if Brook Lopez (15) earned the high points? ### Context: CREATE TABLE table_27700375_8 (high_rebounds VARCHAR, high_points VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_27700375_8 WHERE high_points = "Brook Lopez (15)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: The order # is what for the week # Top 10? ### Context: CREATE TABLE table_26250253_1 (order__number VARCHAR, week__number VARCHAR) ### Response: ### Response: SELECT order__number FROM table_26250253_1 WHERE week__number = "Top 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 home team played Hinckley United? ### Context: CREATE TABLE table_name_30 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_30 WHERE away_team = "hinckley 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: How many games have a record of 30–25–9 and more points than 69? ### Context: CREATE TABLE table_name_86 (game VARCHAR, record VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_86 WHERE record = "30–25–9" AND points > 69</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the D 48 when it has a D 44 of d 33 ### Context: CREATE TABLE table_name_29 (d_48 VARCHAR, d_44 VARCHAR) ### Response: ### Response: SELECT d_48 FROM table_name_29 WHERE d_44 = "d 33"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 British pronunciation when the American and Australian is i? ### Context: CREATE TABLE table_name_44 (british VARCHAR, american VARCHAR, australian VARCHAR) ### Response: ### Response: SELECT british FROM table_name_44 WHERE american = "i" AND australian = "i"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the margin of victory on Apr 8, 1979? ### Context: CREATE TABLE table_name_28 (margin_of_victory VARCHAR, date VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_28 WHERE date = "apr 8, 1979"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 international freight has a change of +0,2% with more than 0 international mail? ### Context: CREATE TABLE table_name_75 (international_freight VARCHAR, change VARCHAR, international_mail VARCHAR) ### Response: ### Response: SELECT COUNT(international_freight) FROM table_name_75 WHERE change = "+0,2%" AND international_mail > 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 is the minimun amount of gold medals? ### Context: CREATE TABLE table_22355_35 (gold INTEGER) ### Response: ### Response: SELECT MIN(gold) FROM table_22355_35</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament did the Crusaders play in? ### Context: CREATE TABLE table_name_98 (tournament VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_98 WHERE opponent = "crusaders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Please show the record formats of orchestras in ascending order of count. ### Context: CREATE TABLE orchestra (Major_Record_Format VARCHAR) ### Response: ### Response: SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What region has a bronze label and a catalogue of 202 876-270? ### Context: CREATE TABLE table_name_82 (region VARCHAR, label VARCHAR, catalogue VARCHAR) ### Response: ### Response: SELECT region FROM table_name_82 WHERE label = "bronze" AND catalogue = "202 876-270"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 goals when there are 3 draws, more than 18 losses, and played is smaller than 38? ### Context: CREATE TABLE table_name_40 (goals_for VARCHAR, played VARCHAR, draws VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT COUNT(goals_for) FROM table_name_40 WHERE draws = 3 AND losses > 18 AND played < 38</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What character does Italian voice actor Emanuela Damasio play? ### Context: CREATE TABLE table_name_48 (character VARCHAR, italian_voice_actor VARCHAR) ### Response: ### Response: SELECT character FROM table_name_48 WHERE italian_voice_actor = "emanuela damasio"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What opponent has april 10 as the date? ### Context: CREATE TABLE table_name_14 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_14 WHERE date = "april 10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who remixed the version with a length of 3:58? ### Context: CREATE TABLE table_name_74 (remixed_by VARCHAR, length VARCHAR) ### Response: ### Response: SELECT remixed_by FROM table_name_74 WHERE length = "3:58"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 enrollment for rochester community school? ### Context: CREATE TABLE table_name_66 (enrollment INTEGER, school VARCHAR) ### Response: ### Response: SELECT MAX(enrollment) FROM table_name_66 WHERE school = "rochester community"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What years did Birger Ruud win the FIS Nordic World Ski Championships? ### Context: CREATE TABLE table_174491_2 (fis_nordic_world_ski_championships VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT fis_nordic_world_ski_championships FROM table_174491_2 WHERE winner = "Birger Ruud"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 may times did a player that attended Iowa state appear on the all time roster? ### Context: CREATE TABLE table_11734041_1 (years_for_rockets VARCHAR, school_club_team_country VARCHAR) ### Response: ### Response: SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE school_club_team_country = "Iowa State"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 outcome of the match on February 17, 2003? ### Context: CREATE TABLE table_name_13 (outcome VARCHAR, date__final_ VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_13 WHERE date__final_ = "february 17, 2003"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total attendance on the day they went 17-7? ### Context: CREATE TABLE table_name_17 (attendance VARCHAR, record VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_17 WHERE record = "17-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: Who plays the position of forward-center? ### Context: CREATE TABLE table_15621965_2 (player VARCHAR, position VARCHAR) ### Response: ### Response: SELECT player FROM table_15621965_2 WHERE position = "Forward-Center"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which district is republican? ### Context: CREATE TABLE table_1341663_44 (district VARCHAR, party VARCHAR) ### Response: ### Response: SELECT district FROM table_1341663_44 WHERE party = "Republican"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Super G has a Career of 1980–1996? ### Context: CREATE TABLE table_name_25 (super_g VARCHAR, career VARCHAR) ### Response: ### Response: SELECT super_g FROM table_name_25 WHERE career = "1980–1996"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 goals for Jimmy Greaves, and matches more than 516? ### Context: CREATE TABLE table_name_91 (goals INTEGER, name VARCHAR, matches VARCHAR) ### Response: ### Response: SELECT AVG(goals) FROM table_name_91 WHERE name = "jimmy greaves" AND matches > 516</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the the Chinese population for the state that has a Filipino population of 1474707? ### Context: CREATE TABLE table_10118412_6 (chinese INTEGER, filipino VARCHAR) ### Response: ### Response: SELECT MIN(chinese) FROM table_10118412_6 WHERE filipino = 1474707</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score when Bolton Wanderers were the away team? ### Context: CREATE TABLE table_name_38 (score VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_38 WHERE away_team = "bolton wanderers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loss when the record is 76-81 ### Context: CREATE TABLE table_name_1 (loss VARCHAR, record VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_1 WHERE record = "76-81"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the largest lost stat when the difference is - 19? ### Context: CREATE TABLE table_name_36 (lost INTEGER, difference VARCHAR) ### Response: ### Response: SELECT MAX(lost) FROM table_name_36 WHERE difference = "- 19"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smoke point when the polyunsaturated fat is 69g (4g in high oleic variety)? ### Context: CREATE TABLE table_name_24 (smoke_point VARCHAR, polyunsaturated_fat VARCHAR) ### Response: ### Response: SELECT smoke_point FROM table_name_24 WHERE polyunsaturated_fat = "69g (4g in high oleic variety)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 type had the unit greifswald - 7 (kgr 7) ? ### Context: CREATE TABLE table_name_15 (type VARCHAR, unit VARCHAR) ### Response: ### Response: SELECT type FROM table_name_15 WHERE unit = "greifswald - 7 (kgr 7)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the number of others votes for when others % is 2.0% ### Context: CREATE TABLE table_15929156_3 (others_votes VARCHAR, others__percentage VARCHAR) ### Response: ### Response: SELECT COUNT(others_votes) FROM table_15929156_3 WHERE others__percentage = "2.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 items appear in the average column when the totals were 105-161? ### Context: CREATE TABLE table_28628309_6 (average VARCHAR, totals VARCHAR) ### Response: ### Response: SELECT COUNT(average) FROM table_28628309_6 WHERE totals = "105-161"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance larger than 74,382? ### Context: CREATE TABLE table_name_36 (date VARCHAR, attendance INTEGER) ### Response: ### Response: SELECT date FROM table_name_36 WHERE attendance > 74 OFFSET 382</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 grid that has brm and over 54 laps? ### Context: CREATE TABLE table_name_20 (grid INTEGER, constructor VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT MIN(grid) FROM table_name_20 WHERE constructor = "brm" AND laps > 54</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the party affiliation of New York 26? ### Context: CREATE TABLE table_1805191_33 (party VARCHAR, district VARCHAR) ### Response: ### Response: SELECT party FROM table_1805191_33 WHERE district = "New York 26"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what ist he date of game 29? ### Context: CREATE TABLE table_22879262_7 (date VARCHAR, game VARCHAR) ### Response: ### Response: SELECT date FROM table_22879262_7 WHERE game = 29</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the home team in the game having a visitor of Chicago? ### Context: CREATE TABLE table_name_21 (home VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT home FROM table_name_21 WHERE visitor = "chicago"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the game was on January 21, which game was it? ### Context: CREATE TABLE table_27537870_6 (game INTEGER, january VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_27537870_6 WHERE january = 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 is the number of the season episode whose writer is R. Scott Gemmill and the Director is Ray Austin? ### Context: CREATE TABLE table_228973_3 (no_in_season VARCHAR, written_by VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT no_in_season FROM table_228973_3 WHERE written_by = "R. Scott Gemmill" AND directed_by = "Ray Austin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was before week 4 and was attended by over 54,015 people ? ### Context: CREATE TABLE table_name_33 (date VARCHAR, week VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_33 WHERE week < 4 AND attendance > 54 OFFSET 015</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year does robin buck go 44 laps? ### Context: CREATE TABLE table_name_78 (year VARCHAR, distance_duration VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT year FROM table_name_78 WHERE distance_duration = "44 laps" AND driver = "robin buck"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 team scored 102-87? ### Context: CREATE TABLE table_name_60 (home_team VARCHAR, score VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_60 WHERE score = "102-87"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nickname of the team in the East Geelong club? ### Context: CREATE TABLE table_name_93 (nickname VARCHAR, club VARCHAR) ### Response: ### Response: SELECT nickname FROM table_name_93 WHERE club = "east geelong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 type of 0.0 value? ### Context: CREATE TABLE table_name_29 (type VARCHAR, value VARCHAR) ### Response: ### Response: SELECT type FROM table_name_29 WHERE value = "0.0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the frequency of 104.3 business radio? ### Context: CREATE TABLE table_name_95 (frequency VARCHAR, name VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_95 WHERE name = "104.3 business 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's the name of the athlete with a Snatch larger than 140, Bodyweight smaller than 84.55, and Clean and Jerk of 192.5? ### Context: CREATE TABLE table_name_62 (name VARCHAR, snatch VARCHAR, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR) ### Response: ### Response: SELECT name FROM table_name_62 WHERE snatch > 140 AND bodyweight < 84.55 AND clean_ & _jerk = "192.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 M939 series for short wheelbase and M809 series of m817 ### Context: CREATE TABLE table_name_95 (m939_series VARCHAR, wheelbase VARCHAR, m809_series VARCHAR) ### Response: ### Response: SELECT m939_series FROM table_name_95 WHERE wheelbase = "short" AND m809_series = "m817"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: display all the information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary. ### Context: CREATE TABLE employees (salary VARCHAR, first_name VARCHAR) ### Response: ### Response: SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Record for week 14? ### Context: CREATE TABLE table_name_88 (record VARCHAR, week VARCHAR) ### Response: ### Response: SELECT record FROM table_name_88 WHERE week = 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: How much Avg/G has a Name of robert marve, and a Gain smaller than 236? ### Context: CREATE TABLE table_name_32 (avg_g INTEGER, name VARCHAR, gain VARCHAR) ### Response: ### Response: SELECT SUM(avg_g) FROM table_name_32 WHERE name = "robert marve" AND gain < 236</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In how many different years was the team nicknamed Comets founded? ### Context: CREATE TABLE table_28243691_2 (founded VARCHAR, team_nickname VARCHAR) ### Response: ### Response: SELECT COUNT(founded) FROM table_28243691_2 WHERE team_nickname = "Comets"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tv had the date december 7, 1986? ### Context: CREATE TABLE table_11449590_2 (tv VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tv FROM table_11449590_2 WHERE date = "December 7, 1986"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school, club, team or country that the Rockets played for 1967-68? ### Context: CREATE TABLE table_name_27 (school_club_team_country VARCHAR, years_for_rockets VARCHAR) ### Response: ### Response: SELECT school_club_team_country FROM table_name_27 WHERE years_for_rockets = "1967-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: How many people had the high rebound total when the team was 19-13? ### Context: CREATE TABLE table_13762472_5 (high_rebounds VARCHAR, record VARCHAR) ### Response: ### Response: SELECT COUNT(high_rebounds) FROM table_13762472_5 WHERE record = "19-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: what is writtenand directed by shannon flynn? ### Context: CREATE TABLE table_24018430_3 (written_by VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT written_by FROM table_24018430_3 WHERE directed_by = "Shannon Flynn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 names of programs whose origin is not in Beijing. ### Context: CREATE TABLE program (name VARCHAR, origin VARCHAR) ### Response: ### Response: SELECT name FROM program WHERE origin <> 'Beijing'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What score has october 16, 2000 as the date? ### Context: CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_71 WHERE date = "october 16, 2000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I want to know the opponent that ha a week of 3 ### Context: CREATE TABLE table_name_61 (opponent VARCHAR, week VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_61 WHERE week = "3"</s>