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 number for the University of Dublin with their Cultural and Educational Panel of 5, and an Industrial and Commercial Panel with less than 9? ### Context: CREATE TABLE table_name_46 (university_of_dublin VARCHAR, cultural_and_educational_panel VARCHAR, industrial_and_commercial_panel VARCHAR) ### Response: ### Response: SELECT COUNT(university_of_dublin) FROM table_name_46 WHERE cultural_and_educational_panel = 5 AND industrial_and_commercial_panel < 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which winning song was sung by aku tetap milikmu? ### Context: CREATE TABLE table_name_65 (English VARCHAR, winning_song VARCHAR) ### Response: ### Response: SELECT WINNING_SONG(English AS Title) FROM table_name_65 WHERE winning_song = "aku tetap milikmu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 title of the episode written by Keith Temple? ### Context: CREATE TABLE table_21025437_5 (title VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT title FROM table_21025437_5 WHERE written_by = "Keith Temple"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year is australia/oceania listed? ### Context: CREATE TABLE table_27435931_1 (year VARCHAR, continent VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_27435931_1 WHERE continent = "Australia/Oceania"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 class for Geholfen Gedroschen in part 4? ### Context: CREATE TABLE table_name_26 (class VARCHAR, part_4 VARCHAR) ### Response: ### Response: SELECT class FROM table_name_26 WHERE part_4 = "geholfen gedroschen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 candidates for pennsylvania 21 ### Context: CREATE TABLE table_1342198_38 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT COUNT(candidates) FROM table_1342198_38 WHERE district = "Pennsylvania 21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the finishing time of the stage that featured a distance of 18.25km and a start time of 11:31? ### Context: CREATE TABLE table_name_16 (time VARCHAR, distance VARCHAR, start_time VARCHAR) ### Response: ### Response: SELECT time FROM table_name_16 WHERE distance = "18.25km" AND start_time = "11: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: What was Frank Moore's score? ### Context: CREATE TABLE table_name_81 (score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_81 WHERE player = "frank moore"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the result of the match with an attendance of 73,855? ### Context: CREATE TABLE table_name_9 (result VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result FROM table_name_9 WHERE attendance = "73,855"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week has a Opponent of tennessee titans? ### Context: CREATE TABLE table_name_86 (week VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT week FROM table_name_86 WHERE opponent = "tennessee titans"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Channel has an Opponent of washington redskins? ### Context: CREATE TABLE table_name_41 (channel VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT channel FROM table_name_41 WHERE opponent = "washington redskins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Winning Jockey ran in the Tampa Bay Downs Track on Winning Horse Barkley Sound? ### Context: CREATE TABLE table_name_86 (winning_jockey VARCHAR, track VARCHAR, winning_horse VARCHAR) ### Response: ### Response: SELECT winning_jockey FROM table_name_86 WHERE track = "tampa bay downs" AND winning_horse = "barkley sound"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 money ($) that Tom Weiskopf made? ### Context: CREATE TABLE table_name_54 (money___ INTEGER, player VARCHAR) ### Response: ### Response: SELECT AVG(money___) AS $__ FROM table_name_54 WHERE player = "tom weiskopf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the home team in the match against Luton Town? ### Context: CREATE TABLE table_name_21 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_21 WHERE away_team = "luton town"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cfl team for saskatchewan ### Context: CREATE TABLE table_25017530_6 (cfl_team VARCHAR, college VARCHAR) ### Response: ### Response: SELECT cfl_team FROM table_25017530_6 WHERE college = "Saskatchewan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 stadium for the city of melfi? ### Context: CREATE TABLE table_name_7 (stadium VARCHAR, city VARCHAR) ### Response: ### Response: SELECT stadium FROM table_name_7 WHERE city = "melfi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Record of 12–15 happened on what date? ### Context: CREATE TABLE table_name_85 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_85 WHERE record = "12–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 highest loss with a long more than 61? ### Context: CREATE TABLE table_name_1 (loss INTEGER, long INTEGER) ### Response: ### Response: SELECT MAX(loss) FROM table_name_1 WHERE long > 61</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is every example for the equivalent of NTE160? ### Context: CREATE TABLE table_30011_2 (example VARCHAR, equivalent VARCHAR) ### Response: ### Response: SELECT example FROM table_30011_2 WHERE equivalent = "NTE160"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average B Score that has the Position of 2nd, and the Total smaller than 15.525? ### Context: CREATE TABLE table_name_47 (b_score INTEGER, position VARCHAR, total VARCHAR) ### Response: ### Response: SELECT AVG(b_score) FROM table_name_47 WHERE position = "2nd" AND total < 15.525</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What series has 1935-07-13 as the release date? ### Context: CREATE TABLE table_name_12 (series VARCHAR, release_date VARCHAR) ### Response: ### Response: SELECT series FROM table_name_12 WHERE release_date = "1935-07-13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When less than 30 games have been played what is the average goals scored? ### Context: CREATE TABLE table_name_18 (goals_scored INTEGER, games_played INTEGER) ### Response: ### Response: SELECT AVG(goals_scored) FROM table_name_18 WHERE games_played < 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: What Player has a Score of 71-71=142? ### Context: CREATE TABLE table_name_60 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_60 WHERE score = 71 - 71 = 142</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For a segment D of pasta, what is the segment B? ### Context: CREATE TABLE table_name_93 (segment_b VARCHAR, segment_d VARCHAR) ### Response: ### Response: SELECT segment_b FROM table_name_93 WHERE segment_d = "pasta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title of course whose prerequisite is course Differential Geometry. ### Context: CREATE TABLE prereq (course_id VARCHAR, prereq_id VARCHAR); CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR) ### Response: ### Response: SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry')</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What day did the play on week 6? ### Context: CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT date FROM table_name_3 WHERE week = 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 highest number of extra points? ### Context: CREATE TABLE table_14342480_15 (extra_points INTEGER) ### Response: ### Response: SELECT MAX(extra_points) FROM table_14342480_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: When was the microprocessor with 1.65–1.7 v, a mult of 4.5Γ—, and a slot 1 socket released? ### Context: CREATE TABLE table_name_43 (release_date VARCHAR, socket VARCHAR, voltage VARCHAR, mult VARCHAR) ### Response: ### Response: SELECT release_date FROM table_name_43 WHERE voltage = "1.65–1.7 v" AND mult = "4.5Γ—" AND socket = "slot 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 claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number. ### Context: CREATE TABLE Claims (claim_id VARCHAR, date_claim_made VARCHAR); CREATE TABLE Settlements (claim_id VARCHAR) ### Response: ### Response: SELECT T1.claim_id, T1.date_claim_made, COUNT(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY COUNT(*) 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: Which pre-season has May 5 of 21? ### Context: CREATE TABLE table_name_21 (pre__season VARCHAR, may_5 VARCHAR) ### Response: ### Response: SELECT pre__season FROM table_name_21 WHERE may_5 = "21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the cfl team where college is waterloo? ### Context: CREATE TABLE table_26996293_4 (cfl_team VARCHAR, college VARCHAR) ### Response: ### Response: SELECT COUNT(cfl_team) FROM table_26996293_4 WHERE college = "Waterloo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Year Average that has a Power of BHP (KW) and Trim of LS/2LT? ### Context: CREATE TABLE table_name_25 (year INTEGER, power VARCHAR, trim VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_25 WHERE power = "bhp (kw)" AND trim = "ls/2lt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What party is incumbent virgil chapman from? ### Context: CREATE TABLE table_1342233_17 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1342233_17 WHERE incumbent = "Virgil Chapman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I want the driver for ferrari who made Laps less than 26 and grids more than 9 ### Context: CREATE TABLE table_name_69 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_69 WHERE grid > 9 AND laps < 26 AND constructor = "ferrari"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player has a To par of –2, and a Score of 73-65=138? ### Context: CREATE TABLE table_name_61 (player VARCHAR, to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_61 WHERE to_par = "–2" AND score = 73 - 65 = 138</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result of the game on august 30, 1968? ### Context: CREATE TABLE table_name_69 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_69 WHERE date = "august 30, 1968"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest after when the player is adam scott? ### Context: CREATE TABLE table_28498999_3 (after INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(after) FROM table_28498999_3 WHERE player = "Adam Scott"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the names of the dogs of the rarest breed and the treatment dates of them. ### Context: CREATE TABLE Dogs (name VARCHAR, dog_id VARCHAR, breed_code VARCHAR); CREATE TABLE Treatments (date_of_treatment VARCHAR, dog_id VARCHAR); CREATE TABLE Dogs (breed_code VARCHAR) ### Response: ### Response: SELECT T1.name, T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = (SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY COUNT(*) 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: Name the most field goals ### Context: CREATE TABLE table_14342592_8 (field_goals INTEGER) ### Response: ### Response: SELECT MAX(field_goals) FROM table_14342592_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: When someone was first elected in 1898 what was the result? ### Context: CREATE TABLE table_name_53 (result VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT result FROM table_name_53 WHERE first_elected = "1898"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Sue Bird's position? ### Context: CREATE TABLE table_name_93 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_name_93 WHERE player = "sue bird"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 organisation when the year is less than 2005 and the award is the best variety show host? ### Context: CREATE TABLE table_name_84 (organisation VARCHAR, year VARCHAR, award VARCHAR) ### Response: ### Response: SELECT organisation FROM table_name_84 WHERE year < 2005 AND award = "best variety show host"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 PRR class of the freight train built in 1967 with a b-b wheel arrangement? ### Context: CREATE TABLE table_name_4 (prr_class VARCHAR, build_date VARCHAR, wheel_arrangement VARCHAR, service VARCHAR) ### Response: ### Response: SELECT prr_class FROM table_name_4 WHERE wheel_arrangement = "b-b" AND service = "freight" AND build_date = "1967"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 mintage when the theme was Santa Claus? ### Context: CREATE TABLE table_name_15 (mintage VARCHAR, theme VARCHAR) ### Response: ### Response: SELECT mintage FROM table_name_15 WHERE theme = "santa claus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the laps of aprilia with a grid of 10? ### Context: CREATE TABLE table_name_72 (laps VARCHAR, manufacturer VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_72 WHERE manufacturer = "aprilia" 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 warship has horse-power of 1500? ### Context: CREATE TABLE table_23614702_1 (warship VARCHAR, horse__power VARCHAR) ### Response: ### Response: SELECT warship FROM table_23614702_1 WHERE horse__power = 1500</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date has a Result of win, and a Round smaller than 2, and an Opponent of myron greenberg? ### Context: CREATE TABLE table_name_60 (date VARCHAR, opponent VARCHAR, result VARCHAR, round VARCHAR) ### Response: ### Response: SELECT date FROM table_name_60 WHERE result = "win" AND round < 2 AND opponent = "myron greenberg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Class has a Frequency MHz larger than 91.7, and a Call sign of k272ec? ### Context: CREATE TABLE table_name_21 (class VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT class FROM table_name_21 WHERE frequency_mhz > 91.7 AND call_sign = "k272ec"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2011 is the lowest one that has a 1948 smaller than 15872624, and a 1966 of 263103, and a 1992 larger than 266308? ### Context: CREATE TABLE table_name_81 (Id VARCHAR) ### Response: ### Response: SELECT MIN(2011) FROM table_name_81 WHERE 1948 < 15872624 AND 1966 = 263103 AND 1992 > 266308</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the D 42 √ for when it has D 49 √ of r 12 ### Context: CREATE TABLE table_name_58 (d_42_√ VARCHAR, d_49_√ VARCHAR) ### Response: ### Response: SELECT d_42_√ FROM table_name_58 WHERE d_49_√ = "r 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's the best rank possible? ### Context: CREATE TABLE table_30058355_5 (rank INTEGER) ### Response: ### Response: SELECT MIN(rank) FROM table_30058355_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: Find the name and level of catalog structure with level between 5 and 10. ### Context: CREATE TABLE Catalog_Structure (catalog_level_name VARCHAR, catalog_level_number INTEGER) ### Response: ### Response: SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the former private member that was founded in 1891 and left in 1975? ### Context: CREATE TABLE table_name_98 (location VARCHAR, founded VARCHAR, left VARCHAR, type VARCHAR) ### Response: ### Response: SELECT location FROM table_name_98 WHERE left = 1975 AND type = "private" AND founded = 1891</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 on june 29? ### Context: CREATE TABLE table_name_25 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_25 WHERE date = "june 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: Which Power has a Name of 9 ad? ### Context: CREATE TABLE table_name_25 (power VARCHAR, name VARCHAR) ### Response: ### Response: SELECT power FROM table_name_25 WHERE name = "9 ad"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total when silver is 0, and gold is less than 1, and rank is less than 13? ### Context: CREATE TABLE table_name_16 (total INTEGER, rank VARCHAR, silver VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_16 WHERE silver = 0 AND gold < 1 AND rank < 13</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When 129 is the number in the series who is the writer? ### Context: CREATE TABLE table_228973_7 (written_by VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT written_by FROM table_228973_7 WHERE no_in_series = 129</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 party had a term start of 5 august 1999? ### Context: CREATE TABLE table_name_95 (party VARCHAR, term_start VARCHAR) ### Response: ### Response: SELECT party FROM table_name_95 WHERE term_start = "5 august 1999"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is 2001, when 1999 is "2R", and when 1992 is "3R"? ### Context: CREATE TABLE table_name_12 (Id VARCHAR) ### Response: ### Response: SELECT 2001 FROM table_name_12 WHERE 1999 = "2r" AND 1992 = "3r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1st round result that had US Valenciennes (d1) as Team 2? ### Context: CREATE TABLE table_name_6 (team_2 VARCHAR) ### Response: ### Response: SELECT 1 AS st_round FROM table_name_6 WHERE team_2 = "us valenciennes (d1)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the game when Melbourne was the away team? ### Context: CREATE TABLE table_name_53 (venue VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_53 WHERE away_team = "melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 airport is associated with Macau? ### Context: CREATE TABLE table_name_71 (airport VARCHAR, city VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_71 WHERE city = "macau"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with 68,463 in attendance? ### Context: CREATE TABLE table_name_82 (date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_82 WHERE attendance = "68,463"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 team that scored 56 points?Qh ### Context: CREATE TABLE table_25369796_1 (team VARCHAR, points VARCHAR) ### Response: ### Response: SELECT team FROM table_25369796_1 WHERE points = "56"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 chassis for Augusto Scalbi on Team RP Motorsport? ### Context: CREATE TABLE table_name_34 (chassis VARCHAR, team VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT chassis FROM table_name_34 WHERE team = "rp motorsport" AND driver = "augusto scalbi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fault log included the most number of faulty parts? List the fault log id, description and record time. ### Context: CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR, fault_description VARCHAR, fault_log_entry_datetime VARCHAR); CREATE TABLE Fault_Log_Parts (fault_log_entry_id VARCHAR) ### Response: ### Response: SELECT T1.fault_log_entry_id, T1.fault_description, T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) 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 is the lowest population for the area that has a density of 36.7? ### Context: CREATE TABLE table_name_89 (population__2011_ INTEGER, density__inhabitants_km_2__ VARCHAR) ### Response: ### Response: SELECT MIN(population__2011_) FROM table_name_89 WHERE density__inhabitants_km_2__ = 36.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 was South Melbourne's score when they played as the away team? ### Context: CREATE TABLE table_name_5 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_5 WHERE away_team = "south melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country has a territory of French Guiana? ### Context: CREATE TABLE table_name_28 (country VARCHAR, territory VARCHAR) ### Response: ### Response: SELECT country FROM table_name_28 WHERE territory = "french guiana"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 united fc wehre pifa colaba is maratha united? ### Context: CREATE TABLE table_28759261_5 (united_fc VARCHAR, pifa_colaba_fc_u_17 VARCHAR) ### Response: ### Response: SELECT united_fc FROM table_28759261_5 WHERE pifa_colaba_fc_u_17 = "Maratha United"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What January 15-16 is is that corresponds to November 3, 2013? ### Context: CREATE TABLE table_25284864_3 (january_15_16 VARCHAR, november_3 VARCHAR) ### Response: ### Response: SELECT january_15_16 FROM table_25284864_3 WHERE november_3 = "november_3, 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: Who was the incumbent in the Arkansas 2 district election? ### Context: CREATE TABLE table_1341897_6 (incumbent VARCHAR, district VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_1341897_6 WHERE district = "Arkansas 2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the release date when the location is Europe? ### Context: CREATE TABLE table_name_37 (release_date VARCHAR, location VARCHAR) ### Response: ### Response: SELECT release_date FROM table_name_37 WHERE location = "europe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 enrollment for 2007-08 ### Context: CREATE TABLE table_1973648_1 (enrollment VARCHAR, joined VARCHAR) ### Response: ### Response: SELECT enrollment FROM table_1973648_1 WHERE joined = "2007-08"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the number for db ### Context: CREATE TABLE table_20649850_1 (pick__number VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(pick__number) FROM table_20649850_1 WHERE position = "DB"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 home team was kaizer chiefs and the division was mtn 8 semi-final? ### Context: CREATE TABLE table_27274566_2 (date VARCHAR, home_team VARCHAR, division VARCHAR) ### Response: ### Response: SELECT date FROM table_27274566_2 WHERE home_team = "Kaizer Chiefs" AND division = "MTN 8 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: In what Year did Yugoslavia have 4 Competitors with 0 medals Total? ### Context: CREATE TABLE table_name_78 (year VARCHAR, total VARCHAR, competitors VARCHAR) ### Response: ### Response: SELECT year FROM table_name_78 WHERE total = "0" AND competitors = "4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the highest number of games played when there was 2 losses, percentage was 0.00% and more than 0 draws? ### Context: CREATE TABLE table_name_2 (played INTEGER, drawn VARCHAR, lost VARCHAR, percentage VARCHAR) ### Response: ### Response: SELECT MAX(played) FROM table_name_2 WHERE lost = 2 AND percentage = "0.00%" AND drawn > 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 was the maximum crowd size against St Kilda? ### Context: CREATE TABLE table_16387653_1 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_16387653_1 WHERE away_team = "St Kilda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many different values of clubs involved were there when the league entering at this round was allsvenskan? ### Context: CREATE TABLE table_29566686_1 (clubs_involved VARCHAR, leagues_entering_at_this_round VARCHAR) ### Response: ### Response: SELECT COUNT(clubs_involved) FROM table_29566686_1 WHERE leagues_entering_at_this_round = "Allsvenskan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 J.E. Armstrong when W.H. Archer is D.M. Lawson? ### Context: CREATE TABLE table_1320857_1 (je_armstrong VARCHAR, wh_archer VARCHAR) ### Response: ### Response: SELECT je_armstrong FROM table_1320857_1 WHERE wh_archer = "D.M. Lawson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament's 2001 and 2008 were a when 2010 was qf? ### Context: CREATE TABLE table_name_4 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_4 WHERE 2001 = "a" AND 2008 = "a" AND 2010 = "qf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What district has counties represented by Baltimore county, a committee of health and government operations, and a first elected smaller than 2002? ### Context: CREATE TABLE table_name_86 (district VARCHAR, first_elected VARCHAR, counties_represented VARCHAR, committee VARCHAR) ### Response: ### Response: SELECT district FROM table_name_86 WHERE counties_represented = "baltimore county" AND committee = "health and government operations" AND first_elected < 2002</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Year has a Position of 9th? ### Context: CREATE TABLE table_name_63 (year INTEGER, position VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_63 WHERE position = "9th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country is Wellington located in? ### Context: CREATE TABLE table_name_48 (country VARCHAR, city VARCHAR) ### Response: ### Response: SELECT country FROM table_name_48 WHERE city = "wellington"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 primary (South) winners is Inter The Bloomfield, what is the season total number? ### Context: CREATE TABLE table_23014923_1 (season VARCHAR, primary__south__winners VARCHAR) ### Response: ### Response: SELECT COUNT(season) FROM table_23014923_1 WHERE primary__south__winners = "Inter The Bloomfield"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Does Trinity (valhalla) have HDMI? ### Context: CREATE TABLE table_name_29 (hdmi VARCHAR, codename VARCHAR) ### Response: ### Response: SELECT hdmi FROM table_name_29 WHERE codename = "trinity (valhalla)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Modern Pentathlon III Series coin weigh? ### Context: CREATE TABLE table_name_65 (weight VARCHAR, series VARCHAR, reverse VARCHAR) ### Response: ### Response: SELECT weight FROM table_name_65 WHERE series = "iii series" AND reverse = "modern pentathlon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total number of wins that had an against greater than 1136 but losses less than 15 with Ultima with less than 2 byes? ### Context: CREATE TABLE table_name_62 (wins INTEGER, byes VARCHAR, golden_rivers VARCHAR, against VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT SUM(wins) FROM table_name_62 WHERE against > 1136 AND losses < 15 AND golden_rivers = "ultima" AND byes < 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: In Ca/Nv, what are all of the regional page #s? ### Context: CREATE TABLE table_287659_2 (regional_page__number VARCHAR, state_name VARCHAR) ### Response: ### Response: SELECT regional_page__number FROM table_287659_2 WHERE state_name = "CA/NV"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the opponents in the Tokyo championships? ### Context: CREATE TABLE table_2259502_2 (opponents VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT opponents FROM table_2259502_2 WHERE championship = "Tokyo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drove the winning car constructed by Jordan - Mugen-Honda? ### Context: CREATE TABLE table_1137694_3 (winning_driver VARCHAR, winning_constructor VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_1137694_3 WHERE winning_constructor = "Jordan - Mugen-Honda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Seats have a Share of votes of 18%, and a Share of seats of 3%, and a General election larger than 1992? ### Context: CREATE TABLE table_name_62 (seats INTEGER, general_election VARCHAR, share_of_votes VARCHAR, share_of_seats VARCHAR) ### Response: ### Response: SELECT MAX(seats) FROM table_name_62 WHERE share_of_votes = "18%" AND share_of_seats = "3%" AND general_election > 1992</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 points the team with 0 wins had before 1992? ### Context: CREATE TABLE table_name_11 (points INTEGER, wins VARCHAR, year VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_11 WHERE wins = 0 AND year < 1992</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Sort employee names by their age in ascending order. ### Context: CREATE TABLE employee (name VARCHAR, age VARCHAR) ### Response: ### Response: SELECT name FROM employee ORDER BY age</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with a 45 tie no.? ### Context: CREATE TABLE table_name_73 (attendance VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_73 WHERE tie_no = "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 Fuzzy Zoeller's To par? ### Context: CREATE TABLE table_name_29 (to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_29 WHERE player = "fuzzy zoeller"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 High rebounds with a High assists with bryant (7), and a Team of @ utah? ### Context: CREATE TABLE table_name_9 (high_rebounds VARCHAR, high_assists VARCHAR, team VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_name_9 WHERE high_assists = "bryant (7)" AND team = "@ utah"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 last week that has a result of a w 34-21? ### Context: CREATE TABLE table_name_10 (week INTEGER, result VARCHAR) ### Response: ### Response: SELECT MAX(week) FROM table_name_10 WHERE result = "w 34-21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average gold total for nations ranked 6 with 1 total medal and 1 bronze medal? ### Context: CREATE TABLE table_name_90 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(gold) FROM table_name_90 WHERE total = 1 AND rank = "6" AND bronze > 1</s>