inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the group a winner for vis pesaro? ### Context: CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_c_winner VARCHAR) ### Response: ### Response: SELECT group_a_winner FROM table_1137142_1 WHERE group_c_winner = "Vis Pesaro"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 innings when the highest score is 72? ### Context: CREATE TABLE table_28846752_4 (innings INTEGER, highest_score VARCHAR) ### Response: ### Response: SELECT MAX(innings) FROM table_28846752_4 WHERE highest_score = "72"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 storeys in Calgary during 1975-1976? ### Context: CREATE TABLE table_name_46 (storeys VARCHAR, city VARCHAR, years VARCHAR) ### Response: ### Response: SELECT storeys FROM table_name_46 WHERE city = "calgary" AND years = "1975-1976"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which home team had an away team of the Brisbane Lions? ### Context: CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_36 WHERE away_team = "brisbane lions"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for Chuquisaca? ### Context: CREATE TABLE table_21249915_1 (total VARCHAR, department VARCHAR) ### Response: ### Response: SELECT total FROM table_21249915_1 WHERE department = "Chuquisaca"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Date, when Runner(s)-Up is Oliver Wilson? ### Context: CREATE TABLE table_name_71 (date VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT date FROM table_name_71 WHERE runner_s__up = "oliver wilson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2011 Australian Open and a 2010 QF? ### Context: CREATE TABLE table_name_70 (tournament VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_70 WHERE tournament = "australian open" AND 2010 = "qf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the building completed that has 10 floors? ### Context: CREATE TABLE table_name_82 (year_completed INTEGER, floors VARCHAR) ### Response: ### Response: SELECT AVG(year_completed) FROM table_name_82 WHERE floors = 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 report has gauteng falcons as the opposing team? ### Context: CREATE TABLE table_name_81 (report VARCHAR, opposing_team VARCHAR) ### Response: ### Response: SELECT report FROM table_name_81 WHERE opposing_team = "gauteng falcons"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nickname of the school in Maryville, Tennessee? ### Context: CREATE TABLE table_1973842_2 (nickname VARCHAR, location VARCHAR) ### Response: ### Response: SELECT nickname FROM table_1973842_2 WHERE location = "Maryville, Tennessee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who is the leading scorer where home is charlotte bobcats ### Context: CREATE TABLE table_11964047_5 (leading_scorer VARCHAR, home VARCHAR) ### Response: ### Response: SELECT leading_scorer FROM table_11964047_5 WHERE home = "Charlotte Bobcats"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's average is 24.8? ### Context: CREATE TABLE table_16912000_13 (player VARCHAR, kr_avg VARCHAR) ### Response: ### Response: SELECT player FROM table_16912000_13 WHERE kr_avg = "24.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 year did the university of Pittsburgh school join the hockey league? ### Context: CREATE TABLE table_16384648_2 (joined_tschl VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT joined_tschl FROM table_16384648_2 WHERE institution = "University of Pittsburgh"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 label had a Japan region and a date of November 3, 2004? ### Context: CREATE TABLE table_name_53 (label VARCHAR, region VARCHAR, date VARCHAR) ### Response: ### Response: SELECT label FROM table_name_53 WHERE region = "japan" AND date = "november 3, 2004"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date was the game played at princes park? ### Context: CREATE TABLE table_name_8 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_8 WHERE venue = "princes park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the margin of victory in a semgroup championship? ### Context: CREATE TABLE table_name_39 (margin_of_victory VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_39 WHERE tournament = "semgroup 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: List the number of all matches who played in years of 2013 or 2016. ### Context: CREATE TABLE matches (YEAR VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Position of member, and a Tenure Began of 2010, and a Name of xue hanqin has what lowest term ending? ### Context: CREATE TABLE table_name_54 (term_ending INTEGER, name VARCHAR, position VARCHAR, tenure_began VARCHAR) ### Response: ### Response: SELECT MIN(term_ending) FROM table_name_54 WHERE position = "member" AND tenure_began = 2010 AND name = "xue hanqin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the Winning constructor on 31 may and a Circuit of madonie? ### Context: CREATE TABLE table_name_96 (winning_constructor VARCHAR, date VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT winning_constructor FROM table_name_96 WHERE date = "31 may" AND circuit = "madonie"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 commissioned for scotts, greenock and chieftain? ### Context: CREATE TABLE table_1206583_2 (commissioned VARCHAR, builder VARCHAR, name VARCHAR) ### Response: ### Response: SELECT commissioned FROM table_1206583_2 WHERE builder = "Scotts, Greenock" AND name = "Chieftain"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date of appointment when the date of vacancy is 15 march 2011? ### Context: CREATE TABLE table_26998135_2 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR) ### Response: ### Response: SELECT date_of_appointment FROM table_26998135_2 WHERE date_of_vacancy = "15 March 2011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date was versmold? ### Context: CREATE TABLE table_name_15 (date VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT date FROM table_name_15 WHERE tournament = "versmold"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name that has 17 floors ### Context: CREATE TABLE table_name_25 (name VARCHAR, floors VARCHAR) ### Response: ### Response: SELECT name FROM table_name_25 WHERE floors = 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: When art grand prix is the team and 2010 is the season how many wins are there? ### Context: CREATE TABLE table_25352318_1 (wins VARCHAR, season VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(wins) FROM table_25352318_1 WHERE season = 2010 AND team = "ART Grand Prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Time/Retired has a Rider of daijiro kato? ### Context: CREATE TABLE table_name_43 (time_retired VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_43 WHERE rider = "daijiro kato"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 has the alma mater of Eastern Nazarene ('74), and greater than 19 experience? ### Context: CREATE TABLE table_name_86 (name VARCHAR, experience VARCHAR, alma_mater VARCHAR) ### Response: ### Response: SELECT name FROM table_name_86 WHERE experience > 19 AND alma_mater = "eastern nazarene ('74)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the cardinalatial title when the elevated is September 18, 1294, and elector is Bérard De Got? ### Context: CREATE TABLE table_name_36 (cardinalatial_title VARCHAR, elevated VARCHAR, elector VARCHAR) ### Response: ### Response: SELECT cardinalatial_title FROM table_name_36 WHERE elevated = "september 18, 1294" AND elector = "bérard de got"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko? ### Context: CREATE TABLE table_name_2 (week_of VARCHAR, semi_finalists VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT week_of FROM table_name_2 WHERE semi_finalists = "anke huber chanda rubin" AND runner_up = "meredith mcgrath larisa savchenko"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rank when then time was 7:52.53? ### Context: CREATE TABLE table_name_10 (rank INTEGER, time VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_10 WHERE time = "7:52.53"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city is the headquarter of the store named "Blackville" in? ### Context: CREATE TABLE store (store_id VARCHAR, store_name VARCHAR); CREATE TABLE district (headquartered_city VARCHAR, district_id VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR) ### Response: ### Response: SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = "Blackville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What number is Kuiper? ### Context: CREATE TABLE table_name_28 (number VARCHAR, name VARCHAR) ### Response: ### Response: SELECT number FROM table_name_28 WHERE name = "kuiper"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Result has a Venue of kinnarps arena, and a Date of thursday, february 19? ### Context: CREATE TABLE table_name_86 (result VARCHAR, venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_86 WHERE venue = "kinnarps arena" AND date = "thursday, february 19"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 last when the first was January 2001 and more than 26 total? ### Context: CREATE TABLE table_name_72 (last VARCHAR, total VARCHAR, first VARCHAR) ### Response: ### Response: SELECT last FROM table_name_72 WHERE total > 26 AND first = "january 2001"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many losses have 11 points? ### Context: CREATE TABLE table_name_62 (losses VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(losses) FROM table_name_62 WHERE points = 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who is the featuring when the doctor is the 6th and the series sorted is 6y/ak? ### Context: CREATE TABLE table_name_30 (featuring VARCHAR, doctor VARCHAR, series_sorted VARCHAR) ### Response: ### Response: SELECT featuring FROM table_name_30 WHERE doctor = "6th" AND series_sorted = "6y/ak"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number of fastest laps listed? ### Context: CREATE TABLE table_19312274_3 (fastest_laps INTEGER) ### Response: ### Response: SELECT MIN(fastest_laps) FROM table_19312274_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: Who is in January where April is chris cranston? ### Context: CREATE TABLE table_name_71 (january VARCHAR, april VARCHAR) ### Response: ### Response: SELECT january FROM table_name_71 WHERE april = "chris cranston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On which date was the venue at Windy Hill? ### Context: CREATE TABLE table_name_61 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_61 WHERE venue = "windy hill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in 2010 of the team with a code of (IATA/ICAO) or cra/lrcv? ### Context: CREATE TABLE table_name_20 (code__iata_icao_ VARCHAR) ### Response: ### Response: SELECT 2010 FROM table_name_20 WHERE code__iata_icao_ = "cra/lrcv"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 director of the movie having a release date of 1934-09-15, an MM Series and a production number less than 6494? ### Context: CREATE TABLE table_name_12 (director VARCHAR, release_date VARCHAR, series VARCHAR, production_num VARCHAR) ### Response: ### Response: SELECT director FROM table_name_12 WHERE series = "mm" AND production_num < 6494 AND release_date = "1934-09-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 Country scored 72-65-73=210? ### Context: CREATE TABLE table_name_2 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_2 WHERE score = 72 - 65 - 73 = 210</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 place that Once Municipal has a lost greater than 3? ### Context: CREATE TABLE table_name_81 (place INTEGER, team VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT AVG(place) FROM table_name_81 WHERE team = "once municipal" AND lost > 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 year is the founding year, for the school that had an enrollment in 2005 of 963? ### Context: CREATE TABLE table_2076490_1 (founded VARCHAR, enrollment__2005_ VARCHAR) ### Response: ### Response: SELECT founded FROM table_2076490_1 WHERE enrollment__2005_ = "963"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for races where Will Power had both pole position and fastest lap? ### Context: CREATE TABLE table_16099880_5 (report VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR) ### Response: ### Response: SELECT report FROM table_16099880_5 WHERE pole_position = "Will Power" AND fastest_lap = "Will Power"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 won $98,860? ### Context: CREATE TABLE table_name_97 (driver VARCHAR, winnings VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_97 WHERE winnings = "$98,860"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date was the total 60–77? ### Context: CREATE TABLE table_name_88 (date VARCHAR, total VARCHAR) ### Response: ### Response: SELECT date FROM table_name_88 WHERE total = "60–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: How many records were made on March 27, 2009? ### Context: CREATE TABLE table_16864968_8 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(record) FROM table_16864968_8 WHERE date = "March 27, 2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the fleet size of the Vanguard 0-6-0dh class? ### Context: CREATE TABLE table_name_73 (fleet_size VARCHAR, class VARCHAR) ### Response: ### Response: SELECT fleet_size FROM table_name_73 WHERE class = "vanguard 0-6-0dh"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 film actors (actresses) played a role in more than 30 films? List his or her first name and last name. ### Context: CREATE TABLE film_actor (actor_id VARCHAR); CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR, actor_id VARCHAR) ### Response: ### Response: SELECT T2.first_name, T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING COUNT(*) > 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: What is the Suffix of the intensive and valency change of 0? ### Context: CREATE TABLE table_name_21 (suffix VARCHAR, valency_change VARCHAR, type VARCHAR) ### Response: ### Response: SELECT suffix FROM table_name_21 WHERE valency_change = "0" AND type = "intensive"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On which episode did actress Sela Ward make her last appearance? ### Context: CREATE TABLE table_11240028_1 (last_appearance VARCHAR, portrayed_by VARCHAR) ### Response: ### Response: SELECT last_appearance FROM table_11240028_1 WHERE portrayed_by = "Sela Ward"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 place with 582.20 square km area? ### Context: CREATE TABLE table_176529_2 (official_name VARCHAR, area_km_2 VARCHAR) ### Response: ### Response: SELECT official_name FROM table_176529_2 WHERE area_km_2 = "582.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 venue had south melbourne as the home team? ### Context: CREATE TABLE table_name_90 (venue VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_90 WHERE home_team = "south melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many candidates were there in the year of 1987? ### Context: CREATE TABLE table_19698421_1 (number_of_candidates VARCHAR, year VARCHAR) ### Response: ### Response: SELECT number_of_candidates FROM table_19698421_1 WHERE year = "1987"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 livery on the locomotive with a serial number 83-1011? ### Context: CREATE TABLE table_name_86 (livery VARCHAR, serial_no VARCHAR) ### Response: ### Response: SELECT livery FROM table_name_86 WHERE serial_no = "83-1011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round has a College/Junior/Club Team (League) of hamilton red wings (oha), and a Position of rw? ### Context: CREATE TABLE table_name_63 (round INTEGER, college_junior_club_team__league_ VARCHAR, position VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_63 WHERE college_junior_club_team__league_ = "hamilton red wings (oha)" AND position = "rw"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 second qualification time with a first qualification time of 1:02.813? ### Context: CREATE TABLE table_name_29 (qual_2 VARCHAR, qual_1 VARCHAR) ### Response: ### Response: SELECT qual_2 FROM table_name_29 WHERE qual_1 = "1:02.813"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 label is from the Germany region? ### Context: CREATE TABLE table_name_52 (label VARCHAR, region VARCHAR) ### Response: ### Response: SELECT label FROM table_name_52 WHERE region = "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: What was the No. 6 name when Emma was No. 2 and Sophia was No. 3? ### Context: CREATE TABLE table_name_78 (no_6 VARCHAR, no_2 VARCHAR, no_3 VARCHAR) ### Response: ### Response: SELECT no_6 FROM table_name_78 WHERE no_2 = "emma" AND no_3 = "sophia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance for when the washington wizards was visiting ### Context: CREATE TABLE table_name_71 (attendance VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_71 WHERE visitor = "washington wizards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 analogue terrestrial channel when the internet shows channel4.com? ### Context: CREATE TABLE table_name_95 (analogue_terrestrial_channel VARCHAR, internet VARCHAR) ### Response: ### Response: SELECT analogue_terrestrial_channel FROM table_name_95 WHERE internet = "channel4.com"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winners from vietnam ### Context: CREATE TABLE table_12303563_2 (winners VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT winners FROM table_12303563_2 WHERE nation = "Vietnam"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Time is 1:29.43.60? ### Context: CREATE TABLE table_name_68 (country VARCHAR, time VARCHAR) ### Response: ### Response: SELECT country FROM table_name_68 WHERE time = "1:29.43.60"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What brand is the RW-2100 model? ### Context: CREATE TABLE table_name_95 (brand VARCHAR, model VARCHAR) ### Response: ### Response: SELECT brand FROM table_name_95 WHERE model = "rw-2100"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nickname of staff with first name as Janessa and last name as Sawayn? ### Context: CREATE TABLE Staff (nickname VARCHAR, first_name VARCHAR, last_name VARCHAR) ### Response: ### Response: SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Grid, when Time is +43.191, and when Laps is less than 22? ### Context: CREATE TABLE table_name_51 (grid VARCHAR, time VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT COUNT(grid) FROM table_name_51 WHERE time = "+43.191" AND laps < 22</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many places have yamaha as the machine, and 89.85mph as the speed? ### Context: CREATE TABLE table_name_30 (place INTEGER, machine VARCHAR, speed VARCHAR) ### Response: ### Response: SELECT SUM(place) FROM table_name_30 WHERE machine = "yamaha" AND speed = "89.85mph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stories have a rank of 14? ### Context: CREATE TABLE table_name_43 (stories VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT stories FROM table_name_43 WHERE rank = "14"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Line has a Platform of 3? ### Context: CREATE TABLE table_name_62 (line VARCHAR, platform VARCHAR) ### Response: ### Response: SELECT line FROM table_name_62 WHERE platform = "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 decision for boston bruins visitor ### Context: CREATE TABLE table_name_14 (decision VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT decision FROM table_name_14 WHERE visitor = "boston bruins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest number of extra points for players with less than 2 touchdowns and less than 1 point? ### Context: CREATE TABLE table_name_47 (extra_points INTEGER, touchdowns VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MAX(extra_points) FROM table_name_47 WHERE touchdowns < 2 AND points < 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 least w? ### Context: CREATE TABLE table_29704430_1 (w INTEGER) ### Response: ### Response: SELECT MIN(w) FROM table_29704430_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 team in 1987 had a start of 28 and drove a chrysler? ### Context: CREATE TABLE table_name_39 (team VARCHAR, start VARCHAR, year VARCHAR, manufacturer VARCHAR) ### Response: ### Response: SELECT team FROM table_name_39 WHERE year < 1987 AND manufacturer = "chrysler" AND start = "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 did the team score when playing against home in geelong? ### Context: CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_72 WHERE away_team = "geelong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 IHSAA class when the county was 83 vermillion? ### Context: CREATE TABLE table_name_40 (ihsaa_class VARCHAR, county VARCHAR) ### Response: ### Response: SELECT ihsaa_class FROM table_name_40 WHERE county = "83 vermillion"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 firefox value with a 1.9% safari? ### Context: CREATE TABLE table_name_97 (firefox VARCHAR, safari VARCHAR) ### Response: ### Response: SELECT firefox FROM table_name_97 WHERE safari = "1.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: Who won the season when Pete Thomas was the At-Home winner? ### Context: CREATE TABLE table_name_21 (the_biggest_loser VARCHAR, at_home_winner VARCHAR) ### Response: ### Response: SELECT the_biggest_loser FROM table_name_21 WHERE at_home_winner = "pete thomas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Jimmy Vasser's fastest lap? ### Context: CREATE TABLE table_name_32 (fastest_lap VARCHAR, winning_driver VARCHAR) ### Response: ### Response: SELECT fastest_lap FROM table_name_32 WHERE winning_driver = "jimmy vasser"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 WYSIWYG Editor has an Image attachment of yes, and a Calendar of plugin? ### Context: CREATE TABLE table_name_75 (wysiwyg_editor VARCHAR, image_attachment VARCHAR, calendar VARCHAR) ### Response: ### Response: SELECT wysiwyg_editor FROM table_name_75 WHERE image_attachment = "yes" AND calendar = "plugin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 address of the location "UK Gallery"? ### Context: CREATE TABLE LOCATIONS (Address VARCHAR, Location_Name VARCHAR) ### Response: ### Response: SELECT Address FROM LOCATIONS WHERE Location_Name = "UK Gallery"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What did the Dallara chassis with a 5 start in 2006 finish? ### Context: CREATE TABLE table_name_91 (finish VARCHAR, year VARCHAR, chassis VARCHAR, start VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_91 WHERE chassis = "dallara" AND start = "5" AND year = 2006</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's current club with player being nikolaos chatzivrettas ### Context: CREATE TABLE table_12962773_1 (current_club VARCHAR, player VARCHAR) ### Response: ### Response: SELECT current_club FROM table_12962773_1 WHERE player = "Nikolaos Chatzivrettas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 guanay municipality when the tacacoma municipality is 4.321? ### Context: CREATE TABLE table_2509202_2 (guanay_municipality VARCHAR, tacacoma_municipality VARCHAR) ### Response: ### Response: SELECT guanay_municipality FROM table_2509202_2 WHERE tacacoma_municipality = "4.321"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 oder part number for the model with 10x mult. 1? ### Context: CREATE TABLE table_27277284_28 (order_part_number VARCHAR, mult_1 VARCHAR) ### Response: ### Response: SELECT order_part_number FROM table_27277284_28 WHERE mult_1 = "10x"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many wins are there when the draws are less than 0? ### Context: CREATE TABLE table_name_52 (wins INTEGER, draws INTEGER) ### Response: ### Response: SELECT SUM(wins) FROM table_name_52 WHERE draws < 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 Bronze, when Silver is less than 89, and when Total is "4"? ### Context: CREATE TABLE table_name_6 (bronze VARCHAR, silver VARCHAR, total VARCHAR) ### Response: ### Response: SELECT bronze FROM table_name_6 WHERE silver < 89 AND total = 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 2002 average when 2003 is less than 13.2, 2006 is more than 12.1, 2011 is more than 13.5 and 2001 is 11.5? ### Context: CREATE TABLE table_name_64 (Id VARCHAR) ### Response: ### Response: SELECT AVG(2002) FROM table_name_64 WHERE 2003 < 13.2 AND 2006 > 12.1 AND 2011 > 13.5 AND 2001 = 11.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 average Fiscal Year of the firm Headquartered in noida, with less than 85,335 employees? ### Context: CREATE TABLE table_name_55 (fiscal_year INTEGER, headquarters VARCHAR, employees VARCHAR) ### Response: ### Response: SELECT AVG(fiscal_year) FROM table_name_55 WHERE headquarters = "noida" AND employees < 85 OFFSET 335</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 tie number in the game on 5 January 1986 where Exeter City is the away team? ### Context: CREATE TABLE table_name_26 (tie_no VARCHAR, date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_26 WHERE date = "5 january 1986" AND away_team = "exeter city"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when Miami is the visitor? ### Context: CREATE TABLE table_name_33 (score VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT score FROM table_name_33 WHERE visitor = "miami"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the venue where the melbourne tigers play their home games? ### Context: CREATE TABLE table_name_26 (venue VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_26 WHERE home_team = "melbourne tigers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Jim Obradovich, picked after round 2, but before pick 183, plays what position? ### Context: CREATE TABLE table_name_88 (position VARCHAR, player VARCHAR, round VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT position FROM table_name_88 WHERE round > 2 AND pick < 183 AND player = "jim obradovich"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 colleges did the player drafted at 36 attend? ### Context: CREATE TABLE table_16575609_5 (college VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT COUNT(college) FROM table_16575609_5 WHERE pick__number = 36</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 pick number for the College of Perpetual help with the Coca-Cola Tigers as a PBA team? ### Context: CREATE TABLE table_name_52 (pick VARCHAR, college VARCHAR, pba_team VARCHAR) ### Response: ### Response: SELECT COUNT(pick) FROM table_name_52 WHERE college = "perpetual help" AND pba_team = "coca-cola tigers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the type of station for ESPN International Sports? ### Context: CREATE TABLE table_name_74 (type VARCHAR, name VARCHAR) ### Response: ### Response: SELECT type FROM table_name_74 WHERE name = "espn international sports"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Place of the Player from New Zealand? ### Context: CREATE TABLE table_name_18 (place VARCHAR, country VARCHAR) ### Response: ### Response: SELECT place FROM table_name_18 WHERE country = "new zealand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 notes for the shirt that said Pavv before 2005? ### Context: CREATE TABLE table_name_57 (notes VARCHAR, shirt_printing VARCHAR, year VARCHAR) ### Response: ### Response: SELECT notes FROM table_name_57 WHERE shirt_printing = "pavv" 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: How many figures are given for McCain's % in Davidson county? ### Context: CREATE TABLE table_20799905_1 (mccain_percentage VARCHAR, county VARCHAR) ### Response: ### Response: SELECT COUNT(mccain_percentage) FROM table_20799905_1 WHERE county = "DAVIDSON"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lost has a Drawn larger than 1, and Games smaller than 7? ### Context: CREATE TABLE table_name_8 (lost INTEGER, drawn VARCHAR, games VARCHAR) ### Response: ### Response: SELECT MIN(lost) FROM table_name_8 WHERE drawn > 1 AND games < 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: Who is the director for diary for my loves? ### Context: CREATE TABLE table_14975415_1 (director VARCHAR, english_title VARCHAR) ### Response: ### Response: SELECT director FROM table_14975415_1 WHERE english_title = "Diary for My Loves"</s>