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: How many years did BBC One rank 20th? ### Context: CREATE TABLE table_103084_4 (year VARCHAR, bbc_one_rank VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_103084_4 WHERE bbc_one_rank = "20th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 series with game of game 6 ### Context: CREATE TABLE table_name_58 (series VARCHAR, game VARCHAR) ### Response: ### Response: SELECT series FROM table_name_58 WHERE game = "game 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 was the designer for The Grapefruit Moon? ### Context: CREATE TABLE table_name_89 (designer VARCHAR, restaurant_name VARCHAR) ### Response: ### Response: SELECT designer FROM table_name_89 WHERE restaurant_name = "the grapefruit moon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the industries shared by companies whose headquarters are "USA" and companies whose headquarters are "China". ### Context: CREATE TABLE Companies (Industry VARCHAR, Headquarters VARCHAR) ### Response: ### Response: SELECT Industry FROM Companies WHERE Headquarters = "USA" INTERSECT SELECT Industry FROM Companies WHERE Headquarters = "China"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most gold when bronze is more than 0 and rank is more than 5 with total more than 2 ### Context: CREATE TABLE table_name_70 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MAX(gold) FROM table_name_70 WHERE bronze > 0 AND rank > 5 AND total > 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 smallest capacity for a First season in Segunda División of 2013, and Top division titles larger than 0? ### Context: CREATE TABLE table_name_11 (capacity INTEGER, first_season_in_segunda_división VARCHAR, top_division_titles VARCHAR) ### Response: ### Response: SELECT MIN(capacity) FROM table_name_11 WHERE first_season_in_segunda_división = 2013 AND top_division_titles > 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 destination of the season won by Anwar Syed? ### Context: CREATE TABLE table_20026849_1 (destination VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT destination FROM table_20026849_1 WHERE winner = "Anwar Syed"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which venue hosted the Los Angeles Rams as an opponent? ### Context: CREATE TABLE table_name_64 (venue VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_64 WHERE opponent = "los angeles rams"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 league goals when the fa cup goals is more than 0? ### Context: CREATE TABLE table_name_51 (league_goals INTEGER, fa_cup_goals INTEGER) ### Response: ### Response: SELECT SUM(league_goals) FROM table_name_51 WHERE fa_cup_goals > 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 programs were held in charleston, illinois? ### Context: CREATE TABLE table_16275828_4 (program VARCHAR, location VARCHAR) ### Response: ### Response: SELECT program FROM table_16275828_4 WHERE location = "Charleston, Illinois"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What nation has a Record of 5.06m(16ft7in)? ### Context: CREATE TABLE table_name_95 (nation VARCHAR, record VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_95 WHERE record = "5.06m(16ft7in)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score that has the Opponent of brewers, and the Attendance of 11,235? ### Context: CREATE TABLE table_name_98 (score VARCHAR, opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT score FROM table_name_98 WHERE opponent = "brewers" AND attendance = "11,235"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 richmond was the Away team what was the score of the home team? ### Context: CREATE TABLE table_name_37 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_37 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: Which builder has a railway of Rhodesia Railways? ### Context: CREATE TABLE table_name_18 (builder VARCHAR, railway VARCHAR) ### Response: ### Response: SELECT builder FROM table_name_18 WHERE railway = "rhodesia railways"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 opponents played against the bears in game 4? ### Context: CREATE TABLE table_21035326_1 (opponents VARCHAR, game VARCHAR) ### Response: ### Response: SELECT COUNT(opponents) FROM table_21035326_1 WHERE game = 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Nationality of the player who had Position of guard from School/Club Team Notre Dame? ### Context: CREATE TABLE table_name_59 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_59 WHERE position = "guard" AND school_club_team = "notre dame"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the notes in Toronto, Canada? ### Context: CREATE TABLE table_name_32 (notes VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT notes FROM table_name_32 WHERE venue = "toronto, canada"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rider has a lap of 23, grid smaller than 18, and time +44.333? ### Context: CREATE TABLE table_name_29 (rider VARCHAR, time VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT rider FROM table_name_29 WHERE laps = 23 AND grid < 18 AND time = "+44.333"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rebuilt has a Builder of derby, and a Name as rebuilt of ben madigan? ### Context: CREATE TABLE table_name_64 (rebuilt VARCHAR, builder VARCHAR, name_as_rebuilt VARCHAR) ### Response: ### Response: SELECT rebuilt FROM table_name_64 WHERE builder = "derby" AND name_as_rebuilt = "ben madigan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 fewest entrants in an event won by Grant Hinkle? ### Context: CREATE TABLE table_name_90 (entrants INTEGER, winner VARCHAR) ### Response: ### Response: SELECT MIN(entrants) FROM table_name_90 WHERE winner = "grant hinkle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 position with points 1 of 27 2 and fewer than 9 drawn? ### Context: CREATE TABLE table_name_74 (position INTEGER, points_1 VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT MIN(position) FROM table_name_74 WHERE points_1 = "27 2" AND drawn < 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: How many silver medals were won when there were 4 gold and 22 in total? ### Context: CREATE TABLE table_name_26 (silver INTEGER, gold VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(silver) FROM table_name_26 WHERE gold = 4 AND total = 22</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which leagues is the Galena school in? ### Context: CREATE TABLE table_11044765_1 (league VARCHAR, school VARCHAR) ### Response: ### Response: SELECT league FROM table_11044765_1 WHERE school = "Galena"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team played at Princes Park? ### Context: CREATE TABLE table_name_67 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_67 WHERE venue = "princes park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What builder has a 2001-02 order year? ### Context: CREATE TABLE table_name_93 (builder VARCHAR, order_year VARCHAR) ### Response: ### Response: SELECT builder FROM table_name_93 WHERE order_year = "2001-02"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 VIEWERS WITH EPISODE LARGER THAN 10, RATING SMALLER THAN 2? ### Context: CREATE TABLE table_name_78 (viewers__millions_ INTEGER, episode_number VARCHAR, rating VARCHAR) ### Response: ### Response: SELECT MAX(viewers__millions_) FROM table_name_78 WHERE episode_number > 10 AND rating < 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 film was awarded on 22/3/06? ### Context: CREATE TABLE table_name_2 (film VARCHAR, date VARCHAR) ### Response: ### Response: SELECT film FROM table_name_2 WHERE date = "22/3/06"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 points when played is 9, name is ev pegnitz and position is larger than 1? ### Context: CREATE TABLE table_name_36 (points INTEGER, position VARCHAR, played VARCHAR, name VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_36 WHERE played = 9 AND name = "ev pegnitz" AND position > 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: Where does the staff member with the first name Elsa live? ### Context: CREATE TABLE staff (address_id VARCHAR, first_name VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR) ### Response: ### Response: SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What place has the score of 67-74=141? ### Context: CREATE TABLE table_name_2 (place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT place FROM table_name_2 WHERE score = 67 - 74 = 141</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 discovered the specimen at the Burpee Museum of Natural History? ### Context: CREATE TABLE table_name_43 (discoverer VARCHAR, museum VARCHAR) ### Response: ### Response: SELECT discoverer FROM table_name_43 WHERE museum = "burpee museum of natural history"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the winner for a Sprint Classification and Young Classification to Mark Cavendish and Garmin-Chipotle-H30 for team? ### Context: CREATE TABLE table_name_42 (stage__winner_ VARCHAR, young_classification VARCHAR, sprint_classification VARCHAR, team_classification VARCHAR) ### Response: ### Response: SELECT stage__winner_ FROM table_name_42 WHERE sprint_classification = "mark cavendish" AND team_classification = "garmin-chipotle-h30" AND young_classification = "mark cavendish"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 value in 2009 at the French Open? ### Context: CREATE TABLE table_name_86 (tournament VARCHAR) ### Response: ### Response: SELECT 2009 FROM table_name_86 WHERE tournament = "french open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2006 that has a 2r in 2004, and a 2r in 2005? ### Context: CREATE TABLE table_name_84 (Id VARCHAR) ### Response: ### Response: SELECT 2006 FROM table_name_84 WHERE 2004 = "2r" AND 2005 = "2r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which attendance has the 25–17–5 record? ### Context: CREATE TABLE table_name_93 (attendance VARCHAR, record VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_93 WHERE record = "25–17–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: How many people directed episode 3 in the season? ### Context: CREATE TABLE table_25277262_2 (directed_by VARCHAR, no_in_season VARCHAR) ### Response: ### Response: SELECT COUNT(directed_by) FROM table_25277262_2 WHERE no_in_season = 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 theme for the episode selection process? ### Context: CREATE TABLE table_12175755_1 (theme VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT theme FROM table_12175755_1 WHERE episode = "Selection Process"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the total number of grid for rider of james toseland ### Context: CREATE TABLE table_name_14 (grid VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT COUNT(grid) FROM table_name_14 WHERE rider = "james toseland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1st leg of the uefa intertoto cup competition with club silkeborg? ### Context: CREATE TABLE table_name_66 (competition VARCHAR, club VARCHAR) ### Response: ### Response: SELECT 1 AS st_leg FROM table_name_66 WHERE competition = "uefa intertoto cup" AND club = "silkeborg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Number & Name listed for the Date 1967? ### Context: CREATE TABLE table_name_61 (number_ VARCHAR, _name VARCHAR, date VARCHAR) ### Response: ### Response: SELECT number_ & _name FROM table_name_61 WHERE date = 1967</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent at the game that had a record of 93-54? ### Context: CREATE TABLE table_name_73 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_73 WHERE record = "93-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: Show the transaction type code that occurs the most frequently. ### Context: CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR) ### Response: ### Response: SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code 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: What's the website for the Listen Live webcast on the 99.3 frequency? ### Context: CREATE TABLE table_name_81 (website VARCHAR, webcast VARCHAR, frequency VARCHAR) ### Response: ### Response: SELECT website FROM table_name_81 WHERE webcast = "listen live" AND frequency = 99.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 second year course in the program where physics is taken in the fourth year? ### Context: CREATE TABLE table_12148147_2 (second_year VARCHAR, fourth_year VARCHAR) ### Response: ### Response: SELECT second_year FROM table_12148147_2 WHERE fourth_year = "Physics"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 record when Minnesota was the visiting team? ### Context: CREATE TABLE table_name_68 (record VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT record FROM table_name_68 WHERE visitor = "minnesota"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 cyclone's pressure in the storm that death was equal to 95km/h (60mph)? ### Context: CREATE TABLE table_10602294_1 (pressure VARCHAR, deaths VARCHAR) ### Response: ### Response: SELECT pressure FROM table_10602294_1 WHERE deaths = "95km/h (60mph)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 township with a geo ID of 3807116660? ### Context: CREATE TABLE table_18600760_3 (township VARCHAR, geo_id VARCHAR) ### Response: ### Response: SELECT township FROM table_18600760_3 WHERE geo_id = 3807116660</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Result has a Location of atlanta, and Rank smaller than 4? ### Context: CREATE TABLE table_name_11 (result INTEGER, location VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(result) FROM table_name_11 WHERE location = "atlanta" AND rank < 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: Which Week has an Opponent of baltimore colts, and an Attendance smaller than 55,137? ### Context: CREATE TABLE table_name_65 (week INTEGER, opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT AVG(week) FROM table_name_65 WHERE opponent = "baltimore colts" AND attendance < 55 OFFSET 137</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 makers that produced some cars in the year of 1970? ### Context: CREATE TABLE MODEL_LIST (Maker VARCHAR, model VARCHAR); CREATE TABLE CAR_MAKERS (Maker VARCHAR, Id VARCHAR); CREATE TABLE CARS_DATA (id VARCHAR, year VARCHAR); CREATE TABLE CAR_NAMES (model VARCHAR, MakeId VARCHAR) ### Response: ### Response: SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: waht is the last year with a mclaren mp4/10b chassis ### Context: CREATE TABLE table_name_31 (year INTEGER, chassis VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_31 WHERE chassis = "mclaren mp4/10b"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country has the most bronze and has more than one silver, 1 gold, and less than 4 total medals. ### Context: CREATE TABLE table_name_80 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT MAX(bronze) FROM table_name_80 WHERE silver > 1 AND gold = 1 AND total < 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: Name the original title for 6.05 million viewership ### Context: CREATE TABLE table_17641206_6 (original_title VARCHAR, viewership VARCHAR) ### Response: ### Response: SELECT original_title FROM table_17641206_6 WHERE viewership = "6.05 million"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the competition take place that had a 4-2 result? ### Context: CREATE TABLE table_name_46 (venue VARCHAR, result VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_46 WHERE result = "4-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: Record of 15-12-4, and a Game larger than 31 involves what highest December? ### Context: CREATE TABLE table_name_68 (december INTEGER, record VARCHAR, game VARCHAR) ### Response: ### Response: SELECT MAX(december) FROM table_name_68 WHERE record = "15-12-4" AND game > 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 total wins with less than 2 ties, 18 goals, and less than 2 losses? ### Context: CREATE TABLE table_name_2 (wins INTEGER, losses VARCHAR, ties VARCHAR, goals_against VARCHAR) ### Response: ### Response: SELECT SUM(wins) FROM table_name_2 WHERE ties < 2 AND goals_against = 18 AND losses < 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games were played in park "Columbia Park" in 1907? ### Context: CREATE TABLE park (park_id VARCHAR, park_name VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For the album Board Up the House, what is the contribution? ### Context: CREATE TABLE table_name_49 (contribution VARCHAR, album VARCHAR) ### Response: ### Response: SELECT contribution FROM table_name_49 WHERE album = "board up the house"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 difference? ### Context: CREATE TABLE table_26677836_1 (difference INTEGER) ### Response: ### Response: SELECT MAX(difference) FROM table_26677836_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 company released a CD in 1964? ### Context: CREATE TABLE table_name_48 (record_company VARCHAR, year_of_recording VARCHAR, format VARCHAR) ### Response: ### Response: SELECT record_company FROM table_name_48 WHERE year_of_recording = 1964 AND format = "cd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the Play Electra? ### Context: CREATE TABLE table_name_60 (country VARCHAR, play VARCHAR) ### Response: ### Response: SELECT country FROM table_name_60 WHERE play = "electra"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Station Name of Platform 5? ### Context: CREATE TABLE table_name_32 (station_name VARCHAR, platform VARCHAR) ### Response: ### Response: SELECT station_name FROM table_name_32 WHERE platform = "5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the First Class Team in which the player has a bowling style of left arm orthodox spin? ### Context: CREATE TABLE table_name_15 (first_class_team VARCHAR, bowling_style VARCHAR) ### Response: ### Response: SELECT first_class_team FROM table_name_15 WHERE bowling_style = "left arm orthodox spin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position is listed for the nebraska team? ### Context: CREATE TABLE table_name_75 (position VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT position FROM table_name_75 WHERE school_club_team = "nebraska"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the losses that a match score larger than 26, a points score of 62, and a draw greater than 5? ### Context: CREATE TABLE table_name_6 (lost INTEGER, draw VARCHAR, matches VARCHAR, points VARCHAR) ### Response: ### Response: SELECT SUM(lost) FROM table_name_6 WHERE matches > 26 AND points = 62 AND draw > 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: How many students have a food allergy? ### Context: CREATE TABLE Has_allergy (allergy VARCHAR); CREATE TABLE Allergy_type (allergy VARCHAR, allergytype VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = "food"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ids of stations that are located in San Francisco and have average bike availability above 10. ### Context: CREATE TABLE status (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INTEGER); CREATE TABLE station (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INTEGER) ### Response: ### Response: SELECT id FROM station WHERE city = "San Francisco" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING AVG(bikes_available) > 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 was the little league team from Kentucky when the little league team from Illinois was Rock Falls LL Rock Falls? ### Context: CREATE TABLE table_18461045_1 (kentucky VARCHAR, illinois VARCHAR) ### Response: ### Response: SELECT kentucky FROM table_18461045_1 WHERE illinois = "Rock Falls LL Rock Falls"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the Billboard 200 Peak scores given to the song with the Title Bread? ### Context: CREATE TABLE table_name_70 (billboard_200_peak INTEGER, title VARCHAR) ### Response: ### Response: SELECT SUM(billboard_200_peak) FROM table_name_70 WHERE title = "bread"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What languages were spoken in the film "FireDancer"? ### Context: CREATE TABLE table_17155250_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT language_s_ FROM table_17155250_1 WHERE film_title_used_in_nomination = "FireDancer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 other for chironius multiventris septentrionalis ### Context: CREATE TABLE table_1850282_7 (other VARCHAR, species VARCHAR) ### Response: ### Response: SELECT other FROM table_1850282_7 WHERE species = "Chironius multiventris septentrionalis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 intercontinental cup 1999 result of the team who did not qualify for the Copa Libertadores 1999 and made quarterfinals in the Copa Mercosur 1999? ### Context: CREATE TABLE table_name_48 (intercontinental_cup_1999 VARCHAR, copa_libertadores_1999 VARCHAR, copa_mercosur_1999 VARCHAR) ### Response: ### Response: SELECT intercontinental_cup_1999 FROM table_name_48 WHERE copa_libertadores_1999 = "did not qualify" AND copa_mercosur_1999 = "quarterfinals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What ground had Portsmouth reserves as an opponent? ### Context: CREATE TABLE table_name_98 (ground VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT ground FROM table_name_98 WHERE opponent = "portsmouth reserves"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for Boston's road team in game 4? ### Context: CREATE TABLE table_name_73 (result VARCHAR, road_team VARCHAR, game VARCHAR) ### Response: ### Response: SELECT result FROM table_name_73 WHERE road_team = "boston" AND game = "game 4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the number of the wc matches if the matches were 79 ### Context: CREATE TABLE table_30085411_1 (WC INTEGER, matches VARCHAR) ### Response: ### Response: SELECT MAX(WC) AS matches FROM table_30085411_1 WHERE matches = 79</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the torque possible when the stroke is 88.4mm? ### Context: CREATE TABLE table_21021796_1 (torque VARCHAR, stroke VARCHAR) ### Response: ### Response: SELECT torque FROM table_21021796_1 WHERE stroke = "88.4mm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the home team when Sheffield United was the away team and the date was also Sheffield United? ### Context: CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_39 WHERE away_team = "sheffield united" AND date = "sheffield 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: What season had a date of 30 august 1980 ### Context: CREATE TABLE table_name_54 (season VARCHAR, date VARCHAR) ### Response: ### Response: SELECT season FROM table_name_54 WHERE date = "30 august 1980"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the working force of HK is 10.4%, what is the salary range? ### Context: CREATE TABLE table_27257896_2 (salary_range VARCHAR, working_force_of_hk VARCHAR) ### Response: ### Response: SELECT salary_range FROM table_27257896_2 WHERE working_force_of_hk = "10.4%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of losses when draws are larger than 0? ### Context: CREATE TABLE table_name_11 (losses VARCHAR, draws INTEGER) ### Response: ### Response: SELECT COUNT(losses) FROM table_name_11 WHERE draws > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is SIte, when Date is "September 13"? ### Context: CREATE TABLE table_name_67 (site VARCHAR, date VARCHAR) ### Response: ### Response: SELECT site FROM table_name_67 WHERE date = "september 13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is 1994, when 2002 is ATP Masters Series? ### Context: CREATE TABLE table_name_76 (Id VARCHAR) ### Response: ### Response: SELECT 1994 FROM table_name_76 WHERE 2002 = "atp masters series"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the maximum, minimum and average market share of the listed browsers? ### Context: CREATE TABLE browser (market_share INTEGER) ### Response: ### Response: SELECT MAX(market_share), MIN(market_share), AVG(market_share) FROM browser</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 year of the World Half Marathon Championships with a result of 3rd? ### Context: CREATE TABLE table_name_5 (year VARCHAR, tournament VARCHAR, result VARCHAR) ### Response: ### Response: SELECT year FROM table_name_5 WHERE tournament = "world half marathon championships" AND result = "3rd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 441st bs, 7th bw is the unit what is the b-52 model? ### Context: CREATE TABLE table_18933037_3 (b_52_model VARCHAR, unit VARCHAR) ### Response: ### Response: SELECT b_52_model FROM table_18933037_3 WHERE unit = "441st BS, 7th BW"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ε (M -1 cm -1) has a molar mass of 1008 g/mol? ### Context: CREATE TABLE table_name_79 (ε__m__1_cm__1__ VARCHAR, mass__g_mol_ VARCHAR) ### Response: ### Response: SELECT ε__m__1_cm__1__ FROM table_name_79 WHERE mass__g_mol_ = "1008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week has a Date of december 8, 1991? ### Context: CREATE TABLE table_name_67 (week INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(week) FROM table_name_67 WHERE date = "december 8, 1991"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the minimum population in 2011? ### Context: CREATE TABLE table_2328113_1 (population__2011_ INTEGER) ### Response: ### Response: SELECT MIN(population__2011_) FROM table_2328113_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: Name the total number of area for 775927 population ### Context: CREATE TABLE table_1307842_7 (area__km²_ VARCHAR, population VARCHAR) ### Response: ### Response: SELECT COUNT(area__km²_) FROM table_1307842_7 WHERE population = 775927</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Opponent of new england patriots had what attendance? ### Context: CREATE TABLE table_name_13 (attendance VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_13 WHERE opponent = "new england patriots"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled. ### Context: CREATE TABLE Claims (Date_Claim_Made VARCHAR, Date_Claim_Settled VARCHAR, Amount_Claimed INTEGER) ### Response: ### Response: SELECT Date_Claim_Made, Date_Claim_Settled FROM Claims WHERE Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all the locations with a RBMK-1000 reactor. ### Context: CREATE TABLE table_213088_1 (location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ VARCHAR, reactor_type VARCHAR) ### Response: ### Response: SELECT location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ FROM table_213088_1 WHERE reactor_type = "RBMK-1000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What nation has 28 bronze medals? ### Context: CREATE TABLE table_name_63 (nation VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_63 WHERE bronze = "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 country did Derek Black come from? ### Context: CREATE TABLE table_1473672_6 (nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nationality FROM table_1473672_6 WHERE player = "Derek Black"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the total number of rounds with a win result at the sf 5: stadium event? ### Context: CREATE TABLE table_name_65 (round VARCHAR, res VARCHAR, event VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_65 WHERE res = "win" AND event = "sf 5: stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many States have an Indian population of 30947? ### Context: CREATE TABLE table_10118412_6 (filipino VARCHAR, indian VARCHAR) ### Response: ### Response: SELECT COUNT(filipino) FROM table_10118412_6 WHERE indian = 30947</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest number of plays when drawn is more than 4, more than 30 points were earned, and 37 goals scored for the team? ### Context: CREATE TABLE table_name_91 (played INTEGER, points VARCHAR, drawn VARCHAR, goals_for VARCHAR) ### Response: ### Response: SELECT MAX(played) FROM table_name_91 WHERE drawn > 4 AND goals_for = 37 AND points > 30</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 jockey with opening odds of 4-1? ### Context: CREATE TABLE table_22517564_3 (jockey VARCHAR, opening_odds VARCHAR) ### Response: ### Response: SELECT jockey FROM table_22517564_3 WHERE opening_odds = "4-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 was the home team on March 5, 2008? ### Context: CREATE TABLE table_name_40 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_40 WHERE date = "march 5, 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 score of the match played on a hard surface with an opponent in the final of Elena Likhovtseva? ### Context: CREATE TABLE table_name_2 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT score FROM table_name_2 WHERE surface = "hard" AND opponent_in_the_final = "elena likhovtseva"</s>