inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What league was involved in 2010? ### Context: CREATE TABLE table_21602734_1 (league VARCHAR, year VARCHAR) ### Response: ### Response: SELECT league FROM table_21602734_1 WHERE 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: How much Avg/G has a Long of 51, and a Loss of 333, and a Gain larger than 2013? ### Context: CREATE TABLE table_name_51 (avg_g VARCHAR, gain VARCHAR, long VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT COUNT(avg_g) FROM table_name_51 WHERE long = 51 AND loss = 333 AND gain > 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 is the running time of the transmission on bbc four channels on 23 March 2008? ### Context: CREATE TABLE table_name_46 (Running VARCHAR, channel VARCHAR, date VARCHAR) ### Response: ### Response: SELECT Running AS time FROM table_name_46 WHERE channel = "bbc four" AND date = "23 march 2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is High Rebounds, when Game is greater than 33, and when Score is "W 132-101"? ### Context: CREATE TABLE table_name_44 (high_rebounds VARCHAR, game VARCHAR, score VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_name_44 WHERE game > 33 AND score = "w 132-101"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 After 1 year has an After 3 years of 80%? ### Context: CREATE TABLE table_name_40 (after_1_year VARCHAR, after_3_years VARCHAR) ### Response: ### Response: SELECT after_1_year FROM table_name_40 WHERE after_3_years = "80%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 directed by Peter Woeste? ### Context: CREATE TABLE table_15284274_1 (written_by VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT written_by FROM table_15284274_1 WHERE directed_by = "Peter Woeste"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the result on 30 june 1995? ### Context: CREATE TABLE table_name_2 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_2 WHERE date = "30 june 1995"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the type when McCormack is the name? ### Context: CREATE TABLE table_name_21 (type VARCHAR, name VARCHAR) ### Response: ### Response: SELECT type FROM table_name_21 WHERE name = "mccormack"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface did Katarina Srebotnik play Paola Suárez? ### Context: CREATE TABLE table_name_83 (surface VARCHAR, opponent_in_final VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_83 WHERE opponent_in_final = "paola suárez"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 innings does rank 3 have? ### Context: CREATE TABLE table_21100348_11 (innings INTEGER, rank VARCHAR) ### Response: ### Response: SELECT MAX(innings) FROM table_21100348_11 WHERE rank = 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 which player from Canada was picked #49 and plays left wing? ### Context: CREATE TABLE table_name_18 (player VARCHAR, pick__number VARCHAR, nationality VARCHAR, position VARCHAR) ### Response: ### Response: SELECT player FROM table_name_18 WHERE nationality = "canada" AND position = "left wing" AND pick__number = "49"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 year they finished 5th in santiago, chile? ### Context: CREATE TABLE table_name_57 (year INTEGER, position VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_57 WHERE position = "5th" AND venue = "santiago, chile"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game with richmond as Away team? ### Context: CREATE TABLE table_name_86 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_86 WHERE away_team = "richmond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponent has a Loss of báez (5-5)? ### Context: CREATE TABLE table_name_17 (opponent VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_17 WHERE loss = "báez (5-5)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Venue has a Notes of heptathlon, and a Year of 1991? ### Context: CREATE TABLE table_name_20 (venue VARCHAR, notes VARCHAR, year VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_20 WHERE notes = "heptathlon" AND year = 1991</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pronoun is the subject what is the episode title? ### Context: CREATE TABLE table_191105_2 (episode_title VARCHAR, subject VARCHAR) ### Response: ### Response: SELECT episode_title FROM table_191105_2 WHERE subject = "pronoun"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 republican, re-elected incumbent John all barham elected? ### Context: CREATE TABLE table_name_92 (elected VARCHAR, incumbent VARCHAR, party VARCHAR, status VARCHAR) ### Response: ### Response: SELECT elected FROM table_name_92 WHERE party = "republican" AND status = "re-elected" AND incumbent = "john all barham"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 package/option in Italy when the content is religione? ### Context: CREATE TABLE table_name_68 (package_option VARCHAR, content VARCHAR, country VARCHAR) ### Response: ### Response: SELECT package_option FROM table_name_68 WHERE content = "religione" AND country = "italy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Birth of the CB Player with a Height of m (ft 4in)? ### Context: CREATE TABLE table_name_61 (date_of_birth VARCHAR, pos VARCHAR, height VARCHAR) ### Response: ### Response: SELECT date_of_birth FROM table_name_61 WHERE pos = "cb" AND height = "m (ft 4in)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title of the episode with the production code 624? ### Context: CREATE TABLE table_11630008_8 (title VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT title FROM table_11630008_8 WHERE production_code = 624</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tier is for football at Tianhe Stadium? ### Context: CREATE TABLE table_name_62 (tier VARCHAR, sport VARCHAR, stadium VARCHAR) ### Response: ### Response: SELECT tier FROM table_name_62 WHERE sport = "football" AND stadium = "tianhe 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: What is the prize for the tournament at Ibaraki? ### Context: CREATE TABLE table_26144632_1 (prize_fund___¥__ VARCHAR, location VARCHAR) ### Response: ### Response: SELECT prize_fund___¥__ FROM table_26144632_1 WHERE location = "Ibaraki"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Rank larger than 3 with a speed of 119.838mph? ### Context: CREATE TABLE table_name_12 (rider VARCHAR, rank VARCHAR, speed VARCHAR) ### Response: ### Response: SELECT rider FROM table_name_12 WHERE rank > 3 AND speed = "119.838mph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bulgarian for jullie hadden gehoord ### Context: CREATE TABLE table_1841901_1 (bulgarian VARCHAR, dutch VARCHAR) ### Response: ### Response: SELECT bulgarian FROM table_1841901_1 WHERE dutch = "jullie hadden gehoord"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 vacancy when the position in table is 10th and the team is balboa? ### Context: CREATE TABLE table_name_70 (date_of_vacancy VARCHAR, position_in_table VARCHAR, team VARCHAR) ### Response: ### Response: SELECT date_of_vacancy FROM table_name_70 WHERE position_in_table = "10th" AND team = "balboa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all product colors. ### Context: CREATE TABLE Products (product_color VARCHAR) ### Response: ### Response: SELECT DISTINCT product_color FROM Products</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 home town of David Noel? ### Context: CREATE TABLE table_20785990_2 (home_town VARCHAR, name VARCHAR) ### Response: ### Response: SELECT home_town FROM table_20785990_2 WHERE name = "David Noel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the last match that had a sacked manner of departure and a geninho outgoing manner? ### Context: CREATE TABLE table_name_8 (last_match VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR) ### Response: ### Response: SELECT last_match FROM table_name_8 WHERE manner_of_departure = "sacked" AND outgoing_manager = "geninho"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 conducted the poll with sample size of 2000 that shows 18% undecided? ### Context: CREATE TABLE table_20683381_2 (conductor VARCHAR, undecided VARCHAR, sample_size VARCHAR) ### Response: ### Response: SELECT conductor FROM table_20683381_2 WHERE undecided = "18%" AND sample_size = 2000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: At what stadium was the game with the final score of 26-24 played? ### Context: CREATE TABLE table_name_29 (stadium VARCHAR, final_score VARCHAR) ### Response: ### Response: SELECT stadium FROM table_name_29 WHERE final_score = "26-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: Which staff handled least number of payments? List the full name and the id. ### Context: CREATE TABLE payment (staff_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR) ### Response: ### Response: SELECT T1.first_name, T1.last_name, T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY COUNT(*) LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What home has February 10 as the date? ### Context: CREATE TABLE table_name_67 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_67 WHERE date = "february 10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many people were from portland, or? ### Context: CREATE TABLE table_26419467_1 (age VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT COUNT(age) FROM table_26419467_1 WHERE hometown = "Portland, OR"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 found in the Built column of the locomotive with 0-4-0 wheels that is still in service? ### Context: CREATE TABLE table_name_8 (built VARCHAR, wheels VARCHAR, status VARCHAR) ### Response: ### Response: SELECT built FROM table_name_8 WHERE wheels = "0-4-0" AND status = "in service"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 figures are given for the New Democratic for the polling range May 11–31, 2010? ### Context: CREATE TABLE table_24778847_2 (new_democratic VARCHAR, date_of_polling VARCHAR) ### Response: ### Response: SELECT COUNT(new_democratic) FROM table_24778847_2 WHERE date_of_polling = "May 11–31, 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: What was the amount of winners share (in $) in the game with a margin victory of 2 strokes? ### Context: CREATE TABLE table_1940012_2 (winners_share___$__ VARCHAR, margin_of_victory VARCHAR) ### Response: ### Response: SELECT winners_share___$__ FROM table_1940012_2 WHERE margin_of_victory = "2 strokes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the President of the team that has the Head Coach Mark Wakeling? ### Context: CREATE TABLE table_name_37 (president VARCHAR, head_coach VARCHAR) ### Response: ### Response: SELECT president FROM table_name_37 WHERE head_coach = "mark wakeling"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 author for company Buzz Productions Theater? ### Context: CREATE TABLE table_name_18 (author VARCHAR, company VARCHAR) ### Response: ### Response: SELECT author FROM table_name_18 WHERE company = "buzz productions theater"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Gold has a Nation of india, and a Bronze smaller than 0? ### Context: CREATE TABLE table_name_84 (gold INTEGER, nation VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT AVG(gold) FROM table_name_84 WHERE nation = "india" AND bronze < 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 Player that has a To standard of –1, and a Score of 71-68-76=215? ### Context: CREATE TABLE table_name_60 (player VARCHAR, to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_60 WHERE to_par = "–1" AND score = 71 - 68 - 76 = 215</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 countries that have greater surface area than any country in Europe? ### Context: CREATE TABLE country (Name VARCHAR, SurfaceArea INTEGER, Continent VARCHAR) ### Response: ### Response: SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = "Europe")</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many addresses have zip code 197? ### Context: CREATE TABLE ADDRESSES (zip_postcode VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM ADDRESSES WHERE zip_postcode = "197"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which home has a Date of november 7? ### Context: CREATE TABLE table_name_16 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_16 WHERE date = "november 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: How many points did the bills score when their opponent had 14 ### Context: CREATE TABLE table_16028459_2 (bills_points VARCHAR, opponents VARCHAR) ### Response: ### Response: SELECT bills_points FROM table_16028459_2 WHERE opponents = 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 the representing for englar alheimsins ### Context: CREATE TABLE table_name_35 (representing VARCHAR, original_title VARCHAR) ### Response: ### Response: SELECT representing FROM table_name_35 WHERE original_title = "englar alheimsins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 skip has Zrinka Muhek as Second? ### Context: CREATE TABLE table_name_90 (skip VARCHAR, second VARCHAR) ### Response: ### Response: SELECT skip FROM table_name_90 WHERE second = "zrinka muhek"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 lane with Netherlands Antilles Nationality? ### Context: CREATE TABLE table_name_37 (lane INTEGER, nationality VARCHAR) ### Response: ### Response: SELECT AVG(lane) FROM table_name_37 WHERE nationality = "netherlands antilles"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the population in стари жедник (croatian: stari žednik)? ### Context: CREATE TABLE table_2562572_26 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR) ### Response: ### Response: SELECT population__2011_ FROM table_2562572_26 WHERE cyrillic_name_other_names = "Стари Жедник (Croatian: Stari Žednik)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of a building in Courbevoie built before 1973? ### Context: CREATE TABLE table_name_96 (name VARCHAR, year_built VARCHAR, city VARCHAR) ### Response: ### Response: SELECT name FROM table_name_96 WHERE year_built < 1973 AND city = "courbevoie"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Games Played for Bo Oshoniyi, who had more than 1170 minutes and 10 loses? ### Context: CREATE TABLE table_name_5 (games_played INTEGER, minutes VARCHAR, loses VARCHAR, player VARCHAR) ### Response: ### Response: SELECT AVG(games_played) FROM table_name_5 WHERE loses = 10 AND player = "bo oshoniyi" AND minutes > 1170</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What championship after 1997 was the score 1–6, 4–6, 7–5, 5–7? ### Context: CREATE TABLE table_name_3 (championship VARCHAR, year VARCHAR, score VARCHAR) ### Response: ### Response: SELECT championship FROM table_name_3 WHERE year > 1997 AND score = "1–6, 4–6, 7–5, 5–7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of rounds of the end player with a pick number greater than 303? ### Context: CREATE TABLE table_name_21 (round VARCHAR, pick VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_21 WHERE pick > 303 AND position = "end"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Rotterterrode has a Reimboldsh 80? ### Context: CREATE TABLE table_name_31 (rotterterode VARCHAR, reimboldsh VARCHAR) ### Response: ### Response: SELECT rotterterode FROM table_name_31 WHERE reimboldsh = "80"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points did lech piasecki, stephen roche, and carrera jeans-vagabond have? ### Context: CREATE TABLE table_name_55 (points_classification VARCHAR, winner VARCHAR, young_rider_classification VARCHAR, general_classification VARCHAR) ### Response: ### Response: SELECT points_classification FROM table_name_55 WHERE young_rider_classification = "lech piasecki" AND general_classification = "stephen roche" AND winner = "carrera jeans-vagabond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 vcore for multi 11x ### Context: CREATE TABLE table_27277284_8 (v_core VARCHAR, mult_1 VARCHAR) ### Response: ### Response: SELECT v_core FROM table_27277284_8 WHERE mult_1 = "11x"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Transfer window, when the Transfer fee is "free", and when the Name is Dugdale? ### Context: CREATE TABLE table_name_86 (transfer_window VARCHAR, transfer_fee VARCHAR, name VARCHAR) ### Response: ### Response: SELECT transfer_window FROM table_name_86 WHERE transfer_fee = "free" AND name = "dugdale"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number of league cups with 4 championships? ### Context: CREATE TABLE table_name_9 (league_cup INTEGER, championship VARCHAR) ### Response: ### Response: SELECT MIN(league_cup) FROM table_name_9 WHERE championship = 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 total number of losses for a draw of 7, and 1 points less than 33? ### Context: CREATE TABLE table_name_21 (lost VARCHAR, drawn VARCHAR, points_1 VARCHAR) ### Response: ### Response: SELECT COUNT(lost) FROM table_name_21 WHERE drawn = 7 AND points_1 < 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: Who is the player who won in 1994? ### Context: CREATE TABLE table_name_91 (player VARCHAR, year_s__won VARCHAR) ### Response: ### Response: SELECT player FROM table_name_91 WHERE year_s__won = "1994"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many total dismissals did the player for Guyana have? ### Context: CREATE TABLE table_27771406_1 (total_dismissals INTEGER, club VARCHAR) ### Response: ### Response: SELECT MAX(total_dismissals) FROM table_27771406_1 WHERE club = "Guyana"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the away team was Collingwood? ### Context: CREATE TABLE table_name_56 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_56 WHERE away_team = "collingwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who played in Maryland the same year that New Jersey hosted Somerset Hills LL Bernardsville? ### Context: CREATE TABLE table_13012165_1 (maryland VARCHAR, new_jersey VARCHAR) ### Response: ### Response: SELECT maryland FROM table_13012165_1 WHERE new_jersey = "Somerset Hills LL Bernardsville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Place is "T1"? ### Context: CREATE TABLE table_name_15 (score VARCHAR, place VARCHAR) ### Response: ### Response: SELECT score FROM table_name_15 WHERE place = "t1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What opponent has l 27-7 as the result? ### Context: CREATE TABLE table_name_83 (opponent VARCHAR, result VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_83 WHERE result = "l 27-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: When classic hits 102.1 cjcy is the branding who is the owner? ### Context: CREATE TABLE table_18536769_1 (owner VARCHAR, branding VARCHAR) ### Response: ### Response: SELECT owner FROM table_18536769_1 WHERE branding = "Classic Hits 102.1 CJCY"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Time when the Epicenter was Bam? ### Context: CREATE TABLE table_name_94 (time VARCHAR, epicenter VARCHAR) ### Response: ### Response: SELECT time FROM table_name_94 WHERE epicenter = "bam"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which ICAO has a Commenced operations larger than 2011? ### Context: CREATE TABLE table_name_72 (icao VARCHAR, commenced_operations INTEGER) ### Response: ### Response: SELECT icao FROM table_name_72 WHERE commenced_operations > 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 were all the salary values of players in 2010 and 2001? ### Context: CREATE TABLE salary (salary VARCHAR, YEAR VARCHAR) ### Response: ### Response: SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 examples are pronounced et in australian ### Context: CREATE TABLE table_17798093_20 (examples VARCHAR, australian VARCHAR) ### Response: ### Response: SELECT examples FROM table_17798093_20 WHERE australian = "et"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which state is the location of 39.1178°n 106.4454°w in? ### Context: CREATE TABLE table_name_55 (state VARCHAR, location VARCHAR) ### Response: ### Response: SELECT state FROM table_name_55 WHERE location = "39.1178°n 106.4454°w"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result for goal # more than 4 ### Context: CREATE TABLE table_name_92 (result VARCHAR, goal__number INTEGER) ### Response: ### Response: SELECT result FROM table_name_92 WHERE goal__number > 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 average Total for the Rank of 6, when Silver is smaller than 0? ### Context: CREATE TABLE table_name_36 (total INTEGER, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_36 WHERE rank = 6 AND silver < 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: Which Physical property has a Helium of 0.0693? ### Context: CREATE TABLE table_name_13 (physical_property VARCHAR, helium VARCHAR) ### Response: ### Response: SELECT physical_property FROM table_name_13 WHERE helium = "0.0693"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 range for the Gloucester RCW builder introduced in 1937? ### Context: CREATE TABLE table_name_84 (number_range VARCHAR, builder VARCHAR, introduced VARCHAR) ### Response: ### Response: SELECT number_range FROM table_name_84 WHERE builder = "gloucester rcw" AND introduced = "1937"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 446004 is the production code who are the writers? ### Context: CREATE TABLE table_2409041_2 (written_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT written_by FROM table_2409041_2 WHERE production_code = 446004</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List all payment methods and number of payments using each payment methods. ### Context: CREATE TABLE Customer_Payments (payment_method_code VARCHAR) ### Response: ### Response: SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 lane value for a mark of 2:02.27 NR, with heats under 2? ### Context: CREATE TABLE table_name_82 (lane INTEGER, mark VARCHAR, heat VARCHAR) ### Response: ### Response: SELECT MAX(lane) FROM table_name_82 WHERE mark = "2:02.27 nr" AND heat < 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 grid number for troy corser with under 22 laps? ### Context: CREATE TABLE table_name_48 (grid INTEGER, rider VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT SUM(grid) FROM table_name_48 WHERE rider = "troy corser" AND laps < 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: Which letter has an operator of VeriSign and an AS-number of AS26415? ### Context: CREATE TABLE table_name_45 (letter VARCHAR, operator VARCHAR, as_number VARCHAR) ### Response: ### Response: SELECT letter FROM table_name_45 WHERE operator = "verisign" AND as_number = "as26415"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 category 1 is 0.05, what is category 3? ### Context: CREATE TABLE table_name_77 (category_3 VARCHAR, category_1 VARCHAR) ### Response: ### Response: SELECT category_3 FROM table_name_77 WHERE category_1 = 0.05</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What percentage did Walker win in Calumet county? ### Context: CREATE TABLE table_21046399_3 (walker__percentage VARCHAR, county VARCHAR) ### Response: ### Response: SELECT walker__percentage FROM table_21046399_3 WHERE county = "Calumet"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 venue with a competition in 1964? ### Context: CREATE TABLE table_name_15 (venue VARCHAR, year VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_15 WHERE year = 1964</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result of the game that was attended by 16,000 people? ### Context: CREATE TABLE table_name_47 (result VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result FROM table_name_47 WHERE attendance = "16,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 the listing for the US Open in 1977? ### Context: CREATE TABLE table_name_12 (tournament VARCHAR) ### Response: ### Response: SELECT 1977 FROM table_name_12 WHERE tournament = "us open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which date has a Clock of 0.8-1.6ghz? ### Context: CREATE TABLE table_name_61 (date VARCHAR, clock VARCHAR) ### Response: ### Response: SELECT date FROM table_name_61 WHERE clock = "0.8-1.6ghz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Description has a Year of Issue of 1983, and a Thickness of 1.7mm, and a Weight of 3.50grams? ### Context: CREATE TABLE table_name_8 (description VARCHAR, weight VARCHAR, year_of_issue VARCHAR, thickness VARCHAR) ### Response: ### Response: SELECT description FROM table_name_8 WHERE year_of_issue = 1983 AND thickness = "1.7mm" AND weight = "3.50grams"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What competition had more than 40 assists? ### Context: CREATE TABLE table_name_19 (competition VARCHAR, assists INTEGER) ### Response: ### Response: SELECT competition FROM table_name_19 WHERE assists > 40</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fastest lap in the race won by Team Impul at the Twin Ring Motegi circuit? ### Context: CREATE TABLE table_16670746_2 (fastest_lap VARCHAR, winning_team VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = "Team Impul" AND circuit = "Twin Ring Motegi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many wins were listed when he had 112 points? ### Context: CREATE TABLE table_24998088_1 (wins VARCHAR, points VARCHAR) ### Response: ### Response: SELECT wins FROM table_24998088_1 WHERE points = "112"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 who played for the Rockets for the years 1986-92? ### Context: CREATE TABLE table_11734041_9 (player VARCHAR, years_for_rockets VARCHAR) ### Response: ### Response: SELECT player FROM table_11734041_9 WHERE years_for_rockets = "1986-92"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average quantity, when DRG number is 99 011? ### Context: CREATE TABLE table_name_85 (quantity INTEGER, drg_number_s_ VARCHAR) ### Response: ### Response: SELECT AVG(quantity) FROM table_name_85 WHERE drg_number_s_ = "99 011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What platform has a year of 2007? ### Context: CREATE TABLE table_name_8 (platform_s_ VARCHAR, year VARCHAR) ### Response: ### Response: SELECT platform_s_ FROM table_name_8 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's the operational period with camp  sajmište ### Context: CREATE TABLE table_10335_1 (operational VARCHAR, camp VARCHAR) ### Response: ### Response: SELECT operational FROM table_10335_1 WHERE camp = "Sajmište"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 English has Dutch of tong? ### Context: CREATE TABLE table_name_26 (english VARCHAR, dutch VARCHAR) ### Response: ### Response: SELECT english FROM table_name_26 WHERE dutch = "tong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team(s) played in the 1995-96 season? ### Context: CREATE TABLE table_name_46 (teams VARCHAR, season VARCHAR) ### Response: ### Response: SELECT teams FROM table_name_46 WHERE season = "1995-96"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 venue when the score is 20½–11½? ### Context: CREATE TABLE table_name_64 (venue VARCHAR, score VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_64 WHERE score = "20½–11½"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9? ### Context: CREATE TABLE table_name_41 (total_apps INTEGER, fa_cup_apps VARCHAR, total_goals VARCHAR) ### Response: ### Response: SELECT MAX(total_apps) FROM table_name_41 WHERE fa_cup_apps = 26 AND total_goals > 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: What's the sales breakdown of the Nintendo game released on May 15, 2006? ### Context: CREATE TABLE table_21458142_1 (sales_breakdown VARCHAR, publisher VARCHAR, release_date VARCHAR) ### Response: ### Response: SELECT sales_breakdown FROM table_21458142_1 WHERE publisher = "Nintendo" AND release_date = "May 15, 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: What is the score of the Boston Bruins game from April 11? ### Context: CREATE TABLE table_name_39 (score VARCHAR, home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_39 WHERE home = "boston bruins" AND date = "april 11"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the highest In/de-creased which has a Percentage in/de-crease of 100%, and Seats 2010 larger than 8? ### Context: CREATE TABLE table_name_34 (in_de_creased_by INTEGER, percentage_in_de_crease VARCHAR, seats_2010 VARCHAR) ### Response: ### Response: SELECT MAX(in_de_creased_by) FROM table_name_34 WHERE percentage_in_de_crease = "100%" AND seats_2010 > 8</s>