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: how many times was nation counted where athlete is shuhei nishida category:articles with hcards ### Context: CREATE TABLE table_22355_50 (nation VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT COUNT(nation) FROM table_22355_50 WHERE athlete = "Shuhei Nishida Category:Articles with hCards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smallest city area? ### Context: CREATE TABLE table_18425346_2 (city_area_km_2__ INTEGER) ### Response: ### Response: SELECT MIN(city_area_km_2__) FROM table_18425346_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 date has new england patriots as the opponent? ### Context: CREATE TABLE table_name_26 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_26 WHERE opponent = "new england patriots"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Syracuse, when Buffalo is Oatka Creek Shale, and when Albany is Berne? ### Context: CREATE TABLE table_name_90 (syracuse VARCHAR, buffalo VARCHAR, albany VARCHAR) ### Response: ### Response: SELECT syracuse FROM table_name_90 WHERE buffalo = "oatka creek shale" AND albany = "berne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Weekly Rank for a Live Final Show has an Official Ratings (millions) greater than 5.2? ### Context: CREATE TABLE table_name_8 (weekly_rank VARCHAR, official_ratings__millions_ VARCHAR, show VARCHAR) ### Response: ### Response: SELECT weekly_rank FROM table_name_8 WHERE official_ratings__millions_ > 5.2 AND show = "live 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: When has a Record of 1-3? ### Context: CREATE TABLE table_name_7 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_7 WHERE record = "1-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's the rank when the col (m) is less than 33 and has a summit of Haleakalā? ### Context: CREATE TABLE table_name_80 (rank INTEGER, col__m_ VARCHAR, summit VARCHAR) ### Response: ### Response: SELECT SUM(rank) FROM table_name_80 WHERE col__m_ < 33 AND summit = "haleakalā"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Player, when Place is "T5", and when Score is "69-72=141"? ### Context: CREATE TABLE table_name_88 (player VARCHAR, place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_88 WHERE place = "t5" AND score = 69 - 72 = 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 nation has 2 bronze and a rank of 9? ### Context: CREATE TABLE table_name_54 (nation VARCHAR, bronze VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_54 WHERE bronze = 2 AND rank = 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: Who is the director of the game with HIroshi Sato as the producer on the GBA platform? ### Context: CREATE TABLE table_name_41 (director VARCHAR, producer VARCHAR, platform_s_ VARCHAR) ### Response: ### Response: SELECT director FROM table_name_41 WHERE producer = "hiroshi sato" AND platform_s_ = "gba"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the sum of yards for jason campbell and long less than 23 ### Context: CREATE TABLE table_name_29 (yards INTEGER, player VARCHAR, long VARCHAR) ### Response: ### Response: SELECT SUM(yards) FROM table_name_29 WHERE player = "jason campbell" AND long < 23</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the change number with fewer than 4.7% votes and more than 0 seats? ### Context: CREATE TABLE table_name_89 (change INTEGER, _percentage_votes VARCHAR, seats VARCHAR) ### Response: ### Response: SELECT SUM(change) FROM table_name_89 WHERE _percentage_votes < 4.7 AND seats > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Finalists that has 2008, 2012, 2013 as Not winning editions ### Context: CREATE TABLE table_name_88 (finalists VARCHAR, not_winning_editions VARCHAR) ### Response: ### Response: SELECT finalists FROM table_name_88 WHERE not_winning_editions = "2008, 2012, 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: What was the fewest number of viewers for the episode production number of 109 5-22? ### Context: CREATE TABLE table_name_54 (total_viewers__in_millions_ INTEGER, episode_number_production_number VARCHAR) ### Response: ### Response: SELECT MIN(total_viewers__in_millions_) FROM table_name_54 WHERE episode_number_production_number = "109 5-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: Who wrote episode 31 in the series? ### Context: CREATE TABLE table_21831229_3 (written_by VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT written_by FROM table_21831229_3 WHERE no_in_series = 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 the outcome of the match against Stacy Margolin? ### Context: CREATE TABLE table_name_79 (outcome VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_79 WHERE opponent = "stacy margolin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Car numbers have a Driver of erik darnell, and a Pos smaller than 2? ### Context: CREATE TABLE table_name_93 (car__number VARCHAR, driver VARCHAR, pos VARCHAR) ### Response: ### Response: SELECT COUNT(car__number) FROM table_name_93 WHERE driver = "erik darnell" AND pos < 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 pick number for the player Garry Lewis? ### Context: CREATE TABLE table_16376436_1 (pick__number INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(pick__number) FROM table_16376436_1 WHERE player = "Garry Lewis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 celebrity who was famous for being the ex busted member and TV presenter exited on day 19? ### Context: CREATE TABLE table_name_53 (celebrity VARCHAR, exited VARCHAR, famous_for VARCHAR) ### Response: ### Response: SELECT celebrity FROM table_name_53 WHERE exited = "day 19" AND famous_for = "ex busted member and tv presenter"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the German Grand Prix? ### Context: CREATE TABLE table_12186237_1 (date VARCHAR, grand_prix VARCHAR) ### Response: ### Response: SELECT date FROM table_12186237_1 WHERE grand_prix = "German grand_prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What genre was Music in the Air? ### Context: CREATE TABLE table_name_7 (genre VARCHAR, title VARCHAR) ### Response: ### Response: SELECT genre FROM table_name_7 WHERE title = "music in the air"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 district was the incumbent Steve Chabot? ### Context: CREATE TABLE table_1341395_36 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_1341395_36 WHERE incumbent = "Steve Chabot"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What block has a COSPAR ID of 1995-060a? ### Context: CREATE TABLE table_name_23 (block VARCHAR, cospar_id VARCHAR) ### Response: ### Response: SELECT block FROM table_name_23 WHERE cospar_id = "1995-060a"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many goals did the player from England who played the position of mf and had 170 club apps had? ### Context: CREATE TABLE table_name_8 (goals VARCHAR, club_apps VARCHAR, nationality VARCHAR, position VARCHAR) ### Response: ### Response: SELECT goals FROM table_name_8 WHERE nationality = "england" AND position = "mf" AND club_apps = "170"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the record of the @ miami team? ### Context: CREATE TABLE table_27734577_8 (record VARCHAR, team VARCHAR) ### Response: ### Response: SELECT record FROM table_27734577_8 WHERE team = "@ Miami"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 declination (j2000) that has a constellation of hydra and a right ascension (j2000) of 10h46m44.9s? ### Context: CREATE TABLE table_name_77 (declination___j2000__ VARCHAR, constellation VARCHAR, right_ascension___j2000__ VARCHAR) ### Response: ### Response: SELECT declination___j2000__ FROM table_name_77 WHERE constellation = "hydra" AND right_ascension___j2000__ = "10h46m44.9s"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What township is 28.597 square miles of land? ### Context: CREATE TABLE table_18600760_10 (township VARCHAR, land___sqmi__ VARCHAR) ### Response: ### Response: SELECT township FROM table_18600760_10 WHERE land___sqmi__ = "28.597"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Home Team is "Manchester United"? ### Context: CREATE TABLE table_name_50 (score VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_50 WHERE home_team = "manchester 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 is every entry in the QLD Cup Premierships when home ground is Dairy Farmers Stadium? ### Context: CREATE TABLE table_2383498_4 (qld_cup_premierships VARCHAR, home_ground VARCHAR) ### Response: ### Response: SELECT qld_cup_premierships FROM table_2383498_4 WHERE home_ground = "Dairy Farmers Stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where does Route 24 intersect? ### Context: CREATE TABLE table_10568553_1 (location VARCHAR, roads_intersected VARCHAR) ### Response: ### Response: SELECT location FROM table_10568553_1 WHERE roads_intersected = "Route 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: Who was the away team at the home game of north melbourne? ### Context: CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_63 WHERE home_team = "north 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 is the low attendance rate against buffalo bills? ### Context: CREATE TABLE table_name_98 (attendance INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_98 WHERE opponent = "buffalo bills"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 semi-final television commentator when the spokesperson was Colin Berry and the final television commentator was Pete Murray? ### Context: CREATE TABLE table_17766232_7 (semi_final_television_commentator VARCHAR, spokesperson VARCHAR, final_television_commentator VARCHAR) ### Response: ### Response: SELECT semi_final_television_commentator FROM table_17766232_7 WHERE spokesperson = "Colin Berry" AND final_television_commentator = "Pete Murray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 product types are there? ### Context: CREATE TABLE products_for_hire (product_type_code VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT product_type_code) FROM products_for_hire</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 T score when the E score was larger than 9.6 and the team was from Spain? ### Context: CREATE TABLE table_name_88 (t_score INTEGER, nation VARCHAR, e_score VARCHAR) ### Response: ### Response: SELECT AVG(t_score) FROM table_name_88 WHERE nation = "spain" AND e_score > 9.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: Tell me the result for harrogate ### Context: CREATE TABLE table_name_34 (result VARCHAR, location VARCHAR) ### Response: ### Response: SELECT result FROM table_name_34 WHERE location = "harrogate"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score when St Kilda played as the home team? ### Context: CREATE TABLE table_name_59 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_59 WHERE home_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: What is the average speed for filmar racing? ### Context: CREATE TABLE table_28178756_1 (average_speed__mph_ VARCHAR, team VARCHAR) ### Response: ### Response: SELECT average_speed__mph_ FROM table_28178756_1 WHERE team = "FILMAR Racing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year was the accolade for Scottish albums of the decade? ### Context: CREATE TABLE table_name_83 (year VARCHAR, accolade VARCHAR) ### Response: ### Response: SELECT year FROM table_name_83 WHERE accolade = "scottish albums of the decade"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 operator of the ensemble from Yorkshire? ### Context: CREATE TABLE table_name_89 (operator VARCHAR, region VARCHAR) ### Response: ### Response: SELECT operator FROM table_name_89 WHERE region = "yorkshire"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What venue was essendon the away team? ### Context: CREATE TABLE table_name_20 (venue VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_20 WHERE away_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 to par of player johnny miller, who has a t8 place? ### Context: CREATE TABLE table_name_18 (to_par VARCHAR, place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_18 WHERE place = "t8" AND player = "johnny miller"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the number of episode summary for jesse csincsak ### Context: CREATE TABLE table_2140071_10 (episode VARCHAR, coach VARCHAR) ### Response: ### Response: SELECT COUNT(episode) AS Summary FROM table_2140071_10 WHERE coach = "Jesse Csincsak"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 on Week 8? ### Context: CREATE TABLE table_name_50 (result VARCHAR, week VARCHAR) ### Response: ### Response: SELECT result FROM table_name_50 WHERE week = 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 are the points if the goals against were 260? ### Context: CREATE TABLE table_name_95 (points VARCHAR, goals_against VARCHAR) ### Response: ### Response: SELECT points FROM table_name_95 WHERE goals_against = "260"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in the gave versus the Brewers with a score of 9–6? ### Context: CREATE TABLE table_name_43 (attendance VARCHAR, opponent VARCHAR, score VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_43 WHERE opponent = "brewers" AND score = "9–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 first year that Mario Lemieux from Canada won playing center? ### Context: CREATE TABLE table_name_21 (year INTEGER, player VARCHAR, country VARCHAR, position VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_21 WHERE country = "canada" AND position = "center" AND player = "mario lemieux"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 UK Railway with an ObjectNumber of 1975-7023? ### Context: CREATE TABLE table_name_16 (railway VARCHAR, objectnumber VARCHAR) ### Response: ### Response: SELECT railway FROM table_name_16 WHERE objectnumber = "1975-7023"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2011 value that has a 2r in 2008 and a 4r in 2012? ### Context: CREATE TABLE table_name_62 (Id VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_62 WHERE 2008 = "2r" AND 2012 = "4r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home match against FK Rudar Ugljevik played? ### Context: CREATE TABLE table_29728596_1 (location VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT location FROM table_29728596_1 WHERE away_team = "FK Rudar Ugljevik"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Ties have Wins smaller than 1, and Games of 6, and Losses of 6, and a Season larger than 1941? ### Context: CREATE TABLE table_name_41 (ties VARCHAR, season VARCHAR, losses VARCHAR, wins VARCHAR, games VARCHAR) ### Response: ### Response: SELECT COUNT(ties) FROM table_name_41 WHERE wins < 1 AND games = 6 AND losses = 6 AND season > 1941</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 runs were scored when the strike rate was 101.42? ### Context: CREATE TABLE table_name_75 (runs VARCHAR, strike_rate VARCHAR) ### Response: ### Response: SELECT runs FROM table_name_75 WHERE strike_rate = "101.42"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 district that has Bob Wilson as an incumbent? ### Context: CREATE TABLE table_1341663_6 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_1341663_6 WHERE incumbent = "Bob Wilson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What teams drafted players that played for northwood school? ### Context: CREATE TABLE table_10960039_6 (cfl_team VARCHAR, college VARCHAR) ### Response: ### Response: SELECT cfl_team FROM table_10960039_6 WHERE college = "Northwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total rank for the lane before 2? ### Context: CREATE TABLE table_name_87 (rank INTEGER, lane INTEGER) ### Response: ### Response: SELECT SUM(rank) FROM table_name_87 WHERE lane < 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: List top 10 employee work longest in the company. List employee's first and last name. ### Context: CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR) ### Response: ### Response: SELECT first_name, last_name FROM employees ORDER BY hire_date LIMIT 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: Which website includes a webcast of listen live, a frequency under 1050, and is licensed in the city of Monterrey? ### Context: CREATE TABLE table_name_64 (website VARCHAR, frequency VARCHAR, city_of_license VARCHAR, webcast VARCHAR) ### Response: ### Response: SELECT website FROM table_name_64 WHERE city_of_license = "monterrey" AND webcast = "listen live" AND frequency < 1050</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What city of license/market has the channel of 41? ### Context: CREATE TABLE table_1847523_2 (city_of_license__market VARCHAR, channel___tv___rf__ VARCHAR) ### Response: ### Response: SELECT city_of_license__market FROM table_1847523_2 WHERE channel___tv___rf__ = "41"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 incumbents are there in the georgia 8 district when the party is democratic? ### Context: CREATE TABLE table_19753079_13 (incumbent VARCHAR, party VARCHAR, district VARCHAR) ### Response: ### Response: SELECT COUNT(incumbent) FROM table_19753079_13 WHERE party = "Democratic" AND district = "Georgia 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 School is the Center from? ### Context: CREATE TABLE table_name_97 (school VARCHAR, position VARCHAR) ### Response: ### Response: SELECT school FROM table_name_97 WHERE position = "center"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who wrote the episode that was directed by Dennie Gordon ### Context: CREATE TABLE table_15938543_1 (written_by VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT written_by FROM table_15938543_1 WHERE directed_by = "Dennie Gordon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 female Professors do we have? ### Context: CREATE TABLE Faculty (Sex VARCHAR, Rank VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Faculty WHERE Sex = 'F' AND Rank = "Professor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 running of marlene sanchez? ### Context: CREATE TABLE table_12407546_2 (running VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT running FROM table_12407546_2 WHERE athlete = "Marlene Sanchez"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tequila? ### Context: CREATE TABLE table_name_50 (director VARCHAR, title VARCHAR) ### Response: ### Response: SELECT director FROM table_name_50 WHERE title = "tequila"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 after game 20? ### Context: CREATE TABLE table_20010140_9 (record VARCHAR, game VARCHAR) ### Response: ### Response: SELECT record FROM table_20010140_9 WHERE game = 20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 percent for the coach from 1905 and more than 7 losses? ### Context: CREATE TABLE table_name_97 (pct INTEGER, years VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT AVG(pct) FROM table_name_97 WHERE years = "1905" AND lost > 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the loses total when there is less than 4 draws, less than 105 conceded goals, less than 38 goals scored, and the club is positioned greater than 2? ### Context: CREATE TABLE table_name_54 (loses INTEGER, goals_scored VARCHAR, position VARCHAR, draws VARCHAR, goals_conceded VARCHAR) ### Response: ### Response: SELECT SUM(loses) FROM table_name_54 WHERE draws < 4 AND goals_conceded < 105 AND position > 2 AND goals_scored < 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: Score of 2 - 2 had what points? ### Context: CREATE TABLE table_name_47 (points VARCHAR, score VARCHAR) ### Response: ### Response: SELECT points FROM table_name_47 WHERE score = "2 - 2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest amount of uefa champion leagues? ### Context: CREATE TABLE table_18254488_2 (uefa_champions_league INTEGER) ### Response: ### Response: SELECT MAX(uefa_champions_league) FROM table_18254488_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 average number of Tries with less than 28 Points for Mike Forshaw? ### Context: CREATE TABLE table_name_79 (tries INTEGER, player VARCHAR, points VARCHAR) ### Response: ### Response: SELECT AVG(tries) FROM table_name_79 WHERE player = "mike forshaw" AND points < 28</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in week 14? ### Context: CREATE TABLE table_name_77 (result VARCHAR, week VARCHAR) ### Response: ### Response: SELECT result FROM table_name_77 WHERE week = 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the First Pref Votes for the % FPv of 0.06? ### Context: CREATE TABLE table_name_23 (first_pref_votes VARCHAR, _percentage_fpv VARCHAR) ### Response: ### Response: SELECT first_pref_votes FROM table_name_23 WHERE _percentage_fpv = "0.06"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 parties are there? ### Context: CREATE TABLE party (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM party</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 percent of capital for the shareholder that has a s B share of 8256534? ### Context: CREATE TABLE table_206419_3 (percent_of_capital VARCHAR, s_b_share VARCHAR) ### Response: ### Response: SELECT percent_of_capital FROM table_206419_3 WHERE s_b_share = 8256534</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 id of instructors who taught a class in Fall 2009 but not in Spring 2010. ### Context: CREATE TABLE teaches (id VARCHAR, semester VARCHAR, YEAR VARCHAR) ### Response: ### Response: SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT id FROM teaches WHERE semester = 'Spring' AND YEAR = 2010</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tracking Method which has a Company of mapmyuser, llc? ### Context: CREATE TABLE table_name_24 (tracking_method VARCHAR, company VARCHAR) ### Response: ### Response: SELECT tracking_method FROM table_name_24 WHERE company = "mapmyuser, llc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the player with BBM 5/85? ### Context: CREATE TABLE table_27922491_8 (average VARCHAR, bbm VARCHAR) ### Response: ### Response: SELECT average FROM table_27922491_8 WHERE bbm = "5/85"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Alexey Kuleshov born? ### Context: CREATE TABLE table_19900792_1 (birth_date VARCHAR, player VARCHAR) ### Response: ### Response: SELECT birth_date FROM table_19900792_1 WHERE player = "Alexey Kuleshov"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendance for each game held at Foxboro Stadium? ### Context: CREATE TABLE table_name_48 (attendance VARCHAR, game_site VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_48 WHERE game_site = "foxboro stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the speaker is Munu Adhi (2) K. Rajaram, what is the election year maximum? ### Context: CREATE TABLE table_23512864_4 (election_year INTEGER, speaker VARCHAR) ### Response: ### Response: SELECT MAX(election_year) FROM table_23512864_4 WHERE speaker = "Munu Adhi (2) K. Rajaram"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 on December 17, with a H/A/N of H? ### Context: CREATE TABLE table_name_19 (score VARCHAR, h_a_n VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_19 WHERE h_a_n = "h" AND date = "december 17"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result in the Tennessee 6 district election? ### Context: CREATE TABLE table_1342270_42 (result VARCHAR, district VARCHAR) ### Response: ### Response: SELECT result FROM table_1342270_42 WHERE district = "Tennessee 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 did Geelong score as the away team? ### Context: CREATE TABLE table_name_91 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_91 WHERE away_team = "geelong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the prize for the elapsed time of 10 h 10 min? ### Context: CREATE TABLE table_22050544_1 (prize VARCHAR, elapsed_time VARCHAR) ### Response: ### Response: SELECT prize FROM table_22050544_1 WHERE elapsed_time = "10 h 10 min"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points were scored against the club that drew 3 and scored 50 points? ### Context: CREATE TABLE table_name_60 (points_against VARCHAR, drawn VARCHAR, points VARCHAR) ### Response: ### Response: SELECT points_against FROM table_name_60 WHERE drawn = "3" AND points = "50"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outgoing manager Zoltán Varga appointed? ### Context: CREATE TABLE table_name_77 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) ### Response: ### Response: SELECT date_of_appointment FROM table_name_77 WHERE outgoing_manager = "zoltán varga"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Verb meaning when part 1 is alan? ### Context: CREATE TABLE table_name_16 (verb_meaning VARCHAR, part_1 VARCHAR) ### Response: ### Response: SELECT verb_meaning FROM table_name_16 WHERE part_1 = "alan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What years did the player play when he scored 78 points and 22 goals? ### Context: CREATE TABLE table_name_56 (years VARCHAR, points VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT years FROM table_name_56 WHERE points = "78" AND goals = "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: Show the name of employees with three lowest salaries. ### Context: CREATE TABLE Employee (name VARCHAR, salary VARCHAR) ### Response: ### Response: SELECT name FROM Employee ORDER BY salary LIMIT 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 total heat number of sun yang, who has a lane less than 2? ### Context: CREATE TABLE table_name_37 (heat VARCHAR, name VARCHAR, lane VARCHAR) ### Response: ### Response: SELECT COUNT(heat) FROM table_name_37 WHERE name = "sun yang" AND lane < 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: Feature of gear stick involves which driving force gt? ### Context: CREATE TABLE table_name_34 (driving_force_gt VARCHAR, feature VARCHAR) ### Response: ### Response: SELECT driving_force_gt FROM table_name_34 WHERE feature = "gear stick"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for years prior to 2005? ### Context: CREATE TABLE table_name_83 (result VARCHAR, year INTEGER) ### Response: ### Response: SELECT result FROM table_name_83 WHERE year < 2005</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the average year during which the score was 270? ### Context: CREATE TABLE table_name_7 (year INTEGER, score VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_7 WHERE score = 270</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 route numbers occur for the origin of Birmingham and destination of Bristol? ### Context: CREATE TABLE table_3005999_1 (route_number VARCHAR, origin VARCHAR, destination VARCHAR) ### Response: ### Response: SELECT COUNT(route_number) FROM table_3005999_1 WHERE origin = "Birmingham" AND destination = "Bristol"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nominee was nominated in the Outstanding Director of a Musical category? ### Context: CREATE TABLE table_name_17 (nominee VARCHAR, category VARCHAR) ### Response: ### Response: SELECT nominee FROM table_name_17 WHERE category = "outstanding director of a musical"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date was the Record of 43–35? ### Context: CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_25 WHERE record = "43–35"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 League Goals have League Cup Goals smaller than 0? ### Context: CREATE TABLE table_name_43 (league_goals INTEGER, league_cup_goals INTEGER) ### Response: ### Response: SELECT SUM(league_goals) FROM table_name_43 WHERE league_cup_goals < 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 broadcast dates have a weekly rank of 73? ### Context: CREATE TABLE table_16072430_1 (air_date VARCHAR, weekly_rank VARCHAR) ### Response: ### Response: SELECT COUNT(air_date) FROM table_16072430_1 WHERE weekly_rank = "73"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Bronze smaller than 3, and a Total smaller than 2, and a Gold larger than 1 has how many average silvers? ### Context: CREATE TABLE table_name_83 (silver INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR) ### Response: ### Response: SELECT AVG(silver) FROM table_name_83 WHERE bronze < 3 AND total < 2 AND gold > 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: Who was the winner of the race at barbagallo raceway? ### Context: CREATE TABLE table_20884160_1 (winner VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT winner FROM table_20884160_1 WHERE circuit = "Barbagallo Raceway"</s>