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: Name the Goals Conceded which has a Draw of 0 and a Played larger than 0? ### Context: CREATE TABLE table_name_48 (goals_conceded INTEGER, draw VARCHAR, played VARCHAR) ### Response: ### Response: SELECT AVG(goals_conceded) FROM table_name_48 WHERE draw = 0 AND played > 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: List the names of states that have more than 2 parks. ### Context: CREATE TABLE park (state VARCHAR) ### Response: ### Response: SELECT state FROM park GROUP BY state HAVING COUNT(*) > 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What category was in 1964? ### Context: CREATE TABLE table_name_14 (category VARCHAR, year VARCHAR) ### Response: ### Response: SELECT category FROM table_name_14 WHERE year = 1964</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 College/Junior/Club Team of hull olympiques (qmjhl)? ### Context: CREATE TABLE table_name_81 (position VARCHAR, college_junior_club_team VARCHAR) ### Response: ### Response: SELECT position FROM table_name_81 WHERE college_junior_club_team = "hull olympiques (qmjhl)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Score has a Game larger than 47, and a January smaller than 25? ### Context: CREATE TABLE table_name_19 (score VARCHAR, game VARCHAR, january VARCHAR) ### Response: ### Response: SELECT score FROM table_name_19 WHERE game > 47 AND january < 25</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Flagship of the Show Hosted by Rover (Shane French)? ### Context: CREATE TABLE table_name_33 (flagship VARCHAR, host_s_ VARCHAR) ### Response: ### Response: SELECT flagship FROM table_name_33 WHERE host_s_ = "rover (shane french)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 had a score of 6–7(5), 2–6 and opponent of Brenda Schultz-Mccarthy? ### Context: CREATE TABLE table_name_96 (year VARCHAR, opponent_in_the_final VARCHAR, score VARCHAR) ### Response: ### Response: SELECT year FROM table_name_96 WHERE opponent_in_the_final = "brenda schultz-mccarthy" AND score = "6–7(5), 2–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: Who's in the high rebounds in the verizon center 9,263 location attendance? ### Context: CREATE TABLE table_27721131_2 (high_rebounds VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_27721131_2 WHERE location_attendance = "Verizon Center 9,263"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Venue when the score was 1 – 1, and the result was 2 – 2? ### Context: CREATE TABLE table_name_87 (venue VARCHAR, score VARCHAR, result VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_87 WHERE score = "1 – 1" AND result = "2 – 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: Which channel had the game against the Minnesota Vikings? ### Context: CREATE TABLE table_11465521_2 (tv VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT tv FROM table_11465521_2 WHERE opponent = "Minnesota Vikings"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total of the player who won before 1991 and has a to par less than 14? ### Context: CREATE TABLE table_name_74 (total VARCHAR, year_won VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_74 WHERE year_won < 1991 AND to_par < 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 production code for episode 96 in the series? ### Context: CREATE TABLE table_2818164_5 (production_code INTEGER, no_in_series VARCHAR) ### Response: ### Response: SELECT MIN(production_code) FROM table_2818164_5 WHERE no_in_series = "96"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 format for the one which has a call sign of cite-fm-1? ### Context: CREATE TABLE table_name_94 (format VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT format FROM table_name_94 WHERE call_sign = "cite-fm-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 result of Chris Gratton and Philadelphia Flyers as the Offer Team? ### Context: CREATE TABLE table_name_73 (result VARCHAR, offer_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT result FROM table_name_73 WHERE offer_team = "philadelphia flyers" AND player = "chris gratton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2008-12 has a 2007 of A, and a Tournament of us open? ### Context: CREATE TABLE table_name_80 (tournament VARCHAR) ### Response: ### Response: SELECT 2008 AS _12 FROM table_name_80 WHERE 2007 = "a" AND tournament = "us open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games were played on october 16? ### Context: CREATE TABLE table_27756014_1 (high_points VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(high_points) FROM table_27756014_1 WHERE date = "October 16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the free score of the skater with a total of 156.67? ### Context: CREATE TABLE table_name_80 (free VARCHAR, total VARCHAR) ### Response: ### Response: SELECT free FROM table_name_80 WHERE total = 156.67</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population density 2010 for duque de caxias ### Context: CREATE TABLE table_14986292_1 (population_density_2010___kmΒ²_ VARCHAR, administrative_division VARCHAR) ### Response: ### Response: SELECT COUNT(population_density_2010___kmΒ²_) FROM table_14986292_1 WHERE administrative_division = "Duque de Caxias"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of the bronze medals of the nation with less than 0 silvers? ### Context: CREATE TABLE table_name_42 (bronze INTEGER, silver INTEGER) ### Response: ### Response: SELECT SUM(bronze) FROM table_name_42 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: Who scored a 68? ### Context: CREATE TABLE table_name_96 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_96 WHERE score = 68</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Place, when Weapon is "35mm/Small arms fire"? ### Context: CREATE TABLE table_name_6 (place VARCHAR, weapon VARCHAR) ### Response: ### Response: SELECT place FROM table_name_6 WHERE weapon = "35mm/small arms fire"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On which week was the beatles the original artist and the order # smaller than 10? ### Context: CREATE TABLE table_name_34 (week__number VARCHAR, original_artist VARCHAR, order__number VARCHAR) ### Response: ### Response: SELECT week__number FROM table_name_34 WHERE original_artist = "the beatles" AND order__number < 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the game when Geelong was the away team? ### Context: CREATE TABLE table_name_28 (venue VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_28 WHERE away_team = "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: How much Body Width/mm has a Body Length/mm of 18.4, and Pins of 40? ### Context: CREATE TABLE table_name_50 (body_width_mm VARCHAR, body_length_mm VARCHAR, pins VARCHAR) ### Response: ### Response: SELECT COUNT(body_width_mm) FROM table_name_50 WHERE body_length_mm = 18.4 AND pins = "40"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Round has a Position of qb, and an Overall larger than 6? ### Context: CREATE TABLE table_name_17 (round INTEGER, position VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT MAX(round) FROM table_name_17 WHERE position = "qb" AND overall > 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: Name the Height metres / ft of Years with tallest of 1098–1310? ### Context: CREATE TABLE table_name_68 (height_metres___ft VARCHAR, years_as_tallest VARCHAR) ### Response: ### Response: SELECT height_metres___ft FROM table_name_68 WHERE years_as_tallest = "1098–1310"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team was the opponent when the score was 25-0? ### Context: CREATE TABLE table_name_7 (opponent VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_7 WHERE score = "25-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 highest Money ($), when Top Par is E, and when Player is Ernie Els? ### Context: CREATE TABLE table_name_35 (money___ INTEGER, to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT MAX(money___) AS $__ FROM table_name_35 WHERE to_par = "e" AND player = "ernie els"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: At what arena was the September 21 game? ### Context: CREATE TABLE table_name_22 (arena VARCHAR, date VARCHAR) ### Response: ### Response: SELECT arena FROM table_name_22 WHERE date = "september 21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the airport with an IATA of KUF? ### Context: CREATE TABLE table_name_68 (airport VARCHAR, iata VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_68 WHERE iata = "kuf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 give me the age of the Virtues of Wisdom? ### Context: CREATE TABLE table_name_47 (approximate_age VARCHAR, virtues VARCHAR) ### Response: ### Response: SELECT approximate_age FROM table_name_47 WHERE virtues = "wisdom"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Total of the Player who won in 1998? ### Context: CREATE TABLE table_name_72 (total INTEGER, year_s__won VARCHAR) ### Response: ### Response: SELECT MAX(total) FROM table_name_72 WHERE year_s__won = "1998"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 RATING THAT HAD A SHARE SMALLER THAN 4, AND 2.47 MILLION VIEWERS? ### Context: CREATE TABLE table_name_70 (rating VARCHAR, share VARCHAR, viewers__millions_ VARCHAR) ### Response: ### Response: SELECT COUNT(rating) FROM table_name_70 WHERE share < 4 AND viewers__millions_ > 2.47</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the highest number of goals did the player with 27 asists score ### Context: CREATE TABLE table_19722233_5 (field_goals INTEGER, assists VARCHAR) ### Response: ### Response: SELECT MAX(field_goals) FROM table_19722233_5 WHERE assists = 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: Name the IATA with a City of budapest? ### Context: CREATE TABLE table_name_3 (iata VARCHAR, city VARCHAR) ### Response: ### Response: SELECT iata FROM table_name_3 WHERE city = "budapest"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Doctor Who episode has an Original airdate (UK) of 14 may 2005? ### Context: CREATE TABLE table_name_91 (doctor_who_episode VARCHAR, original_airdate__uk_ VARCHAR) ### Response: ### Response: SELECT doctor_who_episode FROM table_name_91 WHERE original_airdate__uk_ = "14 may 2005"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the production code for the episode with 3.38 million viewers? ### Context: CREATE TABLE table_20726262_3 (production_code VARCHAR, usviewers__million_ VARCHAR) ### Response: ### Response: SELECT production_code FROM table_20726262_3 WHERE usviewers__million_ = "3.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: Who had the fastest lap in the race where Patrick Tambay was on the pole? ### Context: CREATE TABLE table_1140073_2 (fastest_lap VARCHAR, pole_position VARCHAR) ### Response: ### Response: SELECT fastest_lap FROM table_1140073_2 WHERE pole_position = "Patrick Tambay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 venue during the Season of 2010–11? ### Context: CREATE TABLE table_name_88 (venue VARCHAR, season VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_88 WHERE season = "2010–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: Name the difference for when drawn is larger than 2.0 ### Context: CREATE TABLE table_15400878_1 (difference VARCHAR, drawn INTEGER) ### Response: ### Response: SELECT difference FROM table_15400878_1 WHERE drawn > 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 POS when the average is 1.8529? ### Context: CREATE TABLE table_25887826_17 (pos INTEGER, avg VARCHAR) ### Response: ### Response: SELECT MAX(pos) FROM table_25887826_17 WHERE avg = "1.8529"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 IUCN for the Cockscomb Basin reserve when the Est. is less than 1998? ### Context: CREATE TABLE table_name_98 (iucn VARCHAR, est VARCHAR, reserve VARCHAR) ### Response: ### Response: SELECT iucn FROM table_name_98 WHERE est < 1998 AND reserve = "cockscomb basin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 week when the date is september 16, 1979 and the attendance less than 54,212? ### Context: CREATE TABLE table_name_2 (week INTEGER, date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT MIN(week) FROM table_name_2 WHERE date = "september 16, 1979" AND attendance < 54 OFFSET 212</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the home team, Toronto, played against New Jersey? ### Context: CREATE TABLE table_name_62 (score VARCHAR, visitor VARCHAR, home VARCHAR) ### Response: ### Response: SELECT score FROM table_name_62 WHERE visitor = "new jersey" AND home = "toronto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 maximum 2006 census population of LGA name Opobo/Nkoro? ### Context: CREATE TABLE table_1966992_1 (census_2006_population INTEGER, lga_name VARCHAR) ### Response: ### Response: SELECT MAX(census_2006_population) FROM table_1966992_1 WHERE lga_name = "Opobo/Nkoro"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 hometown of the players for placer, california ### Context: CREATE TABLE table_11677691_12 (school VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT school FROM table_11677691_12 WHERE hometown = "Placer, California"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 has WSC class? ### Context: CREATE TABLE table_name_42 (year VARCHAR, class VARCHAR) ### Response: ### Response: SELECT year FROM table_name_42 WHERE class = "wsc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 draw number when 23 points are scored? ### Context: CREATE TABLE table_name_36 (draw INTEGER, points VARCHAR) ### Response: ### Response: SELECT MAX(draw) FROM table_name_36 WHERE points = 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 Date when the label was alfa records, and a Catalog of alca-487? ### Context: CREATE TABLE table_name_61 (date VARCHAR, label VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT date FROM table_name_61 WHERE label = "alfa records" AND catalog = "alca-487"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 captains are in each rank? ### Context: CREATE TABLE captain (rank VARCHAR) ### Response: ### Response: SELECT COUNT(*), rank FROM captain GROUP BY rank</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the team with 1st period at 12:37? ### Context: CREATE TABLE table_name_53 (team VARCHAR, period VARCHAR, time VARCHAR) ### Response: ### Response: SELECT team FROM table_name_53 WHERE period = "1st" AND time = "12:37"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 creator when the view happens to gddm, afp viewer? ### Context: CREATE TABLE table_1574968_1 (creator VARCHAR, viewer VARCHAR) ### Response: ### Response: SELECT creator FROM table_1574968_1 WHERE viewer = "GDDM, AFP viewer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 program data on Asia was written if the organization launched 14 programs iin the Americas? ### Context: CREATE TABLE table_27184837_1 (asia VARCHAR, americas VARCHAR) ### Response: ### Response: SELECT COUNT(asia) FROM table_27184837_1 WHERE americas = 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: Who did he fight in Rumble of the Kings 6? ### Context: CREATE TABLE table_name_87 (opponent VARCHAR, event VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_87 WHERE event = "rumble of the kings 6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the time/retired of the one with grid of 16? ### Context: CREATE TABLE table_name_60 (time_retired VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_60 WHERE grid = 16</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the autumn classic weight? ### Context: CREATE TABLE table_2985987_2 (weight__kg_ VARCHAR, race VARCHAR) ### Response: ### Response: SELECT weight__kg_ FROM table_2985987_2 WHERE race = "Autumn Classic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Date, when Game is "8"? ### Context: CREATE TABLE table_name_48 (date VARCHAR, game VARCHAR) ### Response: ### Response: SELECT date FROM table_name_48 WHERE game = 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: Who were all the candidates when the first elected year was 1961? ### Context: CREATE TABLE table_1341884_20 (candidates VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1341884_20 WHERE first_elected = 1961</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 state where the title is listed as count? ### Context: CREATE TABLE table_name_63 (state VARCHAR, title VARCHAR) ### Response: ### Response: SELECT state FROM table_name_63 WHERE title = "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: Who had the decision when buffalo was the visitor? ### Context: CREATE TABLE table_name_99 (decision VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT decision FROM table_name_99 WHERE visitor = "buffalo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 δ½  ζœ‹ε‹'s Label? ### Context: CREATE TABLE table_name_92 (label VARCHAR, chinese__simplified_ VARCHAR) ### Response: ### Response: SELECT label FROM table_name_92 WHERE chinese__simplified_ = "δ½  ζœ‹ε‹"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pinyin has a County of changhua? ### Context: CREATE TABLE table_name_44 (pinyin VARCHAR, county VARCHAR) ### Response: ### Response: SELECT pinyin FROM table_name_44 WHERE county = "changhua"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 format for the station owned by Dakota Broadcasting? ### Context: CREATE TABLE table_2709_4 (format VARCHAR, owner VARCHAR) ### Response: ### Response: SELECT format FROM table_2709_4 WHERE owner = "Dakota Broadcasting"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the name and tonnage ordered by in descending alphaetical order for the names. ### Context: CREATE TABLE ship (name VARCHAR, tonnage VARCHAR) ### Response: ### Response: SELECT name, tonnage FROM ship ORDER BY name 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: when did new zealand last compete? ### Context: CREATE TABLE table_14308895_2 (last_competed INTEGER, country_territory VARCHAR) ### Response: ### Response: SELECT MAX(last_competed) FROM table_14308895_2 WHERE country_territory = "New Zealand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the result when the venue is singapore on september 8, 1996? ### Context: CREATE TABLE table_name_37 (result VARCHAR, venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_37 WHERE venue = "singapore" AND date = "september 8, 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: Which stage has kourdali as the name? ### Context: CREATE TABLE table_21578303_2 (stage VARCHAR, name VARCHAR) ### Response: ### Response: SELECT stage FROM table_21578303_2 WHERE name = "Kourdali"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Essi Sainio? ### Context: CREATE TABLE table_name_54 (goals INTEGER, name VARCHAR) ### Response: ### Response: SELECT AVG(goals) FROM table_name_54 WHERE name = "essi sainio"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Royal Canadian Mint Staff create a silver dollar? ### Context: CREATE TABLE table_name_25 (year VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT year FROM table_name_25 WHERE artist = "royal canadian mint staff"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the team is the Boston Red Sox and the is date July 27, 1946, what are the average RBIs? ### Context: CREATE TABLE table_name_79 (rbis INTEGER, team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT AVG(rbis) FROM table_name_79 WHERE team = "boston red sox" AND date = "july 27, 1946"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Home team score has an Away team of st kilda? ### Context: CREATE TABLE table_name_2 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_2 WHERE away_team = "st kilda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the Opponent with a Result of l 17–24? ### Context: CREATE TABLE table_name_78 (opponent VARCHAR, result VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_78 WHERE result = "l 17–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 club when the runners-up is 1 and the last final won is 1999? ### Context: CREATE TABLE table_name_35 (club VARCHAR, runners_up VARCHAR, last_final_won VARCHAR) ### Response: ### Response: SELECT club FROM table_name_35 WHERE runners_up = 1 AND last_final_won = "1999"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 natural change (per 1000) when the live births 1 is 278 977? ### Context: CREATE TABLE table_name_73 (natural_change__per_1000_ VARCHAR, live_births_1 VARCHAR) ### Response: ### Response: SELECT natural_change__per_1000_ FROM table_name_73 WHERE live_births_1 = "278 977"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the game was played at the EMCG venue, who was the away team? ### Context: CREATE TABLE table_name_60 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_60 WHERE venue = "emcg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 population density if name is Beaubassin East? ### Context: CREATE TABLE table_26321719_1 (population_density VARCHAR, name VARCHAR) ### Response: ### Response: SELECT population_density FROM table_26321719_1 WHERE name = "Beaubassin East"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many 'United Airlines' flights go to Airport 'ASY'? ### Context: CREATE TABLE FLIGHTS (Airline VARCHAR, DestAirport VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.DestAirport = "ASY"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Result of the Competition at MBPJ Stadium with a Score of 4–0? ### Context: CREATE TABLE table_name_95 (result VARCHAR, score VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT result FROM table_name_95 WHERE score = "4–0" AND venue = "mbpj stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where is ropery lane located? ### Context: CREATE TABLE table_1176371_1 (location VARCHAR, name_of_ground VARCHAR) ### Response: ### Response: SELECT location FROM table_1176371_1 WHERE name_of_ground = "Ropery Lane"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high points for the staples center 18,997 ### Context: CREATE TABLE table_23285849_8 (high_points VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT high_points FROM table_23285849_8 WHERE location_attendance = "Staples Center 18,997"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 object type with an NGC number more than 6638 and right ascensions being 18h25m37.8s ### Context: CREATE TABLE table_name_72 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR) ### Response: ### Response: SELECT object_type FROM table_name_72 WHERE ngc_number > 6638 AND right_ascension___j2000__ = "18h25m37.8s"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Hanyu Pinyin with an area of 400? ### Context: CREATE TABLE table_name_94 (hanyu_pinyin VARCHAR, area__kmΒ²_ VARCHAR) ### Response: ### Response: SELECT hanyu_pinyin FROM table_name_94 WHERE area__kmΒ²_ = "400"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player has a score of 69-68-68=205? ### Context: CREATE TABLE table_name_43 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_43 WHERE score = 69 - 68 - 68 = 205</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What nation has a total less than 11, more than 1 silver and less than 1 bronze? ### Context: CREATE TABLE table_name_58 (nation VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_58 WHERE total < 11 AND silver < 1 AND bronze < 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 listed for the Week 1 Aug 26 that has a Week 7 Oct 6 of USC (3-2)? ### Context: CREATE TABLE table_name_36 (week_1_aug_26 VARCHAR, week_7_oct_6 VARCHAR) ### Response: ### Response: SELECT week_1_aug_26 FROM table_name_36 WHERE week_7_oct_6 = "usc (3-2)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the date that had a record of 90-60 ### Context: CREATE TABLE table_name_31 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_31 WHERE record = "90-60"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 years that have divisions greater than 4? ### Context: CREATE TABLE table_name_62 (year VARCHAR, division INTEGER) ### Response: ### Response: SELECT COUNT(year) FROM table_name_62 WHERE division > 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 Title has a Termination of Mission of November 4, 1861? ### Context: CREATE TABLE table_name_60 (title VARCHAR, termination_of_mission VARCHAR) ### Response: ### Response: SELECT title FROM table_name_60 WHERE termination_of_mission = "november 4, 1861"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 choice? ### Context: CREATE TABLE table_10361230_1 (choice INTEGER) ### Response: ### Response: SELECT MAX(choice) FROM table_10361230_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 Record, when High Rebounds is "Tyson Chandler (6)"? ### Context: CREATE TABLE table_name_68 (record VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT record FROM table_name_68 WHERE high_rebounds = "tyson chandler (6)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score where Olga Lugina played in the Tournament of poitiers , france itf $25,000? ### Context: CREATE TABLE table_name_84 (score_in_the_final VARCHAR, partner VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT score_in_the_final FROM table_name_84 WHERE partner = "olga lugina" AND tournament = "poitiers , france itf $25,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 is Event, when Round is "1", when Location is "New Town, North Dakota , United States" and when Time is "4:12"? ### Context: CREATE TABLE table_name_9 (event VARCHAR, time VARCHAR, round VARCHAR, location VARCHAR) ### Response: ### Response: SELECT event FROM table_name_9 WHERE round = 1 AND location = "new town, north dakota , united states" AND time = "4:12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the end (UTC) if the duration is 6 hours, 55 minutes? ### Context: CREATE TABLE table_22385461_8 (end__utc_ VARCHAR, duration VARCHAR) ### Response: ### Response: SELECT end__utc_ FROM table_22385461_8 WHERE duration = "6 hours, 55 minutes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 category for prix uip berlin ### Context: CREATE TABLE table_name_66 (category VARCHAR, nominating_festival VARCHAR) ### Response: ### Response: SELECT category FROM table_name_66 WHERE nominating_festival = "prix uip berlin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the candidates in district Pennsylvania 3? ### Context: CREATE TABLE table_1341423_38 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1341423_38 WHERE district = "Pennsylvania 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 latitude when water (sqmi) is 0.058 and the ansi code is less than 1759683? ### Context: CREATE TABLE table_name_57 (latitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR) ### Response: ### Response: SELECT AVG(latitude) FROM table_name_57 WHERE water__sqmi_ = 0.058 AND ansi_code < 1759683</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the city of license is belleville? ### Context: CREATE TABLE table_name_42 (frequency VARCHAR, city_of_license VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_42 WHERE city_of_license = "belleville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a height less than 122 meters, what is the greatest height in feet? ### Context: CREATE TABLE table_name_58 (height__ft_ INTEGER, height__m_ INTEGER) ### Response: ### Response: SELECT MAX(height__ft_) FROM table_name_58 WHERE height__m_ < 122</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many total itv viewers were there for the episode with official itv hd ratings of 1.12 million? ### Context: CREATE TABLE table_27319183_7 (total_itv_viewers__millions_ VARCHAR, official_itv_hd_rating__millions_ VARCHAR) ### Response: ### Response: SELECT total_itv_viewers__millions_ FROM table_27319183_7 WHERE official_itv_hd_rating__millions_ = "1.12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Wins is the highest one that has a Pos of 2nd, and Poles larger than 2? ### Context: CREATE TABLE table_name_3 (wins INTEGER, pos VARCHAR, poles VARCHAR) ### Response: ### Response: SELECT MAX(wins) FROM table_name_3 WHERE pos = "2nd" AND poles > 2</s>