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: Was it a home game on the date of April 6? ### Context: CREATE TABLE table_name_6 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_6 WHERE date = "april 6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Engine has a Model of s320 cdi? ### Context: CREATE TABLE table_name_87 (engine VARCHAR, model VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_87 WHERE model = "s320 cdi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the average of games that were one in 1978 that were smaller than 141? ### Context: CREATE TABLE table_name_42 (wins INTEGER, years VARCHAR, games VARCHAR) ### Response: ### Response: SELECT AVG(wins) FROM table_name_42 WHERE years = "1978" AND games < 141</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Week has a Result of l 17-14? ### Context: CREATE TABLE table_name_52 (week INTEGER, result VARCHAR) ### Response: ### Response: SELECT SUM(week) FROM table_name_52 WHERE result = "l 17-14"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name province of 1936 viana do castelo ### Context: CREATE TABLE table_221375_1 (province_of_1936 VARCHAR, district VARCHAR) ### Response: ### Response: SELECT province_of_1936 FROM table_221375_1 WHERE district = "Viana do Castelo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 trademark listed for the molecular target : dna-binding? ### Context: CREATE TABLE table_12715053_1 (trademark VARCHAR, molecular_target VARCHAR) ### Response: ### Response: SELECT trademark FROM table_12715053_1 WHERE molecular_target = "DNA-Binding"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 line offers Fast to Norwood Junction? ### Context: CREATE TABLE table_1612760_1 (line VARCHAR, service_pattern VARCHAR) ### Response: ### Response: SELECT line FROM table_1612760_1 WHERE service_pattern = "Fast to Norwood Junction"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 that has a winning score of 67-70-68-67=272? ### Context: CREATE TABLE table_name_84 (date VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_84 WHERE winning_score = 67 - 70 - 68 - 67 = 272</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 streak for the game after 8 on Nov 22? ### Context: CREATE TABLE table_name_74 (streak VARCHAR, game VARCHAR, date VARCHAR) ### Response: ### Response: SELECT streak FROM table_name_74 WHERE game > 8 AND date = "nov 22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What label is formatted as compact disc and has United Kingdom as its region? ### Context: CREATE TABLE table_name_94 (label VARCHAR, format VARCHAR, region VARCHAR) ### Response: ### Response: SELECT label FROM table_name_94 WHERE format = "compact disc" AND region = "united kingdom"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where is the school whose students are nicknamed Panthers located? ### Context: CREATE TABLE table_1971074_1 (location VARCHAR, nickname VARCHAR) ### Response: ### Response: SELECT location FROM table_1971074_1 WHERE nickname = "Panthers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 salmonella with escherichia being sepb (escn) ### Context: CREATE TABLE table_10321124_1 (salmonella VARCHAR, escherichia VARCHAR) ### Response: ### Response: SELECT salmonella FROM table_10321124_1 WHERE escherichia = "SepB (EscN)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player was chosen in round 17? ### Context: CREATE TABLE table_10360823_1 (player_name VARCHAR, round VARCHAR) ### Response: ### Response: SELECT player_name FROM table_10360823_1 WHERE round = 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: Find the number of products with category "Spices" and typically sold above 1000. ### Context: CREATE TABLE products (product_category_code VARCHAR, typical_buying_price VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM products WHERE product_category_code = "Spices" AND typical_buying_price > 1000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 score where record is 35–33 ### Context: CREATE TABLE table_11964047_9 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_11964047_9 WHERE record = "35–33"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Title has a Director of rowell santiago? ### Context: CREATE TABLE table_name_39 (title VARCHAR, director VARCHAR) ### Response: ### Response: SELECT title FROM table_name_39 WHERE director = "rowell santiago"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest Cargo traffic that has the Airport of barcelona airport, and the Aircraft movements smaller than 290,004? ### Context: CREATE TABLE table_name_82 (cargo_traffic INTEGER, airport VARCHAR, aircraft_movements VARCHAR) ### Response: ### Response: SELECT MAX(cargo_traffic) FROM table_name_82 WHERE airport = "barcelona airport" AND aircraft_movements < 290 OFFSET 004</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Partner has an Opponents of wayne arthurs sandon stolle? ### Context: CREATE TABLE table_name_24 (partner VARCHAR, opponents VARCHAR) ### Response: ### Response: SELECT partner FROM table_name_24 WHERE opponents = "wayne arthurs sandon stolle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 oldest log id and its corresponding problem id? ### Context: CREATE TABLE problem_log (problem_log_id VARCHAR, problem_id VARCHAR, log_entry_date VARCHAR) ### Response: ### Response: SELECT problem_log_id, problem_id FROM problem_log ORDER BY log_entry_date 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 highest Pick, when Round is greater than 15, and when College is "Tennessee"? ### Context: CREATE TABLE table_name_19 (pick INTEGER, round VARCHAR, college VARCHAR) ### Response: ### Response: SELECT MAX(pick) FROM table_name_19 WHERE round > 15 AND college = "tennessee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the game played in the 2012 Africa Cup of Nations? ### Context: CREATE TABLE table_name_90 (score VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT score FROM table_name_90 WHERE competition = "2012 africa cup of nations"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the game in which the Toronto Maple Leafs were visitors? ### Context: CREATE TABLE table_name_97 (score VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT score FROM table_name_97 WHERE visitor = "toronto maple leafs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 competition on 10 august 2011? ### Context: CREATE TABLE table_name_75 (competition VARCHAR, date VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_75 WHERE date = "10 august 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 is the lowest episode number? ### Context: CREATE TABLE table_2501754_4 (episode__number INTEGER) ### Response: ### Response: SELECT MIN(episode__number) FROM table_2501754_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: When was the 3rd season premiere originally aired? ### Context: CREATE TABLE table_299121_2 (season VARCHAR) ### Response: ### Response: SELECT season AS premiere FROM table_299121_2 WHERE season = "3rd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which builder has the the kanji of 曙? ### Context: CREATE TABLE table_name_98 (builder VARCHAR, kanji VARCHAR) ### Response: ### Response: SELECT builder FROM table_name_98 WHERE kanji = "曙"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the table is the team watford? ### Context: CREATE TABLE table_18784280_3 (position_in_table VARCHAR, team VARCHAR) ### Response: ### Response: SELECT position_in_table FROM table_18784280_3 WHERE team = "Watford"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 section has a level of Tier 3, is in the 6th position, and is in the 1937-38 season? ### Context: CREATE TABLE table_name_74 (section VARCHAR, season VARCHAR, level VARCHAR, position VARCHAR) ### Response: ### Response: SELECT section FROM table_name_74 WHERE level = "tier 3" AND position = "6th" AND season = "1937-38"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id. ### Context: CREATE TABLE Settlements (Claim_id VARCHAR); CREATE TABLE Claims (Amount_Claimed INTEGER); CREATE TABLE Claims (Date_Claim_Made VARCHAR, Claim_id VARCHAR, Amount_Claimed INTEGER) ### Response: ### Response: SELECT T1.Date_Claim_Made, T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING COUNT(*) > 2 UNION SELECT T1.Date_Claim_Made, T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id WHERE T1.Amount_Claimed = (SELECT MAX(Amount_Claimed) FROM Claims)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attended tie number 19? ### Context: CREATE TABLE table_name_76 (attendance INTEGER, tie_no VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_76 WHERE tie_no = 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: In which county is the swann covered bridge located? ### Context: CREATE TABLE table_name_4 (county VARCHAR, name VARCHAR) ### Response: ### Response: SELECT county FROM table_name_4 WHERE name = "swann covered bridge"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 currently affiliates in San Francisco - Oakland - San Jose? ### Context: CREATE TABLE table_1553485_1 (current_affiliation VARCHAR, city_of_license__market VARCHAR) ### Response: ### Response: SELECT current_affiliation FROM table_1553485_1 WHERE city_of_license__market = "San Francisco - Oakland - San Jose"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the year where Angela Stanford had a scoring average of 71.62, how many times did she take second place? ### Context: CREATE TABLE table_14836185_3 (scoring_average VARCHAR) ### Response: ### Response: SELECT COUNT(2 AS nd) FROM table_14836185_3 WHERE scoring_average = "71.62"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Video has a Channel of 25.3? ### Context: CREATE TABLE table_name_49 (video VARCHAR, channel VARCHAR) ### Response: ### Response: SELECT video FROM table_name_49 WHERE channel = 25.3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the box score when the home team is melbourne tigers? ### Context: CREATE TABLE table_name_3 (Box VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT Box AS score FROM table_name_3 WHERE home_team = "melbourne tigers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 silvers associated with 3 bronzes, a total over 6, and a rank of 3? ### Context: CREATE TABLE table_name_11 (silver VARCHAR, total VARCHAR, bronze VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(silver) FROM table_name_11 WHERE bronze = "3" AND rank = "3" AND total > 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the team's record when they played visitor team Chicago Black Hawks on November 24? ### Context: CREATE TABLE table_name_87 (record VARCHAR, visitor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_87 WHERE visitor = "chicago black hawks" AND date = "november 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: Return the cell phone number and email address for all students. ### Context: CREATE TABLE STUDENTS (cell_mobile_number VARCHAR, email_address VARCHAR) ### Response: ### Response: SELECT cell_mobile_number, email_address FROM STUDENTS</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's IATA is pen? ### Context: CREATE TABLE table_name_31 (airport VARCHAR, iata VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_31 WHERE iata = "pen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Bush with a 32.40% Bush % and a total less than 5,126? ### Context: CREATE TABLE table_name_87 (bush_number INTEGER, bush_percentage VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(bush_number) FROM table_name_87 WHERE bush_percentage = "32.40%" AND total < 5 OFFSET 126</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 margin in 2001 at the McDonald's LPGA Championship? ### Context: CREATE TABLE table_name_88 (margin VARCHAR, year VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT margin FROM table_name_88 WHERE year = 2001 AND championship = "mcdonald's lpga championship"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the Opponents in the final in the match with a Score in the final of 1–6, 6–3, 2–6? ### Context: CREATE TABLE table_name_22 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) ### Response: ### Response: SELECT opponents_in_the_final FROM table_name_22 WHERE score_in_the_final = "1–6, 6–3, 2–6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the wins for 1963 bultaco ### Context: CREATE TABLE table_name_15 (wins VARCHAR, year VARCHAR, team VARCHAR) ### Response: ### Response: SELECT wins FROM table_name_15 WHERE year = 1963 AND team = "bultaco"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What percent is the lead margin of 25 that Republican: Jeff Beatty has according to poll source Rasmussen Reports? ### Context: CREATE TABLE table_name_79 (republican VARCHAR, lead_margin VARCHAR, poll_source VARCHAR) ### Response: ### Response: SELECT republican AS :_jeff_beatty FROM table_name_79 WHERE lead_margin = 25 AND poll_source = "rasmussen reports"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Fastest Lap is James Winslow, when Race is 1, and when Winning Driver is Leanne Tander? ### Context: CREATE TABLE table_name_81 (date VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR, race VARCHAR) ### Response: ### Response: SELECT date FROM table_name_81 WHERE fastest_lap = "james winslow" AND race = 1 AND winning_driver = "leanne tander"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ER average for the player that conceded 368 runs? ### Context: CREATE TABLE table_15700367_6 (er VARCHAR, runs_conceded VARCHAR) ### Response: ### Response: SELECT er FROM table_15700367_6 WHERE runs_conceded = 368</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many episodes in the series are also episode 18 in the season? ### Context: CREATE TABLE table_23492454_1 (no_in_series VARCHAR, no_in_season VARCHAR) ### Response: ### Response: SELECT COUNT(no_in_series) FROM table_23492454_1 WHERE no_in_season = 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 number of people in attendance when the time is 3:00? ### Context: CREATE TABLE table_name_82 (attendance VARCHAR, time VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_82 WHERE time = "3:00"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total viewers that has 17.6% Share? ### Context: CREATE TABLE table_name_96 (total_viewers INTEGER, share VARCHAR) ### Response: ### Response: SELECT AVG(total_viewers) FROM table_name_96 WHERE share = "17.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: Find the number of people whose age is greater than all engineers. ### Context: CREATE TABLE Person (age INTEGER, job VARCHAR); CREATE TABLE person (age INTEGER, job VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Person WHERE age > (SELECT MAX(age) FROM person WHERE job = 'engineer')</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ids of the problems which are reported before 1978-06-26? ### Context: CREATE TABLE problems (problem_id VARCHAR, date_problem_reported INTEGER) ### Response: ### Response: SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-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: Who was the opponent on December 18, 2005? ### Context: CREATE TABLE table_name_80 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_80 WHERE date = "december 18, 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 is the college hall of fame of the player who plays fullback? ### Context: CREATE TABLE table_name_83 (college_hall_of_fame VARCHAR, position VARCHAR) ### Response: ### Response: SELECT college_hall_of_fame FROM table_name_83 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: What is the score on March 17? ### Context: CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_10 WHERE date = "march 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: Name the most bronze for silver more than 6 and total less than 127 with gold less than 11 ### Context: CREATE TABLE table_name_17 (bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(bronze) FROM table_name_17 WHERE silver > 6 AND total < 127 AND gold < 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the name or route for slope length being 336 ### Context: CREATE TABLE table_17814458_1 (name_or_route VARCHAR, slope_length VARCHAR) ### Response: ### Response: SELECT name_or_route FROM table_17814458_1 WHERE slope_length = 336</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name for desha ### Context: CREATE TABLE table_25794010_1 (name VARCHAR, county VARCHAR) ### Response: ### Response: SELECT name FROM table_25794010_1 WHERE county = "Desha"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the Hawks played? ### Context: CREATE TABLE table_name_24 (attendance VARCHAR, home VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_24 WHERE home = "hawks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 division was the Rampage in when they were in the 2nd round in the Open Cup? ### Context: CREATE TABLE table_name_39 (division VARCHAR, open_cup VARCHAR) ### Response: ### Response: SELECT division FROM table_name_39 WHERE open_cup = "2nd round"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick from the Purdue College? ### Context: CREATE TABLE table_name_90 (pick VARCHAR, college VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_90 WHERE college = "purdue"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 composition has an issue price of $99.00? ### Context: CREATE TABLE table_name_79 (composition VARCHAR, issue_price VARCHAR) ### Response: ### Response: SELECT composition FROM table_name_79 WHERE issue_price = "$99.00"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 work number of Snowdon Ranger with the builder Vulcan Foundry? ### Context: CREATE TABLE table_name_57 (works_number INTEGER, builder VARCHAR, name VARCHAR) ### Response: ### Response: SELECT AVG(works_number) FROM table_name_57 WHERE builder = "vulcan foundry" AND name = "snowdon ranger"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for fløysvik for 8 ### Context: CREATE TABLE table_28677723_14 (tor_fløysvik INTEGER, karianne_gulliksen VARCHAR) ### Response: ### Response: SELECT MAX(tor_fløysvik) FROM table_28677723_14 WHERE karianne_gulliksen = 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which athlete is from Mexico City? ### Context: CREATE TABLE table_1231316_7 (athlete VARCHAR, location VARCHAR) ### Response: ### Response: SELECT athlete FROM table_1231316_7 WHERE location = "Mexico City"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team when the tie no is 7? ### Context: CREATE TABLE table_name_7 (away_team VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_7 WHERE tie_no = "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 the score in the match against Kim Tiilikainen? ### Context: CREATE TABLE table_name_49 (score VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_49 WHERE opponent = "kim tiilikainen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Stromile Swift? ### Context: CREATE TABLE table_name_48 (nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_48 WHERE player = "stromile swift"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 their record on December 4? ### Context: CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_1 WHERE date = "december 4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many draws are for the club senghenydd rfc? ### Context: CREATE TABLE table_name_5 (drawn VARCHAR, club VARCHAR) ### Response: ### Response: SELECT drawn FROM table_name_5 WHERE club = "senghenydd rfc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Builder has a Pennant number of Q149? ### Context: CREATE TABLE table_name_63 (builder VARCHAR, pennant_number VARCHAR) ### Response: ### Response: SELECT builder FROM table_name_63 WHERE pennant_number = "q149"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the high rebounds when the score was w 105–95 (ot) and Jason Kidd (8) had the high assists? ### Context: CREATE TABLE table_name_57 (high_rebounds VARCHAR, high_assists VARCHAR, score VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_name_57 WHERE high_assists = "jason kidd (8)" AND score = "w 105–95 (ot)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Event, when Round is "10"? ### Context: CREATE TABLE table_name_62 (event VARCHAR, round VARCHAR) ### Response: ### Response: SELECT event FROM table_name_62 WHERE round = 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: Whatis the number of total goals maximum? ### Context: CREATE TABLE table_10240125_2 (total_goals INTEGER) ### Response: ### Response: SELECT MAX(total_goals) FROM table_10240125_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: Where did the team of Rahal Letterman in 2006 start? ### Context: CREATE TABLE table_name_53 (start VARCHAR, team VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(start) FROM table_name_53 WHERE team = "rahal letterman" AND year = 2006</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Total has Gold smaller than 12, and a Nation of hong kong (hkg)? ### Context: CREATE TABLE table_name_43 (total INTEGER, gold VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT MAX(total) FROM table_name_43 WHERE gold < 12 AND nation = "hong kong (hkg)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Picks have a Round larger than 2, and a Name of lawrence sidbury, and an Overall smaller than 125? ### Context: CREATE TABLE table_name_69 (pick__number VARCHAR, overall VARCHAR, round VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(pick__number) FROM table_name_69 WHERE round > 2 AND name = "lawrence sidbury" AND overall < 125</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 where u.s. viewers (million) is 12.90? ### Context: CREATE TABLE table_10701133_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_10701133_1 WHERE us_viewers__million_ = "12.90"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Away Captain at headingley? ### Context: CREATE TABLE table_name_66 (away_captain VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_captain FROM table_name_66 WHERE venue = "headingley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 greatest total score received by aylar & egor when karianne Gulliksen gave an 8? ### Context: CREATE TABLE table_28677723_16 (total INTEGER, couple VARCHAR, karianne_gulliksen VARCHAR) ### Response: ### Response: SELECT MAX(total) FROM table_28677723_16 WHERE couple = "Aylar & Egor" AND karianne_gulliksen = 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the year that the issue price (bu) is $26.95? ### Context: CREATE TABLE table_11916083_1 (year VARCHAR, issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR) ### Response: ### Response: SELECT year FROM table_11916083_1 WHERE issue_price__bu_[_clarification_needed_] = "$26.95"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the draft pick for Kansas City Chiefs? ### Context: CREATE TABLE table_2508633_9 (player VARCHAR, nfl_team VARCHAR) ### Response: ### Response: SELECT player FROM table_2508633_9 WHERE nfl_team = "Kansas City Chiefs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 won the Mixed Doubles in 2007? ### Context: CREATE TABLE table_name_49 (mixed_doubles VARCHAR, year VARCHAR) ### Response: ### Response: SELECT mixed_doubles FROM table_name_49 WHERE year = "2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is williow canyon of Roberta Lockhart? ### Context: CREATE TABLE table_11340432_1 (willow_canyon VARCHAR, dysart VARCHAR) ### Response: ### Response: SELECT willow_canyon FROM table_11340432_1 WHERE dysart = "Roberta Lockhart"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Declan Donnellan's nomination? ### Context: CREATE TABLE table_name_23 (result VARCHAR, nominee VARCHAR) ### Response: ### Response: SELECT result FROM table_name_23 WHERE nominee = "declan donnellan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winner of the race in monza? ### Context: CREATE TABLE table_name_89 (race VARCHAR, location VARCHAR) ### Response: ### Response: SELECT race AS Winner FROM table_name_89 WHERE location = "monza"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 complete description of the researcher role. ### Context: CREATE TABLE Staff_Roles (role_description VARCHAR, role_code VARCHAR) ### Response: ### Response: SELECT role_description FROM Staff_Roles WHERE role_code = 'researcher'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winner for genoa to livorno ### Context: CREATE TABLE table_name_39 (winner VARCHAR, course VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_39 WHERE course = "genoa to livorno"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pick has an Overall larger than 308, and a Position of rb? ### Context: CREATE TABLE table_name_21 (pick INTEGER, overall VARCHAR, position VARCHAR) ### Response: ### Response: SELECT MAX(pick) FROM table_name_21 WHERE overall > 308 AND position = "rb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 at valley parade on 10/6/01? ### Context: CREATE TABLE table_name_74 (score VARCHAR, venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_74 WHERE venue = "valley parade" AND date = "10/6/01"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 scientific name for veiled chameleon ### Context: CREATE TABLE table_175442_1 (scientific_name VARCHAR, common_name VARCHAR) ### Response: ### Response: SELECT scientific_name FROM table_175442_1 WHERE common_name = "Veiled chameleon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 actual title of the show that had an issue number less than 508, was written by Desmond Devlin, and for which Tom Richmond was the artist? ### Context: CREATE TABLE table_name_15 (actual_title VARCHAR, writer VARCHAR, artist VARCHAR, issue VARCHAR) ### Response: ### Response: SELECT actual_title FROM table_name_15 WHERE artist = "tom richmond" AND issue < 508 AND writer = "desmond devlin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Station Name of the Arrival Starting Station? ### Context: CREATE TABLE table_name_63 (station_name VARCHAR, arrival VARCHAR) ### Response: ### Response: SELECT station_name FROM table_name_63 WHERE arrival = "starting station"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Score, when Country is "United States", and when Player is "Mark Brooks"? ### Context: CREATE TABLE table_name_34 (score VARCHAR, country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_34 WHERE country = "united states" AND player = "mark brooks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 gold medals won by a team that won fewer than 2 silver and fewer than 4 bronze medals? ### Context: CREATE TABLE table_name_83 (gold INTEGER, silver VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT MAX(gold) FROM table_name_83 WHERE silver < 2 AND bronze < 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 location of the school established in 2013? ### Context: CREATE TABLE table_name_27 (location VARCHAR, established VARCHAR) ### Response: ### Response: SELECT location FROM table_name_27 WHERE established = 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: How many cast members had sydney walker as their fresh meat partner? ### Context: CREATE TABLE table_26419467_1 (hometown VARCHAR, fresh_meat_partner VARCHAR) ### Response: ### Response: SELECT COUNT(hometown) FROM table_26419467_1 WHERE fresh_meat_partner = "Sydney Walker"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 votes from the Labour Party? ### Context: CREATE TABLE table_name_23 (votes VARCHAR, party VARCHAR) ### Response: ### Response: SELECT COUNT(votes) FROM table_name_23 WHERE party = "labour"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What channel had the prize of €100,000? ### Context: CREATE TABLE table_14523485_9 (channel VARCHAR, top_prize VARCHAR) ### Response: ### Response: SELECT channel FROM table_14523485_9 WHERE top_prize = "€100,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is 18-49, when Weekly Winner is "Youth Counselor Justin Meece"? ### Context: CREATE TABLE table_name_45 (weekly_winner VARCHAR) ### Response: ### Response: SELECT 18 AS _49 FROM table_name_45 WHERE weekly_winner = "youth counselor justin meece"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 % identity to C7orf38 of the animal whose genus & species is Mus Musculus? ### Context: CREATE TABLE table_26957063_3 (_percentage_identity_to_c7orf38 INTEGER, genus_ VARCHAR, _species VARCHAR) ### Response: ### Response: SELECT MAX(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE genus_ & _species = "Mus musculus"</s>