inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average rating for a Flyde that has a Burnley less than 0? ### Context: CREATE TABLE table_name_57 (fylde INTEGER, burnley INTEGER) ### Response: ### Response: SELECT AVG(fylde) FROM table_name_57 WHERE burnley < 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 school that has a IHSAA Class of AA, in Butler? ### Context: CREATE TABLE table_name_62 (school VARCHAR, ihsaa_class VARCHAR, location VARCHAR) ### Response: ### Response: SELECT school FROM table_name_62 WHERE ihsaa_class = "aa" AND location = "butler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the location when the type is embassy and the mission is panama? ### Context: CREATE TABLE table_name_42 (location VARCHAR, type VARCHAR, mission VARCHAR) ### Response: ### Response: SELECT location FROM table_name_42 WHERE type = "embassy" AND mission = "panama"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 former counties of the Great Grimsby district? ### Context: CREATE TABLE table_2801185_2 (former_county VARCHAR, district VARCHAR) ### Response: ### Response: SELECT former_county FROM table_2801185_2 WHERE district = "Great Grimsby"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Unami Delaware value for a Thomas value of nacha? ### Context: CREATE TABLE table_name_18 (unami_delaware VARCHAR, thomas__1698_ VARCHAR) ### Response: ### Response: SELECT unami_delaware FROM table_name_18 WHERE thomas__1698_ = "nacha"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Streak, when Heat Points is "101", and when Game is "16"? ### Context: CREATE TABLE table_name_12 (streak VARCHAR, heat_points VARCHAR, game VARCHAR) ### Response: ### Response: SELECT streak FROM table_name_12 WHERE heat_points = 101 AND game = 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: Can you tell me the lowest Wins that has the Ballarat FL of daylesford, and the Byes smaller than 1? ### Context: CREATE TABLE table_name_71 (wins INTEGER, ballarat_fl VARCHAR, byes VARCHAR) ### Response: ### Response: SELECT MIN(wins) FROM table_name_71 WHERE ballarat_fl = "daylesford" AND byes < 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 sum of laps when grid is less than 20 and johnny herbert is driving? ### Context: CREATE TABLE table_name_29 (laps INTEGER, grid VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT SUM(laps) FROM table_name_29 WHERE grid < 20 AND driver = "johnny herbert"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 podiums for 0 wins and 2005 season for 321 points ### Context: CREATE TABLE table_20398823_1 (podiums INTEGER, points VARCHAR, wins VARCHAR, season VARCHAR) ### Response: ### Response: SELECT MIN(podiums) FROM table_20398823_1 WHERE wins = 0 AND season = 2005 AND points = "321"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of gold medals when there were 2 bronze medals, a total of more than 3 medals and ranked 61? ### Context: CREATE TABLE table_name_31 (gold VARCHAR, total VARCHAR, bronze VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(gold) FROM table_name_31 WHERE bronze = 2 AND rank = "61" AND total > 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 round did the celtic played away on 24 february 1900? ### Context: CREATE TABLE table_name_9 (round VARCHAR, opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT round FROM table_name_9 WHERE opponent = "celtic" AND date = "24 february 1900"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 run for office in district Maryland 3? ### Context: CREATE TABLE table_1341453_22 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1341453_22 WHERE district = "Maryland 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 was the average number of starts Michael Henig had in a year when he had more than 1201 yards? ### Context: CREATE TABLE table_name_54 (starts INTEGER, yards INTEGER) ### Response: ### Response: SELECT AVG(starts) FROM table_name_54 WHERE yards > 1201</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which opponent has unknown attendance, and lost 2-0? ### Context: CREATE TABLE table_name_43 (opponent VARCHAR, attendance VARCHAR, result VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_43 WHERE attendance = "unknown" AND result = "lost 2-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 position for the player from university of alabama? ### Context: CREATE TABLE table_name_37 (position VARCHAR, school VARCHAR) ### Response: ### Response: SELECT position FROM table_name_37 WHERE school = "university of alabama"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round was Kelsey Tessier drafted? ### Context: CREATE TABLE table_name_16 (round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT round FROM table_name_16 WHERE player = "kelsey tessier"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ha the gold and 1 bronze, and more than 0 silver? ### Context: CREATE TABLE table_name_58 (gold VARCHAR, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT gold FROM table_name_58 WHERE bronze = 1 AND silver > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What day was the grand prix in jerez? ### Context: CREATE TABLE table_1139087_2 (date VARCHAR, location VARCHAR) ### Response: ### Response: SELECT date FROM table_1139087_2 WHERE location = "Jerez"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament had an extra of 3:06.94 s? ### Context: CREATE TABLE table_name_60 (tournament VARCHAR, extra VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_60 WHERE extra = "3:06.94 s"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the Matches that has the Rank of 1? ### Context: CREATE TABLE table_name_89 (matches VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT matches FROM table_name_89 WHERE rank = 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 record was set on Tue 11/02/75? ### Context: CREATE TABLE table_21436373_8 (type_of_record VARCHAR, date_year VARCHAR) ### Response: ### Response: SELECT type_of_record FROM table_21436373_8 WHERE date_year = "Tue 11/02/75"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Label of the UICI-1069 Catalog? ### Context: CREATE TABLE table_name_42 (label VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT label FROM table_name_42 WHERE catalog = "uici-1069"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the European Poker Tour Grand Final? ### Context: CREATE TABLE table_name_11 (winner VARCHAR, event VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_11 WHERE event = "european poker tour grand final"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total for teams with more than 1 gold, ranked over 3 and more than 3 bronze? ### Context: CREATE TABLE table_name_39 (total INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_39 WHERE gold > 1 AND rank > 3 AND bronze > 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 original air date of season 9? ### Context: CREATE TABLE table_18217753_1 (original_air_date VARCHAR, season__number VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_18217753_1 WHERE season__number = 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Champion has a Coeff of 1.000? ### Context: CREATE TABLE table_name_85 (champions VARCHAR, coeff VARCHAR) ### Response: ### Response: SELECT champions FROM table_name_85 WHERE coeff = "1.000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stadiums which have never had any event. ### Context: CREATE TABLE stadium (name VARCHAR, id VARCHAR, stadium_id VARCHAR); CREATE TABLE event (name VARCHAR, id VARCHAR, stadium_id VARCHAR) ### Response: ### Response: SELECT name FROM stadium WHERE NOT id IN (SELECT stadium_id FROM event)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Opponent of the game with a H/A/N of H and Score of 120-99? ### Context: CREATE TABLE table_name_89 (opponent VARCHAR, h_a_n VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_89 WHERE h_a_n = "h" AND score = "120-99"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what had a score like roberto devicenzo ### Context: CREATE TABLE table_name_97 (score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_97 WHERE player = "roberto devicenzo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Date is 1 October 1998? ### Context: CREATE TABLE table_name_28 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(attendance) FROM table_name_28 WHERE date = "1 october 1998"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 statuses are listed for Wayne county? ### Context: CREATE TABLE table_22815568_3 (status VARCHAR, county VARCHAR) ### Response: ### Response: SELECT COUNT(status) FROM table_22815568_3 WHERE county = "Wayne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Team of cai zaragoza and a Rank smaller than 1? ### Context: CREATE TABLE table_name_24 (games INTEGER, team VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT SUM(games) FROM table_name_24 WHERE team = "cai zaragoza" AND rank < 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: Who had the most assist when the opponent was Cleveland? ### Context: CREATE TABLE table_15780049_6 (high_assists VARCHAR, team VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_15780049_6 WHERE team = "Cleveland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the prize of £200,000 as listed? ### Context: CREATE TABLE table_name_50 (winner VARCHAR, prize VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_50 WHERE prize = "£200,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year was the Purse $150,000 with a Time of 1:49.00? ### Context: CREATE TABLE table_name_6 (year INTEGER, purse VARCHAR, time VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_6 WHERE purse = "$150,000" AND time = "1:49.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: Which Skip has a Third of carlo alessandro zisa? ### Context: CREATE TABLE table_name_34 (skip VARCHAR, third VARCHAR) ### Response: ### Response: SELECT skip FROM table_name_34 WHERE third = "carlo alessandro zisa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rounds had a race name of anglia tv trophy? ### Context: CREATE TABLE table_name_25 (round VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_25 WHERE name = "anglia tv trophy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the home team at the game held at the Junction Oval? ### Context: CREATE TABLE table_name_73 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_73 WHERE venue = "junction oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 conductor when the chicago symphony orchestra is featured? ### Context: CREATE TABLE table_name_3 (conductor VARCHAR, orchestra VARCHAR) ### Response: ### Response: SELECT conductor FROM table_name_3 WHERE orchestra = "chicago symphony orchestra"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player's college is Saskatchewan? ### Context: CREATE TABLE table_10960039_1 (player VARCHAR, college VARCHAR) ### Response: ### Response: SELECT player FROM table_10960039_1 WHERE college = "Saskatchewan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 directed the episode with the original air date of November 22, 1989? ### Context: CREATE TABLE table_18367694_2 (directed_by VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_18367694_2 WHERE original_air_date = "November 22, 1989"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Size has a County of 62 perry? ### Context: CREATE TABLE table_name_69 (size INTEGER, county VARCHAR) ### Response: ### Response: SELECT MAX(size) FROM table_name_69 WHERE county = "62 perry"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the winning driver for havana ### Context: CREATE TABLE table_name_15 (winning_driver VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_name_15 WHERE circuit = "havana"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 that had a loss of Wegman (2-6)? ### Context: CREATE TABLE table_name_7 (score VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT score FROM table_name_7 WHERE loss = "wegman (2-6)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Norway's least ends lost? ### Context: CREATE TABLE table_16922657_2 (Ends INTEGER, country VARCHAR, Norway VARCHAR) ### Response: ### Response: SELECT MIN(Ends) AS lost FROM table_16922657_2 WHERE country = Norway</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 decor has the least number of reservations? ### Context: CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (decor VARCHAR, RoomId VARCHAR) ### Response: ### Response: SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY COUNT(T2.decor) LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show all artist names with an average exhibition attendance over 200. ### Context: CREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (exhibition_id VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance INTEGER) ### Response: ### Response: SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING AVG(T1.attendance) > 200</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at Arden Street Oval had the lowest attendance? ### Context: CREATE TABLE table_name_96 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MIN(crowd) FROM table_name_96 WHERE venue = "arden street oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Leading scorer with a Visitor of grizzlies, and with a Score with 114–111? ### Context: CREATE TABLE table_name_65 (leading_scorer VARCHAR, visitor VARCHAR, score VARCHAR) ### Response: ### Response: SELECT leading_scorer FROM table_name_65 WHERE visitor = "grizzlies" AND score = "114–111"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at home on april 14? ### Context: CREATE TABLE table_name_8 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_8 WHERE date = "april 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 was the minor version released on April 16, 2008? ### Context: CREATE TABLE table_24257833_4 (minor_version VARCHAR, release_date VARCHAR) ### Response: ### Response: SELECT minor_version FROM table_24257833_4 WHERE release_date = "April 16, 2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Country has a Director of 2007? ### Context: CREATE TABLE table_name_43 (country VARCHAR, director_s_ VARCHAR) ### Response: ### Response: SELECT country FROM table_name_43 WHERE director_s_ = "2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the 2009 that has the 2011 of A? ### Context: CREATE TABLE table_name_50 (Id VARCHAR) ### Response: ### Response: SELECT 2009 FROM table_name_50 WHERE 2011 = "a"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 directed by when the production code is 67425? ### Context: CREATE TABLE table_2618072_1 (directed_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_2618072_1 WHERE production_code = 67425</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game with a score of 4-3? ### Context: CREATE TABLE table_name_41 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_41 WHERE score = "4-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 much was paid to Andy North when he placed t10? ### Context: CREATE TABLE table_name_94 (money___ INTEGER, place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT AVG(money___) AS $__ FROM table_name_94 WHERE place = "t10" AND player = "andy north"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 most number? ### Context: CREATE TABLE table_12803263_1 (_number INTEGER) ### Response: ### Response: SELECT MAX(_number) FROM table_12803263_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 highest # Of Constituency Votes, when Election is before 1976, when Leader is Eisaku Satō, and when # Of Candidates is less than 328? ### Context: CREATE TABLE table_name_18 (_number_of_constituency_votes INTEGER, _number_of_candidates VARCHAR, election VARCHAR, leader VARCHAR) ### Response: ### Response: SELECT MAX(_number_of_constituency_votes) FROM table_name_18 WHERE election < 1976 AND leader = "eisaku satō" AND _number_of_candidates < 328</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Date has a Tournament of milan , italy? ### Context: CREATE TABLE table_name_69 (date VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT date FROM table_name_69 WHERE tournament = "milan , italy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 release date that has english as the subtitles, and magna pacific as the publisher? ### Context: CREATE TABLE table_name_61 (release_date VARCHAR, subtitles VARCHAR, publisher VARCHAR) ### Response: ### Response: SELECT release_date FROM table_name_61 WHERE subtitles = "english" AND publisher = "magna pacific"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the away team with a 5 tie no? ### Context: CREATE TABLE table_name_66 (away_team VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_66 WHERE tie_no = "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 was the attendance at the game on December 11, 1966? ### Context: CREATE TABLE table_name_66 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_66 WHERE date = "december 11, 1966"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the description of the service type which offers both the photo product and the film product? ### Context: CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR); CREATE TABLE Services (Service_Type_Code VARCHAR, Product_Name VARCHAR) ### Response: ### Response: SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'film'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 electorates for constituency number 56? ### Context: CREATE TABLE table_name_56 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR) ### Response: ### Response: SELECT SUM(number_of_electorates__2009_) FROM table_name_56 WHERE constituency_number = "56"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What competition did they have 1 lost, 3 draws, and played 9 games? ### Context: CREATE TABLE table_name_17 (competition VARCHAR, played VARCHAR, lost VARCHAR, drew VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_17 WHERE lost = "1" AND drew = "3" AND played = "9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which position does bert coan play? ### Context: CREATE TABLE table_name_19 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_name_19 WHERE player = "bert coan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 much Rank has a Bronze of 21, and a Silver larger than 10? ### Context: CREATE TABLE table_name_41 (rank VARCHAR, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_41 WHERE bronze = 21 AND silver > 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 resulting score for the episodes where Rufus's guest is Sean Lock? ### Context: CREATE TABLE table_19930660_3 (winner VARCHAR, rufus_guest VARCHAR) ### Response: ### Response: SELECT winner FROM table_19930660_3 WHERE rufus_guest = "Sean Lock"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the number of the least matches ### Context: CREATE TABLE table_30085411_1 (matches INTEGER) ### Response: ### Response: SELECT MIN(matches) FROM table_30085411_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 score of Player Tom Kite? ### Context: CREATE TABLE table_name_17 (score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_17 WHERE player = "tom kite"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 where the opponent was Mardy Fish? ### Context: CREATE TABLE table_name_68 (score VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_68 WHERE opponent = "mardy fish"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 appearances in the premier league when there were 10 appearances at UEFA and less than 4 at league cup? ### Context: CREATE TABLE table_name_53 (premier_league VARCHAR, UEfa_cup VARCHAR, league_cup VARCHAR) ### Response: ### Response: SELECT COUNT(premier_league) FROM table_name_53 WHERE UEfa_cup = 10 AND league_cup < 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: Before 2008, if the Manufacturer is dodge and the start is under 9, what's the highest finish time? ### Context: CREATE TABLE table_name_17 (finish INTEGER, year VARCHAR, manufacturer VARCHAR, start VARCHAR) ### Response: ### Response: SELECT MAX(finish) FROM table_name_17 WHERE manufacturer = "dodge" AND start < 9 AND year < 2008</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 host city that has Alicia Keys listed as a host? ### Context: CREATE TABLE table_name_43 (host_city VARCHAR, hosts VARCHAR) ### Response: ### Response: SELECT host_city FROM table_name_43 WHERE hosts = "alicia keys"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in 2003 that has a Career Win-Loss of 6–7 ### Context: CREATE TABLE table_name_84 (career_win_loss VARCHAR) ### Response: ### Response: SELECT 2003 FROM table_name_84 WHERE career_win_loss = "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: Name the dominant religion of srpska crnja ### Context: CREATE TABLE table_2562572_37 (dominant_religion__2002_ VARCHAR, settlement VARCHAR) ### Response: ### Response: SELECT dominant_religion__2002_ FROM table_2562572_37 WHERE settlement = "Srpska Crnja"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and a grid less than 20? ### Context: CREATE TABLE table_name_4 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_4 WHERE manufacturer = "yamaha" AND time_retired = "+1:08.312" AND grid < 20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points were scored in 1:44:59.557 of time? ### Context: CREATE TABLE table_name_64 (points VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT points FROM table_name_64 WHERE time_retired = "1:44:59.557"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 storage stability of Arsine with a toxicity of 8, and field stability less than 5? ### Context: CREATE TABLE table_name_30 (storage_stability INTEGER, field_stability VARCHAR, toxicity_as_blood_agent VARCHAR, agent VARCHAR) ### Response: ### Response: SELECT MIN(storage_stability) FROM table_name_30 WHERE toxicity_as_blood_agent > 8 AND agent = "arsine" AND field_stability < 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's the type of printer ports in the model number EX Plus3? ### Context: CREATE TABLE table_1300080_1 (printer_ports VARCHAR, model_number VARCHAR) ### Response: ### Response: SELECT printer_ports FROM table_1300080_1 WHERE model_number = "EX Plus3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 NBA draft result of the player from Kingston, PA? ### Context: CREATE TABLE table_name_4 (nba_draft VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT nba_draft FROM table_name_4 WHERE hometown = "kingston, pa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 surface for events held in 1983? ### Context: CREATE TABLE table_2151643_3 (surface VARCHAR, year VARCHAR) ### Response: ### Response: SELECT surface FROM table_2151643_3 WHERE year = 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: When was Göteborg the opponent with a score of 3-1? ### Context: CREATE TABLE table_name_9 (date VARCHAR, opponents VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_9 WHERE opponents = "göteborg" AND score = "3-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 result of the game against the Miami Dolphins held at the Riverfront Stadium? ### Context: CREATE TABLE table_name_46 (result VARCHAR, location VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_46 WHERE location = "riverfront stadium" AND opponent = "miami dolphins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ends lost when the stolen ends for is less than 13, and stolten ends against is 6? ### Context: CREATE TABLE table_name_16 (ends_lost INTEGER, stolen_ends_for VARCHAR, stolen_ends_against VARCHAR) ### Response: ### Response: SELECT MIN(ends_lost) FROM table_name_16 WHERE stolen_ends_for < 13 AND stolen_ends_against = 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the preliminaries of the contestant from Massachusetts with an evening gown higher than 8.631, an average less than 8.791, and an interview higher than 8.608? ### Context: CREATE TABLE table_name_97 (preliminaries VARCHAR, interview VARCHAR, state VARCHAR, evening_gown VARCHAR, average VARCHAR) ### Response: ### Response: SELECT COUNT(preliminaries) FROM table_name_97 WHERE evening_gown > 8.631 AND average < 8.791 AND state = "massachusetts" AND interview > 8.608</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 scored the most rebounds in the game against Chicago? ### Context: CREATE TABLE table_15869204_9 (high_rebounds VARCHAR, team VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_15869204_9 WHERE team = "Chicago"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which pick has marko makinen as the player? ### Context: CREATE TABLE table_2886617_3 (pick VARCHAR, player VARCHAR) ### Response: ### Response: SELECT pick FROM table_2886617_3 WHERE player = "Marko Makinen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year had a toleman tg183 chassis? ### Context: CREATE TABLE table_name_36 (year VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_36 WHERE chassis = "toleman tg183"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the pick # for player wes lysack? ### Context: CREATE TABLE table_21321804_1 (pick__number INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(pick__number) FROM table_21321804_1 WHERE player = "Wes Lysack"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loser of the fight against antonio silva? ### Context: CREATE TABLE table_name_87 (loser VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT loser FROM table_name_87 WHERE winner = "antonio silva"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 draw that has points greater than 4, with a match greater than 5? ### Context: CREATE TABLE table_name_92 (draw INTEGER, points VARCHAR, match VARCHAR) ### Response: ### Response: SELECT MAX(draw) FROM table_name_92 WHERE points > 4 AND match > 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 score has west ham united as the away team? ### Context: CREATE TABLE table_name_46 (score VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_46 WHERE away_team = "west ham 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: Which player is the 24 pick? ### Context: CREATE TABLE table_name_16 (player VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT player FROM table_name_16 WHERE pick = "24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 highest number of rebounds on February 6? ### Context: CREATE TABLE table_name_53 (high_rebounds VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_name_53 WHERE date = "february 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 city was the home team Tigre? ### Context: CREATE TABLE table_name_5 (city VARCHAR, home_team_s_ VARCHAR) ### Response: ### Response: SELECT city FROM table_name_5 WHERE home_team_s_ = "tigre"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Winner, when Year is 2001? ### Context: CREATE TABLE table_name_34 (winner VARCHAR, year VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_34 WHERE year = 2001</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the nick name for the school established in 1958? ### Context: CREATE TABLE table_name_71 (nickname VARCHAR, established VARCHAR) ### Response: ### Response: SELECT nickname FROM table_name_71 WHERE established = 1958</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What period(s) featured a left inside linebacker? ### Context: CREATE TABLE table_28606933_7 (period VARCHAR, position VARCHAR) ### Response: ### Response: SELECT period FROM table_28606933_7 WHERE position = "Left inside linebacker"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Return the names of all counties sorted by population in ascending order. ### Context: CREATE TABLE county (County_name VARCHAR, Population VARCHAR) ### Response: ### Response: SELECT County_name FROM county ORDER BY Population</s>