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 party is thomas foglietta from? ### Context: CREATE TABLE table_1341472_40 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1341472_40 WHERE incumbent = "Thomas Foglietta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rate limit when the desired rate change (%) is +40.4? ### Context: CREATE TABLE table_25316812_1 (rate_limit__p_ VARCHAR, desired_rate_change___percentage_ VARCHAR) ### Response: ### Response: SELECT rate_limit__p_ FROM table_25316812_1 WHERE desired_rate_change___percentage_ = "+40.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 was the actors name that vadim ilyenko directed? ### Context: CREATE TABLE table_10236830_1 (actors_name VARCHAR, director VARCHAR) ### Response: ### Response: SELECT actors_name FROM table_10236830_1 WHERE director = "Vadim Ilyenko"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 duration of Robert Joy's portrayal? ### Context: CREATE TABLE table_11240028_1 (duration VARCHAR, portrayed_by VARCHAR) ### Response: ### Response: SELECT COUNT(duration) FROM table_11240028_1 WHERE portrayed_by = "Robert Joy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 company started the earliest the maintenance contract? Show the company name. ### Context: CREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR); CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_start_date VARCHAR) ### Response: ### Response: SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id ORDER BY T2.contract_start_date LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the first names and last names of male (sex is M) faculties who live in building NEB. ### Context: CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, sex VARCHAR, Building VARCHAR) ### Response: ### Response: SELECT Fname, Lname FROM FACULTY WHERE sex = "M" AND Building = "NEB"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Att-Cmp has a TD-INT of 7-8? ### Context: CREATE TABLE table_name_21 (att_cmp VARCHAR, td_int VARCHAR) ### Response: ### Response: SELECT att_cmp FROM table_name_21 WHERE td_int = "7-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 totals have a To par of –1? ### Context: CREATE TABLE table_name_98 (total INTEGER, to_par VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_98 WHERE to_par = "–1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games had the attendance of 60225? ### Context: CREATE TABLE table_14945608_1 (result VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT COUNT(result) FROM table_14945608_1 WHERE attendance = 60225</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title has xbox as the platform with a year prior to 2006? ### Context: CREATE TABLE table_name_85 (title VARCHAR, platform VARCHAR, year VARCHAR) ### Response: ### Response: SELECT title FROM table_name_85 WHERE platform = "xbox" 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 is the total of Pick with a Position of n/a and Greg Wendt as Player with a Round less than 6? ### Context: CREATE TABLE table_name_61 (pick INTEGER, round VARCHAR, position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT SUM(pick) FROM table_name_61 WHERE position = "n/a" AND player = "greg wendt" AND round < 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 highest rank of the day with a gross of $38,916 and more than 6 screens? ### Context: CREATE TABLE table_name_27 (rank INTEGER, gross VARCHAR, screens VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_27 WHERE gross = "$38,916" AND screens > 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Opponent has an Attendance of bye? ### Context: CREATE TABLE table_name_76 (opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_76 WHERE attendance = "bye"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were written by Brett Conrad? ### Context: CREATE TABLE table_25740548_2 (title VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT COUNT(title) FROM table_25740548_2 WHERE written_by = "Brett Conrad"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player had a total of 295? ### Context: CREATE TABLE table_name_22 (player VARCHAR, total VARCHAR) ### Response: ### Response: SELECT player FROM table_name_22 WHERE total = 295</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the record for detroit and decision of denis ### Context: CREATE TABLE table_name_39 (record VARCHAR, home VARCHAR, decision VARCHAR) ### Response: ### Response: SELECT record FROM table_name_39 WHERE home = "detroit" AND decision = "denis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the names of body builders in descending order of total scores? ### Context: CREATE TABLE body_builder (People_ID VARCHAR, Total VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### Response: ### Response: SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has 123 points agaibst the other team? ### Context: CREATE TABLE table_name_83 (team VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT team FROM table_name_83 WHERE points_against = "123"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of poles with 104 points? ### Context: CREATE TABLE table_name_51 (poles VARCHAR, points VARCHAR) ### Response: ### Response: SELECT poles FROM table_name_51 WHERE points = "104"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What To par has a Score of 71-73-71-71=286? ### Context: CREATE TABLE table_name_85 (to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_85 WHERE score = 71 - 73 - 71 - 71 = 286</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 date of the game with the Detroit Red Wings as the opponent? ### Context: CREATE TABLE table_name_19 (date INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT AVG(date) FROM table_name_19 WHERE opponent = "detroit red wings"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's the position of pick # 79 ### Context: CREATE TABLE table_20898602_1 (position VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT position FROM table_20898602_1 WHERE pick__number = 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: How many people lived in the census division with an area of 15767.99 km2 in 1996? ### Context: CREATE TABLE table_2134521_1 (pop__1996_ VARCHAR, area__km²_ VARCHAR) ### Response: ### Response: SELECT pop__1996_ FROM table_2134521_1 WHERE area__km²_ = "15767.99"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number has Engine Shed as the location ### Context: CREATE TABLE table_142159_1 (no VARCHAR, location VARCHAR) ### Response: ### Response: SELECT no FROM table_142159_1 WHERE location = "Engine shed"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Hoe many of lost have points greater than 14? ### Context: CREATE TABLE table_name_50 (lost VARCHAR, points INTEGER) ### Response: ### Response: SELECT COUNT(lost) FROM table_name_50 WHERE points > 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: What is the average bronze with a total of 15 and less than 2 gold? ### Context: CREATE TABLE table_name_69 (bronze INTEGER, total VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT AVG(bronze) FROM table_name_69 WHERE total = 15 AND gold < 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many people were watching when Livingston was the runner-up? ### Context: CREATE TABLE table_name_95 (attendance VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_95 WHERE runner_up = "livingston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the south-west next to Vishnu on the east, Durga on the west, and in the center of Ganapati? ### Context: CREATE TABLE table_name_73 (south_west VARCHAR, center VARCHAR, north_east VARCHAR, north_west VARCHAR) ### Response: ### Response: SELECT south_west FROM table_name_73 WHERE north_east = "vishnu" AND north_west = "durga" AND center = "ganapati"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine is used when there is a 3rd place rank and 513 points? ### Context: CREATE TABLE table_name_23 (engine VARCHAR, rank VARCHAR, points VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_23 WHERE rank = "3rd" AND points = 513</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Best score during the game played from 1971-1984? ### Context: CREATE TABLE table_18914438_1 (best VARCHAR, career VARCHAR) ### Response: ### Response: SELECT best FROM table_18914438_1 WHERE career = "1971-1984"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 completion dates of all the tests that have result "Fail"? ### Context: CREATE TABLE Student_Tests_Taken (registration_id VARCHAR, test_result VARCHAR); CREATE TABLE Student_Course_Enrolment (date_of_completion VARCHAR, registration_id VARCHAR) ### Response: ### Response: SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total kurdistan list ### Context: CREATE TABLE table_24440361_1 (total_kurdistan_list INTEGER) ### Response: ### Response: SELECT MIN(total_kurdistan_list) FROM table_24440361_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 Title of the episode after Season 10 Directed by Erik Wiese and Eddie Trigueros after Seres 35? ### Context: CREATE TABLE table_name_83 (title VARCHAR, directed_by VARCHAR, season__number VARCHAR, series__number VARCHAR) ### Response: ### Response: SELECT title FROM table_name_83 WHERE season__number > 10 AND series__number > 35 AND directed_by = "erik wiese and eddie trigueros"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 finish which has qual of 144.817 ### Context: CREATE TABLE table_name_1 (finish VARCHAR, qual VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_1 WHERE qual = "144.817"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the total number of tier 1 capital for allied irish banks ### Context: CREATE TABLE table_22368322_2 (_€_million VARCHAR, tier_1_capital VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT COUNT(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = "Allied Irish Banks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 joined for blue hose ### Context: CREATE TABLE table_16168849_1 (joined VARCHAR, nickname VARCHAR) ### Response: ### Response: SELECT joined FROM table_16168849_1 WHERE nickname = "Blue Hose"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of license has a Channels TV / RF of 36 (psip) 36 (uhf)? Question 5 ### Context: CREATE TABLE table_name_3 (city_of_license VARCHAR, channels_tv___rf VARCHAR) ### Response: ### Response: SELECT city_of_license FROM table_name_3 WHERE channels_tv___rf = "36 (psip) 36 (uhf)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 on february 18 when the visitors are the montreal canadiens? ### Context: CREATE TABLE table_name_46 (score VARCHAR, visitor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_46 WHERE visitor = "montreal canadiens" AND date = "february 18"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Studio of the Rank 10 Film? ### Context: CREATE TABLE table_name_98 (studio VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT studio FROM table_name_98 WHERE rank = 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was supporting in the round when the gt winning car was dino crescentini? ### Context: CREATE TABLE table_28490105_1 (supporting VARCHAR, gt_winning_car VARCHAR) ### Response: ### Response: SELECT supporting FROM table_28490105_1 WHERE gt_winning_car = "Dino Crescentini"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 LEAD WITH THIRD AS TARA GEORGE? ### Context: CREATE TABLE table_name_79 (lead VARCHAR, third VARCHAR) ### Response: ### Response: SELECT lead FROM table_name_79 WHERE third = "tara george"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 monarchs that had Yan Maw la Mon as the heir? ### Context: CREATE TABLE table_26460435_5 (monarch VARCHAR, heir VARCHAR) ### Response: ### Response: SELECT COUNT(monarch) FROM table_26460435_5 WHERE heir = "Yan Maw La Mon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 averae top 25 with events less than 0 ### Context: CREATE TABLE table_name_31 (top_25 INTEGER, events INTEGER) ### Response: ### Response: SELECT AVG(top_25) FROM table_name_31 WHERE events < 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: Who was the home team when Burnley were the away team? ### Context: CREATE TABLE table_17736890_5 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_17736890_5 WHERE away_team = "Burnley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 opearint profit (s$m) associated with an expenditure (s$m) of 12,127.8? ### Context: CREATE TABLE table_161591_2 (operating_profit__s$m_ VARCHAR, expenditure__s$m_ VARCHAR) ### Response: ### Response: SELECT operating_profit__s$m_ FROM table_161591_2 WHERE expenditure__s$m_ = "12,127.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 was the maximum number in written when the standard was 2? ### Context: CREATE TABLE table_19534874_2 (written INTEGER, standard VARCHAR) ### Response: ### Response: SELECT MAX(written) FROM table_19534874_2 WHERE standard = 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which game type has most number of games? ### Context: CREATE TABLE Video_games (gtype VARCHAR) ### Response: ### Response: SELECT gtype FROM Video_games GROUP BY gtype ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many years has station KPIX been owned? ### Context: CREATE TABLE table_1553485_1 (years_owned VARCHAR, station VARCHAR) ### Response: ### Response: SELECT COUNT(years_owned) FROM table_1553485_1 WHERE station = "KPIX"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drove the car with the n175 chassis in round 13? ### Context: CREATE TABLE table_name_1 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_1 WHERE chassis = "n175" AND rounds = "13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 semifinalist for the Key Biscane tournament? ### Context: CREATE TABLE table_name_12 (semifinalists VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT semifinalists FROM table_name_12 WHERE tournament = "key biscane"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were the Cleveland Browns the visiting team? ### Context: CREATE TABLE table_name_62 (date VARCHAR, visiting_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_62 WHERE visiting_team = "cleveland browns"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 High Rebounds is "Amar'e Stoudemire (13)"? ### Context: CREATE TABLE table_name_28 (date VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT date FROM table_name_28 WHERE high_rebounds = "amar'e stoudemire (13)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 coach founded the Western Strikers team after 1963? ### Context: CREATE TABLE table_name_58 (coach VARCHAR, founded VARCHAR, team VARCHAR) ### Response: ### Response: SELECT coach FROM table_name_58 WHERE founded > 1963 AND team = "western strikers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the away team score when the away team is Essendon? ### Context: CREATE TABLE table_name_16 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_16 WHERE away_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 listed in Network station when the country is Brunei? ### Context: CREATE TABLE table_2879165_1 (network_station VARCHAR, country VARCHAR) ### Response: ### Response: SELECT COUNT(network_station) FROM table_2879165_1 WHERE country = "Brunei"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school/club has a pick smaller than 196, a round higher than 5 and has Blake Miller? ### Context: CREATE TABLE table_name_25 (school_club_team VARCHAR, player VARCHAR, pick VARCHAR, round VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_name_25 WHERE pick < 196 AND round > 5 AND player = "blake miller"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at Rest Day course? ### Context: CREATE TABLE table_name_67 (winner VARCHAR, course VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_67 WHERE course = "rest day"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 floors did the tallest building in Aston have? ### Context: CREATE TABLE table_name_43 (floors VARCHAR, location VARCHAR) ### Response: ### Response: SELECT floors FROM table_name_43 WHERE location = "aston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What surface has natalia gussoni as the partner? ### Context: CREATE TABLE table_name_14 (surface VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_14 WHERE partner = "natalia gussoni"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the highest score is 88, what are the 50s? ### Context: CREATE TABLE table_27268238_4 (highest_score VARCHAR) ### Response: ### Response: SELECT 50 AS s FROM table_27268238_4 WHERE highest_score = "88"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Lost with Against smaller than 25, and Played smaller than 1? ### Context: CREATE TABLE table_name_93 (lost INTEGER, against VARCHAR, played VARCHAR) ### Response: ### Response: SELECT AVG(lost) FROM table_name_93 WHERE against < 25 AND played < 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 nationality is Dick Walker? ### Context: CREATE TABLE table_name_35 (nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_35 WHERE player = "dick walker"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which date was held at Laguna Seca Raceway, in class GTX/GTO? ### Context: CREATE TABLE table_name_94 (date VARCHAR, circuit VARCHAR, class VARCHAR) ### Response: ### Response: SELECT date FROM table_name_94 WHERE circuit = "laguna seca raceway" AND class = "gtx/gto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 products were not included in any order? ### Context: CREATE TABLE products (product_id VARCHAR); CREATE TABLE Order_items (product_id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM products WHERE NOT product_id IN (SELECT product_id FROM Order_items)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 surface on 21 june 1993? ### Context: CREATE TABLE table_name_60 (surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_60 WHERE date = "21 june 1993"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Neighborhood, when Branch is Hollywood Library? ### Context: CREATE TABLE table_name_92 (neighborhood VARCHAR, branch VARCHAR) ### Response: ### Response: SELECT neighborhood FROM table_name_92 WHERE branch = "hollywood library"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the marco island tournament match when Kathleen Horvath won runner-up? ### Context: CREATE TABLE table_name_91 (score VARCHAR, outcome VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT score FROM table_name_91 WHERE outcome = "runner-up" AND tournament = "marco island"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the incumbent from the Ohio 20 district belong to? ### Context: CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR) ### Response: ### Response: SELECT party FROM table_1342218_35 WHERE district = "Ohio 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: Name the class for makoto tamada and races is 17 ### Context: CREATE TABLE table_15327489_1 (class VARCHAR, riders VARCHAR, races VARCHAR) ### Response: ### Response: SELECT class FROM table_15327489_1 WHERE riders = "Makoto Tamada" AND races = "17"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player was the high points scorer during the game with an end score of W 93-85? ### Context: CREATE TABLE table_name_77 (high_points VARCHAR, score VARCHAR) ### Response: ### Response: SELECT high_points FROM table_name_77 WHERE score = "w 93-85"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What laps have a Time of +28.778? ### Context: CREATE TABLE table_name_37 (laps VARCHAR, time VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_37 WHERE time = "+28.778"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What opponent has october less than 20, and 8 for points? ### Context: CREATE TABLE table_name_13 (opponent VARCHAR, october VARCHAR, points VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_13 WHERE october < 20 AND points = 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: Visitor of dallas, and a Date of june 12 had what highest attendance? ### Context: CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_16 WHERE visitor = "dallas" AND date = "june 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: How long is the XXX track used by the Minnesota Vikings? ### Context: CREATE TABLE table_name_14 (time VARCHAR, team_s_ VARCHAR, artist_s_ VARCHAR) ### Response: ### Response: SELECT time FROM table_name_14 WHERE team_s_ = "minnesota vikings" AND artist_s_ = "xxx"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rank from Lane 4? ### Context: CREATE TABLE table_name_44 (rank INTEGER, lane VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_44 WHERE lane = 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the most rebounds in the game against Chicago? ### Context: CREATE TABLE table_name_52 (high_rebounds VARCHAR, team VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_name_52 WHERE team = "chicago"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the winning score in the mazda senior tournament players championship? ### Context: CREATE TABLE table_name_5 (winning_score VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT winning_score FROM table_name_5 WHERE tournament = "mazda senior tournament players championship"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the race name in the Monza circuit? ### Context: CREATE TABLE table_1140116_5 (race_name VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT race_name FROM table_1140116_5 WHERE circuit = "Monza"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the scorers in the game against neuchâtel xamax played on 10 December 1985? ### Context: CREATE TABLE table_name_64 (scorers VARCHAR, opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT scorers FROM table_name_64 WHERE opponent = "neuchâtel xamax" AND date = "10 december 1985"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What teams won in 2007? ### Context: CREATE TABLE table_1507423_4 (team_s_ VARCHAR, year VARCHAR) ### Response: ### Response: SELECT team_s_ FROM table_1507423_4 WHERE year = 2007</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 studio did The Oregon Trail? ### Context: CREATE TABLE table_name_13 (studio VARCHAR, title VARCHAR) ### Response: ### Response: SELECT studio FROM table_name_13 WHERE title = "the oregon trail"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance is the lowest one that has a Venue of away, and a Date of 19? ### Context: CREATE TABLE table_name_64 (attendance INTEGER, venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_64 WHERE venue = "away" AND date = 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: Which Team classification has a Combination classification of egoi martínez, and a Winner of tom boonen? ### Context: CREATE TABLE table_name_28 (team_classification VARCHAR, combination_classification VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT team_classification FROM table_name_28 WHERE combination_classification = "egoi martínez" AND winner = "tom boonen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Patrick Carpentier is driving and has less than 19 points with 90 laps, what team is racing? ### Context: CREATE TABLE table_name_43 (team VARCHAR, driver VARCHAR, laps VARCHAR, points VARCHAR) ### Response: ### Response: SELECT team FROM table_name_43 WHERE laps = 90 AND points < 19 AND driver = "patrick carpentier"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Radio Station/Production Company that has a Role of interviewee & monologues is what radio station? ### Context: CREATE TABLE table_name_73 (radio_station_production_company VARCHAR, role VARCHAR) ### Response: ### Response: SELECT radio_station_production_company FROM table_name_73 WHERE role = "interviewee & monologues"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the Record that has the Game smaller than 76? ### Context: CREATE TABLE table_name_61 (record VARCHAR, game INTEGER) ### Response: ### Response: SELECT record FROM table_name_61 WHERE game < 76</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance a result of W 30-7? ### Context: CREATE TABLE table_name_57 (attendance INTEGER, result VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_57 WHERE result = "w 30-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 was the stadium that had the regular season game? ### Context: CREATE TABLE table_21436373_4 (stadium VARCHAR, type_of_record VARCHAR) ### Response: ### Response: SELECT stadium FROM table_21436373_4 WHERE type_of_record = "Regular season game"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 finish when the to par is +18? ### Context: CREATE TABLE table_name_18 (finish VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_18 WHERE to_par = "+18"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: The school of Portage was in what conference previous? ### Context: CREATE TABLE table_name_41 (previous_conference VARCHAR, school VARCHAR) ### Response: ### Response: SELECT previous_conference FROM table_name_41 WHERE school = "portage"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for average start less than 25? ### Context: CREATE TABLE table_name_4 (wins VARCHAR, avg_start INTEGER) ### Response: ### Response: SELECT COUNT(wins) FROM table_name_4 WHERE avg_start < 25</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the outcome before 1997? ### Context: CREATE TABLE table_name_93 (outcome VARCHAR, year INTEGER) ### Response: ### Response: SELECT outcome FROM table_name_93 WHERE year < 1997</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a role named Taylor? ### Context: CREATE TABLE table_name_68 (film VARCHAR, role VARCHAR) ### Response: ### Response: SELECT film FROM table_name_68 WHERE role = "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: Which rank is the start of totals? ### Context: CREATE TABLE table_name_78 (rank VARCHAR, start VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_78 WHERE start = "totals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 score for candidate Mohsen Rezaee when candidate mir-hossein mousavi scored 837858 votes? ### Context: CREATE TABLE table_23390604_1 (mohsen_rezaee INTEGER, mir_hossein_mousavi VARCHAR) ### Response: ### Response: SELECT MAX(mohsen_rezaee) FROM table_23390604_1 WHERE mir_hossein_mousavi = 837858</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average Attendance, when Venue is "Candlestick Park", and when Date is "December 27"? ### Context: CREATE TABLE table_name_71 (attendance INTEGER, venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT AVG(attendance) FROM table_name_71 WHERE venue = "candlestick park" AND date = "december 27"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which controller is NAND type 25nm mlc-het with sequential read/write MB/s of 270/210? ### Context: CREATE TABLE table_name_67 (controller VARCHAR, nand_type VARCHAR, seq_read_write_mb_s VARCHAR) ### Response: ### Response: SELECT controller FROM table_name_67 WHERE nand_type = "25nm mlc-het" AND seq_read_write_mb_s = "270/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 are the numbers for D. Shulman in Warren County? ### Context: CREATE TABLE table_name_12 (d_shulman VARCHAR, county VARCHAR) ### Response: ### Response: SELECT d_shulman FROM table_name_12 WHERE county = "warren"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 League Cup with a Player that is steed malbranque? ### Context: CREATE TABLE table_name_95 (league_cup INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(league_cup) FROM table_name_95 WHERE player = "steed malbranque"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the team located in Middlebury, IN? ### Context: CREATE TABLE table_name_95 (ihsaa_class VARCHAR, location VARCHAR) ### Response: ### Response: SELECT ihsaa_class FROM table_name_95 WHERE location = "middlebury, in"</s>