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 Nation, when Date is "2004-07-22"? ### Context: CREATE TABLE table_name_67 (nation VARCHAR, date VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_67 WHERE date = "2004-07-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: Name the title with termination of mission of april 10, 1939 ### Context: CREATE TABLE table_name_24 (title VARCHAR, termination_of_mission VARCHAR) ### Response: ### Response: SELECT title FROM table_name_24 WHERE termination_of_mission = "april 10, 1939"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 sum of Total ranking 9 and a Gold more than 6 ### Context: CREATE TABLE table_name_74 (total INTEGER, rank VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_74 WHERE rank = "9" AND gold > 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: Who built the train in 1966 with over 40 produced? ### Context: CREATE TABLE table_name_83 (builder’s_model VARCHAR, total_produced VARCHAR, build_date VARCHAR) ### Response: ### Response: SELECT builder’s_model FROM table_name_83 WHERE total_produced > 40 AND build_date = "1966"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the game with a record of 17–25? ### Context: CREATE TABLE table_name_16 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_16 WHERE record = "17–25"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 directors who had more than one movie, return the titles and produced years of all movies directed by them. ### Context: CREATE TABLE Movie (director VARCHAR, title VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, director VARCHAR) ### Response: ### Response: SELECT T1.title, T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number of losses when there are more than 0 ties? ### Context: CREATE TABLE table_name_49 (lost INTEGER, tied INTEGER) ### Response: ### Response: SELECT AVG(lost) FROM table_name_49 WHERE tied > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the platform if the weight is 131.5g? ### Context: CREATE TABLE table (platform VARCHAR, weight VARCHAR) ### Response: ### Response: SELECT platform FROM table WHERE weight = "131.5g"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which athlete played at the Birmingham venue? ### Context: CREATE TABLE table_name_32 (athlete VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_32 WHERE venue = "birmingham"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 District has a First Elected of 1904 and an Incumbent of Duncan E. Mckinlay? ### Context: CREATE TABLE table_name_31 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_name_31 WHERE first_elected = 1904 AND incumbent = "duncan e. mckinlay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Purpose of the Callsign with a Freq currently of 4rph? ### Context: CREATE TABLE table_name_43 (purpose VARCHAR, freq_currently VARCHAR) ### Response: ### Response: SELECT purpose FROM table_name_43 WHERE freq_currently = "4rph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the casualties of the ship sunk by u-125? ### Context: CREATE TABLE table_name_33 (casualties VARCHAR, sunk_by… VARCHAR) ### Response: ### Response: SELECT casualties FROM table_name_33 WHERE sunk_by… = "u-125"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: where is the enrollment 4259? ### Context: CREATE TABLE table_1715730_2 (location VARCHAR, enrollment VARCHAR) ### Response: ### Response: SELECT location FROM table_1715730_2 WHERE enrollment = 4259</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with a Score that is 46-82? ### Context: CREATE TABLE table_name_17 (time VARCHAR, score VARCHAR) ### Response: ### Response: SELECT time FROM table_name_17 WHERE score = "46-82"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the sum of Year for outcome of runner-up for world darts championship ### Context: CREATE TABLE table_name_41 (year INTEGER, outcome VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT SUM(year) FROM table_name_41 WHERE outcome = "runner-up" AND championship = "world darts championship"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament had a Runner(s)-up of Tom Kite? ### Context: CREATE TABLE table_name_11 (tournament VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_11 WHERE runner_s__up = "tom kite"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the crowd when the home team is footscray? ### Context: CREATE TABLE table_name_60 (crowd VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT COUNT(crowd) FROM table_name_60 WHERE home_team = "footscray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What type had a course of Grosseto To Rieti? ### Context: CREATE TABLE table_name_18 (type VARCHAR, course VARCHAR) ### Response: ### Response: SELECT type FROM table_name_18 WHERE course = "grosseto to rieti"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mountain Peak has a Region of baja california, and a Location of 28.1301°n 115.2206°w? ### Context: CREATE TABLE table_name_87 (mountain_peak VARCHAR, region VARCHAR, location VARCHAR) ### Response: ### Response: SELECT mountain_peak FROM table_name_87 WHERE region = "baja california" AND location = "28.1301°n 115.2206°w"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many time is the theme rotary international : 100 years in canada? ### Context: CREATE TABLE table_25468520_1 (printing_process VARCHAR, theme VARCHAR) ### Response: ### Response: SELECT COUNT(printing_process) FROM table_25468520_1 WHERE theme = "Rotary International : 100 Years in Canada"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 roll number of the school in Aramoho with a decile of 1? ### Context: CREATE TABLE table_name_86 (roll VARCHAR, area VARCHAR, decile VARCHAR) ### Response: ### Response: SELECT roll FROM table_name_86 WHERE area = "aramoho" AND decile = 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 average total with a nation of thailand with a gold smaller than 17? ### Context: CREATE TABLE table_name_54 (total INTEGER, nation VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_54 WHERE nation = "thailand" AND gold < 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: Which Score in the final has an Outcome of winner, and a Surface of hard (i)? ### Context: CREATE TABLE table_name_12 (score_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT score_in_the_final FROM table_name_12 WHERE outcome = "winner" AND surface = "hard (i)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total of more than 290 and +4 to par. ### Context: CREATE TABLE table_name_29 (player VARCHAR, total VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT player FROM table_name_29 WHERE total > 290 AND to_par = "+4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of Points when the against is less than 24 and played is less than 20? ### Context: CREATE TABLE table_name_66 (points INTEGER, against VARCHAR, played VARCHAR) ### Response: ### Response: SELECT SUM(points) FROM table_name_66 WHERE against < 24 AND played < 20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the method when 4-2 was the record? ### Context: CREATE TABLE table_name_56 (method VARCHAR, record VARCHAR) ### Response: ### Response: SELECT method FROM table_name_56 WHERE record = "4-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 time is the population density (per km²) is 2.5? ### Context: CREATE TABLE table_26007767_1 (localities VARCHAR, population_density__per_km²_ VARCHAR) ### Response: ### Response: SELECT COUNT(localities) FROM table_26007767_1 WHERE population_density__per_km²_ = "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: How much Capacity has a Vehicle of 2003 holden commodore ute? ### Context: CREATE TABLE table_name_97 (capacity VARCHAR, vehicle VARCHAR) ### Response: ### Response: SELECT COUNT(capacity) FROM table_name_97 WHERE vehicle = "2003 holden commodore ute"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 laps when the grid is less than 2? ### Context: CREATE TABLE table_name_38 (laps VARCHAR, grid INTEGER) ### Response: ### Response: SELECT laps FROM table_name_38 WHERE grid < 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 incumbent was first elected in 1958? ### Context: CREATE TABLE table_1341577_36 (incumbent VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_1341577_36 WHERE first_elected = 1958</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the document with the most number of sections? ### Context: CREATE TABLE document_sections (document_code VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR) ### Response: ### Response: SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code GROUP BY t1.document_code 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 is the capacity at the nop aquatic centre, established after 1929? ### Context: CREATE TABLE table_name_8 (capacity VARCHAR, venue VARCHAR, established VARCHAR) ### Response: ### Response: SELECT COUNT(capacity) FROM table_name_8 WHERE venue = "nop aquatic centre" AND established > 1929</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Please show the themes of competitions with host cities having populations larger than 1000. ### Context: CREATE TABLE city (City_ID VARCHAR, Population INTEGER); CREATE TABLE farm_competition (Theme VARCHAR, Host_city_ID VARCHAR) ### Response: ### Response: SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population > 1000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which institution does "Katsuhiro Ueno" belong to? ### Context: CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE inst (name VARCHAR, instid VARCHAR) ### Response: ### Response: SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Katsuhiro" AND t1.lname = "Ueno"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Calendar has WYSIWYG Editor of yes and an Unread message tracking of yes? ### Context: CREATE TABLE table_name_56 (calendar VARCHAR, wysiwyg_editor VARCHAR, unread_message_tracking VARCHAR) ### Response: ### Response: SELECT calendar FROM table_name_56 WHERE wysiwyg_editor = "yes" AND unread_message_tracking = "yes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Interview Subject on the Date when there were Pictorials of Christie Brinkley? ### Context: CREATE TABLE table_name_89 (interview_subject VARCHAR, pictorials VARCHAR) ### Response: ### Response: SELECT interview_subject FROM table_name_89 WHERE pictorials = "christie brinkley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ministries number when duration is 4 years, 4 days (1,465 days)? ### Context: CREATE TABLE table_21422977_2 (ministries VARCHAR, duration VARCHAR) ### Response: ### Response: SELECT ministries FROM table_21422977_2 WHERE duration = "4 years, 4 days (1,465 days)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 junior type with an intake of 60 and a DCSF number less than 3386 with the smallest Ofsted number? ### Context: CREATE TABLE table_name_62 (ofsted_number INTEGER, dcsf_number VARCHAR, intake VARCHAR, type VARCHAR) ### Response: ### Response: SELECT MIN(ofsted_number) FROM table_name_62 WHERE intake = 60 AND type = "junior" AND dcsf_number < 3386</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's the first round that southern mississippi shows up during the draft? ### Context: CREATE TABLE table_name_31 (round INTEGER, school_club_team VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_31 WHERE school_club_team = "southern mississippi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tournament has a Location of texas, and a Winner of tom watson (39)? ### Context: CREATE TABLE table_name_15 (tournament VARCHAR, location VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_15 WHERE location = "texas" AND winner = "tom watson (39)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What district is incumbent albert rains from? ### Context: CREATE TABLE table_1341897_3 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_1341897_3 WHERE incumbent = "Albert Rains"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 system introduced earlier than 1981 has an internal hard disk of 11 megabytes and less than 21 s-100 slots? ### Context: CREATE TABLE table_name_47 (system VARCHAR, internal_hard_disk VARCHAR, s_100_slots VARCHAR, year_introduced VARCHAR) ### Response: ### Response: SELECT system FROM table_name_47 WHERE s_100_slots < 21 AND year_introduced < 1981 AND internal_hard_disk = "11 megabytes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 placed sixth during the season where Tasmania placed second and Western Australia placed fourth? ### Context: CREATE TABLE table_name_70 (sixth VARCHAR, second VARCHAR, fourth VARCHAR) ### Response: ### Response: SELECT sixth FROM table_name_70 WHERE second = "tasmania" AND fourth = "western australia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 texture (gt/s) the card has if the tdp (watts) GPU only is 18? ### Context: CREATE TABLE table_26860595_2 (texture___gt__s_ VARCHAR, tdp__watts__gpu_only VARCHAR) ### Response: ### Response: SELECT COUNT(texture___gt__s_) FROM table_26860595_2 WHERE tdp__watts__gpu_only = "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: Name the most goals with losses less than 15 and position more than 8 with points of 42+4 ### Context: CREATE TABLE table_name_18 (goals_for INTEGER, points VARCHAR, losses VARCHAR, position VARCHAR) ### Response: ### Response: SELECT MAX(goals_for) FROM table_name_18 WHERE losses < 15 AND position > 8 AND points = "42+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: List the id, color scheme, and name for all the photos. ### Context: CREATE TABLE photos (id VARCHAR, color VARCHAR, name VARCHAR) ### Response: ### Response: SELECT id, color, name FROM photos</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what person was in rank 10 ### Context: CREATE TABLE table_name_10 (rider VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT rider FROM table_name_10 WHERE rank = 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 total of medium earth orbital regime, accidentally achieved and successes greater than 3? ### Context: CREATE TABLE table_name_19 (accidentally_achieved INTEGER, orbital_regime VARCHAR, successes VARCHAR) ### Response: ### Response: SELECT SUM(accidentally_achieved) FROM table_name_19 WHERE orbital_regime = "medium earth" AND successes > 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 average number of wins with less than 10 goals? ### Context: CREATE TABLE table_name_76 (wins INTEGER, goals_against INTEGER) ### Response: ### Response: SELECT AVG(wins) FROM table_name_76 WHERE goals_against < 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: Tell me the date for opponents of raffaella bindi biljana pawlowa-dimitrova ### Context: CREATE TABLE table_name_46 (date VARCHAR, opponents VARCHAR) ### Response: ### Response: SELECT date FROM table_name_46 WHERE opponents = "raffaella bindi biljana pawlowa-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: How many figures for votes Khuzestan were there when the percentage was 34.50? ### Context: CREATE TABLE table_1827900_1 (votes_khuzestan VARCHAR, _percentage_of_votes_khuzestan VARCHAR) ### Response: ### Response: SELECT COUNT(votes_khuzestan) FROM table_1827900_1 WHERE _percentage_of_votes_khuzestan = "34.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 Mayor is from the KRF Party? ### Context: CREATE TABLE table_name_97 (mayor VARCHAR, party VARCHAR) ### Response: ### Response: SELECT mayor FROM table_name_97 WHERE party = "krf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 earpads of the headphone with a plastic construction, an unknown sensitivity, and was succeeded by sr325? ### Context: CREATE TABLE table_name_43 (earpads VARCHAR, succeeded_by VARCHAR, construction VARCHAR, sensitivity__db_ VARCHAR) ### Response: ### Response: SELECT earpads FROM table_name_43 WHERE construction = "plastic" AND sensitivity__db_ = "unknown" AND succeeded_by = "sr325"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 resulted in 54 laps? ### Context: CREATE TABLE table_name_39 (year VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT year FROM table_name_39 WHERE laps = 54</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 capacity for 150 suites? ### Context: CREATE TABLE table_name_46 (capacity INTEGER, suites VARCHAR) ### Response: ### Response: SELECT AVG(capacity) FROM table_name_46 WHERE suites = "150"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 preliminaries score where the swimsuit is smaller than 9.297, the evening gown is 9.617, and the interview is larger than 9.143? ### Context: CREATE TABLE table_name_65 (preliminaries INTEGER, interview VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR) ### Response: ### Response: SELECT AVG(preliminaries) FROM table_name_65 WHERE swimsuit < 9.297 AND evening_gown = 9.617 AND interview > 9.143</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What episode had sumo ball for event 3 and the wall for event 4? ### Context: CREATE TABLE table_name_45 (episode_number INTEGER, event_4 VARCHAR, event_3 VARCHAR) ### Response: ### Response: SELECT AVG(episode_number) FROM table_name_45 WHERE event_4 = "the wall" AND event_3 = "sumo ball"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 record of the game on May 6? ### Context: CREATE TABLE table_name_4 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_4 WHERE date = "may 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 cities have 2 to 4 parks? ### Context: CREATE TABLE park (city VARCHAR) ### Response: ### Response: SELECT city FROM park GROUP BY city HAVING COUNT(*) BETWEEN 2 AND 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 class had 1 made and fleet number of 406? ### Context: CREATE TABLE table_name_36 (class VARCHAR, quantity_made VARCHAR, fleet_number_s_ VARCHAR) ### Response: ### Response: SELECT class FROM table_name_36 WHERE quantity_made = "1" AND fleet_number_s_ = "406"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Year with a Binibining Pilipinas-International of jessie alice salones dixson? ### Context: CREATE TABLE table_name_90 (year INTEGER, binibining_pilipinas_international VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_90 WHERE binibining_pilipinas_international = "jessie alice salones dixson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2006 cfl draft pick played college ball at Idaho state? ### Context: CREATE TABLE table_name_91 (pick__number VARCHAR, college VARCHAR) ### Response: ### Response: SELECT pick__number FROM table_name_91 WHERE college = "idaho state"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 value in 2011 when value in 2009 was 82,003? ### Context: CREATE TABLE table_name_45 (Id VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_45 WHERE 2009 = "82,003"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was the total 75–45? ### Context: CREATE TABLE table_name_42 (date VARCHAR, total VARCHAR) ### Response: ### Response: SELECT date FROM table_name_42 WHERE total = "75–45"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Year(s) won from the United States as country with a To Par of +4? ### Context: CREATE TABLE table_name_21 (year_s__won VARCHAR, country VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT year_s__won FROM table_name_21 WHERE country = "united states" AND to_par = "+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: Who was on the Democratic ticket for the Office of Attorney General? ### Context: CREATE TABLE table_name_70 (democratic_ticket VARCHAR, office VARCHAR) ### Response: ### Response: SELECT democratic_ticket FROM table_name_70 WHERE office = "attorney general"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season number for jeff truman ### Context: CREATE TABLE table_15838081_3 (season__number VARCHAR, writer_s_ VARCHAR) ### Response: ### Response: SELECT COUNT(season__number) FROM table_15838081_3 WHERE writer_s_ = "Jeff Truman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2004 value with a sf in 2010? ### Context: CREATE TABLE table_name_4 (Id VARCHAR) ### Response: ### Response: SELECT 2004 FROM table_name_4 WHERE 2010 = "sf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race winner with a pole position james hunt, and a Fastest Lap of james hunt, and a Date of 15 august? ### Context: CREATE TABLE table_name_58 (race VARCHAR, date VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR) ### Response: ### Response: SELECT race AS Winner FROM table_name_58 WHERE pole_position = "james hunt" AND fastest_lap = "james hunt" AND date = "15 august"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most pick # for overall of 204 ### Context: CREATE TABLE table_name_52 (pick__number INTEGER, overall VARCHAR) ### Response: ### Response: SELECT MAX(pick__number) FROM table_name_52 WHERE overall = 204</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Country, when Year is "1994"? ### Context: CREATE TABLE table_name_93 (country VARCHAR, year VARCHAR) ### Response: ### Response: SELECT country FROM table_name_93 WHERE year = 1994</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which locomotive class had 5 items made? ### Context: CREATE TABLE table_name_26 (class VARCHAR, quantity_made VARCHAR) ### Response: ### Response: SELECT class FROM table_name_26 WHERE quantity_made = 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 episode number had 14.41 million viewers? ### Context: CREATE TABLE table_27553627_2 (episodes INTEGER, viewers__in_millions_ VARCHAR) ### Response: ### Response: SELECT MAX(episodes) FROM table_27553627_2 WHERE viewers__in_millions_ = "14.41"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Country, when Player is Billy Mayfair? ### Context: CREATE TABLE table_name_50 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_50 WHERE player = "billy mayfair"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listings under Melbourne has a distance at 15km? ### Context: CREATE TABLE table_2923917_4 (melbourne VARCHAR, distance VARCHAR) ### Response: ### Response: SELECT COUNT(melbourne) FROM table_2923917_4 WHERE distance = "15km"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the candidates in the Kentucky 9 district? ### Context: CREATE TABLE table_2668254_8 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_2668254_8 WHERE district = "Kentucky 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: The game that had a record of 39-25, what was the score? ### Context: CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_77 WHERE record = "39-25"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What numbered game did they play chicago? ### Context: CREATE TABLE table_27755603_11 (game VARCHAR, team VARCHAR) ### Response: ### Response: SELECT game FROM table_27755603_11 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 is the away team of match 9? ### Context: CREATE TABLE table_name_52 (away_team VARCHAR, match_no VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_52 WHERE match_no = "9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the record that had an opponent of Krzysztof Soszynski and a time of 4:00? ### Context: CREATE TABLE table_name_64 (record VARCHAR, time VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT record FROM table_name_64 WHERE time = "4:00" AND opponent = "krzysztof soszynski"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 FCC info with a Frequency MHz thats smaller than 91.9 and has a CIty of license of Dansville, NY? ### Context: CREATE TABLE table_name_8 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) ### Response: ### Response: SELECT fcc_info FROM table_name_8 WHERE frequency_mhz < 91.9 AND city_of_license = "dansville, ny"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest episode number that had a ratings/share (18-49) of 1.1/3? ### Context: CREATE TABLE table_25751274_2 (episode_number INTEGER, rating VARCHAR) ### Response: ### Response: SELECT MIN(episode_number) FROM table_25751274_2 WHERE rating / SHARE(18 - 49) = 1.1 / 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the air date for ratings of 2.19 million ### Context: CREATE TABLE table_27218002_1 (originalairdate VARCHAR, ratings VARCHAR) ### Response: ### Response: SELECT originalairdate FROM table_27218002_1 WHERE ratings = "2.19 Million"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sport for men's light flyweight with medal of gold ### Context: CREATE TABLE table_name_75 (sport VARCHAR, medal VARCHAR, event VARCHAR) ### Response: ### Response: SELECT sport FROM table_name_75 WHERE medal = "gold" AND event = "men's light flyweight"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 national rank of Canada with lanes larger than 3? ### Context: CREATE TABLE table_name_72 (rank INTEGER, nationality VARCHAR, lane VARCHAR) ### Response: ### Response: SELECT SUM(rank) FROM table_name_72 WHERE nationality = "canada" AND lane > 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 are the results of Format single on March 21? ### Context: CREATE TABLE table_name_34 (result_s_ VARCHAR, format_s_ VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result_s_ FROM table_name_34 WHERE format_s_ = "single" AND date = "march 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 name of the visitor on January 24? ### Context: CREATE TABLE table_name_40 (visitor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT visitor FROM table_name_40 WHERE date = "january 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: Points smaller than 96, and a Record of 43–16–8 belongs to what game? ### Context: CREATE TABLE table_name_30 (game VARCHAR, points VARCHAR, record VARCHAR) ### Response: ### Response: SELECT game FROM table_name_30 WHERE points < 96 AND record = "43–16–8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the minimum D (max) when the Morse Taper number is less than 0? ### Context: CREATE TABLE table_name_47 (d__max_ INTEGER, morse_taper_number INTEGER) ### Response: ### Response: SELECT MIN(d__max_) FROM table_name_47 WHERE morse_taper_number < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year was Black Swan up for the Gotham Awards? ### Context: CREATE TABLE table_name_47 (year VARCHAR, title VARCHAR, award VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_47 WHERE title = "black swan" AND award = "gotham awards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the opponent Vancouver Canucks? ### Context: CREATE TABLE table_name_23 (score VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_23 WHERE opponent = "vancouver canucks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 authors who have submissions to more than one workshop. ### Context: CREATE TABLE submission (Author VARCHAR, Submission_ID VARCHAR); CREATE TABLE acceptance (Submission_ID VARCHAR, workshop_id VARCHAR) ### Response: ### Response: SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 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: How many countries earned 177.2 points? ### Context: CREATE TABLE table_1059743_2 (member_association VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(member_association) FROM table_1059743_2 WHERE points = "177.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 are the original air date(s) for season episode 20? ### Context: CREATE TABLE table_26866519_1 (original_airdate VARCHAR, season__number VARCHAR) ### Response: ### Response: SELECT original_airdate FROM table_26866519_1 WHERE season__number = 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: Where is the Eastern Nazarene College located? ### Context: CREATE TABLE table_1973729_1 (location VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT location FROM table_1973729_1 WHERE institution = "Eastern Nazarene 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 rank has jo angel (wa) as the player? ### Context: CREATE TABLE table_name_47 (rank VARCHAR, player VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_47 WHERE player = "jo angel (wa)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 type opened in 1982? ### Context: CREATE TABLE table_name_12 (type VARCHAR, opened VARCHAR) ### Response: ### Response: SELECT type FROM table_name_12 WHERE opened = "1982"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Russian has an Avoirdupois value of 0.686 gr? ### Context: CREATE TABLE table_name_16 (russian VARCHAR, avoirdupois_value VARCHAR) ### Response: ### Response: SELECT russian FROM table_name_16 WHERE avoirdupois_value = "0.686 gr"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 version with sbagen software? ### Context: CREATE TABLE table_15038373_1 (version VARCHAR, software VARCHAR) ### Response: ### Response: SELECT version FROM table_15038373_1 WHERE software = "SBaGen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Time/Retired with a Grid of 12? ### Context: CREATE TABLE table_name_23 (time_retired VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_23 WHERE grid = 12</s>