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's the average Top-25, that has an Events that's smaller than 12, and has a Top-5 that is larger than 0? ### Context: CREATE TABLE table_name_60 (top_25 INTEGER, events VARCHAR, top_5 VARCHAR) ### Response: ### Response: SELECT AVG(top_25) FROM table_name_60 WHERE events < 12 AND top_5 > 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 type institution is point park university ### Context: CREATE TABLE table_10581768_2 (type VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT type FROM table_10581768_2 WHERE institution = "Point Park University"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 broadcast for davis-wade stadium • starkville ms ### Context: CREATE TABLE table_26842217_18 (broadcast VARCHAR, site VARCHAR) ### Response: ### Response: SELECT broadcast FROM table_26842217_18 WHERE site = "Davis-Wade Stadium • Starkville MS"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 capacity in grodno ### Context: CREATE TABLE table_name_79 (capacity INTEGER, location VARCHAR) ### Response: ### Response: SELECT MIN(capacity) FROM table_name_79 WHERE location = "grodno"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had highest assists at game on December 21? ### Context: CREATE TABLE table_27723526_9 (high_assists VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(high_assists) FROM table_27723526_9 WHERE date = "December 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: Who is the lyricist for the song with a length of 3:05? ### Context: CREATE TABLE table_10848177_1 (lyricist VARCHAR, length VARCHAR) ### Response: ### Response: SELECT lyricist FROM table_10848177_1 WHERE length = "3:05"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 December, when Score is "4 - 4"? ### Context: CREATE TABLE table_name_66 (december INTEGER, score VARCHAR) ### Response: ### Response: SELECT MIN(december) FROM table_name_66 WHERE score = "4 - 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 last episode in the season that had 3.91 million viewers in the US? ### Context: CREATE TABLE table_29154676_1 (season_no INTEGER, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT MIN(season_no) FROM table_29154676_1 WHERE us_viewers__millions_ = "3.91"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 soccer stadium in NL providence? ### Context: CREATE TABLE table_27369069_1 (soccer_stadium VARCHAR, province VARCHAR) ### Response: ### Response: SELECT soccer_stadium FROM table_27369069_1 WHERE province = "NL"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ङ ng/na? ### Context: CREATE TABLE table_name_87 (name VARCHAR, pada_3 VARCHAR) ### Response: ### Response: SELECT name FROM table_name_87 WHERE pada_3 = "ङ ng/na"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's the record where attendance is 61,350 ### Context: CREATE TABLE table_11406866_2 (record VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT record FROM table_11406866_2 WHERE attendance = "61,350"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Station has a Zone 2010 of 7? ### Context: CREATE TABLE table_name_65 (station VARCHAR, zone_2010 VARCHAR) ### Response: ### Response: SELECT station FROM table_name_65 WHERE zone_2010 = "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: Tell me the average wins for class of 50cc and rank of 8th ### Context: CREATE TABLE table_name_47 (wins INTEGER, class VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(wins) FROM table_name_47 WHERE class = "50cc" AND rank = "8th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What 1976 has a Tournament of overall win – loss? ### Context: CREATE TABLE table_name_67 (tournament VARCHAR) ### Response: ### Response: SELECT 1976 FROM table_name_67 WHERE tournament = "overall win – loss"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What race was won by Tazio Nuvolari? ### Context: CREATE TABLE table_name_63 (name VARCHAR, winning_drivers VARCHAR) ### Response: ### Response: SELECT name FROM table_name_63 WHERE winning_drivers = "tazio nuvolari"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 To Par, when Score is "72-67-71-72=282"? ### Context: CREATE TABLE table_name_40 (to_par INTEGER, score VARCHAR) ### Response: ### Response: SELECT AVG(to_par) FROM table_name_40 WHERE score = 72 - 67 - 71 - 72 = 282</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: During the Australian Grand Prix and the fastest lap was driven by Jacques Villeneuve, what's the report recorded? ### Context: CREATE TABLE table_name_65 (report VARCHAR, fastest_lap VARCHAR, grand_prix VARCHAR) ### Response: ### Response: SELECT report FROM table_name_65 WHERE fastest_lap = "jacques villeneuve" AND grand_prix = "australian 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: What is the Number of Households that have a Per Capita Income of $21,345? ### Context: CREATE TABLE table_name_59 (number_of_households INTEGER, per_capita_income VARCHAR) ### Response: ### Response: SELECT AVG(number_of_households) FROM table_name_59 WHERE per_capita_income = "$21,345"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: A major third of C has what listed for the Minor seventh? ### Context: CREATE TABLE table_name_29 (minor_seventh VARCHAR, major_third VARCHAR) ### Response: ### Response: SELECT minor_seventh FROM table_name_29 WHERE major_third = "c"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 did the company have a balance sheet total of €125,359,000? ### Context: CREATE TABLE table_name_69 (year VARCHAR, balance_sheet_total VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_69 WHERE balance_sheet_total = "€125,359,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 result of the 1948 og competition? ### Context: CREATE TABLE table_name_59 (result VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT result FROM table_name_59 WHERE competition = "1948 og"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the original name of the district with the current English name of South Bogor? ### Context: CREATE TABLE table_1104312_5 (original_name VARCHAR, english_name VARCHAR) ### Response: ### Response: SELECT original_name FROM table_1104312_5 WHERE english_name = "South Bogor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What season had Belgium and 1 goal? ### Context: CREATE TABLE table_name_29 (season VARCHAR, country VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT season FROM table_name_29 WHERE country = "belgium" AND goals = "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: When did France come in second? ### Context: CREATE TABLE table_name_54 (second VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT second FROM table_name_54 WHERE nation = "france"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 whole range of united states where road race is ottawa marathon ### Context: CREATE TABLE table_26166836_2 (country VARCHAR, road_race VARCHAR) ### Response: ### Response: SELECT COUNT(country) FROM table_26166836_2 WHERE road_race = "Ottawa Marathon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 HP model with a #HDD of 1 of sides of ds ### Context: CREATE TABLE table_name_68 (hp_model VARCHAR, _number_hdd VARCHAR, sides VARCHAR) ### Response: ### Response: SELECT hp_model FROM table_name_68 WHERE _number_hdd = 1 AND sides = "ds"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the results when Hanne Skak Jensen faced Andreja Klepač as opponent? ### Context: CREATE TABLE table_25505246_7 (result VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_25505246_7 WHERE opponent = "Andreja Klepač"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 had players who scored 36 goals? ### Context: CREATE TABLE table_name_51 (years VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT years FROM table_name_51 WHERE goals = "36"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match that had Shaun Murphy as runner-up? ### Context: CREATE TABLE table_name_31 (date VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT date FROM table_name_31 WHERE runner_up = "shaun murphy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Participants that has Silver that's smaller than 0? ### Context: CREATE TABLE table_name_38 (participants INTEGER, silver INTEGER) ### Response: ### Response: SELECT SUM(participants) FROM table_name_38 WHERE 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: What is the total when silver is less than 1 and rank larger than 3? ### Context: CREATE TABLE table_name_82 (total VARCHAR, silver VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_82 WHERE silver < 1 AND rank > 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the roll number of Poroti school, which has a 6 decile? ### Context: CREATE TABLE table_name_45 (roll VARCHAR, decile VARCHAR, name VARCHAR) ### Response: ### Response: SELECT roll FROM table_name_45 WHERE decile = "6" AND name = "poroti school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 kit manufacturer that has billy bonds as the manager? ### Context: CREATE TABLE table_name_36 (kit_manufacturer VARCHAR, manager VARCHAR) ### Response: ### Response: SELECT kit_manufacturer FROM table_name_36 WHERE manager = "billy bonds"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 semifinalists when the surface is hard (i)? ### Context: CREATE TABLE table_name_9 (semifinalists VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT semifinalists FROM table_name_9 WHERE surface = "hard (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: Name the opponent for august 6 ### Context: CREATE TABLE table_name_79 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_79 WHERE date = "august 6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Monarch has succession unclear 1100-1103 as his Status? ### Context: CREATE TABLE table_name_60 (monarch VARCHAR, status VARCHAR) ### Response: ### Response: SELECT monarch FROM table_name_60 WHERE status = "succession unclear 1100-1103"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 pick number? ### Context: CREATE TABLE table_14655757_1 (pick__number INTEGER) ### Response: ### Response: SELECT MIN(pick__number) FROM table_14655757_1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the arabic capital name where the english capital name is beirut? ### Context: CREATE TABLE table_15694696_1 (arabic_capital_name VARCHAR, english_capital_name VARCHAR) ### Response: ### Response: SELECT arabic_capital_name FROM table_15694696_1 WHERE english_capital_name = "Beirut"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What integrated has an allied-related of centralized? ### Context: CREATE TABLE table_name_11 (integrated VARCHAR, allied_related VARCHAR) ### Response: ### Response: SELECT integrated FROM table_name_11 WHERE allied_related = "centralized"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date of Super G in the 2010 season? ### Context: CREATE TABLE table_name_50 (date VARCHAR, discipline VARCHAR, season VARCHAR) ### Response: ### Response: SELECT date FROM table_name_50 WHERE discipline = "super g" AND season = 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: For the game against the San Francisco 49ers what was the total attendance? ### Context: CREATE TABLE table_name_12 (attendance INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_12 WHERE opponent = "san francisco 49ers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 finish when the country is united states and the player is tiger woods? ### Context: CREATE TABLE table_name_51 (finish VARCHAR, country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_51 WHERE country = "united states" AND player = "tiger woods"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the away team score when the home team is essendon? ### Context: CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_2 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: How many years have a theme of Toronto Maple Leafs and an Issue Price of 24.95? ### Context: CREATE TABLE table_name_39 (year VARCHAR, theme VARCHAR, issue_price VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_39 WHERE theme = "toronto maple leafs" AND issue_price = 24.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 is the lowest lane of a swimmer with a time of 2:07.57 and a rank larger than 1? ### Context: CREATE TABLE table_name_17 (lane INTEGER, time VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MIN(lane) FROM table_name_17 WHERE time = "2:07.57" AND rank > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score at 3:27? ### Context: CREATE TABLE table_name_8 (score VARCHAR, time VARCHAR) ### Response: ### Response: SELECT score FROM table_name_8 WHERE time = "3:27"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What leagues includes division 3 ### Context: CREATE TABLE table_1214035_1 (league VARCHAR, division VARCHAR) ### Response: ### Response: SELECT league FROM table_1214035_1 WHERE division = "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: When 1-1 is the series who is the team? ### Context: CREATE TABLE table_22883210_11 (team VARCHAR, series VARCHAR) ### Response: ### Response: SELECT team FROM table_22883210_11 WHERE series = "1-1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the height for the player born in 1980 and center? ### Context: CREATE TABLE table_12962773_13 (height VARCHAR, year_born VARCHAR, position VARCHAR) ### Response: ### Response: SELECT height FROM table_12962773_13 WHERE year_born = 1980 AND position = "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: When Sydney Roosters won with a Crown of more than 7,426, what was the Venue? ### Context: CREATE TABLE table_name_74 (venue VARCHAR, winner VARCHAR, crowd VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_74 WHERE winner = "sydney roosters" AND crowd > 7 OFFSET 426</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 debut albums did mike mohede have? ### Context: CREATE TABLE table_1646960_3 (debut_album VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT COUNT(debut_album) FROM table_1646960_3 WHERE winner = "Mike Mohede"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the high assists for orlando ### Context: CREATE TABLE table_name_46 (high_assists VARCHAR, team VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_name_46 WHERE team = "orlando"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the first exercise and has 18 as the second exercise? ### Context: CREATE TABLE table_name_2 (first_exercise INTEGER, second_exercise VARCHAR) ### Response: ### Response: SELECT SUM(first_exercise) FROM table_name_2 WHERE second_exercise = 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the latest date for a game over 69 with a St. Louis Blues opponent? ### Context: CREATE TABLE table_name_49 (date INTEGER, game VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT MAX(date) FROM table_name_49 WHERE game > 69 AND opponent = "st. louis blues"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 villians were in No. 25? ### Context: CREATE TABLE table_10470082_3 (villains VARCHAR, no VARCHAR) ### Response: ### Response: SELECT COUNT(villains) FROM table_10470082_3 WHERE no = 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: Which Game is the highest that has a January of 28? ### Context: CREATE TABLE table_name_51 (game INTEGER, january VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_name_51 WHERE january = 28</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the Rank is 10, what was the time on Sat aug 28? ### Context: CREATE TABLE table_26986076_1 (sat_28_aug VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT sat_28_aug FROM table_26986076_1 WHERE rank = 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 is the to par of player jerry pate, who has a 70-69=139 score? ### Context: CREATE TABLE table_name_66 (to_par VARCHAR, player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_66 WHERE score = 70 - 69 = 139 AND player = "jerry pate"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the winning driver for pau grand prix ### Context: CREATE TABLE table_name_1 (winning_driver VARCHAR, name VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_name_1 WHERE name = "pau 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: What is the power at Baguio where the frequency is 102.3mhz? ### Context: CREATE TABLE table_name_59 (power__kw_ VARCHAR, frequency VARCHAR, location VARCHAR) ### Response: ### Response: SELECT power__kw_ FROM table_name_59 WHERE frequency = "102.3mhz" AND location = "baguio"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 deity that the state of Bihar was named after? ### Context: CREATE TABLE table_name_29 (name_of_deity VARCHAR, name_of_the_state_where_found_in_india VARCHAR) ### Response: ### Response: SELECT name_of_deity FROM table_name_29 WHERE name_of_the_state_where_found_in_india = "bihar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 MVP finals that includes Detroit shock from the eastern championship and Sacramento monarchs from western championship? ### Context: CREATE TABLE table_name_26 (finals_mvp VARCHAR, eastern_champion VARCHAR, western_champion VARCHAR) ### Response: ### Response: SELECT finals_mvp FROM table_name_26 WHERE eastern_champion = "detroit shock" AND western_champion = "sacramento monarchs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the Position that has the Entrant of j ampt? ### Context: CREATE TABLE table_name_67 (position VARCHAR, entrant VARCHAR) ### Response: ### Response: SELECT position FROM table_name_67 WHERE entrant = "j ampt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 time/retired associated with a grid of 5 and under 73 laps? ### Context: CREATE TABLE table_name_46 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_46 WHERE laps < 73 AND grid = 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's the minimum production code written by jay sommers & dick chevillat and al schwartz ### Context: CREATE TABLE table_12226390_3 (production_code INTEGER, written_by VARCHAR) ### Response: ### Response: SELECT MIN(production_code) FROM table_12226390_3 WHERE written_by = "Jay Sommers & Dick Chevillat and Al Schwartz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season did sportfreunde siegen win best supported club? ### Context: CREATE TABLE table_12272590_2 (season VARCHAR, best_supported_club VARCHAR) ### Response: ### Response: SELECT COUNT(season) FROM table_12272590_2 WHERE best_supported_club = "Sportfreunde Siegen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2005 tournament that has a 1R in both 2006 and 2002? ### Context: CREATE TABLE table_name_14 (Id VARCHAR) ### Response: ### Response: SELECT 2005 FROM table_name_14 WHERE 2006 = "1r" AND 2002 = "1r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 repeat date of the episode that aired 22/12/1968? ### Context: CREATE TABLE table_13403120_1 (repeatairdate_s_ VARCHAR, originalairdate VARCHAR) ### Response: ### Response: SELECT repeatairdate_s_ FROM table_13403120_1 WHERE originalairdate = "22/12/1968"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Money ($) amount for Lloyd Mangrum? ### Context: CREATE TABLE table_name_19 (money___$__ VARCHAR, player VARCHAR) ### Response: ### Response: SELECT money___$__ FROM table_name_19 WHERE player = "lloyd mangrum"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rowers represented the country of portugal? ### Context: CREATE TABLE table_name_4 (rowers VARCHAR, country VARCHAR) ### Response: ### Response: SELECT rowers FROM table_name_4 WHERE country = "portugal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the World indoor championships gave a position of 3rd? ### Context: CREATE TABLE table_name_12 (year INTEGER, competition VARCHAR, position VARCHAR) ### Response: ### Response: SELECT SUM(year) FROM table_name_12 WHERE competition = "world indoor championships" AND position = "3rd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the year when the date is not played? ### Context: CREATE TABLE table_name_84 (year VARCHAR, date VARCHAR) ### Response: ### Response: SELECT year FROM table_name_84 WHERE date = "not played"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 project which has a missle of agni-iii ### Context: CREATE TABLE table_name_92 (project VARCHAR, missile VARCHAR) ### Response: ### Response: SELECT project FROM table_name_92 WHERE missile = "agni-iii"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 created One Night in Lisbon in 1941? ### Context: CREATE TABLE table_name_78 (theatre VARCHAR, _studio VARCHAR, _or_network VARCHAR, date VARCHAR, title VARCHAR) ### Response: ### Response: SELECT theatre, _studio, _or_network FROM table_name_78 WHERE date = "1941" AND title = "one night in lisbon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was the season that had more teams larger than 14 in the super rugby league? ### Context: CREATE TABLE table_name_72 (season VARCHAR, _number_of_teams VARCHAR, league VARCHAR) ### Response: ### Response: SELECT season FROM table_name_72 WHERE _number_of_teams > 14 AND league = "super rugby"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 directed episode 11 in the series? ### Context: CREATE TABLE table_26136228_3 (directed_by VARCHAR, series_no VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_26136228_3 WHERE series_no = 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of heat for christophe lebon when lane is less than 4? ### Context: CREATE TABLE table_name_74 (heat VARCHAR, lane VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(heat) FROM table_name_74 WHERE lane < 4 AND name = "christophe lebon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 after the fight that lasted 8:17? ### Context: CREATE TABLE table_name_35 (record VARCHAR, time VARCHAR) ### Response: ### Response: SELECT record FROM table_name_35 WHERE time = "8: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 is Name, when Team is Detroit Pistons, and when WSU Year(s) is 1979-82? ### Context: CREATE TABLE table_name_3 (name VARCHAR, team VARCHAR, wsu_year_s_ VARCHAR) ### Response: ### Response: SELECT name FROM table_name_3 WHERE team = "detroit pistons" AND wsu_year_s_ = "1979-82"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Team, when Date is "March 27"? ### Context: CREATE TABLE table_name_75 (team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT team FROM table_name_75 WHERE date = "march 27"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Size has an IHSAA Class of aa, and a Location of milan? ### Context: CREATE TABLE table_name_76 (size INTEGER, ihsaa_class VARCHAR, location VARCHAR) ### Response: ### Response: SELECT SUM(size) FROM table_name_76 WHERE ihsaa_class = "aa" AND location = "milan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the San Diego Padres as the opponent and a record of 11-23? ### Context: CREATE TABLE table_name_29 (score VARCHAR, opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_29 WHERE opponent = "san diego padres" AND record = "11-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: Who did the housemate that nominated Kashmera Rakhi in week 3 and Amit Bobby in week 1 nominate in week 6? ### Context: CREATE TABLE table_name_60 (week_6 VARCHAR, week_3 VARCHAR, week_1 VARCHAR) ### Response: ### Response: SELECT week_6 FROM table_name_60 WHERE week_3 = "kashmera rakhi" AND week_1 = "amit bobby"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage yield figures are there when 6.7% are defective? ### Context: CREATE TABLE table_222448_1 (percentage_yield VARCHAR, percent_defective VARCHAR) ### Response: ### Response: SELECT COUNT(percentage_yield) FROM table_222448_1 WHERE percent_defective = "6.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 least number for nello pagani ### Context: CREATE TABLE table_28578594_1 (no INTEGER, driver VARCHAR) ### Response: ### Response: SELECT MIN(no) FROM table_28578594_1 WHERE driver = "Nello Pagani"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opened is the highest one that has a Themed Area of aerial park, and a Manufacturer of zamperla? ### Context: CREATE TABLE table_name_76 (opened INTEGER, themed_area VARCHAR, manufacturer VARCHAR) ### Response: ### Response: SELECT MAX(opened) FROM table_name_76 WHERE themed_area = "aerial park" AND manufacturer = "zamperla"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 votes of the candidate ranked 5th and riding in victoria? ### Context: CREATE TABLE table_name_94 (votes INTEGER, rank VARCHAR, riding VARCHAR) ### Response: ### Response: SELECT MIN(votes) FROM table_name_94 WHERE rank = "5th" AND riding = "victoria"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Almali village with the Malax village qaxingiloy? ### Context: CREATE TABLE table_name_81 (almalı__qax_ VARCHAR, malax VARCHAR) ### Response: ### Response: SELECT almalı__qax_ FROM table_name_81 WHERE malax = "qaxingiloy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date of the game with a result of bye before week 12? ### Context: CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_3 WHERE week < 12 AND result = "bye"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 career SR for the tournament of wimbledon? ### Context: CREATE TABLE table_name_21 (career_sr VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT career_sr FROM table_name_21 WHERE tournament = "wimbledon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 other deaths were in the attack with 242 Israelis and/or foreigners wounded? ### Context: CREATE TABLE table_name_81 (other_deaths VARCHAR, israeli_and_or_foreigner_wounded VARCHAR) ### Response: ### Response: SELECT other_deaths FROM table_name_81 WHERE israeli_and_or_foreigner_wounded = "242"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'? ### Context: CREATE TABLE management (department_id VARCHAR, temporary_acting VARCHAR); CREATE TABLE department (name VARCHAR, num_employees VARCHAR, department_id VARCHAR) ### Response: ### Response: SELECT T1.name, T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many episodes had 11.86 million US viewers? ### Context: CREATE TABLE table_28215780_4 (no_in_series VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT COUNT(no_in_series) FROM table_28215780_4 WHERE us_viewers__millions_ = "11.86"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 numbers are there for August when March is 139? ### Context: CREATE TABLE table_25235489_2 (august_21_22 VARCHAR, march_27_29 VARCHAR) ### Response: ### Response: SELECT COUNT(august_21_22) FROM table_25235489_2 WHERE march_27_29 = "139"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average points for someone who has played more than 10? ### Context: CREATE TABLE table_name_67 (points INTEGER, played INTEGER) ### Response: ### Response: SELECT AVG(points) FROM table_name_67 WHERE played > 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 ranking is james franklin? ### Context: CREATE TABLE table_name_69 (rank VARCHAR, player VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_69 WHERE player = "james franklin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was The Walking Dead? ### Context: CREATE TABLE table_name_95 (year VARCHAR, game VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_95 WHERE game = "the walking dead"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many different numbers of cantons does the province with the Armenian name վասպուրական have? ### Context: CREATE TABLE table_23887174_1 (number_of_cantons__gavars_ VARCHAR, armenian_name VARCHAR) ### Response: ### Response: SELECT COUNT(number_of_cantons__gavars_) FROM table_23887174_1 WHERE armenian_name = "Վասպուրական"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 muzzel device with barrel twist of 1:10 ### Context: CREATE TABLE table_name_18 (muzzle_device VARCHAR, barrel_twist VARCHAR) ### Response: ### Response: SELECT muzzle_device FROM table_name_18 WHERE barrel_twist = "1: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 IS THE SCORE WITH A DATE OF NOVEMBER 18? ### Context: CREATE TABLE table_name_80 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_80 WHERE date = "november 18"</s>