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: Who wrote episode 74? ### Context: CREATE TABLE table_1876825_5 (written_by VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT written_by FROM table_1876825_5 WHERE no_in_series = 74</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date for 6-2 record ### Context: CREATE TABLE table_21094951_1 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_21094951_1 WHERE record = "6-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 name for the red list of 7, the artiodactyla order, and Species Authority of cervus elaphus linnaeus, 1758? ### Context: CREATE TABLE table_name_4 (name VARCHAR, species_authority VARCHAR, red_list VARCHAR, order VARCHAR) ### Response: ### Response: SELECT name FROM table_name_4 WHERE red_list = 7 AND order = "artiodactyla" AND species_authority = "cervus elaphus linnaeus, 1758"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 winning score for the tournament with runner-up Rory Sabbatini? ### Context: CREATE TABLE table_1602858_1 (winning_score VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT winning_score FROM table_1602858_1 WHERE runner_s__up = "Rory Sabbatini"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what was the week for the match on a hard surface at Indian Wells tournament? ### Context: CREATE TABLE table_name_88 (week VARCHAR, surface VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT week FROM table_name_88 WHERE surface = "hard" AND tournament = "indian wells"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Ground with a Date that is 2008-06-20? ### Context: CREATE TABLE table_name_42 (ground VARCHAR, date VARCHAR) ### Response: ### Response: SELECT ground FROM table_name_42 WHERE date = "2008-06-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: Who won third place in the Zurich Tournament? ### Context: CREATE TABLE table_name_34 (third_place VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT third_place FROM table_name_34 WHERE tournament = "zurich"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the game on 1990-11-18? ### Context: CREATE TABLE table_name_26 (game_site VARCHAR, date VARCHAR) ### Response: ### Response: SELECT game_site FROM table_name_26 WHERE date = "1990-11-18"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date administered from a source of Rasmussen Reports and a lead margin over 32? ### Context: CREATE TABLE table_name_19 (dates_administered VARCHAR, poll_source VARCHAR, lead_margin VARCHAR) ### Response: ### Response: SELECT dates_administered FROM table_name_19 WHERE poll_source = "rasmussen reports" AND lead_margin > 32</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 vacator for kentucky 2nd ### Context: CREATE TABLE table_2417330_4 (vacator VARCHAR, district VARCHAR) ### Response: ### Response: SELECT vacator FROM table_2417330_4 WHERE district = "Kentucky 2nd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 employees does each role have? List role description, id and number of employees. ### Context: CREATE TABLE ROLES (role_description VARCHAR, role_code VARCHAR); CREATE TABLE Employees (role_code VARCHAR) ### Response: ### Response: SELECT T1.role_description, T2.role_code, COUNT(*) FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_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 home team's score when the venue is princes park? ### Context: CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_16 WHERE venue = "princes park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who did they play when dickey (0-1) recorded the loss? ### Context: CREATE TABLE table_name_83 (opponent VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_83 WHERE loss = "dickey (0-1)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the year for womens doubles being raina tzvetkova emilia dimitrova ### Context: CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR) ### Response: ### Response: SELECT year FROM table_14903491_1 WHERE womens_doubles = "Raina Tzvetkova Emilia Dimitrova"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 published Star Citizen in 2014? ### Context: CREATE TABLE table_name_17 (publisher VARCHAR, year VARCHAR, title VARCHAR) ### Response: ### Response: SELECT publisher FROM table_name_17 WHERE year = "2014" AND title = "star citizen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Current status of Callander Coal company grey? ### Context: CREATE TABLE table_name_70 (current_status VARCHAR, livery VARCHAR) ### Response: ### Response: SELECT current_status FROM table_name_70 WHERE livery = "callander coal company grey"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high rebounds for american airlines center ### Context: CREATE TABLE table_22879323_9 (high_rebounds VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_22879323_9 WHERE location_attendance = "American Airlines 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 are the outgoing head coaches whose manner of departure is Gardening Leave 1? ### Context: CREATE TABLE table_29171931_3 (outgoing_head_coach VARCHAR, manner_of_departure VARCHAR) ### Response: ### Response: SELECT outgoing_head_coach FROM table_29171931_3 WHERE manner_of_departure = "Gardening leave 1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the sum of roll for morrinsville school ### Context: CREATE TABLE table_name_65 (roll INTEGER, name VARCHAR) ### Response: ### Response: SELECT SUM(roll) FROM table_name_65 WHERE name = "morrinsville school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 author/editor/source when the l.a. ranking was 1st? ### Context: CREATE TABLE table_19948664_2 (author___editor___source VARCHAR, ranking_la__2_ VARCHAR) ### Response: ### Response: SELECT author___editor___source FROM table_19948664_2 WHERE ranking_la__2_ = "1st"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Televote Points had a Final Points score of 2? ### Context: CREATE TABLE table_name_43 (televote_points VARCHAR, final_points VARCHAR) ### Response: ### Response: SELECT televote_points FROM table_name_43 WHERE final_points = "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 U.S. Hot 100 chart number of the single off of the 2002 album west coast bad boyz, vol. 3: poppin' collars? ### Context: CREATE TABLE table_name_29 (us_hot_100 VARCHAR, year VARCHAR, album VARCHAR) ### Response: ### Response: SELECT us_hot_100 FROM table_name_29 WHERE year = 2002 AND album = "west coast bad boyz, vol. 3: poppin' collars"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructed the car that Derek Warwick raced in with a TG181 chassis? ### Context: CREATE TABLE table_name_20 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_20 WHERE chassis = "tg181" AND driver = "derek warwick"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which builder has a Built smaller than 1880? ### Context: CREATE TABLE table_name_8 (builder VARCHAR, built INTEGER) ### Response: ### Response: SELECT builder FROM table_name_8 WHERE built < 1880</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 undisclosed when Aldertown is Aldershot Town and Wycombe Wanderers is Oxford United? ### Context: CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR) ### Response: ### Response: SELECT undisclosed FROM table_23835213_2 WHERE "aldershot_town" = "aldershot_town" AND wycombe_wanderers = "Oxford 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: Name the total number of democratic votes when the other votes are less than 18 and the percentage of R votes are 52.63% and votes since 1856 less than 38 ### Context: CREATE TABLE table_name_21 (democratic_votes VARCHAR, other_votes VARCHAR, _percentage_of_r_votes VARCHAR) ### Response: ### Response: SELECT COUNT(democratic_votes) FROM table_name_21 WHERE other_votes < 18 AND _percentage_of_r_votes = "52.63% ANd_votes_since_1856 < 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: What is the Opponent of the game with a Score of 74-66? ### Context: CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_82 WHERE score = "74-66"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 winning score when 5 strokes is the margin of victory? ### Context: CREATE TABLE table_2167226_3 (winning_score VARCHAR, margin_of_victory VARCHAR) ### Response: ### Response: SELECT winning_score FROM table_2167226_3 WHERE margin_of_victory = "5 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: Which Particle has a Rest mass MeV/c 2 of 1192.642(24)? ### Context: CREATE TABLE table_name_61 (particle VARCHAR, rest_mass_mev___c_2 VARCHAR) ### Response: ### Response: SELECT particle FROM table_name_61 WHERE rest_mass_mev___c_2 = "1192.642(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 is number 4 when Harper is number 10 and Abigail is number 5? ### Context: CREATE TABLE table_name_24 (no_4 VARCHAR, no_10 VARCHAR, no_5 VARCHAR) ### Response: ### Response: SELECT no_4 FROM table_name_24 WHERE no_10 = "harper" AND no_5 = "abigail"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points is 15, what is the fin. pos? ### Context: CREATE TABLE table_17330069_1 (fin_pos VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(fin_pos) FROM table_17330069_1 WHERE points = "15"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the location for the an-12b aircraft? ### Context: CREATE TABLE table_name_50 (location VARCHAR, aircraft VARCHAR) ### Response: ### Response: SELECT location FROM table_name_50 WHERE aircraft = "an-12b"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 settlements were made on the claim with the most recent claim settlement date? List the number and the claim id. ### Context: CREATE TABLE Settlements (claim_id VARCHAR); CREATE TABLE Claims (claim_id VARCHAR, Date_Claim_Settled VARCHAR) ### Response: ### Response: SELECT COUNT(*), T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was the kickoff during a game with a record of 1-7? ### Context: CREATE TABLE table_name_66 (kickoff_ VARCHAR, a_ VARCHAR, record VARCHAR) ### Response: ### Response: SELECT kickoff_[a_] FROM table_name_66 WHERE record = "1-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 Tournament against Vladimir Zednik? ### Context: CREATE TABLE table_name_67 (tournament VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_67 WHERE opponent = "vladimir zednik"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 order in office for spiro agnew ### Context: CREATE TABLE table_2026548_1 (order_in_office VARCHAR, vice_president VARCHAR) ### Response: ### Response: SELECT order_in_office FROM table_2026548_1 WHERE vice_president = "Spiro Agnew"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with a Score of 1–0, and a Date with 18 april 2009? ### Context: CREATE TABLE table_name_35 (result VARCHAR, score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_35 WHERE score = "1–0" AND date = "18 april 2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What average bronze has 0 as the silver, 17 as the rank, and a gold less than 1? ### Context: CREATE TABLE table_name_80 (bronze INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(bronze) FROM table_name_80 WHERE silver = 0 AND rank = "17" 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: What is 1993, when 1992 is "SF", and when Tournament is "Paris"? ### Context: CREATE TABLE table_name_7 (tournament VARCHAR) ### Response: ### Response: SELECT 1993 FROM table_name_7 WHERE 1992 = "sf" AND tournament = "paris"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Runs of 124? ### Context: CREATE TABLE table_name_79 (player VARCHAR, runs VARCHAR) ### Response: ### Response: SELECT player FROM table_name_79 WHERE runs = "124"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loss had a record of 79-49? ### Context: CREATE TABLE table_name_7 (loss VARCHAR, record VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_7 WHERE record = "79-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: For each classroom, report the classroom number and the number of grades using it. ### Context: CREATE TABLE list (classroom VARCHAR, grade VARCHAR) ### Response: ### Response: SELECT classroom, COUNT(DISTINCT grade) FROM list GROUP BY classroom</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nation when the place is 2? ### Context: CREATE TABLE table_26677836_1 (nation VARCHAR, place VARCHAR) ### Response: ### Response: SELECT nation FROM table_26677836_1 WHERE place = 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many have are model 2.4 awd? ### Context: CREATE TABLE table_1147705_1 (engine_type VARCHAR, model VARCHAR) ### Response: ### Response: SELECT COUNT(engine_type) FROM table_1147705_1 WHERE model = "2.4 AWD"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the Partner of Jürgen Melzer and the Date of January 7, 2012? ### Context: CREATE TABLE table_name_25 (outcome VARCHAR, partner VARCHAR, date VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_25 WHERE partner = "jürgen melzer" AND date = "january 7, 2012"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance that has april 12 as the date? ### Context: CREATE TABLE table_name_14 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(attendance) FROM table_name_14 WHERE date = "april 12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Tries has a Goal smaller than 0? ### Context: CREATE TABLE table_name_5 (tries INTEGER, goals INTEGER) ### Response: ### Response: SELECT MIN(tries) FROM table_name_5 WHERE 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: How many times was the final score l 96–123 (ot)? ### Context: CREATE TABLE table_11964154_7 (record VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(record) FROM table_11964154_7 WHERE score = "L 96–123 (OT)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What kind of bleeding does aspirin cause? ### Context: CREATE TABLE table_1226250_1 (bleeding_time VARCHAR, condition VARCHAR) ### Response: ### Response: SELECT bleeding_time FROM table_1226250_1 WHERE condition = "Aspirin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 store has most the customers? ### Context: CREATE TABLE customer (store_id VARCHAR) ### Response: ### Response: SELECT store_id FROM customer GROUP BY store_id ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which college has the men's nickname of the blazers? ### Context: CREATE TABLE table_10577579_3 (institution VARCHAR, men’s_nickname VARCHAR) ### Response: ### Response: SELECT institution FROM table_10577579_3 WHERE men’s_nickname = "Blazers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Acquired when the Number shows as 7? ### Context: CREATE TABLE table_name_73 (acquired INTEGER, number VARCHAR) ### Response: ### Response: SELECT AVG(acquired) FROM table_name_73 WHERE number = 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 Position did the sophomore Darnell Jackson play? ### Context: CREATE TABLE table_name_48 (position VARCHAR, year VARCHAR, name VARCHAR) ### Response: ### Response: SELECT position FROM table_name_48 WHERE year = "sophomore" AND name = "darnell jackson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 In The Final, when Championship is "Athens , Greece", and when Outcome is "Winner"? ### Context: CREATE TABLE table_name_96 (score_in_the_final VARCHAR, championship VARCHAR, outcome VARCHAR) ### Response: ### Response: SELECT score_in_the_final FROM table_name_96 WHERE championship = "athens , greece" AND outcome = "winner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tiger Woods has played less than 21 events and is what rank? ### Context: CREATE TABLE table_name_90 (rank VARCHAR, player VARCHAR, events VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_90 WHERE player = "tiger woods" AND events < 21</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the current club of the Forward who was born after 1983 and who has a height under 2.12? ### Context: CREATE TABLE table_name_36 (current_club VARCHAR, position VARCHAR, year_born VARCHAR, height VARCHAR) ### Response: ### Response: SELECT current_club FROM table_name_36 WHERE year_born > 1983 AND height < 2.12 AND position = "forward"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 most againsts with more than 11 losses and central murray is Nyah Nyah West Utd? ### Context: CREATE TABLE table_name_83 (against INTEGER, central_murray VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT MAX(against) FROM table_name_83 WHERE central_murray = "nyah nyah west utd" AND losses > 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 was the date when the away team was Carlton? ### Context: CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_65 WHERE away_team = "carlton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is associated with the player Wilbert Robinson? ### Context: CREATE TABLE table_name_40 (date VARCHAR, player VARCHAR) ### Response: ### Response: SELECT date FROM table_name_40 WHERE player = "wilbert robinson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for partial thromboplastin time when prothrombin time and bleeding time are prolonged? ### Context: CREATE TABLE table_221653_1 (partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) ### Response: ### Response: SELECT partial_thromboplastin_time FROM table_221653_1 WHERE prothrombin_time = "Prolonged" AND bleeding_time = "Prolonged"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Raiders First Downs, when Date is "Nov. 2", and when Raiders Points is greater than 42? ### Context: CREATE TABLE table_name_21 (raiders_first_downs VARCHAR, date VARCHAR, raiders_points VARCHAR) ### Response: ### Response: SELECT COUNT(raiders_first_downs) FROM table_name_21 WHERE date = "nov. 2" AND raiders_points > 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: How many Games has a Team of chicago? ### Context: CREATE TABLE table_name_55 (game VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_55 WHERE team = "chicago"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the Goal in Stade Roi Baudouin, Brussels? ### Context: CREATE TABLE table_name_81 (goal INTEGER, venue VARCHAR) ### Response: ### Response: SELECT AVG(goal) FROM table_name_81 WHERE venue = "stade roi baudouin, brussels"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 won promotion for kalmar ff ### Context: CREATE TABLE table_2119448_3 (won_promotion VARCHAR, lost_promotion_playoffs VARCHAR) ### Response: ### Response: SELECT won_promotion FROM table_2119448_3 WHERE lost_promotion_playoffs = "Kalmar FF"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 cons for lib dem of 8% and a lead of 27% ### Context: CREATE TABLE table_name_19 (cons VARCHAR, lib_dem VARCHAR, lead VARCHAR) ### Response: ### Response: SELECT cons FROM table_name_19 WHERE lib_dem = "8%" AND lead = "27%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 award has film lyricist in the category? ### Context: CREATE TABLE table_name_11 (award VARCHAR, category VARCHAR) ### Response: ### Response: SELECT award FROM table_name_11 WHERE category = "film lyricist"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Natural Wood Keyboard has a CLP380 ? ### Context: CREATE TABLE table_name_21 (natural_wood_keyboard VARCHAR, model VARCHAR) ### Response: ### Response: SELECT natural_wood_keyboard FROM table_name_21 WHERE model = "clp380"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 an FA Cup Apps of 0 (1)? ### Context: CREATE TABLE table_name_84 (league_goals VARCHAR, fa_cup_apps VARCHAR) ### Response: ### Response: SELECT COUNT(league_goals) FROM table_name_84 WHERE fa_cup_apps = "0 (1)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the average DDR3 speed for model e-350 ### Context: CREATE TABLE table_name_15 (ddr3_speed INTEGER, model VARCHAR) ### Response: ### Response: SELECT AVG(ddr3_speed) FROM table_name_15 WHERE model = "e-350"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ground of the game where the home team was Adelaide? ### Context: CREATE TABLE table_name_88 (ground VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT ground FROM table_name_88 WHERE home_team = "adelaide"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent in the 2011 event with less than 113 players? ### Context: CREATE TABLE table_name_72 (opponent VARCHAR, player VARCHAR, event VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_72 WHERE player < 113 AND event = 2011</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 2008 for 2009 heartland high tech? ### Context: CREATE TABLE table_name_2 (Id VARCHAR) ### Response: ### Response: SELECT 2008 FROM table_name_2 WHERE 2009 = "heartland high tech"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: The proposed 03/08/2004 site is in what municipality? ### Context: CREATE TABLE table_name_35 (municipality VARCHAR, proposed VARCHAR) ### Response: ### Response: SELECT municipality FROM table_name_35 WHERE proposed = "03/08/2004"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 City / State, when Circuit is Eastern Creek Raceway, and when Winner is Michael Donaher? ### Context: CREATE TABLE table_name_83 (city___state VARCHAR, circuit VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT city___state FROM table_name_83 WHERE circuit = "eastern creek raceway" AND winner = "michael donaher"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Prema Powerteam won with 240 points? ### Context: CREATE TABLE table_25538763_1 (wins VARCHAR, team VARCHAR, points VARCHAR) ### Response: ### Response: SELECT wins FROM table_25538763_1 WHERE team = "Prema Powerteam" AND points = "240"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 finish time for a race where start was less than 3, buick was the manufacturer, and the race was held after 1978? ### Context: CREATE TABLE table_name_45 (finish INTEGER, start VARCHAR, year VARCHAR, manufacturer VARCHAR) ### Response: ### Response: SELECT MIN(finish) FROM table_name_45 WHERE year > 1978 AND manufacturer = "buick" AND start < 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 Music for Team anna guzik & rafał kamiński that has a Points Jury of 24 (7,5,6,6)? ### Context: CREATE TABLE table_name_35 (music VARCHAR, team VARCHAR, points_jury VARCHAR) ### Response: ### Response: SELECT music FROM table_name_35 WHERE team = "anna guzik & rafał kamiński" AND points_jury = "24 (7,5,6,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: List the max power produced for model 2.0 ts with peak of n·m (lb·ft) at 3,500 rpm. ### Context: CREATE TABLE table_2326823_2 (max_power_output VARCHAR, model VARCHAR, peak_torque VARCHAR) ### Response: ### Response: SELECT max_power_output FROM table_2326823_2 WHERE model = "2.0 TS" AND peak_torque = "N·m (lb·ft) at 3,500 rpm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 transfer fee when the moving from was celta de Vigo? ### Context: CREATE TABLE table_name_25 (transfer_fee VARCHAR, moving_from VARCHAR) ### Response: ### Response: SELECT transfer_fee FROM table_name_25 WHERE moving_from = "celta de vigo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 lowest number that auburn triumphed where the activities took part was 92 ### Context: CREATE TABLE table_2846320_4 (au_won INTEGER, games_played VARCHAR) ### Response: ### Response: SELECT MIN(au_won) FROM table_2846320_4 WHERE games_played = 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: For which industry was the profit smaller than 14.2 billion and the assets larger than 2,467.9 billion? ### Context: CREATE TABLE table_name_83 (industry VARCHAR, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR) ### Response: ### Response: SELECT industry FROM table_name_83 WHERE profits__billion_$_ < 14.2 AND assets__billion_$_ > 2 OFFSET 467.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 team is sponsored by d3 Outdoors? ### Context: CREATE TABLE table_19908313_2 (team VARCHAR, primary_sponsor_s_ VARCHAR) ### Response: ### Response: SELECT team FROM table_19908313_2 WHERE primary_sponsor_s_ = "D3 Outdoors"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 manner of departure replaced by tita? ### Context: CREATE TABLE table_name_34 (manner_of_departure VARCHAR, replaced_by VARCHAR) ### Response: ### Response: SELECT manner_of_departure FROM table_name_34 WHERE replaced_by = "tita"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Kevin Inch? ### Context: CREATE TABLE table_29391888_1 (written_by VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT written_by FROM table_29391888_1 WHERE directed_by = "Kevin Inch"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Current Branch Opened, when Branch is Midland Library? ### Context: CREATE TABLE table_name_22 (current_branch_opened VARCHAR, branch VARCHAR) ### Response: ### Response: SELECT current_branch_opened FROM table_name_22 WHERE branch = "midland library"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Württemberg for Karlsruher FV happening after 1931? ### Context: CREATE TABLE table_name_51 (württemberg VARCHAR, baden VARCHAR, year VARCHAR) ### Response: ### Response: SELECT württemberg FROM table_name_51 WHERE baden = "karlsruher fv" AND year > 1931</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What show that was aired on January 24, 2008 with a rating larger than 3.6 had the lowest viewers? How Many Viewers in the millions? ### Context: CREATE TABLE table_name_65 (viewers__m_ INTEGER, air_date VARCHAR, rating VARCHAR) ### Response: ### Response: SELECT MIN(viewers__m_) FROM table_name_65 WHERE air_date = "january 24, 2008" AND rating > 3.6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which average Long has a Gain smaller than 16, and a Loss smaller than 6? ### Context: CREATE TABLE table_name_51 (long INTEGER, gain VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT AVG(long) FROM table_name_51 WHERE gain < 16 AND loss < 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 latest week with an attendance of 74,162? ### Context: CREATE TABLE table_name_72 (week INTEGER, attendance VARCHAR) ### Response: ### Response: SELECT MAX(week) FROM table_name_72 WHERE attendance = "74,162"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of roll for state authority and stanley avenue school with decile more than 5 ### Context: CREATE TABLE table_name_31 (roll VARCHAR, decile VARCHAR, authority VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(roll) FROM table_name_31 WHERE authority = "state" AND name = "stanley avenue school" AND decile > 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: What's the date for Details of 1000 copies? ### Context: CREATE TABLE table_name_74 (date INTEGER, other_details VARCHAR) ### Response: ### Response: SELECT MIN(date) FROM table_name_74 WHERE other_details = "1000 copies"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 accreditation level of the network brand Movistar? ### Context: CREATE TABLE table_name_76 (accreditation_level VARCHAR, network_brand_name VARCHAR) ### Response: ### Response: SELECT accreditation_level FROM table_name_76 WHERE network_brand_name = "movistar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 region is the Southern district of Texas, what is the citation? ### Context: CREATE TABLE table_22901612_2 (citation VARCHAR, region VARCHAR) ### Response: ### Response: SELECT citation FROM table_22901612_2 WHERE region = "Southern District of Texas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 amount of money with a score of 67-71-70-71=279? ### Context: CREATE TABLE table_name_85 (money___ VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(money___) AS $__ FROM table_name_85 WHERE score = 67 - 71 - 70 - 71 = 279</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Competition, when Round is "Group A - Match 1"? ### Context: CREATE TABLE table_name_59 (competition VARCHAR, round VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_59 WHERE round = "group a - match 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 was the attendance for week 2? ### Context: CREATE TABLE table_name_39 (attendance VARCHAR, week VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_39 WHERE week = 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: Venue of Pepsi arena involved what club? ### Context: CREATE TABLE table_name_34 (club VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT club FROM table_name_34 WHERE venue = "pepsi arena"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 cargo value in 2005 for all product carriers? ### Context: CREATE TABLE table_name_46 (cargo VARCHAR) ### Response: ### Response: SELECT 2005 FROM table_name_46 WHERE cargo = "all product carriers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a To par of –6? ### Context: CREATE TABLE table_name_83 (player VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT player FROM table_name_83 WHERE to_par = "–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: For an airline of Wizz Air and fewer than 83 destinations, what is the highest passenger fleet? ### Context: CREATE TABLE table_name_77 (passenger_fleet INTEGER, airline_holding VARCHAR, current_destinations VARCHAR) ### Response: ### Response: SELECT MAX(passenger_fleet) FROM table_name_77 WHERE airline_holding = "wizz air" AND current_destinations < 83</s>