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 result of round 4? ### Context: CREATE TABLE table_name_39 (result VARCHAR, round VARCHAR) ### Response: ### Response: SELECT result FROM table_name_39 WHERE round = 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 region has giuseppe sivori as a home venue? ### Context: CREATE TABLE table_name_52 (region VARCHAR, home_venue VARCHAR) ### Response: ### Response: SELECT region FROM table_name_52 WHERE home_venue = "giuseppe sivori"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Alex Figge's Best? ### Context: CREATE TABLE table_name_47 (best VARCHAR, name VARCHAR) ### Response: ### Response: SELECT best FROM table_name_47 WHERE name = "alex figge"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 seasons took place in santiago de chile, chile? ### Context: CREATE TABLE table_name_19 (season VARCHAR, place VARCHAR) ### Response: ### Response: SELECT COUNT(season) FROM table_name_19 WHERE place = "santiago de chile, chile"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 venue when the home team was Fitzroy? ### Context: CREATE TABLE table_name_76 (venue VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_76 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's the city/state of Hidden Valley Raceway? ### Context: CREATE TABLE table_name_16 (city___state VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT city___state FROM table_name_16 WHERE circuit = "hidden valley 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 was the result of the game prior to week 9 with an attendance of 49,970? ### Context: CREATE TABLE table_name_23 (result VARCHAR, week VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result FROM table_name_23 WHERE week < 9 AND attendance = "49,970"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 are all runner-ups for No. 2? ### Context: CREATE TABLE table_1507431_1 (runner_up VARCHAR, no VARCHAR) ### Response: ### Response: SELECT runner_up FROM table_1507431_1 WHERE no = 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the state (class) where the new successor was formally installed on May 11, 1966? ### Context: CREATE TABLE table_1847180_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR) ### Response: ### Response: SELECT state__class_ FROM table_1847180_3 WHERE date_of_successors_formal_installation = "May 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 Nationality of the Deacon of S. Maria in Via Lata? ### Context: CREATE TABLE table_name_5 (nationality VARCHAR, title VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_5 WHERE title = "deacon of s. maria in via lata"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 industry shared by the most companies. ### Context: CREATE TABLE Companies (Industry VARCHAR) ### Response: ### Response: SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many invoices do we have? ### Context: CREATE TABLE Invoices (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Invoices</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the car with over 9 laps and a grid of 6? ### Context: CREATE TABLE table_name_42 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_42 WHERE laps > 9 AND grid = 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 result of Samantha Morton being up for best supporting actress in a year later than 1989? ### Context: CREATE TABLE table_name_78 (result VARCHAR, actor VARCHAR, year VARCHAR, category VARCHAR) ### Response: ### Response: SELECT result FROM table_name_78 WHERE year > 1989 AND category = "best supporting actress" AND actor = "samantha morton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that has a Week smaller than 7 on september 12, 1988? ### Context: CREATE TABLE table_name_41 (opponent VARCHAR, week VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_41 WHERE week < 7 AND date = "september 12, 1988"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor of the officine alfieri maserati that was driven by Sergio Mantovani? ### Context: CREATE TABLE table_name_77 (constructor VARCHAR, entrant VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_77 WHERE entrant = "officine alfieri maserati" AND driver = "sergio mantovani"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the driver jacques villeneuve and the grid more than 7? ### Context: CREATE TABLE table_name_55 (laps VARCHAR, driver VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT COUNT(laps) FROM table_name_55 WHERE driver = "jacques villeneuve" 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 Romaji Title has a Japanese Title of 女王の教室? ### Context: CREATE TABLE table_name_64 (romaji_title VARCHAR, japanese_title VARCHAR) ### Response: ### Response: SELECT romaji_title FROM table_name_64 WHERE japanese_title = "女王の教室"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Nord in 1952, when tennis borussia berlin was Berlin? ### Context: CREATE TABLE table_name_3 (nord VARCHAR, berlin VARCHAR, year VARCHAR) ### Response: ### Response: SELECT nord FROM table_name_3 WHERE berlin = "tennis borussia berlin" AND year = 1952</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Ron Jans is a manager of which kit maker? ### Context: CREATE TABLE table_name_68 (kit_maker VARCHAR, manager VARCHAR) ### Response: ### Response: SELECT kit_maker FROM table_name_68 WHERE manager = "ron jans"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name and id of accounts whose checking balance is below the maximum checking balance. ### Context: CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER) ### Response: ### Response: SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the names of wines whose production year are before the year of all wines by Brander winery? ### Context: CREATE TABLE WINE (Name VARCHAR, YEAR INTEGER, Winery VARCHAR) ### Response: ### Response: SELECT Name FROM WINE WHERE YEAR < (SELECT MIN(YEAR) FROM WINE WHERE Winery = "Brander")</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 author of Bludgeoning Angel Dokuro-Chan? ### Context: CREATE TABLE table_name_49 (author VARCHAR, title VARCHAR) ### Response: ### Response: SELECT author FROM table_name_49 WHERE title = "bludgeoning angel dokuro-chan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did st kilda play as the away team? ### Context: CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_95 WHERE away_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 Date of the Tournament with a Winning score of −9 (65-71-68-67=271)? ### Context: CREATE TABLE table_name_55 (date VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_55 WHERE winning_score = −9(65 - 71 - 68 - 67 = 271)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 frequency does W233AG broadcast? ### Context: CREATE TABLE table_name_95 (frequency_mhz VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT COUNT(frequency_mhz) FROM table_name_95 WHERE call_sign = "w233ag"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did Sydney Barnes debut in England? ### Context: CREATE TABLE table_name_35 (debut VARCHAR, country VARCHAR, name VARCHAR) ### Response: ### Response: SELECT debut FROM table_name_35 WHERE country = "england" AND name = "sydney barnes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player was picked by the Minnesota North Stars? ### Context: CREATE TABLE table_1473672_5 (player VARCHAR, nhl_team VARCHAR) ### Response: ### Response: SELECT player FROM table_1473672_5 WHERE nhl_team = "Minnesota North Stars"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 losses when the club is terang and draws is less than 0? ### Context: CREATE TABLE table_name_75 (losses INTEGER, club VARCHAR, draws VARCHAR) ### Response: ### Response: SELECT MAX(losses) FROM table_name_75 WHERE club = "terang" AND draws < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest number of bronze medals for nations with over 6 total and 2 golds? ### Context: CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(bronze) FROM table_name_71 WHERE gold = 2 AND total > 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: Who wins the clive churchill medal when the losing team is the sydney roosters in 2010? ### Context: CREATE TABLE table_name_27 (clive_churchill_medal VARCHAR, losingteam VARCHAR, season VARCHAR) ### Response: ### Response: SELECT clive_churchill_medal FROM table_name_27 WHERE losingteam = "sydney roosters" AND season = 2010</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Home Team, when Tie no is "27"? ### Context: CREATE TABLE table_name_46 (home_team VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_46 WHERE tie_no = "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: On what date was the race in Melbourne, Victoria? ### Context: CREATE TABLE table_name_42 (date VARCHAR, city___state VARCHAR) ### Response: ### Response: SELECT date FROM table_name_42 WHERE city___state = "melbourne, victoria"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Lost has a Tries for of 75? ### Context: CREATE TABLE table_name_78 (lost VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT lost FROM table_name_78 WHERE tries_for = "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: Which total number of Crowd has a Home team of melbourne? ### Context: CREATE TABLE table_name_79 (crowd VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT COUNT(crowd) FROM table_name_79 WHERE home_team = "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 country that has a place of T6, a socre of 69-69=138, and where Niclas Fasth played? ### Context: CREATE TABLE table_name_17 (country VARCHAR, player VARCHAR, place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_17 WHERE place = "t6" AND score = 69 - 69 = 138 AND player = "niclas fasth"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 scoring rank was 117, what was the best finish? ### Context: CREATE TABLE table_10021158_3 (best_finish VARCHAR, scoring_rank VARCHAR) ### Response: ### Response: SELECT best_finish FROM table_10021158_3 WHERE scoring_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 IS THE EPISODE NUMBER THAT HAS 28 DVD? ### Context: CREATE TABLE table_name_78 (episode_no VARCHAR, no_of_dvds VARCHAR) ### Response: ### Response: SELECT episode_no FROM table_name_78 WHERE no_of_dvds = "28"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the L3 Cache that has a standard power I/O? ### Context: CREATE TABLE table_name_63 (l3_cache VARCHAR, i_o_bus VARCHAR) ### Response: ### Response: SELECT l3_cache FROM table_name_63 WHERE i_o_bus = "standard power"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what year was the number of attempts 888? ### Context: CREATE TABLE table_name_96 (year VARCHAR, attempts VARCHAR) ### Response: ### Response: SELECT year FROM table_name_96 WHERE attempts = "888"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the team with round less than 2, and the nationality is the United States? ### Context: CREATE TABLE table_name_25 (college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT college_junior_club_team__league_ FROM table_name_25 WHERE round < 2 AND nationality = "united states"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where is the station with a coverage of yucatán quintana roo campeche transmitting from? ### Context: CREATE TABLE table_name_15 (transmitting_from VARCHAR, coverage VARCHAR) ### Response: ### Response: SELECT transmitting_from FROM table_name_15 WHERE coverage = "yucatán quintana roo campeche"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2 ### Context: CREATE TABLE table_name_20 (rank INTEGER, network VARCHAR, number_of_viewers VARCHAR) ### Response: ### Response: SELECT SUM(rank) FROM table_name_20 WHERE network = "bbc one" AND number_of_viewers = "30.15million"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date is for Venue of jjb stadium, and a Result of w? ### Context: CREATE TABLE table_name_14 (date VARCHAR, venue VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_14 WHERE venue = "jjb stadium" AND result = "w"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 debut year for player terry fulton with games less than 51? ### Context: CREATE TABLE table_name_83 (debut_year INTEGER, player VARCHAR, games VARCHAR) ### Response: ### Response: SELECT AVG(debut_year) FROM table_name_83 WHERE player = "terry fulton" AND games < 51</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Jack Badcock play? ### Context: CREATE TABLE table_name_22 (venue VARCHAR, player VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_22 WHERE player = "jack badcock"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the City is Warsaw? ### Context: CREATE TABLE table_name_39 (date VARCHAR, city VARCHAR) ### Response: ### Response: SELECT date FROM table_name_39 WHERE city = "warsaw"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the cultural and educational panel less than 0 what is the average industrial and commercial panel? ### Context: CREATE TABLE table_name_22 (industrial_and_commercial_panel INTEGER, cultural_and_educational_panel INTEGER) ### Response: ### Response: SELECT AVG(industrial_and_commercial_panel) FROM table_name_22 WHERE cultural_and_educational_panel < 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 was the minimum % funded of the project that was closed on 2012-05-18? ### Context: CREATE TABLE table_27155990_1 (_percentage_funded INTEGER, closing_date VARCHAR) ### Response: ### Response: SELECT MIN(_percentage_funded) FROM table_27155990_1 WHERE closing_date = "2012-05-18"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendance on April 7? ### Context: CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_75 WHERE date = "april 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: On which date was the manager fired and replaced by Albert Cartier? ### Context: CREATE TABLE table_name_70 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR) ### Response: ### Response: SELECT date_of_vacancy FROM table_name_70 WHERE manner_of_departure = "fired" AND replaced_by = "albert cartier"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did thomaz bellucci play against when the score was 4–6, 6–4, 6–2? ### Context: CREATE TABLE table_name_80 (opponent VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_80 WHERE score = "4–6, 6–4, 6–2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the capital for the state that has the largest city of Burlington? ### Context: CREATE TABLE table_name_27 (capital VARCHAR, largest_city VARCHAR) ### Response: ### Response: SELECT capital FROM table_name_27 WHERE largest_city = "burlington"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 partially deleted result for a completed construction of m– in St. Maries Creosote? ### Context: CREATE TABLE table_name_47 (partially_deleted VARCHAR, construction_completed VARCHAR, name VARCHAR) ### Response: ### Response: SELECT partially_deleted FROM table_name_47 WHERE construction_completed = "–" AND name = "st. maries creosote"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 races for carlin ### Context: CREATE TABLE table_24587026_1 (races INTEGER, team VARCHAR) ### Response: ### Response: SELECT MIN(races) FROM table_24587026_1 WHERE team = "Carlin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 production code ### Context: CREATE TABLE table_12294557_3 (production_code INTEGER) ### Response: ### Response: SELECT MIN(production_code) FROM table_12294557_3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who in series 1 corresponds with Peter Jones in series 5? ### Context: CREATE TABLE table_name_60 (series_1 VARCHAR, series_5 VARCHAR) ### Response: ### Response: SELECT series_1 FROM table_name_60 WHERE series_5 = "peter jones"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 golfer that golfs for Northern Ireland? ### Context: CREATE TABLE table_name_54 (player VARCHAR, country VARCHAR) ### Response: ### Response: SELECT player FROM table_name_54 WHERE country = "northern ireland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the first audition venue was Kemper Arena? ### Context: CREATE TABLE table_name_40 (date VARCHAR, first_audition_venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_40 WHERE first_audition_venue = "kemper arena"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a round of more than 1 and an even of PFP: ring of fire? ### Context: CREATE TABLE table_name_45 (opponent VARCHAR, round VARCHAR, event VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_45 WHERE round > 1 AND event = "pfp: ring of fire"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Lowest Crowd, when Home Team is Brisbane Lions? ### Context: CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR) ### Response: ### Response: SELECT MIN(crowd) FROM table_name_5 WHERE home_team = "brisbane lions"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Record when the round was 5, time was 5:00, and the opponent was Torrance Taylor ### Context: CREATE TABLE table_name_35 (record VARCHAR, opponent VARCHAR, round VARCHAR, time VARCHAR) ### Response: ### Response: SELECT record FROM table_name_35 WHERE round = 5 AND time = "5:00" AND opponent = "torrance taylor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What school had a team name of the Trojans? ### Context: CREATE TABLE table_name_54 (school VARCHAR, team_name VARCHAR) ### Response: ### Response: SELECT school FROM table_name_54 WHERE team_name = "trojans"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year was incumbent jim mcdermott first elected? ### Context: CREATE TABLE table_1341522_50 (first_elected INTEGER, incumbent VARCHAR) ### Response: ### Response: SELECT MIN(first_elected) FROM table_1341522_50 WHERE incumbent = "Jim McDermott"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the shops that do not hire any employee. ### Context: CREATE TABLE shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (name VARCHAR, shop_id VARCHAR) ### Response: ### Response: SELECT name FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM hiring)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Richmond play? ### Context: CREATE TABLE table_name_10 (venue VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_10 WHERE away_team = "richmond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Effect, when Weapon is "35mm/Small arms fire"? ### Context: CREATE TABLE table_name_53 (effect VARCHAR, weapon VARCHAR) ### Response: ### Response: SELECT effect FROM table_name_53 WHERE weapon = "35mm/small arms fire"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 condition of the platelet counts in hemophilia? ### Context: CREATE TABLE table_1557752_1 (platelet_count VARCHAR, condition VARCHAR) ### Response: ### Response: SELECT platelet_count FROM table_1557752_1 WHERE condition = "Hemophilia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Al Michaels' color commentator in 2003? ### Context: CREATE TABLE table_name_69 (color_commentator_s_ VARCHAR, play_by_play VARCHAR, year VARCHAR) ### Response: ### Response: SELECT color_commentator_s_ FROM table_name_69 WHERE play_by_play = "al michaels" AND year > 2003</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Surface has a Partner of oliver marach? ### Context: CREATE TABLE table_name_82 (surface VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_82 WHERE partner = "oliver marach"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Robin's score when she was eliminated? ### Context: CREATE TABLE table_21234111_10 (robin VARCHAR, result VARCHAR) ### Response: ### Response: SELECT robin FROM table_21234111_10 WHERE result = "Eliminated"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance on March 4? ### Context: CREATE TABLE table_name_31 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_31 WHERE date = "march 4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest PI GP when the Reg GP is 1, Murray Bannerman is the Player, and the Pick # is under 58? ### Context: CREATE TABLE table_name_53 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR, player VARCHAR) ### Response: ### Response: SELECT MIN(pl_gp) FROM table_name_53 WHERE reg_gp = 1 AND player = "murray bannerman" AND pick__number < 58</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many values for joined occur at Guilford College? ### Context: CREATE TABLE table_261954_1 (joined VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT COUNT(joined) FROM table_261954_1 WHERE institution = "Guilford College"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Adelaide has Sydney yes, Melbourne yes, and Perth no? ### Context: CREATE TABLE table_name_31 (adelaide VARCHAR, perth VARCHAR, sydney VARCHAR, melbourne VARCHAR) ### Response: ### Response: SELECT adelaide FROM table_name_31 WHERE sydney = "yes" AND melbourne = "yes" AND perth = "no"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance total of the game with the Lakers as the home team? ### Context: CREATE TABLE table_name_67 (attendance VARCHAR, home VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_67 WHERE home = "lakers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 3rd place value in 2011? ### Context: CREATE TABLE table_name_53 (year VARCHAR) ### Response: ### Response: SELECT 3 AS rd_place FROM table_name_53 WHERE year = "2011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is To par, when Country is "Spain"? ### Context: CREATE TABLE table_name_47 (to_par VARCHAR, country VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_47 WHERE country = "spain"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 e34 Nimzo-Indian defence is the opening? ### Context: CREATE TABLE table_name_81 (year VARCHAR, opening VARCHAR) ### Response: ### Response: SELECT year FROM table_name_81 WHERE opening = "e34 nimzo-indian defence"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Cristina Iovu participate in? ### Context: CREATE TABLE table_name_1 (event VARCHAR, name VARCHAR) ### Response: ### Response: SELECT event FROM table_name_1 WHERE name = "cristina iovu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average goal difference for draw of 7 and played more than 18 ### Context: CREATE TABLE table_name_2 (goal_difference INTEGER, draw VARCHAR, played VARCHAR) ### Response: ### Response: SELECT AVG(goal_difference) FROM table_name_2 WHERE draw = 7 AND played > 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Social Democratic Party has a Green smaller than 0? ### Context: CREATE TABLE table_name_10 (social_democratic_party INTEGER, green INTEGER) ### Response: ### Response: SELECT AVG(social_democratic_party) FROM table_name_10 WHERE green < 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: When the Border Conference was held, who was the tournament winner? ### Context: CREATE TABLE table_22733636_1 (tournament_winner VARCHAR, conference VARCHAR) ### Response: ### Response: SELECT tournament_winner FROM table_22733636_1 WHERE conference = "Border conference"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 teams that have suffered more than three eliminations. ### Context: CREATE TABLE elimination (Team VARCHAR) ### Response: ### Response: SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 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: Which channel did Going for Gold air on? ### Context: CREATE TABLE table_name_19 (original_channel VARCHAR, programme VARCHAR) ### Response: ### Response: SELECT original_channel FROM table_name_19 WHERE programme = "going for gold"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the rider who has a rank smaller than 8 and speed of 104.567mph? ### Context: CREATE TABLE table_name_24 (time VARCHAR, rank VARCHAR, speed VARCHAR) ### Response: ### Response: SELECT time FROM table_name_24 WHERE rank < 8 AND speed = "104.567mph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drives drove a lexus, made all rounds, had a tyre of B and was on the team of petronas toyota team tom's? ### Context: CREATE TABLE table_name_2 (drivers VARCHAR, team VARCHAR, tyre VARCHAR, rounds VARCHAR, make VARCHAR) ### Response: ### Response: SELECT drivers FROM table_name_2 WHERE rounds = "all" AND make = "lexus" AND tyre = "b" AND team = "petronas toyota team tom'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: What Meet has a Time of 1:04.84? ### Context: CREATE TABLE table_name_5 (meet VARCHAR, time VARCHAR) ### Response: ### Response: SELECT meet FROM table_name_5 WHERE time = "1:04.84"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Elector has the Place of birth of San Severino? ### Context: CREATE TABLE table_name_33 (elector VARCHAR, place_of_birth VARCHAR) ### Response: ### Response: SELECT elector FROM table_name_33 WHERE place_of_birth = "san severino"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lost number for the team with 2 drawn games, and 572 points against? ### Context: CREATE TABLE table_name_58 (lost VARCHAR, drawn VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT lost FROM table_name_58 WHERE drawn = "2" AND points_against = "572"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which school/club team did blue edwards play for ### Context: CREATE TABLE table_16494599_5 (school_club_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_16494599_5 WHERE player = "Blue Edwards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What composer has a duration time of 3:31? ### Context: CREATE TABLE table_name_8 (composer VARCHAR, duration VARCHAR) ### Response: ### Response: SELECT composer FROM table_name_8 WHERE duration = "3:31"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 employees from each city? ### Context: CREATE TABLE employee (city VARCHAR) ### Response: ### Response: SELECT COUNT(*), city FROM employee GROUP BY city</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the mens singles and womens singlses is wang shixian? ### Context: CREATE TABLE table_13553701_1 (mens_singles VARCHAR, womens_singles VARCHAR) ### Response: ### Response: SELECT mens_singles FROM table_13553701_1 WHERE womens_singles = "Wang Shixian"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ralliers won the stages that were at 18:54 GMT? ### Context: CREATE TABLE table_21326205_2 (winner VARCHAR, time__gmt_ VARCHAR) ### Response: ### Response: SELECT winner FROM table_21326205_2 WHERE time__gmt_ = "18:54"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 cyrillic name for the settlement with the population of 2125? ### Context: CREATE TABLE table_2562572_9 (cyrillic_name_other_names VARCHAR, population__2011_ VARCHAR) ### Response: ### Response: SELECT cyrillic_name_other_names FROM table_2562572_9 WHERE population__2011_ = 2125</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date for moonee valley ### Context: CREATE TABLE table_2062148_4 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_2062148_4 WHERE venue = "Moonee Valley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters? ### Context: CREATE TABLE table_name_65 (tournament VARCHAR) ### Response: ### Response: SELECT 2006 FROM table_name_65 WHERE 2000 = "1r" AND 1996 = "a" AND tournament = "cincinnati masters"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 visitor in the chicago game ### Context: CREATE TABLE table_name_33 (visitor VARCHAR, home VARCHAR) ### Response: ### Response: SELECT visitor FROM table_name_33 WHERE home = "chicago"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the amount of 000s from 1996? ### Context: CREATE TABLE table_name_20 (total__000s_ INTEGER, year VARCHAR) ### Response: ### Response: SELECT SUM(total__000s_) FROM table_name_20 WHERE year = "1996"</s>