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 was the attendance for the game after game 4? ### Context: CREATE TABLE table_name_96 (attendance VARCHAR, game INTEGER) ### Response: ### Response: SELECT attendance FROM table_name_96 WHERE game > 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest percentage of wins for 6½ games and more than 77 total wins? ### Context: CREATE TABLE table_name_63 (win_percentage INTEGER, games_behind VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT MIN(win_percentage) FROM table_name_63 WHERE games_behind = "6½" AND wins > 77</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title of the episode directed by William Webb? ### Context: CREATE TABLE table_22078906_2 (title VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT title FROM table_22078906_2 WHERE directed_by = "William Webb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 names of the items that did not receive any review. ### Context: CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (title VARCHAR, i_id VARCHAR) ### Response: ### Response: SELECT title FROM item WHERE NOT i_id IN (SELECT i_id FROM review)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 placed t5 and had a score of 70-72=142? ### Context: CREATE TABLE table_name_45 (player VARCHAR, place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_45 WHERE place = "t5" AND score = 70 - 72 = 142</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 year that Andre Agassi was the final opponent? ### Context: CREATE TABLE table_22834834_3 (year INTEGER, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_22834834_3 WHERE opponent_in_the_final = "Andre Agassi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the minimum year born for strasbourg? ### Context: CREATE TABLE table_12962773_13 (year_born INTEGER, current_club VARCHAR) ### Response: ### Response: SELECT MIN(year_born) FROM table_12962773_13 WHERE current_club = "Strasbourg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 had the Houston Texans as visitors? ### Context: CREATE TABLE table_name_75 (date VARCHAR, visiting_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_75 WHERE visiting_team = "houston texans"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 schools are there? ### Context: CREATE TABLE school (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM school</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rounds that Joe Barnes was picked? ### Context: CREATE TABLE table_name_34 (round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_34 WHERE player = "joe barnes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Minister, when Portfolio is "Minister of Pubblic Administration", and when Took Office is "14 November 2002"? ### Context: CREATE TABLE table_name_97 (minister VARCHAR, portfolio VARCHAR, took_office VARCHAR) ### Response: ### Response: SELECT minister FROM table_name_97 WHERE portfolio = "minister of pubblic administration" AND took_office = "14 november 2002"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the maximum 2002 figure when 2008 is 19.5, 2006 is less than 24.5 and 1999 is 18.3? ### Context: CREATE TABLE table_name_38 (Id VARCHAR) ### Response: ### Response: SELECT MAX(2002) FROM table_name_38 WHERE 2008 > 19.5 AND 2006 < 24.5 AND 1999 = 18.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: Where is Norco HIgh School? ### Context: CREATE TABLE table_11677691_6 (hometown VARCHAR, school VARCHAR) ### Response: ### Response: SELECT hometown FROM table_11677691_6 WHERE school = "Norco High school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance on August 2? ### Context: CREATE TABLE table_name_48 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_48 WHERE date = "august 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 new conference is the Toreros Western Collegiate Lacrosse team playing in? ### Context: CREATE TABLE table_14976504_2 (new_conference VARCHAR, team_nickname VARCHAR) ### Response: ### Response: SELECT new_conference FROM table_14976504_2 WHERE team_nickname = "Toreros"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What general classification has levi leipheimer as points classification? ### Context: CREATE TABLE table_name_26 (general_classification VARCHAR, points_classification VARCHAR) ### Response: ### Response: SELECT general_classification FROM table_name_26 WHERE points_classification = "levi leipheimer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Youth Classification in the race with Kenneth Hanson as Mountains Classification and Lucas Sebastian Haedo as winner? ### Context: CREATE TABLE table_23157997_13 (youth_classification VARCHAR, mountains_classification VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT youth_classification FROM table_23157997_13 WHERE mountains_classification = "Kenneth Hanson" AND winner = "Lucas Sebastian Haedo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 points when played is less than 38? ### Context: CREATE TABLE table_name_6 (points INTEGER, played INTEGER) ### Response: ### Response: SELECT SUM(points) FROM table_name_6 WHERE played < 38</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Stadium had a Result of w 20–16? ### Context: CREATE TABLE table_name_25 (stadium VARCHAR, result VARCHAR) ### Response: ### Response: SELECT stadium FROM table_name_25 WHERE result = "w 20–16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 people in attendance when Tonbridge Angels is the opponent? ### Context: CREATE TABLE table_name_86 (attendance VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_86 WHERE opponent = "tonbridge angels"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total number of games that had more than 34 points and exactly 3 losses? ### Context: CREATE TABLE table_name_73 (games VARCHAR, points VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT COUNT(games) FROM table_name_73 WHERE points = 34 AND losses = 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total played games of a 22 G.A.? ### Context: CREATE TABLE table_name_24 (played VARCHAR, ga VARCHAR) ### Response: ### Response: SELECT COUNT(played) FROM table_name_24 WHERE ga = "22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the oberliga for where tsv 1860 munich and borussia neunkirchen ### Context: CREATE TABLE table_14242137_4 (oberliga_baden_württemberg VARCHAR, oberliga_bayern VARCHAR, oberliga_südwest VARCHAR) ### Response: ### Response: SELECT oberliga_baden_württemberg FROM table_14242137_4 WHERE oberliga_bayern = "TSV 1860 Munich" AND oberliga_südwest = "Borussia Neunkirchen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date of the match with a home team of Huddersfield Town and was a replay tie? ### Context: CREATE TABLE table_name_93 (date VARCHAR, tie_no VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_93 WHERE tie_no = "replay" AND home_team = "huddersfield town"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 distinctive models are produced by maker with the full name General Motors or weighing more than 3500? ### Context: CREATE TABLE MODEL_LIST (Model VARCHAR, Maker VARCHAR); CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, weight VARCHAR) ### Response: ### Response: SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 method of the match with 1 round and a time of 1:58? ### Context: CREATE TABLE table_name_60 (method VARCHAR, round VARCHAR, time VARCHAR) ### Response: ### Response: SELECT method FROM table_name_60 WHERE round = 1 AND time = "1:58"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1987 value of the 1994 atp masters series? ### Context: CREATE TABLE table_name_45 (Id VARCHAR) ### Response: ### Response: SELECT 1987 FROM table_name_45 WHERE 1994 = "atp masters series"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 came in 3rd place in 1990? ### Context: CREATE TABLE table_name_20 (year VARCHAR) ### Response: ### Response: SELECT 3 AS rd_place FROM table_name_20 WHERE year = "1990"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 result of the game when the attendance is 75,466? ### Context: CREATE TABLE table_name_43 (result VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result FROM table_name_43 WHERE attendance = "75,466"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What score has 7-0 as the result? ### Context: CREATE TABLE table_name_56 (score VARCHAR, result VARCHAR) ### Response: ### Response: SELECT score FROM table_name_56 WHERE result = "7-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: In what laguage was Contotv 5? ### Context: CREATE TABLE table_15887683_19 (language VARCHAR, television_service VARCHAR) ### Response: ### Response: SELECT language FROM table_15887683_19 WHERE television_service = "ContoTV 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 week on November 7, 1976 with an attendance less than 46,735? ### Context: CREATE TABLE table_name_94 (week INTEGER, date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT AVG(week) FROM table_name_94 WHERE date = "november 7, 1976" AND attendance < 46 OFFSET 735</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponents played 1 game with a result win? ### Context: CREATE TABLE table_18207285_2 (opponents INTEGER, result VARCHAR, game VARCHAR) ### Response: ### Response: SELECT MAX(opponents) FROM table_18207285_2 WHERE result = "Win" AND game = 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 was the total for christina liebherr? ### Context: CREATE TABLE table_name_4 (total INTEGER, rider VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_4 WHERE rider = "christina liebherr"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game against the St. Louis Cardinals? ### Context: CREATE TABLE table_name_82 (result VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_82 WHERE opponent = "st. louis cardinals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 who wrote the episode directed by patrick duffy airing on november 7, 1997 ### Context: CREATE TABLE table_2468961_8 (written_by VARCHAR, directed_by VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT written_by FROM table_2468961_8 WHERE directed_by = "Patrick Duffy" AND original_air_date = "November 7, 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: Where was the game and what was the attendance on April 3? ### Context: CREATE TABLE table_27700530_14 (location_attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_27700530_14 WHERE date = "April 3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the average wins when the podiums is more than 1, points is 80 and starts is less than 28? ### Context: CREATE TABLE table_name_49 (wins INTEGER, starts VARCHAR, podiums VARCHAR, points VARCHAR) ### Response: ### Response: SELECT AVG(wins) FROM table_name_49 WHERE podiums > 1 AND points = 80 AND starts < 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: In what Tournament was Janet Young a Partner? ### Context: CREATE TABLE table_name_18 (tournament VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_18 WHERE partner = "janet young"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Population has a County of mississippi, and a Number of households smaller than 17,741? ### Context: CREATE TABLE table_name_21 (population INTEGER, county VARCHAR, number_of_households VARCHAR) ### Response: ### Response: SELECT SUM(population) FROM table_name_21 WHERE county = "mississippi" AND number_of_households < 17 OFFSET 741</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record of 43.89 m set? ### Context: CREATE TABLE table_name_35 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_35 WHERE record = "43.89 m"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drawn for the team that had 72 goals for? ### Context: CREATE TABLE table_17357929_1 (drawn INTEGER, goals_for VARCHAR) ### Response: ### Response: SELECT MAX(drawn) FROM table_17357929_1 WHERE goals_for = 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: What was the number of seasons that was directed by Joanna Kerns? ### Context: CREATE TABLE table_17356106_1 (season__number VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT COUNT(season__number) FROM table_17356106_1 WHERE directed_by = "Joanna Kerns"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 years that Kim was nominated at the Sitges Film Festival? ### Context: CREATE TABLE table_name_78 (year VARCHAR, group VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_78 WHERE group = "sitges film festival"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the nationality of the draft pick player who plays centre position and is going to Calgary Flames? ### Context: CREATE TABLE table_2897457_2 (nationality VARCHAR, position VARCHAR, nhl_team VARCHAR) ### Response: ### Response: SELECT nationality FROM table_2897457_2 WHERE position = "Centre" AND nhl_team = "Calgary Flames"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the Apps were smaller than 22, what's the lowest amount of goals scored in a game? ### Context: CREATE TABLE table_name_33 (goals INTEGER, apps INTEGER) ### Response: ### Response: SELECT MIN(goals) FROM table_name_33 WHERE apps < 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: what is the winning score when the tournament is safeco classic? ### Context: CREATE TABLE table_name_73 (winning_score VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT winning_score FROM table_name_73 WHERE tournament = "safeco classic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue hosted the Gridiron Development Football League? ### Context: CREATE TABLE table_name_85 (venue VARCHAR, league VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_85 WHERE league = "gridiron development football league"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show theme and year for all exhibitions with ticket prices lower than 15. ### Context: CREATE TABLE exhibition (theme VARCHAR, YEAR VARCHAR, ticket_price INTEGER) ### Response: ### Response: SELECT theme, YEAR FROM exhibition WHERE ticket_price < 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the Friday June 3 practice time of the rider who did 20' 50.45 108.623mph on Thursday, June 2? ### Context: CREATE TABLE table_29218221_3 (fri_3_june VARCHAR, thurs_2_june VARCHAR) ### Response: ### Response: SELECT fri_3_june FROM table_29218221_3 WHERE thurs_2_june = "20' 50.45 108.623mph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 models are lighter than 3500 but not built by the 'Ford Motor Company'? ### Context: CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE MODEL_LIST (model VARCHAR, Model VARCHAR, Maker VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, weight VARCHAR); CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR) ### Response: ### Response: SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName <> 'Ford Motor Company'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the lowest laps of Luigi Musso driving a Ferrari with a Grid larger than 2? ### Context: CREATE TABLE table_name_31 (laps INTEGER, driver VARCHAR, constructor VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_31 WHERE constructor = "ferrari" AND grid > 2 AND driver = "luigi musso"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 qual 1 with a 1:09.567 best? ### Context: CREATE TABLE table_name_70 (qual_1 VARCHAR, best VARCHAR) ### Response: ### Response: SELECT qual_1 FROM table_name_70 WHERE best = "1:09.567"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position did the person finish in with a notes of junior men individual 5.64km? ### Context: CREATE TABLE table_name_95 (position VARCHAR, notes VARCHAR) ### Response: ### Response: SELECT position FROM table_name_95 WHERE notes = "junior men individual 5.64km"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episodes originally aired on August 31, 1995? ### Context: CREATE TABLE table_11951237_2 (title VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT COUNT(title) FROM table_11951237_2 WHERE original_air_date = "August 31, 1995"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 party with dbeingtrict being massachusetts 3 ### Context: CREATE TABLE table_1341604_22 (party VARCHAR, district VARCHAR) ### Response: ### Response: SELECT party FROM table_1341604_22 WHERE district = "Massachusetts 3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: HOW MANY POINTS DOES ALEX SPERAFICO HAVE WITH A GRID LARGER THAN 17? ### Context: CREATE TABLE table_name_43 (points INTEGER, driver VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT MIN(points) FROM table_name_43 WHERE driver = "alex sperafico" AND grid > 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest Pick #, when College is "Louisville", and when Round is less than 10? ### Context: CREATE TABLE table_name_6 (pick__number INTEGER, college VARCHAR, round VARCHAR) ### Response: ### Response: SELECT MIN(pick__number) FROM table_name_6 WHERE college = "louisville" AND round < 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date where the away team is Richmond? ### Context: CREATE TABLE table_name_30 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_30 WHERE away_team = "richmond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year ranked larger than 5? ### Context: CREATE TABLE table_name_18 (year VARCHAR, rank INTEGER) ### Response: ### Response: SELECT year FROM table_name_18 WHERE rank > 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which vehicle failed at launch? ### Context: CREATE TABLE table_name_34 (vehicle VARCHAR, ceased_operation VARCHAR) ### Response: ### Response: SELECT vehicle FROM table_name_34 WHERE ceased_operation = "failed at launch"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Opponents from the final with a Tournament that is puebla? ### Context: CREATE TABLE table_name_44 (opponents_in_the_final VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT opponents_in_the_final FROM table_name_44 WHERE tournament = "puebla"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 do the Erie Otters have? ### Context: CREATE TABLE table_17751942_4 (wins VARCHAR, team VARCHAR) ### Response: ### Response: SELECT wins FROM table_17751942_4 WHERE team = "Erie Otters"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what kind of 2007 has a 1999 of —, and a Model of seat mii? ### Context: CREATE TABLE table_name_16 (model VARCHAR) ### Response: ### Response: SELECT 2007 FROM table_name_16 WHERE 1999 = "—" AND model = "seat mii"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number of households with per capita income being $16,820 ### Context: CREATE TABLE table_1350350_2 (number_of_households VARCHAR, per_capita_income VARCHAR) ### Response: ### Response: SELECT number_of_households FROM table_1350350_2 WHERE per_capita_income = "$16,820"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 year joined of the 277 county? ### Context: CREATE TABLE table_name_43 (year_joined INTEGER, county VARCHAR) ### Response: ### Response: SELECT AVG(year_joined) FROM table_name_43 WHERE county = 277</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Of all the schools that left before 2003, what is the average year joined? ### Context: CREATE TABLE table_name_22 (year_joined INTEGER, year_left INTEGER) ### Response: ### Response: SELECT AVG(year_joined) FROM table_name_22 WHERE year_left < 2003</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the title of jean-pierre jeunet ### Context: CREATE TABLE table_name_17 (english_title VARCHAR, director VARCHAR) ### Response: ### Response: SELECT english_title FROM table_name_17 WHERE director = "jean-pierre jeunet"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the country is vest, what were the exports? ### Context: CREATE TABLE table_24239748_2 (exports__us$_mil_ VARCHAR, county VARCHAR) ### Response: ### Response: SELECT exports__us$_mil_ FROM table_24239748_2 WHERE county = "Vest"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the duchess, who was married to philippe, die? ### Context: CREATE TABLE table_name_56 (death VARCHAR, spouse VARCHAR) ### Response: ### Response: SELECT death FROM table_name_56 WHERE spouse = "philippe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 team on 11 July? ### Context: CREATE TABLE table_name_58 (winning_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT winning_team FROM table_name_58 WHERE date = "11 july"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away side when collingwood is at home? ### Context: CREATE TABLE table_name_34 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_34 WHERE home_team = "collingwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 numbers were recorded under miles for the 3:00:46 race time? ### Context: CREATE TABLE table_2196127_1 (miles__km_ VARCHAR, race_time VARCHAR) ### Response: ### Response: SELECT COUNT(miles__km_) FROM table_2196127_1 WHERE race_time = "3:00:46"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 area of the coed school with a state authority and a roll number of 122? ### Context: CREATE TABLE table_name_17 (area VARCHAR, roll VARCHAR, authority VARCHAR, gender VARCHAR) ### Response: ### Response: SELECT area FROM table_name_17 WHERE authority = "state" AND gender = "coed" AND roll = 122</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nationality of the Team Georgia Tech? ### Context: CREATE TABLE table_name_47 (nationality VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_47 WHERE school_club_team = "georgia tech"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In the match where footscray was the home team, how much did they score? ### Context: CREATE TABLE table_name_55 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_55 WHERE home_team = "footscray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the score when the home is ny islanders and the visitor is montreal ### Context: CREATE TABLE table_name_86 (score VARCHAR, home VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT score FROM table_name_86 WHERE home = "ny islanders" AND visitor = "montreal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 on may 11, 1997? ### Context: CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_10 WHERE date = "may 11, 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: What is the format of code pro-cd-4662? ### Context: CREATE TABLE table_name_98 (format VARCHAR, code VARCHAR) ### Response: ### Response: SELECT format FROM table_name_98 WHERE code = "pro-cd-4662"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 bids with elite eight larger than 1.0 ### Context: CREATE TABLE table_10722506_6 (_number_of_bids VARCHAR, elite_eight INTEGER) ### Response: ### Response: SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE elite_eight > 1.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 Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder? ### Context: CREATE TABLE table_name_86 (release_date VARCHAR, title VARCHAR, category VARCHAR, developer VARCHAR) ### Response: ### Response: SELECT release_date FROM table_name_86 WHERE category = "utilities" AND developer = "microsoft" AND title = "chord finder"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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, when Rank is greater than 6, when Nation is Italy (ITA), and when Total is less than 1? ### Context: CREATE TABLE table_name_78 (bronze INTEGER, total VARCHAR, rank VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT AVG(bronze) FROM table_name_78 WHERE rank > 6 AND nation = "italy (ita)" AND total < 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 Interregnum ended for the person with a Duration of 3 months, 6 days? ### Context: CREATE TABLE table_name_78 (interregnum_ended VARCHAR, duration VARCHAR) ### Response: ### Response: SELECT interregnum_ended FROM table_name_78 WHERE duration = "3 months, 6 days"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where is the headquarters of the place whose population in 2011 was 3811738? ### Context: CREATE TABLE table_1610301_1 (headquarters VARCHAR, population__2011_ VARCHAR) ### Response: ### Response: SELECT headquarters FROM table_1610301_1 WHERE population__2011_ = 3811738</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 events for japan ### Context: CREATE TABLE table_18888159_1 (events INTEGER, country VARCHAR) ### Response: ### Response: SELECT MIN(events) FROM table_18888159_1 WHERE country = "Japan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number lost when the against value is less than 5? ### Context: CREATE TABLE table_name_86 (lost INTEGER, against INTEGER) ### Response: ### Response: SELECT AVG(lost) FROM table_name_86 WHERE against < 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 Type of castle from the 14th Century which Condition is preserved? ### Context: CREATE TABLE table_name_72 (type VARCHAR, date VARCHAR, condition VARCHAR) ### Response: ### Response: SELECT type FROM table_name_72 WHERE date = "14th century" AND condition = "preserved"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season number for the direction of patrick norris ### Context: CREATE TABLE table_12419515_5 (season__number VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT season__number FROM table_12419515_5 WHERE directed_by = "Patrick Norris"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 name of the winner or 2nd when the result was –, and weight was 6.7? ### Context: CREATE TABLE table_name_91 (winner_or_2nd VARCHAR, result VARCHAR, weight VARCHAR) ### Response: ### Response: SELECT winner_or_2nd FROM table_name_91 WHERE result = "–" AND weight = 6.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 game date when the opponent was Houston? ### Context: CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_8 WHERE opponent = "houston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 percentage of votes for the party that has Seats of 80? ### Context: CREATE TABLE table_name_15 (percentage VARCHAR, seats VARCHAR) ### Response: ### Response: SELECT percentage FROM table_name_15 WHERE seats = 80</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Pocona Municipalities with 72 Totora municipalities and more than 74 pojo municipalities? ### Context: CREATE TABLE table_name_98 (pocona_municipality VARCHAR, totora_municipality VARCHAR, pojo_municipality VARCHAR) ### Response: ### Response: SELECT COUNT(pocona_municipality) FROM table_name_98 WHERE totora_municipality = 72 AND pojo_municipality > 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 high total for algeria with over 2 bronzes? ### Context: CREATE TABLE table_name_82 (total INTEGER, nation VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT MAX(total) FROM table_name_82 WHERE nation = "algeria" AND bronze > 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total for the draw with 0 points, and less than 14 lost? ### Context: CREATE TABLE table_name_15 (draw INTEGER, points VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT SUM(draw) FROM table_name_15 WHERE points = 0 AND lost < 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 highest number of points for the Modena Team Spa after 1991? ### Context: CREATE TABLE table_name_49 (points INTEGER, entrant VARCHAR, year VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_49 WHERE entrant = "modena team spa" AND year > 1991</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 college has any student who is a goalie and succeeded in the tryout. ### Context: CREATE TABLE tryout (cName VARCHAR, decision VARCHAR, pPos VARCHAR) ### Response: ### Response: SELECT cName FROM tryout WHERE decision = 'yes' AND pPos = 'goalie'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rufus guest for episode 1x07 ### Context: CREATE TABLE table_19930660_1 (rufus_guest VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT rufus_guest FROM table_19930660_1 WHERE episode = "1x07"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 NHL teams are there in the Phoenix, Arizona area? ### Context: CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, metropolitan_area VARCHAR) ### Response: ### Response: SELECT COUNT(nhl_team_s_) FROM table_1205598_1 WHERE metropolitan_area = "Phoenix, Arizona"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2012 performance when in 2011 is qf and 2010 is 3r? ### Context: CREATE TABLE table_name_28 (Id VARCHAR) ### Response: ### Response: SELECT 2012 FROM table_name_28 WHERE 2011 = "qf" AND 2010 = "3r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which title had the production code 1ACX04? ### Context: CREATE TABLE table_14724369_1 (title VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT title FROM table_14724369_1 WHERE production_code = "1ACX04"</s>