inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the away team of the game at the time 15:00? ### Context: CREATE TABLE table_name_57 (away VARCHAR, time VARCHAR) ### Response: ### Response: SELECT away FROM table_name_57 WHERE time = "15:00"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Enrollment where Cougars is a Mascot? ### Context: CREATE TABLE table_name_66 (enrollment INTEGER, mascot VARCHAR) ### Response: ### Response: SELECT SUM(enrollment) FROM table_name_66 WHERE mascot = "cougars"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Carlton's score when they were the away team? ### Context: CREATE TABLE table_name_86 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_86 WHERE away_team = "carlton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What place is the player from the United States with a to par of e? ### Context: CREATE TABLE table_name_1 (place VARCHAR, country VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT place FROM table_name_1 WHERE country = "united states" AND to_par = "e"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the lowest points value that had a Chevrolet car, whose driver was Sterling Marlin, and whose car number was less than 14? ### Context: CREATE TABLE table_name_51 (points INTEGER, car__number VARCHAR, make VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT MIN(points) FROM table_name_51 WHERE make = "chevrolet" AND driver = "sterling marlin" AND car__number < 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 Matches, when Draws is "Did Not Qualify", and when Year is "1995"? ### Context: CREATE TABLE table_name_75 (matches VARCHAR, draws VARCHAR, year VARCHAR) ### Response: ### Response: SELECT matches FROM table_name_75 WHERE draws = "did not qualify" AND year = "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: How many racing points did England get? ### Context: CREATE TABLE table_23293785_3 (race_total_pts_ INTEGER, country VARCHAR) ### Response: ### Response: SELECT MAX(race_total_pts_) FROM table_23293785_3 WHERE country = "England"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: With a To par of –5, what is Nick Faldo's Place? ### Context: CREATE TABLE table_name_95 (place VARCHAR, to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_95 WHERE to_par = "–5" AND player = "nick faldo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 region in Saint-Simon-Les-Mines has a population smaller than 458? ### Context: CREATE TABLE table_name_9 (region INTEGER, name VARCHAR, population VARCHAR) ### Response: ### Response: SELECT MAX(region) FROM table_name_9 WHERE name = "saint-simon-les-mines" AND population < 458</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum grid number when the driver was Luciano Burti? ### Context: CREATE TABLE table_name_55 (grid VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT COUNT(grid) FROM table_name_55 WHERE driver = "luciano burti"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What school is from 45 Lake county and is located in Merrillville? ### Context: CREATE TABLE table_name_32 (school VARCHAR, county VARCHAR, location VARCHAR) ### Response: ### Response: SELECT school FROM table_name_32 WHERE county = "45 lake" AND location = "merrillville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points for is 139 is points difference? ### Context: CREATE TABLE table_20396710_1 (points_difference VARCHAR, points_for VARCHAR) ### Response: ### Response: SELECT COUNT(points_difference) FROM table_20396710_1 WHERE points_for = "139"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the association for Indonesian Idol after 2005 with a Nominated Result? ### Context: CREATE TABLE table_name_39 (association VARCHAR, result VARCHAR, nominee VARCHAR, year VARCHAR) ### Response: ### Response: SELECT association FROM table_name_39 WHERE nominee = "indonesian idol" AND year > 2005 AND result = "nominated"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most wins which have clubbed of elche cf and goals against more than 43 ### Context: CREATE TABLE table_name_51 (wins INTEGER, club VARCHAR, goals_against VARCHAR) ### Response: ### Response: SELECT MAX(wins) FROM table_name_51 WHERE club = "elche cf" AND goals_against > 43</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which tournament has a clay surface and partner henri leconte in 1983? ### Context: CREATE TABLE table_name_29 (tournament VARCHAR, date VARCHAR, surface VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_29 WHERE surface = "clay" AND partner = "henri leconte" AND date = 1983</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the highest time for spain and lane larger than 8 ### Context: CREATE TABLE table_name_35 (time INTEGER, country VARCHAR, lane VARCHAR) ### Response: ### Response: SELECT MAX(time) FROM table_name_35 WHERE country = "spain" AND lane > 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 wins were there when draws were more than 0? ### Context: CREATE TABLE table_name_5 (wins INTEGER, draws INTEGER) ### Response: ### Response: SELECT MIN(wins) FROM table_name_5 WHERE draws > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many times was the candidates paul tsongas (d) 60.6% paul w. cronin (r) 39.4%? ### Context: CREATE TABLE table_1341690_21 (incumbent VARCHAR, candidates VARCHAR) ### Response: ### Response: SELECT COUNT(incumbent) FROM table_1341690_21 WHERE candidates = "Paul Tsongas (D) 60.6% Paul W. Cronin (R) 39.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 time/retired for driver richard attwood? ### Context: CREATE TABLE table_name_56 (time_retired VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_56 WHERE driver = "richard attwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 on May 4 with Philadelphia as the road team? ### Context: CREATE TABLE table_name_48 (result VARCHAR, road_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_48 WHERE road_team = "philadelphia" AND date = "may 4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When chris carney is the incumbent what are the results? ### Context: CREATE TABLE table_19753079_41 (result VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT result FROM table_19753079_41 WHERE incumbent = "Chris Carney"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 round for bob randall? ### Context: CREATE TABLE table_name_13 (round INTEGER, name VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_13 WHERE name = "bob randall"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the crowd when the away team was north melbourne? ### Context: CREATE TABLE table_name_27 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT SUM(crowd) FROM table_name_27 WHERE away_team = "north melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the state having a contestant with a talent of classical piano and a hometown from Lancaster, NY? ### Context: CREATE TABLE table_name_63 (state VARCHAR, talent VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT state FROM table_name_63 WHERE talent = "classical piano" AND hometown = "lancaster, ny"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Gold, when Silver is 5, and when Nation is Belgium? ### Context: CREATE TABLE table_name_91 (gold VARCHAR, silver VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT gold FROM table_name_91 WHERE silver = "5" AND nation = "belgium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament for outcome of winner and clay surface with opponent of aranza salut ### Context: CREATE TABLE table_name_61 (tournament VARCHAR, opponent VARCHAR, outcome VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_61 WHERE outcome = "winner" AND surface = "clay" AND opponent = "aranza salut"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Home team score for the Home team from South Melbourne? ### Context: CREATE TABLE table_name_33 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_33 WHERE home_team = "south melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is game 34's record? ### Context: CREATE TABLE table_name_11 (record VARCHAR, game VARCHAR) ### Response: ### Response: SELECT record FROM table_name_11 WHERE game = 34</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attended games with st kilda as the home side? ### Context: CREATE TABLE table_name_57 (crowd INTEGER, home_team VARCHAR) ### Response: ### Response: SELECT SUM(crowd) FROM table_name_57 WHERE home_team = "st kilda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 pick that drafted Pat Shires, with a round greater than 29 and an overall greater than 328? ### Context: CREATE TABLE table_name_87 (pick INTEGER, round VARCHAR, overall VARCHAR, name VARCHAR) ### Response: ### Response: SELECT MIN(pick) FROM table_name_87 WHERE overall > 328 AND name = "pat shires" AND round > 29</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What nation had a moving from of espanyol? ### Context: CREATE TABLE table_name_97 (nat VARCHAR, moving_from VARCHAR) ### Response: ### Response: SELECT nat FROM table_name_97 WHERE moving_from = "espanyol"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: 1980 smaller than 719, and a 1960 smaller than 205, and a 1996[2] smaller than 364, and a 1970 larger than 251 is what 1990 highest? ### Context: CREATE TABLE table_name_94 (Id VARCHAR) ### Response: ### Response: SELECT MAX(1990) FROM table_name_94 WHERE 1980 < 719 AND 1960 < 205 AND 1996[2] < 364 AND 1970 > 251</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What event did he compete in at Taipei? ### Context: CREATE TABLE table_name_42 (format VARCHAR, location VARCHAR) ### Response: ### Response: SELECT format FROM table_name_42 WHERE location = "taipei"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Round, when Rank is less than 117? ### Context: CREATE TABLE table_name_90 (round VARCHAR, rank INTEGER) ### Response: ### Response: SELECT round FROM table_name_90 WHERE rank < 117</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What location is Jimmy Smith fighting in? ### Context: CREATE TABLE table_name_72 (location VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT location FROM table_name_72 WHERE opponent = "jimmy smith"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 match against roger federer on April 3, 2006? ### Context: CREATE TABLE table_name_44 (score VARCHAR, opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_44 WHERE opponent = "roger federer" AND date = "april 3, 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: Where is Westpac Stadium located? ### Context: CREATE TABLE table_1301373_1 (location VARCHAR, stadium VARCHAR) ### Response: ### Response: SELECT location FROM table_1301373_1 WHERE stadium = "Westpac stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number of losses a goalkeeper with more than 2776 minutes had? ### Context: CREATE TABLE table_name_54 (loses INTEGER, minutes INTEGER) ### Response: ### Response: SELECT MIN(loses) FROM table_name_54 WHERE minutes > 2776</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position has a Player of david laliberte? ### Context: CREATE TABLE table_name_50 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_name_50 WHERE player = "david laliberte"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 goals for/against with w-l-d being 3-1-1 ### Context: CREATE TABLE table_14181578_1 (goals_for_against VARCHAR, w_l_d VARCHAR) ### Response: ### Response: SELECT goals_for_against FROM table_14181578_1 WHERE w_l_d = "3-1-1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In season is 2008–09, how many wins did they have? ### Context: CREATE TABLE table_20833768_4 (w__ot_so_ VARCHAR, season VARCHAR) ### Response: ### Response: SELECT w__ot_so_ FROM table_20833768_4 WHERE season = "2008–09"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 order year of obi builder and 05.505 model that is 30 feet long? ### Context: CREATE TABLE table_name_89 (order_year VARCHAR, model VARCHAR, builder VARCHAR, length__ft_ VARCHAR) ### Response: ### Response: SELECT order_year FROM table_name_89 WHERE builder = "obi" AND length__ft_ = "30" AND model = "05.505"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Barreto's song choice where the original artist was Patricia Marx? ### Context: CREATE TABLE table_27614571_1 (song_choice VARCHAR, original_artist VARCHAR) ### Response: ### Response: SELECT song_choice FROM table_27614571_1 WHERE original_artist = "Patricia Marx"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of stage 11? ### Context: CREATE TABLE table_name_25 (winner VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_25 WHERE stage = "11"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many departments are led by heads who are not mentioned? ### Context: CREATE TABLE management (department_id VARCHAR); CREATE TABLE department (department_id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM department WHERE NOT department_id IN (SELECT department_id FROM management)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 final time for the swimmer on lane 4? ### Context: CREATE TABLE table_name_1 (final VARCHAR, lane VARCHAR) ### Response: ### Response: SELECT final FROM table_name_1 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: What is the sum of launches with Long March 3 and 0 failures? ### Context: CREATE TABLE table_name_4 (launches INTEGER, rocket VARCHAR, failures VARCHAR) ### Response: ### Response: SELECT SUM(launches) FROM table_name_4 WHERE rocket = "long march 3" AND failures > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the year of introduction for the Electro-Diesel locomotive? ### Context: CREATE TABLE table_name_64 (introduced VARCHAR, type VARCHAR) ### Response: ### Response: SELECT introduced FROM table_name_64 WHERE type = "electro-diesel locomotive"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Paino Hehea's date of birth? ### Context: CREATE TABLE table_name_46 (date_of_birth__age_ VARCHAR, player VARCHAR) ### Response: ### Response: SELECT date_of_birth__age_ FROM table_name_46 WHERE player = "paino hehea"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the number of laps 71? ### Context: CREATE TABLE table_name_49 (year VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_49 WHERE laps = 71</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Player with a Pick that is 6? ### Context: CREATE TABLE table_name_15 (player VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT player FROM table_name_15 WHERE pick = 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 was the result for Steve & Anna when the score was 21 (7, 7, 7)? ### Context: CREATE TABLE table_name_80 (result VARCHAR, score VARCHAR, couple VARCHAR) ### Response: ### Response: SELECT result FROM table_name_80 WHERE score = "21 (7, 7, 7)" AND couple = "steve & anna"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 value of Points 2 when the goal average is 1.50? ### Context: CREATE TABLE table_17359181_1 (points_2 INTEGER, goal_average_1 VARCHAR) ### Response: ### Response: SELECT MIN(points_2) FROM table_17359181_1 WHERE goal_average_1 = "1.50"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team was the opponent when the result was l 0-27? ### Context: CREATE TABLE table_name_21 (opponent VARCHAR, result VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_21 WHERE result = "l 0-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: What was the lowest attendance at a Fitzroy match? ### Context: CREATE TABLE table_name_68 (crowd INTEGER, home_team VARCHAR) ### Response: ### Response: SELECT MIN(crowd) FROM table_name_68 WHERE home_team = "fitzroy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Established for soccer plated in kuntz stadium? ### Context: CREATE TABLE table_name_65 (established VARCHAR, sport VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT COUNT(established) FROM table_name_65 WHERE sport = "soccer" AND venue = "kuntz stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 has a Round of 27? ### Context: CREATE TABLE table_name_95 (position VARCHAR, round VARCHAR) ### Response: ### Response: SELECT position FROM table_name_95 WHERE round = 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: What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾in)? ### Context: CREATE TABLE table_name_45 (date VARCHAR, athlete VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_45 WHERE athlete = "yelena isinbayeva" AND record = "4.90m(16ft0¾in)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 there any Draws with 45 tries against? ### Context: CREATE TABLE table_name_56 (drawn VARCHAR, tries_against VARCHAR) ### Response: ### Response: SELECT drawn FROM table_name_56 WHERE tries_against = "45"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the other number with 63.98% bush? ### Context: CREATE TABLE table_name_59 (others__number VARCHAR, bush__percentage VARCHAR) ### Response: ### Response: SELECT others__number FROM table_name_59 WHERE bush__percentage = "63.98%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date of the game against Norway with a 1:1 result? ### Context: CREATE TABLE table_name_31 (date VARCHAR, opponent VARCHAR, results¹ VARCHAR) ### Response: ### Response: SELECT date FROM table_name_31 WHERE opponent = "norway" AND results¹ = "1:1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the event # when the winner is what is 7x6? ### Context: CREATE TABLE table_22050544_1 (event__number VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT event__number FROM table_22050544_1 WHERE winner = "what is 7x6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winner who attended college at Connecticut and is from North Syracuse, NY? ### Context: CREATE TABLE table_name_63 (winner VARCHAR, college VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_63 WHERE college = "connecticut" AND hometown = "north syracuse, ny"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was the premiere of the show that had a rank of #7? ### Context: CREATE TABLE table_name_30 (premiere VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT premiere FROM table_name_30 WHERE rank = "#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 is the average Attendance, when Venue is "A", and when Date is "5 January 2005"? ### Context: CREATE TABLE table_name_65 (attendance INTEGER, venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT AVG(attendance) FROM table_name_65 WHERE venue = "a" AND date = "5 january 2005"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many wins when the average start is 29.0? ### Context: CREATE TABLE table_2182562_1 (wins VARCHAR, avg_start VARCHAR) ### Response: ### Response: SELECT COUNT(wins) FROM table_2182562_1 WHERE avg_start = "29.0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many Laps have Rider of olivier jacque, and a Grid larger than 7? ### Context: CREATE TABLE table_name_75 (laps INTEGER, rider VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT SUM(laps) FROM table_name_75 WHERE rider = "olivier jacque" AND grid > 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: Which episode has segment D on custom motorcycle tanks? ### Context: CREATE TABLE table_15187735_20 (episode INTEGER, segment_d VARCHAR) ### Response: ### Response: SELECT MIN(episode) FROM table_15187735_20 WHERE segment_d = "Custom Motorcycle Tanks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the distinct names of mountains climbed by climbers from country "West Germany". ### Context: CREATE TABLE mountain (Name VARCHAR, Mountain_ID VARCHAR); CREATE TABLE climber (Mountain_ID VARCHAR, Country VARCHAR) ### Response: ### Response: SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T1.Country = "West Germany"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which attendance has a Score of 3-5? ### Context: CREATE TABLE table_name_88 (attendance VARCHAR, score VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_88 WHERE score = "3-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 type of aircraft was the plane with a tail number of ya-bao? ### Context: CREATE TABLE table_name_75 (aircraft VARCHAR, tail_number VARCHAR) ### Response: ### Response: SELECT aircraft FROM table_name_75 WHERE tail_number = "ya-bao"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 girl on week 4 after week 3's Mikaela James? ### Context: CREATE TABLE table_name_12 (week_4 VARCHAR, week_3 VARCHAR) ### Response: ### Response: SELECT week_4 FROM table_name_12 WHERE week_3 = "mikaela james"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 type and nationality of ships? ### Context: CREATE TABLE ship (TYPE VARCHAR, Nationality VARCHAR) ### Response: ### Response: SELECT TYPE, Nationality FROM ship</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 english translation of 219 ### Context: CREATE TABLE table_13003460_1 (english_translation VARCHAR, word_number VARCHAR) ### Response: ### Response: SELECT english_translation FROM table_13003460_1 WHERE word_number = "219"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 released on 1936-08-29? ### Context: CREATE TABLE table_name_40 (title VARCHAR, release_date VARCHAR) ### Response: ### Response: SELECT title FROM table_name_40 WHERE release_date = "1936-08-29"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which award did Scream receive a nomination and/or win for in 1997? ### Context: CREATE TABLE table_name_27 (award VARCHAR, work VARCHAR, year VARCHAR) ### Response: ### Response: SELECT award FROM table_name_27 WHERE work = "scream" AND 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: What city was the event in when Patrik Antonius won? ### Context: CREATE TABLE table_name_93 (city VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT city FROM table_name_93 WHERE winner = "patrik antonius"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 home team score when they played at Victoria Park? ### Context: CREATE TABLE table_name_7 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_7 WHERE venue = "victoria park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What record company did conductor Mikhail Snitko record for after 1996? ### Context: CREATE TABLE table_name_72 (record_company VARCHAR, year_of_recording VARCHAR, conductor VARCHAR) ### Response: ### Response: SELECT record_company FROM table_name_72 WHERE year_of_recording > 1996 AND conductor = "mikhail snitko"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2nd leg when Ermis Aradippou is the first team? ### Context: CREATE TABLE table_name_50 (team_1 VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_name_50 WHERE team_1 = "ermis aradippou"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 pole position for the ferrari at the austrian grand prix? ### Context: CREATE TABLE table_1132588_3 (pole_position VARCHAR, constructor VARCHAR, grand_prix VARCHAR) ### Response: ### Response: SELECT pole_position FROM table_1132588_3 WHERE constructor = "Ferrari" AND grand_prix = "Austrian grand_prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the animals name when the genus/species is rattus norvegicus? ### Context: CREATE TABLE table_15417439_1 (common_name VARCHAR, genus_species VARCHAR) ### Response: ### Response: SELECT common_name FROM table_15417439_1 WHERE genus_species = "Rattus norvegicus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What city has a charter date of november 24, 1999? ### Context: CREATE TABLE table_name_9 (city VARCHAR, charter_date VARCHAR) ### Response: ### Response: SELECT city FROM table_name_9 WHERE charter_date = "november 24, 1999"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Domestic Tournament with Chennai Super Kings Team? ### Context: CREATE TABLE table_name_42 (domestic_tournament VARCHAR, team VARCHAR) ### Response: ### Response: SELECT domestic_tournament FROM table_name_42 WHERE team = "chennai super kings"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: During which years did the golfer with the total of 289 win? ### Context: CREATE TABLE table_name_42 (year_s__won VARCHAR, total VARCHAR) ### Response: ### Response: SELECT year_s__won FROM table_name_42 WHERE total = 289</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most points against when points for is 860 ### Context: CREATE TABLE table_13018116_1 (pts_agst INTEGER, pts_for VARCHAR) ### Response: ### Response: SELECT MAX(pts_agst) FROM table_13018116_1 WHERE pts_for = 860</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who won at the Barbagallo Raceway circuit? ### Context: CREATE TABLE table_name_49 (winner VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_49 WHERE circuit = "barbagallo raceway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Opponent, when Attendance is 62,170? ### Context: CREATE TABLE table_name_52 (opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_52 WHERE attendance = "62,170"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Location has a Time of time? ### Context: CREATE TABLE table_name_89 (location VARCHAR) ### Response: ### Response: SELECT location FROM table_name_89 WHERE "time" = "time"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 have 78 for points? ### Context: CREATE TABLE table_name_24 (year VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_24 WHERE points = 78</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendance when the Southend United was the home team? ### Context: CREATE TABLE table_name_1 (attendance VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_1 WHERE home_team = "southend united"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many losses are there for team tembetary? ### Context: CREATE TABLE table_18703133_6 (losses VARCHAR, team VARCHAR) ### Response: ### Response: SELECT losses FROM table_18703133_6 WHERE team = "Tembetary"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the season was played on April 22? ### Context: CREATE TABLE table_name_5 (game VARCHAR, date VARCHAR) ### Response: ### Response: SELECT game FROM table_name_5 WHERE date = "april 22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many draws were there in 2006? ### Context: CREATE TABLE table_name_58 (draws VARCHAR, year VARCHAR) ### Response: ### Response: SELECT draws FROM table_name_58 WHERE 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: When osku palermaa is on the europe team how many match numbers are there? ### Context: CREATE TABLE table_19072602_5 (match_no VARCHAR, team_europe VARCHAR) ### Response: ### Response: SELECT COUNT(match_no) FROM table_19072602_5 WHERE team_europe = "Osku Palermaa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 champion for london hunt and country club ( london , on ) ### Context: CREATE TABLE table_1628792_1 (champion VARCHAR, tournament_location VARCHAR) ### Response: ### Response: SELECT champion FROM table_1628792_1 WHERE tournament_location = "London Hunt and country Club ( London , ON )"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent at the game attended by 62,019 before week 17? ### Context: CREATE TABLE table_name_22 (opponent VARCHAR, week VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_22 WHERE week < 17 AND attendance = "62,019"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 counties have a population of 2266? ### Context: CREATE TABLE table_22815568_3 (county VARCHAR, population VARCHAR) ### Response: ### Response: SELECT COUNT(county) FROM table_22815568_3 WHERE population = 2266</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured. ### Context: CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE game (stadium_id VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR, player VARCHAR) ### Response: ### Response: SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Walter Samuel' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Thiago Motta'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date was the score 0-0? ### Context: CREATE TABLE table_name_33 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_33 WHERE score = "0-0"</s>