inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Label for Date of 14 November 2003, and Catalogue tojp 60121-22? ### Context: CREATE TABLE table_name_70 (label VARCHAR, date VARCHAR, catalogue VARCHAR) ### Response: ### Response: SELECT label FROM table_name_70 WHERE date = "14 november 2003" AND catalogue = "tojp 60121-22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show me the departure date and arrival date for all flights from Los Angeles to Honolulu. ### Context: CREATE TABLE Flight (departure_date VARCHAR, arrival_date VARCHAR, origin VARCHAR, destination VARCHAR) ### Response: ### Response: SELECT departure_date, arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Pressure in hPa (mbar), when Vacuum Range is "medium vacuum"? ### Context: CREATE TABLE table_name_69 (pressure_in_hpa__mbar_ VARCHAR, vacuum_range VARCHAR) ### Response: ### Response: SELECT pressure_in_hpa__mbar_ FROM table_name_69 WHERE vacuum_range = "medium vacuum"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the services in the alphabetical order. ### Context: CREATE TABLE services (service_name VARCHAR) ### Response: ### Response: SELECT service_name FROM services ORDER BY service_name</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date of the game with less than 35 points and chicago as the home team? ### Context: CREATE TABLE table_name_99 (date VARCHAR, points VARCHAR, home VARCHAR) ### Response: ### Response: SELECT date FROM table_name_99 WHERE points < 35 AND home = "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 date did the red wings play against the visitors, buffalo? ### Context: CREATE TABLE table_name_62 (date VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT date FROM table_name_62 WHERE visitor = "buffalo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 games number when the Position was wr, and a Number larger than 17? ### Context: CREATE TABLE table_name_58 (games VARCHAR, position VARCHAR, number VARCHAR) ### Response: ### Response: SELECT COUNT(games) AS ↑ FROM table_name_58 WHERE position = "wr" AND number > 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the men doubles for els baert ### Context: CREATE TABLE table_14903355_2 (men_doubles VARCHAR, womens_singles VARCHAR) ### Response: ### Response: SELECT men_doubles FROM table_14903355_2 WHERE womens_singles = "Els Baert"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 value for points? ### Context: CREATE TABLE table_25352324_5 (points INTEGER) ### Response: ### Response: SELECT MAX(points) FROM table_25352324_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: Name the round eliminated where conference record is 12-6 ### Context: CREATE TABLE table_16295365_2 (round_eliminated VARCHAR, conf_record VARCHAR) ### Response: ### Response: SELECT round_eliminated FROM table_16295365_2 WHERE conf_record = "12-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 public debt % of GDP in 2013 Q1 with a 4.7% GDP of EU in 2012? ### Context: CREATE TABLE table_1598533_8 (public_debt__percentage_of_gdp__2013_q1_ VARCHAR, gdp__percentage_of_eu__2012_ VARCHAR) ### Response: ### Response: SELECT public_debt__percentage_of_gdp__2013_q1_ FROM table_1598533_8 WHERE gdp__percentage_of_eu__2012_ = "4.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 average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses? ### Context: CREATE TABLE table_name_91 (played INTEGER, losses VARCHAR, points VARCHAR, wins VARCHAR, goals_for VARCHAR) ### Response: ### Response: SELECT AVG(played) FROM table_name_91 WHERE wins < 11 AND goals_for > 42 AND points > 22 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: Who was the outgoing manager when the incoming manager was laurenţiu reghecampf? ### Context: CREATE TABLE table_26976615_3 (outgoing_manager VARCHAR, incoming_manager VARCHAR) ### Response: ### Response: SELECT outgoing_manager FROM table_26976615_3 WHERE incoming_manager = "Laurenţiu Reghecampf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what place did Darren Clarke finish? ### Context: CREATE TABLE table_name_23 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_23 WHERE player = "darren clarke"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the busiest source airport that runs most number of routes in China. ### Context: CREATE TABLE routes (src_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR) ### Response: ### Response: SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country has Tematico Content, and a package with sky TV and the Lei television service? ### Context: CREATE TABLE table_name_91 (country VARCHAR, television_service VARCHAR, content VARCHAR, package_option VARCHAR) ### Response: ### Response: SELECT country FROM table_name_91 WHERE content = "tematico" AND package_option = "sky tv" AND television_service = "lei"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of xue hanqin has what highest term ending? ### Context: CREATE TABLE table_name_89 (term_ending INTEGER, name VARCHAR) ### Response: ### Response: SELECT MAX(term_ending) FROM table_name_89 WHERE name = "xue hanqin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who won the game where the Challenge Leader is ACC (2-1)? ### Context: CREATE TABLE table_1672976_6 (winner VARCHAR, challenge_leader VARCHAR) ### Response: ### Response: SELECT winner FROM table_1672976_6 WHERE challenge_leader = "ACC (2-1)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the to par for the player who had a score of 70-72-70-69=281? ### Context: CREATE TABLE table_name_18 (to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_18 WHERE score = 70 - 72 - 70 - 69 = 281</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What party has a term of office of 1951–1966, and a State of sa? ### Context: CREATE TABLE table_name_29 (party VARCHAR, term_of_office VARCHAR, state VARCHAR) ### Response: ### Response: SELECT party FROM table_name_29 WHERE term_of_office = "1951–1966" AND state = "sa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the D 43 and D 48 of r 28 ### Context: CREATE TABLE table_name_45 (d_43 VARCHAR, d_48 VARCHAR) ### Response: ### Response: SELECT d_43 FROM table_name_45 WHERE d_48 = "r 28"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Webcast has a Callsign of kgbt? ### Context: CREATE TABLE table_name_91 (webcast VARCHAR, callsign VARCHAR) ### Response: ### Response: SELECT webcast FROM table_name_91 WHERE callsign = "kgbt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 +2 to par? ### Context: CREATE TABLE table_name_45 (player VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT player FROM table_name_45 WHERE to_par = "+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: Which cfl team is manitoba college? ### Context: CREATE TABLE table_21321804_1 (cfl_team VARCHAR, college VARCHAR) ### Response: ### Response: SELECT cfl_team FROM table_21321804_1 WHERE college = "Manitoba"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 pole position of the Portuguese Grand Prix? ### Context: CREATE TABLE table_name_54 (pole_position VARCHAR, grand_prix VARCHAR) ### Response: ### Response: SELECT pole_position FROM table_name_54 WHERE grand_prix = "portuguese grand prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the place of the player with a 72-71-65=208 score? ### Context: CREATE TABLE table_name_33 (place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT place FROM table_name_33 WHERE score = 72 - 71 - 65 = 208</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: He wrote production number 102? ### Context: CREATE TABLE table_26448179_2 (written_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT written_by FROM table_26448179_2 WHERE production_code = "102"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 position where player is williams, bernie bernie williams ### Context: CREATE TABLE table_11734041_20 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_11734041_20 WHERE player = "Williams, Bernie Bernie Williams"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Song choice when Elaine Paige was the Original artist? ### Context: CREATE TABLE table_name_99 (song_choice VARCHAR, original_artist VARCHAR) ### Response: ### Response: SELECT song_choice FROM table_name_99 WHERE original_artist = "elaine paige"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date did the episode with a production code of 3x6316 originally air? ### Context: CREATE TABLE table_28116528_1 (original_air_date VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_28116528_1 WHERE production_code = "3X6316"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the overs for mdns of 4 ### Context: CREATE TABLE table_name_66 (overs VARCHAR, mdns VARCHAR) ### Response: ### Response: SELECT overs FROM table_name_66 WHERE mdns = "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 event was in New Orleans, Louisiana, USA? ### Context: CREATE TABLE table_name_55 (event VARCHAR, location VARCHAR) ### Response: ### Response: SELECT event FROM table_name_55 WHERE location = "new orleans, louisiana, usa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the position of rb what is the name? ### Context: CREATE TABLE table_name_67 (name VARCHAR, position VARCHAR) ### Response: ### Response: SELECT name FROM table_name_67 WHERE position = "rb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: During the act, Playing on Glasses, what was the semi-final? ### Context: CREATE TABLE table_23429629_4 (semi_final VARCHAR, act VARCHAR) ### Response: ### Response: SELECT semi_final FROM table_23429629_4 WHERE act = "Playing on Glasses"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 duration of songs that have mp3 format and resolution below 800? ### Context: CREATE TABLE files (duration INTEGER, f_id VARCHAR, formats VARCHAR); CREATE TABLE song (f_id VARCHAR, resolution VARCHAR) ### Response: ### Response: SELECT AVG(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" AND T2.resolution < 800</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 minumim first elected for alvin bush ### Context: CREATE TABLE table_1342013_37 (first_elected INTEGER, incumbent VARCHAR) ### Response: ### Response: SELECT MIN(first_elected) FROM table_1342013_37 WHERE incumbent = "Alvin Bush"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 numer of miles for 2010. ### Context: CREATE TABLE table_28178756_1 (miles__km_ VARCHAR, year VARCHAR) ### Response: ### Response: SELECT miles__km_ FROM table_28178756_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: What is Outgoing Manager, when Date of Vacancy is "25 September 2008"? ### Context: CREATE TABLE table_name_77 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR) ### Response: ### Response: SELECT outgoing_manager FROM table_name_77 WHERE date_of_vacancy = "25 september 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: How many different original U.S. air dates appear where the U.S. viewers were 2.5 million? ### Context: CREATE TABLE table_25246990_5 (original_us_air_date VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT COUNT(original_us_air_date) FROM table_25246990_5 WHERE us_viewers__millions_ = "2.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: Name the least rank when silver is less than 1 and bronze is less than 1 with total more than 1 ### Context: CREATE TABLE table_name_5 (rank INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_5 WHERE silver < 1 AND total > 1 AND bronze < 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 location did game 64 take place ### Context: CREATE TABLE table_name_34 (location VARCHAR, game VARCHAR) ### Response: ### Response: SELECT location FROM table_name_34 WHERE game = 64</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the artbeingt with position being 32 ### Context: CREATE TABLE table_13789248_2 (artist VARCHAR, position VARCHAR) ### Response: ### Response: SELECT artist FROM table_13789248_2 WHERE position = 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: What is the Catalog with a Date that is march 13, 2002? ### Context: CREATE TABLE table_name_9 (catalog VARCHAR, date VARCHAR) ### Response: ### Response: SELECT catalog FROM table_name_9 WHERE date = "march 13, 2002"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the money for argentina? ### Context: CREATE TABLE table_name_34 (money___ VARCHAR, country VARCHAR) ### Response: ### Response: SELECT COUNT(money___) AS $__ FROM table_name_34 WHERE country = "argentina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 scores in matches against Tony Roche? ### Context: CREATE TABLE table_2201724_1 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT score_in_the_final FROM table_2201724_1 WHERE opponent_in_the_final = "Tony Roche"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the maximum population of the country with Quito as capital? ### Context: CREATE TABLE table_26769_1 (population__july_2009_est_ INTEGER, capital VARCHAR) ### Response: ### Response: SELECT MAX(population__july_2009_est_) FROM table_26769_1 WHERE capital = "Quito"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 episode number where the English title is Pilot? ### Context: CREATE TABLE table_1481865_1 (number_of_episode VARCHAR, title__english_ VARCHAR) ### Response: ### Response: SELECT number_of_episode FROM table_1481865_1 WHERE title__english_ = "Pilot"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 has an issue price over 15.95, and a special notes from edmonton oilers gift set? ### Context: CREATE TABLE table_name_10 (year VARCHAR, issue_price VARCHAR, special_notes VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_10 WHERE issue_price > 15.95 AND special_notes = "from edmonton oilers gift set"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney , New South Wales"? ### Context: CREATE TABLE table_name_54 (circuit VARCHAR, team VARCHAR, city___state VARCHAR) ### Response: ### Response: SELECT circuit FROM table_name_54 WHERE team = "r.j.macarthur onslow" AND city___state = "sydney , new south wales"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 names of the states where at least 3 heads were born? ### Context: CREATE TABLE head (born_state VARCHAR) ### Response: ### Response: SELECT born_state FROM head GROUP BY born_state HAVING COUNT(*) >= 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 score [A] of the match at Vanuatu (n) on 5 September 1998? ### Context: CREATE TABLE table_name_39 (score_ VARCHAR, a_ VARCHAR, venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score_[a_] FROM table_name_39 WHERE venue = "vanuatu (n)" AND date = "5 september 1998"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Frequency, when Part Number(s) is au80610006240aa? ### Context: CREATE TABLE table_name_11 (frequency VARCHAR, part_number_s_ VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_11 WHERE part_number_s_ = "au80610006240aa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 associated with August 16, 2008? ### Context: CREATE TABLE table_name_12 (time VARCHAR, date VARCHAR) ### Response: ### Response: SELECT time FROM table_name_12 WHERE date = "august 16, 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 the attendance when the hawthorn score is 18.15.123? ### Context: CREATE TABLE table_28211103_1 (attendance VARCHAR, hawthorn_score VARCHAR) ### Response: ### Response: SELECT attendance FROM table_28211103_1 WHERE hawthorn_score = "18.15.123"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface for january 8, 2001 ### Context: CREATE TABLE table_name_93 (surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_93 WHERE date = "january 8, 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: What was the lowest attendance for games played on december 23? ### Context: CREATE TABLE table_23308178_6 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_23308178_6 WHERE date = "December 23"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the maximum number of final tables made among poker players with earnings less than 200000? ### Context: CREATE TABLE poker_player (Final_Table_Made INTEGER, Earnings INTEGER) ### Response: ### Response: SELECT MAX(Final_Table_Made) FROM poker_player WHERE Earnings < 200000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Format of the French Frequency with a Call sign of CKRL-FM? ### Context: CREATE TABLE table_name_56 (format VARCHAR, notes VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT format FROM table_name_56 WHERE notes = "french" AND call_sign = "ckrl-fm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Player, when Money ( $ ) is less than 387, and when Score is "73-76-74-72=295"? ### Context: CREATE TABLE table_name_40 (player VARCHAR, money___$__ VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_40 WHERE money___$__ < 387 AND score = 73 - 76 - 74 - 72 = 295</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 first elected for the district South Carolina 2? ### Context: CREATE TABLE table_name_75 (first_elected INTEGER, district VARCHAR) ### Response: ### Response: SELECT AVG(first_elected) FROM table_name_75 WHERE district = "south carolina 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 HDTV for the Rai Nettuno Sat Uno Television service? ### Context: CREATE TABLE table_name_77 (hdtv VARCHAR, television_service VARCHAR) ### Response: ### Response: SELECT hdtv FROM table_name_77 WHERE television_service = "rai nettuno sat uno"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for game 4? ### Context: CREATE TABLE table_name_97 (date VARCHAR, game VARCHAR) ### Response: ### Response: SELECT date FROM table_name_97 WHERE game = "game 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: Which event had a decision method? ### Context: CREATE TABLE table_name_12 (event VARCHAR, method VARCHAR) ### Response: ### Response: SELECT event FROM table_name_12 WHERE method = "decision"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What party did incumbent Wright Patman belong to? ### Context: CREATE TABLE table_1342149_43 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1342149_43 WHERE incumbent = "Wright Patman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 original air dates for the episode written by David H. Goodman & Andrew Kreisberg? ### Context: CREATE TABLE table_24649082_1 (original_air_date VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT COUNT(original_air_date) FROM table_24649082_1 WHERE written_by = "David H. Goodman & Andrew Kreisberg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Outcome, when Opponent is Victoria Azarenka, and when Score is 6–2, 2–6, 7–5? ### Context: CREATE TABLE table_name_63 (outcome VARCHAR, opponent VARCHAR, score VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_63 WHERE opponent = "victoria azarenka" AND score = "6–2, 2–6, 7–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 poll source had an other of 15%? ### Context: CREATE TABLE table_name_38 (poll_source VARCHAR, other VARCHAR) ### Response: ### Response: SELECT poll_source FROM table_name_38 WHERE other = "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 was the number of matches when the Goals Olimpia was 149? ### Context: CREATE TABLE table_13688489_1 (matches VARCHAR, goals_olimpia VARCHAR) ### Response: ### Response: SELECT matches FROM table_13688489_1 WHERE goals_olimpia = 149</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ss winning car for road atlanta and #35 quantum engineering #35 honda crx-si ### Context: CREATE TABLE table_27965906_2 (ss_winning_car VARCHAR, circuit VARCHAR, b_winning_car VARCHAR) ### Response: ### Response: SELECT ss_winning_car FROM table_27965906_2 WHERE circuit = "Road Atlanta" AND b_winning_car = "#35 Quantum Engineering #35 Honda CRX-Si"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the away team when the crowd was larger than 41,451? ### Context: CREATE TABLE table_name_69 (away_team VARCHAR, crowd INTEGER) ### Response: ### Response: SELECT away_team FROM table_name_69 WHERE crowd > 41 OFFSET 451</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 richmond's score as the home team? ### Context: CREATE TABLE table_name_93 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_93 WHERE home_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: Who was supporting in round 1 where the gt winning car was dodge viper? ### Context: CREATE TABLE table_28490105_1 (supporting VARCHAR, gt_winning_car VARCHAR, rnd VARCHAR) ### Response: ### Response: SELECT supporting FROM table_28490105_1 WHERE gt_winning_car = "Dodge Viper" AND rnd = 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 player had a conference of PAC-10 and position of G? ### Context: CREATE TABLE table_name_56 (player VARCHAR, conf VARCHAR, pos VARCHAR) ### Response: ### Response: SELECT player FROM table_name_56 WHERE conf = "pac-10" AND pos = "g"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the away team playing the home team North Melbourne? ### Context: CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_88 WHERE home_team = "north melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average earnings of poker players? ### Context: CREATE TABLE poker_player (Earnings INTEGER) ### Response: ### Response: SELECT AVG(Earnings) FROM poker_player</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the game was played on clay and on 2 May 2009? ### Context: CREATE TABLE table_name_49 (outcome VARCHAR, surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_49 WHERE surface = "clay" AND date = "2 may 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: How many teams did Farhad Kazemi leave? ### Context: CREATE TABLE table_22297198_3 (team VARCHAR, outgoing_manager VARCHAR) ### Response: ### Response: SELECT COUNT(team) FROM table_22297198_3 WHERE outgoing_manager = "Farhad Kazemi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the names of phones that are on market with number of shops greater than 50. ### Context: CREATE TABLE market (Market_ID VARCHAR, Num_of_shops INTEGER); CREATE TABLE phone (Name VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Market_ID VARCHAR, Phone_ID VARCHAR) ### Response: ### Response: SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID WHERE T2.Num_of_shops > 50</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Wireless LAN had a process technology of 90nm and a Carmel centrino? ### Context: CREATE TABLE table_199666_1 (wireless_lan VARCHAR, process_technology VARCHAR, centrino VARCHAR) ### Response: ### Response: SELECT wireless_lan FROM table_199666_1 WHERE process_technology = "90nm" AND centrino = "Carmel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 disaster that was located in Ontario with 223 deaths? ### Context: CREATE TABLE table_name_39 (disaster VARCHAR, location VARCHAR, deaths VARCHAR) ### Response: ### Response: SELECT disaster FROM table_name_39 WHERE location = "ontario" AND deaths = "223"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bubble have a cancelable of yes and an attribute of onpointerdown? ### Context: CREATE TABLE table_name_58 (bubbles VARCHAR, cancelable VARCHAR, attribute VARCHAR) ### Response: ### Response: SELECT bubbles FROM table_name_58 WHERE cancelable = "yes" AND attribute = "onpointerdown"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 all the possible bleeding time results where prothrombin time and platelet count are both unaffected? ### Context: CREATE TABLE table_1555308_1 (bleeding_time VARCHAR, prothrombin_time VARCHAR, platelet_count VARCHAR) ### Response: ### Response: SELECT bleeding_time FROM table_1555308_1 WHERE prothrombin_time = "Unaffected" AND platelet_count = "Unaffected"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 broadcast date is 25april1970, how many people tuned in? ### Context: CREATE TABLE table_2102898_1 (viewers__in_millions_ VARCHAR, broadcast_date VARCHAR) ### Response: ### Response: SELECT viewers__in_millions_ FROM table_2102898_1 WHERE broadcast_date = "25April1970"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Overall went in a round larger than 7 with a pick less than 7? ### Context: CREATE TABLE table_name_39 (overall VARCHAR, round VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT COUNT(overall) FROM table_name_39 WHERE round > 7 AND pick < 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 maximum average associated with a total of 221902? ### Context: CREATE TABLE table_2472711_32 (average INTEGER, total VARCHAR) ### Response: ### Response: SELECT MAX(average) FROM table_2472711_32 WHERE total = 221902</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Ning that has a bebo less than 4, an orkut less than 100, with a plaxo greater than 0? ### Context: CREATE TABLE table_name_40 (ning INTEGER, plaxo VARCHAR, bebo VARCHAR, orkut VARCHAR) ### Response: ### Response: SELECT MAX(ning) FROM table_name_40 WHERE bebo < 4 AND orkut < 100 AND plaxo > 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: Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened. ### Context: CREATE TABLE track (year_opened VARCHAR, seating INTEGER) ### Response: ### Response: SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team had a driver with a finish position of 7? ### Context: CREATE TABLE table_name_85 (team VARCHAR, fin_pos VARCHAR) ### Response: ### Response: SELECT team FROM table_name_85 WHERE fin_pos = "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: Name the nominated work for 1996 and festival of black maria film and video festival ### Context: CREATE TABLE table_name_7 (nominated_work VARCHAR, year VARCHAR, festival VARCHAR) ### Response: ### Response: SELECT nominated_work FROM table_name_7 WHERE year = 1996 AND festival = "black maria film and video festival"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Winner when the Length is 21.27km? ### Context: CREATE TABLE table_name_95 (winner VARCHAR, length VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_95 WHERE length = "21.27km"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Babson College's enrollment? ### Context: CREATE TABLE table_1974782_1 (enrollment INTEGER, institution VARCHAR) ### Response: ### Response: SELECT MAX(enrollment) FROM table_1974782_1 WHERE institution = "Babson College"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 did Lineth Chepkurui place 5th? ### Context: CREATE TABLE table_name_27 (competition VARCHAR, position VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_27 WHERE position = "5th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 frequency where the power is 25kw? ### Context: CREATE TABLE table_name_10 (frequency VARCHAR, power__kw_ VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_10 WHERE power__kw_ = "25kw"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what year did Easton LL Easton play in Maryland? ### Context: CREATE TABLE table_13012165_1 (year VARCHAR, maryland VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_13012165_1 WHERE maryland = "Easton LL Easton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the number of weekly rank where the total is 1980000? ### Context: CREATE TABLE table_17004367_3 (weekly_rank VARCHAR, total VARCHAR) ### Response: ### Response: SELECT COUNT(weekly_rank) FROM table_17004367_3 WHERE total = 1980000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 maximal number of people that attended any of these games? ### Context: CREATE TABLE table_21436373_10 (attendance INTEGER) ### Response: ### Response: SELECT MAX(attendance) FROM table_21436373_10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 2013-2014 division for the Wolverhampton Wildcats? ### Context: CREATE TABLE table_name_60 (team VARCHAR) ### Response: ### Response: SELECT 2013 AS _14_division FROM table_name_60 WHERE team = "wolverhampton wildcats"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the number of record for united center 18,838 ### Context: CREATE TABLE table_22669044_8 (record VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT COUNT(record) FROM table_22669044_8 WHERE location_attendance = "United Center 18,838"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the record at the game that had a loss of Lemanczyk (0–1)? ### Context: CREATE TABLE table_name_34 (record VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT record FROM table_name_34 WHERE loss = "lemanczyk (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: Which season received 10.2 million viewers? ### Context: CREATE TABLE table_217785_2 (tv_season VARCHAR, viewers__in_millions_of_households_ VARCHAR) ### Response: ### Response: SELECT COUNT(tv_season) FROM table_217785_2 WHERE viewers__in_millions_of_households_ = "10.2"</s>