inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the general classification with riccardo riccò as the young rider classification? ### Context: CREATE TABLE table_name_37 (general_classification VARCHAR, young_rider_classification VARCHAR) ### Response: ### Response: SELECT general_classification FROM table_name_37 WHERE young_rider_classification = "riccardo riccò"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2nd leg where aggregate is 7-2 ### Context: CREATE TABLE table_1061075_1 (aggregate VARCHAR) ### Response: ### Response: SELECT COUNT(2 AS nd_leg) FROM table_1061075_1 WHERE aggregate = "7-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 State (class) has a Successor of harry f. byrd, jr. (d)? Question ### Context: CREATE TABLE table_name_54 (state__class_ VARCHAR, successor VARCHAR) ### Response: ### Response: SELECT state__class_ FROM table_name_54 WHERE successor = "harry f. byrd, jr. (d)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the earliest year that the discus throw event occur? ### Context: CREATE TABLE table_name_2 (year INTEGER, event VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_2 WHERE event = "discus throw"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What package offers Fox Sports HD? ### Context: CREATE TABLE table_15887683_3 (package_option VARCHAR, television_service VARCHAR) ### Response: ### Response: SELECT package_option FROM table_15887683_3 WHERE television_service = "FOX Sports HD"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What the summary of episode 15? ### Context: CREATE TABLE table_2140071_7 (episode VARCHAR) ### Response: ### Response: SELECT episode AS Summary FROM table_2140071_7 WHERE episode = 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: How many points does the club that had 45 points against it have? ### Context: CREATE TABLE table_28201906_1 (points VARCHAR, pts_agst VARCHAR) ### Response: ### Response: SELECT points FROM table_28201906_1 WHERE pts_agst = 45</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the fewest number of draws for teams with more than 0 byes? ### Context: CREATE TABLE table_name_75 (draws INTEGER, byes INTEGER) ### Response: ### Response: SELECT MIN(draws) FROM table_name_75 WHERE byes > 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's the original title of The New Land? ### Context: CREATE TABLE table_20061872_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT original_title FROM table_20061872_1 WHERE film_title_used_in_nomination = "The New Land"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 touchdowns did the fullback score? ### Context: CREATE TABLE table_25711913_8 (touchdowns INTEGER, position VARCHAR) ### Response: ### Response: SELECT MIN(touchdowns) FROM table_25711913_8 WHERE position = "Fullback"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In which event did he place 6th in 1971? ### Context: CREATE TABLE table_name_98 (event VARCHAR, year VARCHAR, result VARCHAR) ### Response: ### Response: SELECT event FROM table_name_98 WHERE year = 1971 AND result = "6th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average Industry, when Agriculture is greater than 11? ### Context: CREATE TABLE table_name_44 (industry INTEGER, agriculture INTEGER) ### Response: ### Response: SELECT AVG(industry) FROM table_name_44 WHERE agriculture > 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the earliest any of these players were born? ### Context: CREATE TABLE table_12962773_10 (year_born INTEGER) ### Response: ### Response: SELECT MIN(year_born) FROM table_12962773_10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest round of the position de player with an overall less than 84? ### Context: CREATE TABLE table_name_51 (round INTEGER, position VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_51 WHERE position = "de" AND overall < 84</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Score of the Player from South Africa? ### Context: CREATE TABLE table_name_64 (score VARCHAR, country VARCHAR) ### Response: ### Response: SELECT score FROM table_name_64 WHERE country = "south africa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the record when chicago was the home team? ### Context: CREATE TABLE table_name_63 (record VARCHAR, home VARCHAR) ### Response: ### Response: SELECT record FROM table_name_63 WHERE home = "chicago"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which school's team has the nickname of the Wildcats? ### Context: CREATE TABLE table_16078390_2 (institution VARCHAR, team_nickname VARCHAR) ### Response: ### Response: SELECT institution FROM table_16078390_2 WHERE team_nickname = "Wildcats"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 visitor who visited both a museum opened before 2009 and a museum opened after 2011? ### Context: CREATE TABLE visitor (name VARCHAR, id VARCHAR); CREATE TABLE museum (Museum_ID VARCHAR, open_year INTEGER); CREATE TABLE visit (visitor_id VARCHAR, Museum_ID VARCHAR) ### Response: ### Response: SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 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 venue held the 1966 fifa world cup qualification on may 7, 1965? ### Context: CREATE TABLE table_name_95 (venue VARCHAR, competition VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_95 WHERE competition = "1966 fifa world cup qualification" AND date = "may 7, 1965"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most number for charvez davis ### Context: CREATE TABLE table_25360865_1 (_number INTEGER, name VARCHAR) ### Response: ### Response: SELECT MAX(_number) FROM table_25360865_1 WHERE name = "Charvez Davis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nationality of the player who has a pick lower than 33 and a School/Club Team of Vanderbilt? ### Context: CREATE TABLE table_name_94 (nationality VARCHAR, pick VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_94 WHERE pick < 33 AND school_club_team = "vanderbilt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which position was morristown minutemen in? ### Context: CREATE TABLE table_name_1 (position VARCHAR, team VARCHAR) ### Response: ### Response: SELECT position FROM table_name_1 WHERE team = "morristown minutemen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the record for the game on March 25? ### Context: CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_27 WHERE date = "march 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 Hanyu Pinyin with a density of 39.63? ### Context: CREATE TABLE table_name_32 (hanyu_pinyin VARCHAR, density___km²_ VARCHAR) ### Response: ### Response: SELECT hanyu_pinyin FROM table_name_32 WHERE density___km²_ = "39.63"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Built, when Works Number is "717"? ### Context: CREATE TABLE table_name_42 (built VARCHAR, works_number VARCHAR) ### Response: ### Response: SELECT built FROM table_name_42 WHERE works_number = "717"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What location is less than 7.1 km away, and has a Rapid of ●? ### Context: CREATE TABLE table_name_77 (location VARCHAR, distance__km_ VARCHAR, rapid VARCHAR) ### Response: ### Response: SELECT location FROM table_name_77 WHERE distance__km_ < 7.1 AND rapid = "●"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 author has a company of the Semeio Theatre? ### Context: CREATE TABLE table_name_22 (author VARCHAR, company VARCHAR) ### Response: ### Response: SELECT author FROM table_name_22 WHERE company = "semeio theatre"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the gna/glendale federal classic? ### Context: CREATE TABLE table_name_8 (margin_of_victory VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_8 WHERE tournament = "gna/glendale federal 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 the position for the pick number 17? ### Context: CREATE TABLE table_12165135_1 (position VARCHAR, overall_pick__number VARCHAR) ### Response: ### Response: SELECT position FROM table_12165135_1 WHERE overall_pick__number = 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Year Commissioned of the power stationo with a Gross head of less than 18? ### Context: CREATE TABLE table_name_58 (year_commissioned INTEGER, gross_head__metres_ INTEGER) ### Response: ### Response: SELECT AVG(year_commissioned) FROM table_name_58 WHERE gross_head__metres_ < 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the largest and smallest customer codes? ### Context: CREATE TABLE Customers (customer_code INTEGER) ### Response: ### Response: SELECT MAX(customer_code), MIN(customer_code) FROM Customers</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 as the Tie no for Home team of Gillingham? ### Context: CREATE TABLE table_name_43 (tie_no VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_43 WHERE home_team = "gillingham"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 3 has a Season 7 of jim treliving? ### Context: CREATE TABLE table_name_93 (season_3 VARCHAR, season_7 VARCHAR) ### Response: ### Response: SELECT season_3 FROM table_name_93 WHERE season_7 = "jim treliving"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the name, role code, and date of birth for the employee with name 'Armani'. ### Context: CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR, date_of_birth VARCHAR, employee_Name VARCHAR) ### Response: ### Response: SELECT employee_name, role_code, date_of_birth FROM Employees WHERE employee_Name = 'Armani'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: The Position of Centre is what Player? ### Context: CREATE TABLE table_name_4 (player VARCHAR, position VARCHAR) ### Response: ### Response: SELECT player FROM table_name_4 WHERE position = "centre"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Points is 13, and when Location is RBC Center? ### Context: CREATE TABLE table_name_58 (date VARCHAR, points VARCHAR, location VARCHAR) ### Response: ### Response: SELECT date FROM table_name_58 WHERE points = 13 AND location = "rbc center"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many Bronzes that has a Silver of 0, and a Gold of 0, and a Nation of denmark, and a Total larger than 1? ### Context: CREATE TABLE table_name_22 (bronze INTEGER, total VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT SUM(bronze) FROM table_name_22 WHERE silver = 0 AND gold = 0 AND nation = "denmark" AND total > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Round has a Position of lw, and a College/Junior/Club Team (League) of swift current broncos (wchl)? ### Context: CREATE TABLE table_name_11 (round INTEGER, position VARCHAR, college_junior_club_team__league_ VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_11 WHERE position = "lw" AND college_junior_club_team__league_ = "swift current broncos (wchl)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Opponent in the final has a Date of 19 september 1988? ### Context: CREATE TABLE table_name_57 (opponent_in_the_final VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_57 WHERE date = "19 september 1988"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Home team has a Venue of mcg? ### Context: CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_32 WHERE venue = "mcg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I need the FCC info on the radio Frequency MHz 107.5? ### Context: CREATE TABLE table_name_64 (fcc_info VARCHAR, frequency_mhz VARCHAR) ### Response: ### Response: SELECT fcc_info FROM table_name_64 WHERE frequency_mhz = 107.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: When 2/1939 is the withdrawn when was it built? ### Context: CREATE TABLE table_1886270_1 (built VARCHAR, withdrawn VARCHAR) ### Response: ### Response: SELECT built FROM table_1886270_1 WHERE withdrawn = "2/1939"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nat that ends in 2009? ### Context: CREATE TABLE table_name_93 (nat VARCHAR, ends VARCHAR) ### Response: ### Response: SELECT nat FROM table_name_93 WHERE ends = "2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 gold when the nation is total and the total is less than 24? ### Context: CREATE TABLE table_name_8 (gold INTEGER, nation VARCHAR) ### Response: ### Response: SELECT MAX(gold) FROM table_name_8 WHERE nation = "total" AND "total" < 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: Find the name of bank branches that provided some loans. ### Context: CREATE TABLE loan (branch_id VARCHAR); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR) ### Response: ### Response: SELECT DISTINCT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Wins, when Goals For is greater than 39, and when Points is less than 25? ### Context: CREATE TABLE table_name_55 (wins INTEGER, goals_for VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MAX(wins) FROM table_name_55 WHERE goals_for > 39 AND points < 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 was the tonnage on 30 march 1943? ### Context: CREATE TABLE table_name_78 (tonnage INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(tonnage) FROM table_name_78 WHERE date = "30 march 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: Who is the player from the United States with a t6 place and a 71-70-76-72=289 score? ### Context: CREATE TABLE table_name_67 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_67 WHERE country = "united states" AND place = "t6" AND score = 71 - 70 - 76 - 72 = 289</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the number of routes and airport name for each source airport, order the results by decreasing number of routes. ### Context: CREATE TABLE airports (name VARCHAR, apid VARCHAR); CREATE TABLE routes (src_apid VARCHAR) ### Response: ### Response: SELECT COUNT(*), T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY COUNT(*) 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: How many documents do not have any expense? ### Context: CREATE TABLE Documents (document_id VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Documents WHERE NOT document_id IN (SELECT document_id FROM Documents_with_expenses)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 club with a 4:03.63 time? ### Context: CREATE TABLE table_name_91 (club VARCHAR, time VARCHAR) ### Response: ### Response: SELECT club FROM table_name_91 WHERE time = "4:03.63"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 matches happened in 2003? ### Context: CREATE TABLE table_name_20 (total_matches VARCHAR, year VARCHAR) ### Response: ### Response: SELECT total_matches FROM table_name_20 WHERE year = "2003"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: The rounds of 1-2, 4-10, 12 belong to which entrant? ### Context: CREATE TABLE table_name_96 (entrant VARCHAR, rounds VARCHAR) ### Response: ### Response: SELECT entrant FROM table_name_96 WHERE rounds = "1-2, 4-10, 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 smallest Crowd number for the Venue named Princes Park? ### Context: CREATE TABLE table_name_96 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MIN(crowd) FROM table_name_96 WHERE venue = "princes park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Outcome happened on a Date that was 20 november 2011? ### Context: CREATE TABLE table_name_61 (outcome VARCHAR, date VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_61 WHERE date = "20 november 2011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the order ids and the number of items in each order. ### Context: CREATE TABLE Order_items (order_id VARCHAR) ### Response: ### Response: SELECT order_id, COUNT(*) FROM Order_items GROUP BY order_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nationality of the guard for the chool/Club Team in Virginia? ### Context: CREATE TABLE table_name_34 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_34 WHERE position = "guard" AND school_club_team = "virginia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the Lions play against the Tampa Bay Buccaneers? ### Context: CREATE TABLE table_name_66 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_66 WHERE opponent = "tampa bay buccaneers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 where the frequency is 92.3mhz? ### Context: CREATE TABLE table_name_76 (location VARCHAR, frequency VARCHAR) ### Response: ### Response: SELECT location FROM table_name_76 WHERE frequency = "92.3mhz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does number 26 weigh? ### Context: CREATE TABLE table_name_31 (weight VARCHAR, number VARCHAR) ### Response: ### Response: SELECT weight FROM table_name_31 WHERE number = "26"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If finishes is 10, what is the POS minimum? ### Context: CREATE TABLE table_23385853_20 (pos INTEGER, finishes VARCHAR) ### Response: ### Response: SELECT MIN(pos) FROM table_23385853_20 WHERE finishes = 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of artists for each gender? ### Context: CREATE TABLE artist (gender VARCHAR) ### Response: ### Response: SELECT COUNT(*), gender FROM artist GROUP BY gender</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Game, when Record is "11-17-7"? ### Context: CREATE TABLE table_name_34 (game VARCHAR, record VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_34 WHERE record = "11-17-7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the first team when the second team was Kalise Gran Canaria? ### Context: CREATE TABLE table_name_71 (team__number1 VARCHAR, team__number2 VARCHAR) ### Response: ### Response: SELECT team__number1 FROM table_name_71 WHERE team__number2 = "kalise gran canaria"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for week 15? ### Context: CREATE TABLE table_name_25 (attendance VARCHAR, week VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_25 WHERE week = 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 driver with the laps under 16, grid of 10, a bike of Yamaha YZF-R6, and ended with an accident? ### Context: CREATE TABLE table_name_67 (rider VARCHAR, grid VARCHAR, bike VARCHAR, laps VARCHAR, time VARCHAR) ### Response: ### Response: SELECT rider FROM table_name_67 WHERE laps < 16 AND time = "accident" AND bike = "yamaha yzf-r6" AND grid = 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest difference for the team that had less than 0 draws? ### Context: CREATE TABLE table_name_98 (difference INTEGER, drew INTEGER) ### Response: ### Response: SELECT MAX(difference) FROM table_name_98 WHERE drew < 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: In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)? ### Context: CREATE TABLE table_name_52 (city VARCHAR, plant_hardiness_zone VARCHAR, january VARCHAR) ### Response: ### Response: SELECT city FROM table_name_52 WHERE plant_hardiness_zone = "2b" AND january = "−12/−23°c (10/-9°f)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 places have 17 varsity teams? ### Context: CREATE TABLE table_2439728_1 (location VARCHAR, varsity_teams VARCHAR) ### Response: ### Response: SELECT COUNT(location) FROM table_2439728_1 WHERE varsity_teams = 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the highest vote for others? ### Context: CREATE TABLE table_1756284_1 (others_number INTEGER) ### Response: ### Response: SELECT MAX(others_number) FROM table_1756284_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: Is the biggest win recorded as home or away? ### Context: CREATE TABLE table_1233808_2 (home_or_away VARCHAR, record VARCHAR) ### Response: ### Response: SELECT home_or_away FROM table_1233808_2 WHERE record = "Biggest win"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ICAO has a Fleet size of 2? ### Context: CREATE TABLE table_name_96 (icao VARCHAR, fleet_size VARCHAR) ### Response: ### Response: SELECT icao FROM table_name_96 WHERE fleet_size = 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: How many rankings did the 5th season have? ### Context: CREATE TABLE table_1348989_2 (ranking VARCHAR, season VARCHAR) ### Response: ### Response: SELECT COUNT(ranking) FROM table_1348989_2 WHERE season = "5th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 first leg of the semi-final? ### Context: CREATE TABLE table_name_78 (first_leg VARCHAR, round VARCHAR) ### Response: ### Response: SELECT first_leg FROM table_name_78 WHERE round = "semi-final"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the home team Geelong score? ### Context: CREATE TABLE table_name_50 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_50 WHERE home_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: What is the date where the attendance was 31,220? ### Context: CREATE TABLE table_name_62 (date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_62 WHERE attendance = "31,220"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 week 3 opponent for the year that had a week 7 opponent of Georgia (5-1)? ### Context: CREATE TABLE table_name_56 (week_3_sept_14 VARCHAR, week_7_oct_12 VARCHAR) ### Response: ### Response: SELECT week_3_sept_14 FROM table_name_56 WHERE week_7_oct_12 = "georgia (5-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's the HC for the Euro I standard? ### Context: CREATE TABLE table_2780146_6 (hc__g_kwh_ VARCHAR, standard VARCHAR) ### Response: ### Response: SELECT hc__g_kwh_ FROM table_2780146_6 WHERE standard = "Euro 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 nickname that joined 1902 1? ### Context: CREATE TABLE table_262527_1 (nickname VARCHAR, joined VARCHAR) ### Response: ### Response: SELECT nickname FROM table_262527_1 WHERE joined = "1902 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's the average attendance on january 6, 2008? ### Context: CREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(attendance) FROM table_name_34 WHERE date = "january 6, 2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the l2 cache for the model with a release price of $669? ### Context: CREATE TABLE table_16400024_1 (l2_cache VARCHAR, release_price___usd__ VARCHAR) ### Response: ### Response: SELECT l2_cache FROM table_16400024_1 WHERE release_price___usd__ = "$669"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all of the shows with Alice Levine Jamie East is the Sunday presenter. ### Context: CREATE TABLE table_11748792_2 (series VARCHAR, sunday VARCHAR) ### Response: ### Response: SELECT series FROM table_11748792_2 WHERE sunday = "Alice Levine Jamie 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: What venue were the 1986 Asian games resulting in 2-0 played at? ### Context: CREATE TABLE table_name_44 (venue VARCHAR, competition VARCHAR, result VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_44 WHERE competition = "1986 asian games" AND result = "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: What is the Origin of Programming for the Network NDTV India? ### Context: CREATE TABLE table_name_98 (origin_of_programming VARCHAR, network VARCHAR) ### Response: ### Response: SELECT origin_of_programming FROM table_name_98 WHERE network = "ndtv india"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'? ### Context: CREATE TABLE Electoral_Register (electoral_register_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, source_system_code VARCHAR) ### Response: ### Response: SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id WHERE T2.source_system_code = 'Electoral' OR T2.source_system_code = 'Tax'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who directed the episode which originally aired February 4, 2005? ### Context: CREATE TABLE table_228973_11 (directed_by VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_228973_11 WHERE original_air_date = "February 4, 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 championship was in 1985? ### Context: CREATE TABLE table_name_30 (championship VARCHAR, year VARCHAR) ### Response: ### Response: SELECT championship FROM table_name_30 WHERE year = 1985</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title of the episode that aired on May 10, 1958? ### Context: CREATE TABLE table_25800134_2 (title VARCHAR, airdate VARCHAR) ### Response: ### Response: SELECT title FROM table_25800134_2 WHERE airdate = "May 10, 1958"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Liberal candidates have a Liberal leader of pearson, and a % of popular vote of 40.2%, and Seats won smaller than 131? ### Context: CREATE TABLE table_name_94 (liberal_candidates VARCHAR, seats_won VARCHAR, liberal_leader VARCHAR, _percentage_of_popular_vote VARCHAR) ### Response: ### Response: SELECT COUNT(liberal_candidates) FROM table_name_94 WHERE liberal_leader = "pearson" AND _percentage_of_popular_vote = "40.2%" AND seats_won < 131</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 countries (endonym) has the capital (endonym) of Jakarta? ### Context: CREATE TABLE table_1008653_9 (country___endonym__ VARCHAR, capital___endonym__ VARCHAR) ### Response: ### Response: SELECT COUNT(country___endonym__) FROM table_1008653_9 WHERE capital___endonym__ = "Jakarta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 coach with an actual adjusted record of 0–19? ### Context: CREATE TABLE table_name_2 (coach VARCHAR, actual_adjusted_record VARCHAR) ### Response: ### Response: SELECT coach FROM table_name_2 WHERE actual_adjusted_record = "0–19"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the Away team which have a Ground of colonial stadium on friday, 2 march? ### Context: CREATE TABLE table_name_83 (away_team VARCHAR, ground VARCHAR, date VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_83 WHERE ground = "colonial stadium" AND date = "friday, 2 march"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team was Bolton Wanderers, what was the score? ### Context: CREATE TABLE table_name_83 (score VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_83 WHERE away_team = "bolton wanderers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest numbered episode that had a rating/share of 0.9/4 and more than 3.79 million viewers? ### Context: CREATE TABLE table_name_89 (episode__number INTEGER, viewers__millions_ VARCHAR, rating VARCHAR) ### Response: ### Response: SELECT MIN(episode__number) FROM table_name_89 WHERE rating / SHARE(18 AS –49) = 0.9 / 4 AND viewers__millions_ > 3.79</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 medals were won total for the country that won 1 silver and was ranked 2 or lower? ### Context: CREATE TABLE table_name_18 (total VARCHAR, silver VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_18 WHERE silver = 1 AND rank < 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 Leading Scorer has an Opponent of @ indiana? ### Context: CREATE TABLE table_name_10 (Leading VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT Leading AS scorer FROM table_name_10 WHERE opponent = "@ indiana"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many different counts for won points does Flavia Pennetta have? ### Context: CREATE TABLE table_27615896_20 (points VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(points) AS won FROM table_27615896_20 WHERE player = "Flavia Pennetta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 fastest time for the Kentucky Derby race? ### Context: CREATE TABLE table_name_40 (time VARCHAR, race VARCHAR) ### Response: ### Response: SELECT time FROM table_name_40 WHERE race = "kentucky derby"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Royal Navy as Combatants B, what was the result? ### Context: CREATE TABLE table_26977890_1 (result VARCHAR, combatants_b VARCHAR) ### Response: ### Response: SELECT result FROM table_26977890_1 WHERE combatants_b = "Royal Navy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 letter name for the Asomtavruli ⴙ? ### Context: CREATE TABLE table_name_74 (letter_name VARCHAR, asomtavruli VARCHAR) ### Response: ### Response: SELECT letter_name FROM table_name_74 WHERE asomtavruli = "ⴙ"</s>