inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the away team when bournemouth was the home team? ### Context: CREATE TABLE table_name_31 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_31 WHERE home_team = "bournemouth"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 opponent on november 8, 1981? ### Context: CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_6 WHERE date = "november 8, 1981"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 winning party in the Pennsylvania 6 district? ### Context: CREATE TABLE table_1341604_39 (party VARCHAR, district VARCHAR) ### Response: ### Response: SELECT party FROM table_1341604_39 WHERE district = "Pennsylvania 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: When was Stellbrookmoor established? ### Context: CREATE TABLE table_26013618_1 (date_established VARCHAR, name_of_the_nature_reserve VARCHAR) ### Response: ### Response: SELECT date_established FROM table_26013618_1 WHERE name_of_the_nature_reserve = "Stellbrookmoor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Athlete of the race with a Time of 9.78? ### Context: CREATE TABLE table_name_14 (athlete VARCHAR, time VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_14 WHERE time = 9.78</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 left end player made the most points? ### Context: CREATE TABLE table_14342210_6 (points INTEGER, position VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_14342210_6 WHERE position = "Left end"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the 3rd stage for parameter of thrust ### Context: CREATE TABLE table_16537783_2 (parameter VARCHAR) ### Response: ### Response: SELECT 3 AS rd_stage FROM table_16537783_2 WHERE parameter = "Thrust"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position is the boat with 20.12 LOA (metres)? ### Context: CREATE TABLE table_20854943_2 (position INTEGER, loa__metres_ VARCHAR) ### Response: ### Response: SELECT MAX(position) FROM table_20854943_2 WHERE loa__metres_ = "20.12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Location has a Method of submission (rear naked choke), a Round of 1, and an Event of ufc 127? ### Context: CREATE TABLE table_name_57 (location VARCHAR, event VARCHAR, method VARCHAR, round VARCHAR) ### Response: ### Response: SELECT location FROM table_name_57 WHERE method = "submission (rear naked choke)" AND round = 1 AND event = "ufc 127"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What college did Louis LeBlanc attend? ### Context: CREATE TABLE table_name_66 (college_junior_club_team__league_ VARCHAR, player VARCHAR) ### Response: ### Response: SELECT college_junior_club_team__league_ FROM table_name_66 WHERE player = "louis leblanc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I want the trailers for motors of 145 ### Context: CREATE TABLE table_name_92 (trailers VARCHAR, motors VARCHAR) ### Response: ### Response: SELECT trailers FROM table_name_92 WHERE motors = "145"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stations for zone 5 and 1 platform by tramlink ### Context: CREATE TABLE table_name_58 (stations VARCHAR, platforms VARCHAR, managed_by VARCHAR, zone VARCHAR) ### Response: ### Response: SELECT stations FROM table_name_58 WHERE managed_by = "tramlink" AND zone = 5 AND platforms = 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 line of the station in Toolamba that is currently demolished and closed in the late 1970s? ### Context: CREATE TABLE table_name_81 (line VARCHAR, location VARCHAR, current_status VARCHAR, closed VARCHAR) ### Response: ### Response: SELECT line FROM table_name_81 WHERE current_status = "demolished" AND closed = "late 1970s" AND location = "toolamba"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many times did Fiji win r1? ### Context: CREATE TABLE table_18812411_3 (r1 VARCHAR, country VARCHAR) ### Response: ### Response: SELECT COUNT(r1) FROM table_18812411_3 WHERE country = "Fiji"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Eren Talu bidding project located? ### Context: CREATE TABLE table_name_30 (location VARCHAR, project VARCHAR) ### Response: ### Response: SELECT location FROM table_name_30 WHERE project = "eren talu bidding project"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 is the Victoria Park venue? ### Context: CREATE TABLE table_name_3 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_3 WHERE venue = "victoria park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the driver passenger for position 4 ### Context: CREATE TABLE table_16729457_17 (driver___passenger VARCHAR, position VARCHAR) ### Response: ### Response: SELECT driver___passenger FROM table_16729457_17 WHERE position = 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 1994 when 1996 is 3R? ### Context: CREATE TABLE table_name_46 (Id VARCHAR) ### Response: ### Response: SELECT 1994 FROM table_name_46 WHERE 1996 = "3r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the average grid at the time Vanwall was constructor and there were 17 laps? ### Context: CREATE TABLE table_name_3 (grid INTEGER, constructor VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT AVG(grid) FROM table_name_3 WHERE constructor = "vanwall" AND laps = 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What party does jim ramstad represent? ### Context: CREATE TABLE table_1341423_23 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1341423_23 WHERE incumbent = "Jim Ramstad"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What title was watched by 3.8 million US viewers? ### Context: CREATE TABLE table_26448179_3 (title VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT title FROM table_26448179_3 WHERE us_viewers__millions_ = "3.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: How many drawn does the team Corinthians have? ### Context: CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR) ### Response: ### Response: SELECT drawn FROM table_15352382_1 WHERE team = "Corinthians"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of Real Betis career had appearances smaller than 98, nationality of Spain, and goals greater than 15? ### Context: CREATE TABLE table_name_63 (real_betis_career VARCHAR, goals VARCHAR, appearances VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT real_betis_career FROM table_name_63 WHERE appearances < 98 AND nationality = "spain" AND goals > 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: Who lost when the philadelphia eagles won at lincoln financial field on september 30? ### Context: CREATE TABLE table_name_24 (loser VARCHAR, date VARCHAR, location VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT loser FROM table_name_24 WHERE location = "lincoln financial field" AND winner = "philadelphia eagles" AND date = "september 30"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 burglaries occurred in the city where the violent crime rate was 974.7? ### Context: CREATE TABLE table_1818254_1 (burglary VARCHAR, violent_crime VARCHAR) ### Response: ### Response: SELECT burglary FROM table_1818254_1 WHERE violent_crime = "974.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's the location when the record was 6-0-1? ### Context: CREATE TABLE table_name_17 (location VARCHAR, record VARCHAR) ### Response: ### Response: SELECT location FROM table_name_17 WHERE record = "6-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: What locations did sid o'neill play football? ### Context: CREATE TABLE table_16527640_2 (location VARCHAR, player VARCHAR) ### Response: ### Response: SELECT location FROM table_16527640_2 WHERE player = "Sid O'Neill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Jianshu when the total is more than 19.16, for Nguyen Huy Thanh ( vie ), and Qiangshu is more than 9.66? ### Context: CREATE TABLE table_name_76 (jianshu VARCHAR, qiangshu VARCHAR, total VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT COUNT(jianshu) FROM table_name_76 WHERE total > 19.16 AND athlete = "nguyen huy thanh ( vie )" AND qiangshu > 9.66</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Median family income when the Median household income is $38,137? ### Context: CREATE TABLE table_name_8 (median_family_income VARCHAR, median_household_income VARCHAR) ### Response: ### Response: SELECT median_family_income FROM table_name_8 WHERE median_household_income = "$38,137"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Number of fixtures when the rounds shows quarter-finals? ### Context: CREATE TABLE table_name_65 (number_of_fixtures INTEGER, round VARCHAR) ### Response: ### Response: SELECT SUM(number_of_fixtures) FROM table_name_65 WHERE round = "quarter-finals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score in the game where the record was 10-9-7? ### Context: CREATE TABLE table_name_94 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_94 WHERE record = "10-9-7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points did the Castres have? ### Context: CREATE TABLE table_name_59 (points_for VARCHAR, club VARCHAR) ### Response: ### Response: SELECT points_for FROM table_name_59 WHERE club = "castres"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many Points against that have a Team of harlequins and Tries against smaller than 8? ### Context: CREATE TABLE table_name_37 (points_against INTEGER, team VARCHAR, tries_against VARCHAR) ### Response: ### Response: SELECT SUM(points_against) FROM table_name_37 WHERE team = "harlequins" AND tries_against < 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 length of retirement for president Sharma, Shankar Shankar Dayal Sharma? ### Context: CREATE TABLE table_name_49 (length_of_retirement VARCHAR, president VARCHAR) ### Response: ### Response: SELECT length_of_retirement FROM table_name_49 WHERE president = "sharma, shankar shankar dayal sharma"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Sri Lankans were admitted in 2004 when more than 594 Nepalis were admitted? ### Context: CREATE TABLE table_name_96 (sri_lankans_admitted INTEGER, year VARCHAR, nepalis_admitted VARCHAR) ### Response: ### Response: SELECT SUM(sri_lankans_admitted) FROM table_name_96 WHERE year = "2004" AND nepalis_admitted > 594</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 report status of Hockenheimring circuit? ### Context: CREATE TABLE table_name_5 (report VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT report FROM table_name_5 WHERE circuit = "hockenheimring"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many times was there a class A winner when Gregory-Portland was the class AAAA? ### Context: CREATE TABLE table_14603057_2 (class_a VARCHAR, class_aAAA VARCHAR, Gregory VARCHAR, Portland VARCHAR) ### Response: ### Response: SELECT COUNT(class_a) FROM table_14603057_2 WHERE class_aAAA = Gregory - Portland</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 bronze for Canada and silver is less than 0? ### Context: CREATE TABLE table_name_72 (bronze INTEGER, nation VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT SUM(bronze) FROM table_name_72 WHERE nation = "canada" AND silver < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the PRR class for wheel arrangement c-c and total less than 15? ### Context: CREATE TABLE table_name_80 (prr_class VARCHAR, wheel_arrangement VARCHAR, total_produced VARCHAR) ### Response: ### Response: SELECT prr_class FROM table_name_80 WHERE wheel_arrangement = "c-c" AND total_produced < 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the location of the team Saturn? ### Context: CREATE TABLE table_20140132_1 (location VARCHAR, team VARCHAR) ### Response: ### Response: SELECT location FROM table_20140132_1 WHERE team = "Saturn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 completed list entry number more than 1356460? ### Context: CREATE TABLE table_name_58 (completed VARCHAR, list_entry_number INTEGER) ### Response: ### Response: SELECT completed FROM table_name_58 WHERE list_entry_number > 1356460</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 census ranking when the area is 78.67 ? ### Context: CREATE TABLE table_170969_2 (census_ranking VARCHAR, area_km_2 VARCHAR) ### Response: ### Response: SELECT census_ranking FROM table_170969_2 WHERE area_km_2 = "78.67"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what city scored 0:0 ### Context: CREATE TABLE table_name_78 (city VARCHAR, results¹ VARCHAR) ### Response: ### Response: SELECT city FROM table_name_78 WHERE results¹ = "0: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: Where was the 1966 final played? ### Context: CREATE TABLE table_name_12 (finals_venue__surface_ VARCHAR, year VARCHAR) ### Response: ### Response: SELECT finals_venue__surface_ FROM table_name_12 WHERE year = 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 kind of Modern equivalent that has a Pre-1009 province of sakbang -do, and a Province of Silla of sakju? ### Context: CREATE TABLE table_name_15 (modern_equivalent VARCHAR, pre_1009_province VARCHAR, province_of_silla VARCHAR) ### Response: ### Response: SELECT modern_equivalent FROM table_name_15 WHERE pre_1009_province = "sakbang -do" AND province_of_silla = "sakju"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ran as an incumbent leader first in 1818? ### Context: CREATE TABLE table_2668254_17 (incumbent VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_2668254_17 WHERE first_elected = "1818"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 application for caligari corporation ### Context: CREATE TABLE table_19495707_1 (application VARCHAR, developed_by VARCHAR) ### Response: ### Response: SELECT application FROM table_19495707_1 WHERE developed_by = "Caligari Corporation"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What time did the match with an away team of Happy Valley Team B start? ### Context: CREATE TABLE table_name_30 (time VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT time FROM table_name_30 WHERE away_team = "happy valley team b"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the id of courses which are registered or attended by student whose id is 121? ### Context: CREATE TABLE student_course_attendance (course_id VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR) ### Response: ### Response: SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2010 for tournament of us open ### Context: CREATE TABLE table_name_95 (tournament VARCHAR) ### Response: ### Response: SELECT 2010 FROM table_name_95 WHERE tournament = "us open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average amount of points larger than 154 laps? ### Context: CREATE TABLE table_name_87 (points INTEGER, laps INTEGER) ### Response: ### Response: SELECT AVG(points) FROM table_name_87 WHERE laps > 154</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode have 8.4 millions viewer. ### Context: CREATE TABLE table_2112766_1 (episode VARCHAR, viewers__in_millions_ VARCHAR) ### Response: ### Response: SELECT COUNT(episode) FROM table_2112766_1 WHERE viewers__in_millions_ = "8.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: When aaron afflalo (9) has the highest amount of rebounds what is the score? ### Context: CREATE TABLE table_23285849_10 (score VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT score FROM table_23285849_10 WHERE high_rebounds = "Aaron Afflalo (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 is the district where the thanjavur medical college is located? ### Context: CREATE TABLE table_name_93 (district VARCHAR, college_name VARCHAR) ### Response: ### Response: SELECT district FROM table_name_93 WHERE college_name = "thanjavur medical 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: Which Events is the highest one that has a Top-5 larger than 5, and a Top-10 larger than 28? ### Context: CREATE TABLE table_name_93 (events INTEGER, top_5 VARCHAR, top_10 VARCHAR) ### Response: ### Response: SELECT MAX(events) FROM table_name_93 WHERE top_5 > 5 AND top_10 > 28</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Caps, when Province / Club is Example, when Position is Prop, and when Player is Sam Walters? ### Context: CREATE TABLE table_name_96 (caps VARCHAR, player VARCHAR, province___club VARCHAR, position VARCHAR) ### Response: ### Response: SELECT caps FROM table_name_96 WHERE province___club = "example" AND position = "prop" AND player = "sam walters"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When columbia, south carolina is the hometown what is the lowest age? ### Context: CREATE TABLE table_1859855_2 (age INTEGER, hometown VARCHAR) ### Response: ### Response: SELECT MIN(age) FROM table_1859855_2 WHERE hometown = "Columbia, South Carolina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What finish has a 143.056 qual? ### Context: CREATE TABLE table_name_69 (finish VARCHAR, qual VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_69 WHERE qual = "143.056"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the Mole was Petrina Edge, what was the potential prize money? ### Context: CREATE TABLE table_name_70 (potential_prize_money VARCHAR, mole VARCHAR) ### Response: ### Response: SELECT potential_prize_money FROM table_name_70 WHERE mole = "petrina edge"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: By how many strokes did Lema beat Jack Nicklaus? ### Context: CREATE TABLE table_name_16 (margin_of_victory VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_16 WHERE runner_s__up = "jack nicklaus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number first elected to district louisiana 5? ### Context: CREATE TABLE table_1342198_18 (first_elected INTEGER, district VARCHAR) ### Response: ### Response: SELECT MIN(first_elected) FROM table_1342198_18 WHERE district = "Louisiana 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: When the wallington new foresters are in division four what is the season? ### Context: CREATE TABLE table_24575253_4 (season VARCHAR, division_four VARCHAR) ### Response: ### Response: SELECT season FROM table_24575253_4 WHERE division_four = "Wallington New Foresters"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Poles have a position of 4th? ### Context: CREATE TABLE table_name_63 (poles VARCHAR, position VARCHAR) ### Response: ### Response: SELECT poles FROM table_name_63 WHERE position = "4th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 position for bruce taylor? ### Context: CREATE TABLE table_name_6 (position INTEGER, pilot VARCHAR) ### Response: ### Response: SELECT MIN(position) FROM table_name_6 WHERE pilot = "bruce taylor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 incumbent in the Ohio 5 district? ### Context: CREATE TABLE table_2646656_3 (incumbent VARCHAR, district VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_2646656_3 WHERE district = "Ohio 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 is the stamp duty reserve tax when the percentage over total tax revenue is 0.79? ### Context: CREATE TABLE table_1618358_1 (stamp_duty_reserve_tax VARCHAR, over_total_tax_revenue__in__percentage_ VARCHAR) ### Response: ### Response: SELECT stamp_duty_reserve_tax FROM table_1618358_1 WHERE over_total_tax_revenue__in__percentage_ = "0.79"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who has a Snatch of 157.0? ### Context: CREATE TABLE table_name_78 (name VARCHAR, snatch VARCHAR) ### Response: ### Response: SELECT name FROM table_name_78 WHERE snatch = "157.0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many silvers are there with more than 2 golds in Germany? ### Context: CREATE TABLE table_name_81 (silver VARCHAR, gold VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT COUNT(silver) FROM table_name_81 WHERE gold > 2 AND nation = "germany"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the fight located that lasted a time of 2:33? ### Context: CREATE TABLE table_name_7 (location VARCHAR, time VARCHAR) ### Response: ### Response: SELECT location FROM table_name_7 WHERE time = "2:33"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which carpet has a Clay of 1–0 and a Hard 1–1? ### Context: CREATE TABLE table_name_1 (carpet VARCHAR, clay VARCHAR, hard VARCHAR) ### Response: ### Response: SELECT carpet FROM table_name_1 WHERE clay = "1–0" AND hard = "1–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 Finalist has a Week of may 3? ### Context: CREATE TABLE table_name_17 (finalist VARCHAR, week VARCHAR) ### Response: ### Response: SELECT finalist FROM table_name_17 WHERE week = "may 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: How many goals when the score is 3-0 in the euro 2012 q? ### Context: CREATE TABLE table_name_61 (goal VARCHAR, competition VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(goal) FROM table_name_61 WHERE competition = "euro 2012 q" AND score = "3-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 are coach Bill Henderson's highest wins with more than 233 losses? ### Context: CREATE TABLE table_name_35 (wins INTEGER, coach VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT MAX(wins) FROM table_name_35 WHERE coach = "bill henderson" AND losses > 233</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the cars with horsepower more than 150? ### Context: CREATE TABLE CARS_DATA (horsepower INTEGER) ### Response: ### Response: SELECT COUNT(*) FROM CARS_DATA WHERE horsepower > 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 country that the player with a score of 70-69=139 from? ### Context: CREATE TABLE table_name_43 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_43 WHERE score = 70 - 69 = 139</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 POSITION FOR CANADA, ROUND SMALLER THAN 7, PLAYER ZACH BOYCHUK? ### Context: CREATE TABLE table_name_4 (position VARCHAR, player VARCHAR, nationality VARCHAR, round VARCHAR) ### Response: ### Response: SELECT position FROM table_name_4 WHERE nationality = "canada" AND round < 7 AND player = "zach boychuk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2002 has a 2013 of 2–4? ### Context: CREATE TABLE table_name_37 (Id VARCHAR) ### Response: ### Response: SELECT 2002 FROM table_name_37 WHERE 2013 = "2–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: Where was the series that the Kansas City Royals lost? ### Context: CREATE TABLE table_name_65 (site VARCHAR, winning_team VARCHAR) ### Response: ### Response: SELECT site FROM table_name_65 WHERE winning_team = "kansas city royals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 what platform does Mindark publish? ### Context: CREATE TABLE table_name_37 (platform VARCHAR, publisher VARCHAR) ### Response: ### Response: SELECT platform FROM table_name_37 WHERE publisher = "mindark"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 livingstone with fitzroy being 9499 ### Context: CREATE TABLE table_12570207_1 (livingstone VARCHAR, fitzroy VARCHAR) ### Response: ### Response: SELECT livingstone FROM table_12570207_1 WHERE fitzroy = 9499</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What day did the job open up when bogićević was outgoing? ### Context: CREATE TABLE table_17933600_2 (date_of_vacancy VARCHAR, outgoing_manage VARCHAR) ### Response: ### Response: SELECT date_of_vacancy FROM table_17933600_2 WHERE outgoing_manage = "Bogićević"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT IS THE PLAYER WITH 287? ### Context: CREATE TABLE table_name_26 (player VARCHAR, total VARCHAR) ### Response: ### Response: SELECT player FROM table_name_26 WHERE total = 287</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 score of game 77? ### Context: CREATE TABLE table_name_20 (score VARCHAR, game VARCHAR) ### Response: ### Response: SELECT score FROM table_name_20 WHERE game = "77"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of Total Goals scored by Stan Mortensen where the Qualifying Goals is greater than 3? ### Context: CREATE TABLE table_name_1 (total_goals VARCHAR, player VARCHAR, qualifying_goals VARCHAR) ### Response: ### Response: SELECT COUNT(total_goals) FROM table_name_1 WHERE player = "stan mortensen" AND qualifying_goals > 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 principal has a school mascot of the patriots? ### Context: CREATE TABLE table_name_92 (principal VARCHAR, mascot VARCHAR) ### Response: ### Response: SELECT principal FROM table_name_92 WHERE mascot = "patriots"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What ranking is the Battersea Power Station? ### Context: CREATE TABLE table_name_86 (rank VARCHAR, name VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_86 WHERE name = "battersea power station"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 model with fuel or propulsion of diesel and orion manufacturer in 2005 ### Context: CREATE TABLE table_name_68 (model VARCHAR, year VARCHAR, fuel_or_propulsion VARCHAR, manufacturer VARCHAR) ### Response: ### Response: SELECT model FROM table_name_68 WHERE fuel_or_propulsion = "diesel" AND manufacturer = "orion" AND year = 2005</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the delegates and the names of county they belong to. ### Context: CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR) ### Response: ### Response: SELECT T2.Delegate, T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rank for puerto rico? ### Context: CREATE TABLE table_150340_3 (rank INTEGER, country VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_150340_3 WHERE country = "Puerto Rico"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of ties a team with less than 3 losses have? ### Context: CREATE TABLE table_name_98 (ties VARCHAR, losses INTEGER) ### Response: ### Response: SELECT COUNT(ties) FROM table_name_98 WHERE losses < 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: Which Award has a nominated, and outstanding choreography? ### Context: CREATE TABLE table_name_92 (award VARCHAR, result VARCHAR, category VARCHAR) ### Response: ### Response: SELECT award FROM table_name_92 WHERE result = "nominated" AND category = "outstanding choreography"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If two years is 159, what is the amount for one year? ### Context: CREATE TABLE table_174266_6 (one_year INTEGER, two_years VARCHAR) ### Response: ### Response: SELECT MIN(one_year) FROM table_174266_6 WHERE two_years = 159</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the winner when Niki Lauda held pole position? ### Context: CREATE TABLE table_name_48 (race VARCHAR, pole_position VARCHAR) ### Response: ### Response: SELECT race AS Winner FROM table_name_48 WHERE pole_position = "niki lauda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What format has United Kingdom as its region and is catalogued as 201457 9? ### Context: CREATE TABLE table_name_65 (format VARCHAR, region VARCHAR, catalogue VARCHAR) ### Response: ### Response: SELECT format FROM table_name_65 WHERE region = "united kingdom" AND catalogue = "201457 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: Name the least transfers out when transfers is 21 ### Context: CREATE TABLE table_17650725_1 (transfers_out INTEGER, total_transfers VARCHAR) ### Response: ### Response: SELECT MIN(transfers_out) FROM table_17650725_1 WHERE total_transfers = 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: Tell me the left office for enrico la loggia ### Context: CREATE TABLE table_name_83 (left_office VARCHAR, minister VARCHAR) ### Response: ### Response: SELECT left_office FROM table_name_83 WHERE minister = "enrico la loggia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what the most lost for Alianza with a draw less than 6? ### Context: CREATE TABLE table_name_26 (lost INTEGER, team VARCHAR, draw VARCHAR) ### Response: ### Response: SELECT MAX(lost) FROM table_name_26 WHERE team = "alianza" AND draw < 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 language when the awardee is re-recordist : mateen ahmad? ### Context: CREATE TABLE table_25926120_7 (language VARCHAR, awardee_s_ VARCHAR) ### Response: ### Response: SELECT language FROM table_25926120_7 WHERE awardee_s_ = "Re-recordist : Mateen Ahmad"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 longest arch with a length in meters of 63? ### Context: CREATE TABLE table_name_47 (location VARCHAR, length___m__ VARCHAR) ### Response: ### Response: SELECT location FROM table_name_47 WHERE length___m__ = "63"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average amount of Gold medals won when there were more than 1 silver medal won and less than 2 bronze medals won. ### Context: CREATE TABLE table_name_53 (gold INTEGER, silver VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT AVG(gold) FROM table_name_53 WHERE silver > 1 AND bronze < 2</s>