inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which team has run 3 of 1:20.77? ### Context: CREATE TABLE table_name_18 (team VARCHAR, run_3 VARCHAR) ### Response: ### Response: SELECT team FROM table_name_18 WHERE run_3 = "1:20.77"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I? ### Context: CREATE TABLE table_name_30 (not_usable INTEGER, block VARCHAR, launch_failures VARCHAR, retired VARCHAR) ### Response: ### Response: SELECT MAX(not_usable) FROM table_name_30 WHERE launch_failures > 0 AND retired < 30 AND block = "block i"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score for Collingwood as the home team? ### Context: CREATE TABLE table_name_85 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_85 WHERE home_team = "collingwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 population when the % Muslim shows 30%? ### Context: CREATE TABLE table_name_81 (population VARCHAR, _percentage_muslim VARCHAR) ### Response: ### Response: SELECT population FROM table_name_81 WHERE _percentage_muslim = "30%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the birth date of player with right arm fast style? ### Context: CREATE TABLE table_name_74 (date_of_birth VARCHAR, bowling_style VARCHAR) ### Response: ### Response: SELECT date_of_birth FROM table_name_74 WHERE bowling_style = "right arm fast"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Area KM 2 of the place that has a Census ranking of 1,016 of 5,008? ### Context: CREATE TABLE table_171236_2 (area_km_2 VARCHAR, census_ranking VARCHAR) ### Response: ### Response: SELECT area_km_2 FROM table_171236_2 WHERE census_ranking = "1,016 of 5,008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 comissioned for 4 may 1943? ### Context: CREATE TABLE table_1220125_4 (commissioned VARCHAR, laid_down VARCHAR) ### Response: ### Response: SELECT commissioned FROM table_1220125_4 WHERE laid_down = "4 May 1943"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 status of the player with 3041 points? ### Context: CREATE TABLE table_27615896_20 (status VARCHAR, points VARCHAR) ### Response: ### Response: SELECT status FROM table_27615896_20 WHERE points = 3041</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pole positions were there for the 2011 season? ### Context: CREATE TABLE table_24330803_1 (poles INTEGER, season VARCHAR) ### Response: ### Response: SELECT MAX(poles) FROM table_24330803_1 WHERE season = 2011</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year did Canada get a silver in the olympics in the Men's Coxless Pair event? ### Context: CREATE TABLE table_name_65 (year INTEGER, event VARCHAR, championship VARCHAR, nation VARCHAR, result VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_65 WHERE nation = "canada" AND result = "silver" AND championship = "olympics" AND event = "men's coxless pair"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What countries have a margin of victory at 6 strokes? ### Context: CREATE TABLE table_1529260_2 (country VARCHAR, margin_of_victory VARCHAR) ### Response: ### Response: SELECT country FROM table_1529260_2 WHERE margin_of_victory = "6 strokes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 directs before 1948 with linda darnell, titled blood and sand? ### Context: CREATE TABLE table_name_55 (director VARCHAR, title VARCHAR, year VARCHAR, leading_lady VARCHAR) ### Response: ### Response: SELECT director FROM table_name_55 WHERE year < 1948 AND leading_lady = "linda darnell" AND title = "blood and sand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position did a player took while weighing 170? ### Context: CREATE TABLE table_25177625_1 (position VARCHAR, weight VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_25177625_1 WHERE weight = 170</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all the candidates listed in the race where the incumbent is Prince Hulon Preston, Jr. ### Context: CREATE TABLE table_1342013_10 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342013_10 WHERE incumbent = "Prince Hulon Preston, Jr."</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category? ### Context: CREATE TABLE table_name_80 (year VARCHAR, actor VARCHAR, film VARCHAR, category VARCHAR) ### Response: ### Response: SELECT year FROM table_name_80 WHERE film = "bullets over broadway" AND category = "best supporting actress" AND actor = "jennifer tilly"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 least amount of points scored by the golden bears when the opponent scored 15 points? ### Context: CREATE TABLE table_21035326_1 (golden_bears_points INTEGER, opponents VARCHAR) ### Response: ### Response: SELECT MIN(golden_bears_points) FROM table_21035326_1 WHERE opponents = 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average Laps, when Grid is 15? ### Context: CREATE TABLE table_name_74 (laps INTEGER, grid VARCHAR) ### Response: ### Response: SELECT AVG(laps) FROM table_name_74 WHERE grid = 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the place of birth when elevated is May 16, 1288, and cardinalatial title is Deacon of S. Eustachio? ### Context: CREATE TABLE table_name_78 (place_of_birth VARCHAR, elevated VARCHAR, cardinalatial_title VARCHAR) ### Response: ### Response: SELECT place_of_birth FROM table_name_78 WHERE elevated = "may 16, 1288" AND cardinalatial_title = "deacon of s. eustachio"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 kickoff time for week 3? ### Context: CREATE TABLE table_name_25 (kickoff_ VARCHAR, a_ VARCHAR, week VARCHAR) ### Response: ### Response: SELECT kickoff_[a_] FROM table_name_25 WHERE week = "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 Lost with a Losing Bonus that is 4? ### Context: CREATE TABLE table_name_30 (lost VARCHAR, losing_bonus VARCHAR) ### Response: ### Response: SELECT lost FROM table_name_30 WHERE losing_bonus = "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: How many total laps did the Chevrolet that won $97,508 make? ### Context: CREATE TABLE table_name_53 (laps VARCHAR, make VARCHAR, winnings VARCHAR) ### Response: ### Response: SELECT COUNT(laps) FROM table_name_53 WHERE make = "chevrolet" AND winnings = "$97,508"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 founding university of the organization Tau Epsilon Phi 1? ### Context: CREATE TABLE table_2538117_5 (founding_university VARCHAR, organization VARCHAR) ### Response: ### Response: SELECT founding_university FROM table_2538117_5 WHERE organization = "Tau Epsilon Phi 1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date was the Tigullio Circuit? ### Context: CREATE TABLE table_name_24 (date VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT date FROM table_name_24 WHERE circuit = "tigullio"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 network for saitama prefecture ### Context: CREATE TABLE table_21076286_2 (broadcast_network VARCHAR, broadcast_scope VARCHAR) ### Response: ### Response: SELECT broadcast_network FROM table_21076286_2 WHERE broadcast_scope = "Saitama Prefecture"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 minimum number of poles? ### Context: CREATE TABLE table_3005915_3 (poles INTEGER) ### Response: ### Response: SELECT MIN(poles) FROM table_3005915_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 locomotive class that has a wheel arrangement of 2-8-2 and a quantity made of 25? ### Context: CREATE TABLE table_name_48 (class VARCHAR, wheel_arrangement VARCHAR, quantity_made VARCHAR) ### Response: ### Response: SELECT class FROM table_name_48 WHERE wheel_arrangement = "2-8-2" AND quantity_made = "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 goal Difference at Position 5? ### Context: CREATE TABLE table_name_53 (difference VARCHAR, position VARCHAR) ### Response: ### Response: SELECT difference FROM table_name_53 WHERE position = 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 week was the game that had an attendance of 24,242? ### Context: CREATE TABLE table_name_34 (week VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT week FROM table_name_34 WHERE attendance = "24,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: What percentage of users were using other Mozilla browsers during the period in which 2.29% were using Opera? ### Context: CREATE TABLE table_name_97 (other_mozilla VARCHAR, opera VARCHAR) ### Response: ### Response: SELECT other_mozilla FROM table_name_97 WHERE opera = "2.29%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many total rounds have the results of win, and n/a as the method? ### Context: CREATE TABLE table_name_12 (round VARCHAR, res VARCHAR, method VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_12 WHERE res = "win" AND method = "n/a"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Pashto word for the Somali word talaado? ### Context: CREATE TABLE table_name_24 (pashto VARCHAR, somali VARCHAR) ### Response: ### Response: SELECT pashto FROM table_name_24 WHERE somali = "talaado"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 original broadway performer for the character Colin Craven? ### Context: CREATE TABLE table_1901751_1 (original_broadway_performer VARCHAR, character VARCHAR) ### Response: ### Response: SELECT original_broadway_performer FROM table_1901751_1 WHERE character = "Colin Craven"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 location when the record is 5-1-1? ### Context: CREATE TABLE table_name_90 (location VARCHAR, record VARCHAR) ### Response: ### Response: SELECT location FROM table_name_90 WHERE record = "5-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: What is the capacity for the institution of university of alberta? ### Context: CREATE TABLE table_27599216_6 (capacity VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT capacity FROM table_27599216_6 WHERE institution = "University of Alberta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 all totals with a rank greater than 6, gold greater than 0, and silver greater than 2? ### Context: CREATE TABLE table_name_11 (total INTEGER, silver VARCHAR, rank VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_11 WHERE rank > 6 AND gold > 0 AND silver = 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 one of the duration has a translation of 1000 lies? ### Context: CREATE TABLE table_name_73 (duration VARCHAR, translation VARCHAR) ### Response: ### Response: SELECT duration FROM table_name_73 WHERE translation = "1000 lies"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Whose origin of Programming offers a general genre, a network of ntv bangla and a service of cogeco cable? ### Context: CREATE TABLE table_name_12 (origin_of_programming VARCHAR, service VARCHAR, genre VARCHAR, network VARCHAR) ### Response: ### Response: SELECT origin_of_programming FROM table_name_12 WHERE genre = "general" AND network = "ntv bangla" AND service = "cogeco cable"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 language that has number of 14 ### Context: CREATE TABLE table_name_69 (language VARCHAR, number VARCHAR) ### Response: ### Response: SELECT language FROM table_name_69 WHERE number = "14"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the amount of 000s when Germany had 16.6? ### Context: CREATE TABLE table_name_35 (total__000s_ VARCHAR, germany VARCHAR) ### Response: ### Response: SELECT total__000s_ FROM table_name_35 WHERE germany = 16.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 is the Original Australian performer when the Original West End Performer is Linzi Hateley? ### Context: CREATE TABLE table_1901751_1 (original_australian_performer VARCHAR, original_west_end_performer VARCHAR) ### Response: ### Response: SELECT original_australian_performer FROM table_1901751_1 WHERE original_west_end_performer = "Linzi Hateley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What percentage did Obama get when McCain got 52.8%? ### Context: CREATE TABLE table_20799905_1 (obama_percentage VARCHAR, mccain_percentage VARCHAR) ### Response: ### Response: SELECT obama_percentage FROM table_20799905_1 WHERE mccain_percentage = "52.8%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player has less than 201 games, is ranked 2, and played between 2007-2012? ### Context: CREATE TABLE table_name_74 (player VARCHAR, years VARCHAR, games VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT player FROM table_name_74 WHERE games < 201 AND rank = 2 AND years = "2007-2012"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the attendance for the game on May 25? ### Context: CREATE TABLE table_name_33 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_33 WHERE date = "may 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 Time has a Lane smaller than 4, and a Rank larger than 6? ### Context: CREATE TABLE table_name_94 (time INTEGER, lane VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(time) FROM table_name_94 WHERE lane < 4 AND rank > 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 Away with a Ground that is humber college lakeshore? ### Context: CREATE TABLE table_name_88 (away VARCHAR, ground VARCHAR) ### Response: ### Response: SELECT away FROM table_name_88 WHERE ground = "humber college lakeshore"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score for Venue of tanteen recreation ground, st. george's ### Context: CREATE TABLE table_name_43 (score VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT score FROM table_name_43 WHERE venue = "tanteen recreation ground, st. george's"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rank for Spain when more than 10 medals were won, 3 of which were bronze? ### Context: CREATE TABLE table_name_3 (rank INTEGER, bronze VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_3 WHERE bronze = 3 AND total > 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: How many Wins in the Year with more than 16 Races? ### Context: CREATE TABLE table_name_7 (wins VARCHAR, races INTEGER) ### Response: ### Response: SELECT wins FROM table_name_7 WHERE races > 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: Who was the actor/actress with a first appearance is 3 june 2007? ### Context: CREATE TABLE table_25831483_1 (actor_actress VARCHAR, first_appearance VARCHAR) ### Response: ### Response: SELECT actor_actress FROM table_25831483_1 WHERE first_appearance = "3 June 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the intro date for the interface that equals pci? ### Context: CREATE TABLE table_29778616_1 (intro_date VARCHAR, interface VARCHAR) ### Response: ### Response: SELECT intro_date FROM table_29778616_1 WHERE interface = "PCI"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 margin of victory for PGA Championship? ### Context: CREATE TABLE table_name_25 (margin_of_victory VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_25 WHERE tournament = "pga championship"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the Brewers score was 5-7, what was the lowest attendance? ### Context: CREATE TABLE table_name_13 (attendance INTEGER, score VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_13 WHERE score = "5-7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is TV Time, when Date is December 22, 1996? ### Context: CREATE TABLE table_name_91 (tv_time VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tv_time FROM table_name_91 WHERE date = "december 22, 1996"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what team has a drive name emmanuel de graffenried and a position larger than 1 as well as the date of 9/1953? ### Context: CREATE TABLE table_name_46 (team VARCHAR, driver VARCHAR, position VARCHAR, date VARCHAR) ### Response: ### Response: SELECT team FROM table_name_46 WHERE position > 1 AND date = "9/1953" AND driver = "emmanuel de graffenried"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 opponent for july 21? ### Context: CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_35 WHERE date = "july 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: How many points did the 2005 1st place team receive? ### Context: CREATE TABLE table_name_90 (points VARCHAR, year VARCHAR) ### Response: ### Response: SELECT points FROM table_name_90 WHERE year = 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: Which Season was the Division Two Fownhope Reserves champions? ### Context: CREATE TABLE table_name_92 (season VARCHAR, division_two VARCHAR) ### Response: ### Response: SELECT season FROM table_name_92 WHERE division_two = "fownhope reserves"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average for number 2? ### Context: CREATE TABLE table_name_12 (average_score INTEGER, number VARCHAR) ### Response: ### Response: SELECT MIN(average_score) FROM table_name_12 WHERE number = 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 Floors has a Location of tower hill? ### Context: CREATE TABLE table_name_89 (floors VARCHAR, location VARCHAR) ### Response: ### Response: SELECT floors FROM table_name_89 WHERE location = "tower hill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the WS points is 947, what is the 08-09 gp/jgp 2nd ? ### Context: CREATE TABLE table_24990183_7 (ws_points VARCHAR) ### Response: ### Response: SELECT 08 AS _09_gp_jgp_2nd FROM table_24990183_7 WHERE ws_points = 947</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the date for broadcast fsn ### Context: CREATE TABLE table_26842217_18 (date VARCHAR, broadcast VARCHAR) ### Response: ### Response: SELECT date FROM table_26842217_18 WHERE broadcast = "FSN"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the game with the Etobicoke Kangaroos as the home team? ### Context: CREATE TABLE table_name_55 (score VARCHAR, home VARCHAR) ### Response: ### Response: SELECT score FROM table_name_55 WHERE home = "etobicoke kangaroos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were directed by Sarah Pia Anderson? ### Context: CREATE TABLE table_23287683_1 (title VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT COUNT(title) FROM table_23287683_1 WHERE directed_by = "Sarah Pia Anderson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34? ### Context: CREATE TABLE table_name_14 (other INTEGER, name VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(other) FROM table_name_14 WHERE name = "simon gillett category:articles with hcards" AND total < 34</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for Melbourne when Adelaide is no, and Auckland is yes? ### Context: CREATE TABLE table_name_56 (melbourne VARCHAR, adelaide VARCHAR, auckland VARCHAR) ### Response: ### Response: SELECT melbourne FROM table_name_56 WHERE adelaide = "no" AND auckland = "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: What number of Yards has 32 as an In 20? ### Context: CREATE TABLE table_name_90 (yards VARCHAR, in_20 VARCHAR) ### Response: ### Response: SELECT COUNT(yards) FROM table_name_90 WHERE in_20 = 32</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the id of the most recent order? ### Context: CREATE TABLE orders (order_id VARCHAR, date_order_placed VARCHAR) ### Response: ### Response: SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score on 24 February 2013? ### Context: CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_32 WHERE date = "24 february 2013"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Venue has a Notes of 2:28:31? ### Context: CREATE TABLE table_name_83 (venue VARCHAR, notes VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_83 WHERE notes = "2:28:31"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on June 15? ### Context: CREATE TABLE table_name_71 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_71 WHERE date = "june 15"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which place has horton smith as the player? ### Context: CREATE TABLE table_name_10 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_10 WHERE player = "horton smith"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 win with a top 5 greater than 2 and a top 10 less than 5? ### Context: CREATE TABLE table_name_99 (wins INTEGER, top_5 VARCHAR, top_10 VARCHAR) ### Response: ### Response: SELECT AVG(wins) FROM table_name_99 WHERE top_5 > 2 AND top_10 < 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Points have a Record of 21–36–9, and an Attendance larger than 14,768? ### Context: CREATE TABLE table_name_9 (points INTEGER, record VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT SUM(points) FROM table_name_9 WHERE record = "21–36–9" AND attendance > 14 OFFSET 768</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 what date was the catalog scyl-934,623 for Australia? ### Context: CREATE TABLE table_name_29 (date VARCHAR, catalog VARCHAR, region VARCHAR) ### Response: ### Response: SELECT date FROM table_name_29 WHERE catalog = "scyl-934,623" AND region = "australia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 percentage in 2011 of the province that had 2.4% population in 2001? ### Context: CREATE TABLE table_1717824_1 (_percentage_2011 VARCHAR, _percentage_2001 VARCHAR) ### Response: ### Response: SELECT _percentage_2011 FROM table_1717824_1 WHERE _percentage_2001 = "2.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: with more than 32 laps and sylvain guintoli as rider, what's the lowest grid ? ### Context: CREATE TABLE table_name_15 (grid INTEGER, rider VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT MIN(grid) FROM table_name_15 WHERE rider = "sylvain guintoli" AND laps > 32</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the ranking for the episode number before 24 that had a rating of 25.7? ### Context: CREATE TABLE table_name_21 (ranking VARCHAR, ep__number VARCHAR, rating VARCHAR) ### Response: ### Response: SELECT ranking FROM table_name_21 WHERE ep__number < 24 AND rating = "25.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 highest Profits (billion $) which has a Company of walmart? ### Context: CREATE TABLE table_name_14 (profits__billion_ INTEGER, company VARCHAR) ### Response: ### Response: SELECT MAX(profits__billion_) AS $_ FROM table_name_14 WHERE company = "walmart"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponent that has the Record of 7-7-1? ### Context: CREATE TABLE table_name_8 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_8 WHERE record = "7-7-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: How many goals was by Rix from Eng who started before 2005 in the youth system? ### Context: CREATE TABLE table_name_38 (goals VARCHAR, name VARCHAR, since VARCHAR, nat VARCHAR, transfer_fee VARCHAR) ### Response: ### Response: SELECT COUNT(goals) FROM table_name_38 WHERE nat = "eng" AND transfer_fee = "youth system" AND since < 2005 AND name = "rix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 term ends for bethlehem ### Context: CREATE TABLE table_1979619_3 (term_ends VARCHAR, residence VARCHAR) ### Response: ### Response: SELECT COUNT(term_ends) FROM table_1979619_3 WHERE residence = "Bethlehem"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Bronze, with the Location of Bangkok, and the Year of 1978? ### Context: CREATE TABLE table_name_6 (bronze VARCHAR, location VARCHAR, year VARCHAR) ### Response: ### Response: SELECT bronze FROM table_name_6 WHERE location = "bangkok" AND year = 1978</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What earliest year with points larger than 68 and a rank of 7th? ### Context: CREATE TABLE table_name_71 (year INTEGER, points VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_71 WHERE points > 68 AND rank = "7th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Years in Assembly has a Name of toni atkins? ### Context: CREATE TABLE table_name_27 (years_in_assembly VARCHAR, name VARCHAR) ### Response: ### Response: SELECT years_in_assembly FROM table_name_27 WHERE name = "toni atkins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 external weapon with the falcon shield animal? ### Context: CREATE TABLE table_name_17 (external_weapon VARCHAR, shield_animal VARCHAR) ### Response: ### Response: SELECT external_weapon FROM table_name_17 WHERE shield_animal = "falcon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: before 1995 waht is the aveage pts for a mclaren mp4/10b chassis ### Context: CREATE TABLE table_name_58 (pts INTEGER, chassis VARCHAR, year VARCHAR) ### Response: ### Response: SELECT AVG(pts) FROM table_name_58 WHERE chassis = "mclaren mp4/10b" AND year < 1995</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much Draw has a Televote larger than 18, and an Artist of elizabeth anastasiou, and a Jury larger than 4? ### Context: CREATE TABLE table_name_44 (draw VARCHAR, jury VARCHAR, televote VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT COUNT(draw) FROM table_name_44 WHERE televote > 18 AND artist = "elizabeth anastasiou" AND jury > 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: If the name is Steamboat, what is the top elevation? ### Context: CREATE TABLE table_25762852_1 (top_elevation__feet_ VARCHAR, name VARCHAR) ### Response: ### Response: SELECT top_elevation__feet_ FROM table_25762852_1 WHERE name = "Steamboat"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 seasons did Ken Bouchard finish in 38th place? ### Context: CREATE TABLE table_2333416_2 (year VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_2333416_2 WHERE position = "38th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 junior high school has male and female genders? ### Context: CREATE TABLE table_name_97 (junior_high_school__12_15_yrs_ VARCHAR, gender VARCHAR) ### Response: ### Response: SELECT junior_high_school__12_15_yrs_ FROM table_name_97 WHERE gender = "male and female"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 would you find a public university which was founded in 1915? ### Context: CREATE TABLE table_2076463_2 (location_s_ VARCHAR, control VARCHAR, founded VARCHAR) ### Response: ### Response: SELECT location_s_ FROM table_2076463_2 WHERE control = "Public university" AND founded = 1915</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 illustrator in 1987? ### Context: CREATE TABLE table_name_79 (illustrator VARCHAR, year VARCHAR) ### Response: ### Response: SELECT illustrator FROM table_name_79 WHERE year = 1987</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rank with more than 392 total points and an 24.8 average? ### Context: CREATE TABLE table_name_12 (rank_by_average VARCHAR, total_points VARCHAR, average VARCHAR) ### Response: ### Response: SELECT COUNT(rank_by_average) FROM table_name_12 WHERE total_points > 392 AND average = 24.8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Score that has a Home of montreal canadiens on april 11? ### Context: CREATE TABLE table_name_6 (score VARCHAR, home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_6 WHERE home = "montreal canadiens" AND date = "april 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: How many podiums when he was in the british f3 national class series? ### Context: CREATE TABLE table_24491017_1 (podiums VARCHAR, series VARCHAR) ### Response: ### Response: SELECT COUNT(podiums) FROM table_24491017_1 WHERE series = "British F3 National Class"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance with date of june 11 ### Context: CREATE TABLE table_name_92 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_92 WHERE date = "june 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 school for eagles ### Context: CREATE TABLE table_name_87 (school VARCHAR, team VARCHAR) ### Response: ### Response: SELECT school FROM table_name_87 WHERE team = "eagles"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the match report for the game that was against Houston? ### Context: CREATE TABLE table_name_12 (match_report VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT match_report FROM table_name_12 WHERE opponent = "houston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much money did the company Neurotica request? ### Context: CREATE TABLE table_name_39 (money_requested__£_ VARCHAR, company_or_product_name VARCHAR) ### Response: ### Response: SELECT money_requested__£_ FROM table_name_39 WHERE company_or_product_name = "neurotica"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance on the bye week? ### Context: CREATE TABLE table_name_3 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_3 WHERE date = "bye"</s>