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: For Laps smaller than 6, what does the Grid add up to? ### Context: CREATE TABLE table_name_5 (grid INTEGER, laps INTEGER) ### Response: ### Response: SELECT SUM(grid) FROM table_name_5 WHERE laps < 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: When samai amari is the asian rider classification how many asian team classifications are there? ### Context: CREATE TABLE table_21573750_2 (asian_team_classification VARCHAR, asian_rider_classification VARCHAR) ### Response: ### Response: SELECT COUNT(asian_team_classification) FROM table_21573750_2 WHERE asian_rider_classification = "Samai Amari"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Party has a Representative of brian bosma? ### Context: CREATE TABLE table_name_61 (party VARCHAR, representative VARCHAR) ### Response: ### Response: SELECT party FROM table_name_61 WHERE representative = "brian bosma"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which New/Returning/Same Network has a Previous Network of nbc, and a Show of blockbusters? ### Context: CREATE TABLE table_name_12 (new_returning_same_network VARCHAR, previous_network VARCHAR, show VARCHAR) ### Response: ### Response: SELECT new_returning_same_network FROM table_name_12 WHERE previous_network = "nbc" AND show = "blockbusters"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 show was nominated for the ITA Milestone Award at the Indian Television Academy Awards? ### Context: CREATE TABLE table_name_85 (show VARCHAR, award_ceremony VARCHAR, category VARCHAR) ### Response: ### Response: SELECT show FROM table_name_85 WHERE award_ceremony = "indian television academy awards" AND category = "ita milestone award"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Loss number when the Gain is less than 61 and the Avg/G is 6? ### Context: CREATE TABLE table_name_94 (loss INTEGER, gain VARCHAR, avg_g VARCHAR) ### Response: ### Response: SELECT MIN(loss) FROM table_name_94 WHERE gain < 61 AND avg_g = 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: List total amount of invoice from Chicago, IL. ### Context: CREATE TABLE invoices (total INTEGER, billing_city VARCHAR, billing_state VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did the first staff for the projects started working? ### Context: CREATE TABLE Project_Staff (date_from VARCHAR) ### Response: ### Response: SELECT date_from FROM Project_Staff ORDER BY date_from 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: Which Color has a Transcription of wan suk? ### Context: CREATE TABLE table_name_16 (color VARCHAR, transcription VARCHAR) ### Response: ### Response: SELECT color FROM table_name_16 WHERE transcription = "wan suk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 laps completed by the car in grid 10? ### Context: CREATE TABLE table_name_19 (laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_19 WHERE grid = "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: In which venue was there an against of 11? ### Context: CREATE TABLE table_name_72 (venue VARCHAR, against VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_72 WHERE against = 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When is Record of 16–16 taken? ### Context: CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_6 WHERE record = "16–16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many Atts that have Yards of 43 and a Long larger than 43? ### Context: CREATE TABLE table_name_65 (att INTEGER, yards VARCHAR, long VARCHAR) ### Response: ### Response: SELECT SUM(att) FROM table_name_65 WHERE yards = 43 AND long > 43</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the premiere for 8 episodes ### Context: CREATE TABLE table_22951646_1 (premiere VARCHAR, number_of_episodes VARCHAR) ### Response: ### Response: SELECT premiere FROM table_22951646_1 WHERE number_of_episodes = 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the location of the perpetrator with the largest kills. ### Context: CREATE TABLE perpetrator (LOCATION VARCHAR, Killed VARCHAR) ### Response: ### Response: SELECT LOCATION FROM perpetrator ORDER BY Killed 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 Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress? ### Context: CREATE TABLE table_name_70 (motion_picture VARCHAR, award VARCHAR, actor VARCHAR, year VARCHAR, result VARCHAR) ### Response: ### Response: SELECT motion_picture FROM table_name_70 WHERE year > 2003 AND result = "nominated" AND actor = "viola davis" AND award = "best supporting actress"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result for the game on October 5? ### Context: CREATE TABLE table_name_11 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_11 WHERE date = "october 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 Vineyeard surface (2010) with a Village of Gevrey-Chambertin, and Grand Cru of Latricières-Chambertin? ### Context: CREATE TABLE table_name_94 (vineyard_surface__2010_ VARCHAR, village VARCHAR, grand_cru VARCHAR) ### Response: ### Response: SELECT vineyard_surface__2010_ FROM table_name_94 WHERE village = "gevrey-chambertin" AND grand_cru = "latricières-chambertin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 barrell profile that goes with the gas piston carbine? ### Context: CREATE TABLE table_12834315_5 (barrel_profile VARCHAR, name VARCHAR) ### Response: ### Response: SELECT barrel_profile FROM table_12834315_5 WHERE name = "Gas Piston Carbine"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the result of the game on May 14 with Philadelphia as the road team? ### Context: CREATE TABLE table_name_48 (result VARCHAR, road_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_48 WHERE road_team = "philadelphia" AND date = "may 14"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What type of processor does the Intel Centrino Wireless-N 105 wireless LAN have? ### Context: CREATE TABLE table_199666_1 (processor VARCHAR, wireless_lan VARCHAR) ### Response: ### Response: SELECT processor FROM table_199666_1 WHERE wireless_lan = "Intel centrino Wireless-N 105"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 children did Dennis Hawley have at his time of death? ### Context: CREATE TABLE table_24143253_2 (children_together VARCHAR, deceased_spouse VARCHAR) ### Response: ### Response: SELECT children_together FROM table_24143253_2 WHERE deceased_spouse = "Dennis Hawley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Co-driver that has the Year smaller than 2012, and the Laps smaller than 161, and the Position of dnf, and the Number 33? ### Context: CREATE TABLE table_name_1 (co_driver VARCHAR, number VARCHAR, position VARCHAR, year VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT co_driver FROM table_name_1 WHERE year < 2012 AND laps < 161 AND position = "dnf" AND number = 33</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the team is Orlando? ### Context: CREATE TABLE table_27756164_8 (score VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(score) FROM table_27756164_8 WHERE team = "Orlando"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hancock get 3.09% ### Context: CREATE TABLE table_19681738_1 (county VARCHAR, hancock__percentage VARCHAR) ### Response: ### Response: SELECT county FROM table_19681738_1 WHERE hancock__percentage = "3.09%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team was the home team when Manchester City was the away team? ### Context: CREATE TABLE table_name_88 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_88 WHERE away_team = "manchester 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: What team did the Chicago Black Hawks visit on April 20? ### Context: CREATE TABLE table_name_92 (home VARCHAR, visitor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_92 WHERE visitor = "chicago black hawks" AND date = "april 20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the year founded for the team Dinos? ### Context: CREATE TABLE table_27599216_6 (founded INTEGER, team VARCHAR) ### Response: ### Response: SELECT MAX(founded) FROM table_27599216_6 WHERE team = "Dinos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the event with a runner-up of Alberto Mancini? ### Context: CREATE TABLE table_name_1 (winner VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_1 WHERE runner_up = "alberto mancini"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Robert Dirk's nationality? ### Context: CREATE TABLE table_2850912_3 (nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nationality FROM table_2850912_3 WHERE player = "Robert Dirk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 crowd size for the home team essendon? ### Context: CREATE TABLE table_name_6 (crowd INTEGER, home_team VARCHAR) ### Response: ### Response: SELECT AVG(crowd) FROM table_name_6 WHERE home_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 directors who directed movies with 5 star rating? Also return the title of these movies. ### Context: CREATE TABLE Movie (director VARCHAR, title VARCHAR, mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, stars VARCHAR) ### Response: ### Response: SELECT T1.director, T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 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: Name the artist for 1595 televotes ### Context: CREATE TABLE table_21378339_5 (artist VARCHAR, televotes VARCHAR) ### Response: ### Response: SELECT artist FROM table_21378339_5 WHERE televotes = 1595</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player Bruce Graham acquired? ### Context: CREATE TABLE table_name_18 (acquired VARCHAR, player VARCHAR) ### Response: ### Response: SELECT acquired FROM table_name_18 WHERE player = "bruce graham"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of invoices from the US, grouped by state. ### Context: CREATE TABLE invoices (billing_state VARCHAR, billing_country VARCHAR) ### Response: ### Response: SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 previous school for the forward with a height of ft5in (m)? ### Context: CREATE TABLE table_29050051_3 (previous_school VARCHAR, height VARCHAR, position VARCHAR) ### Response: ### Response: SELECT previous_school FROM table_29050051_3 WHERE height = "ft5in (m)" AND position = "Forward"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team played at MCG? ### Context: CREATE TABLE table_name_55 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_55 WHERE venue = "mcg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 air date for barnaby southcomb for charlie martin ### Context: CREATE TABLE table_18335117_5 (original_air_date VARCHAR, director VARCHAR, writer VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_18335117_5 WHERE director = "Barnaby Southcomb" AND writer = "Charlie Martin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week of february 12, in the west division, what is the position? ### Context: CREATE TABLE table_name_16 (position VARCHAR, division VARCHAR, week VARCHAR) ### Response: ### Response: SELECT position FROM table_name_16 WHERE division = "west" AND week = "february 12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team for venue of mcg ### Context: CREATE TABLE table_name_70 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_70 WHERE venue = "mcg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wrote the episode with a production code of 2j5507? ### Context: CREATE TABLE table_27450976_1 (written_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT COUNT(written_by) FROM table_27450976_1 WHERE production_code = "2J5507"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the number for Schwante where Bärenklau is 1.270? ### Context: CREATE TABLE table_11680175_1 (schwante VARCHAR, bärenklau VARCHAR) ### Response: ### Response: SELECT schwante FROM table_11680175_1 WHERE bärenklau = "1.270"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 has the wild side of soccer! as the slogan? ### Context: CREATE TABLE table_name_89 (year VARCHAR, slogan VARCHAR) ### Response: ### Response: SELECT year FROM table_name_89 WHERE slogan = "the wild side of soccer!"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 production code of the episode with series #8? ### Context: CREATE TABLE table_28967275_2 (production_code VARCHAR, series__number VARCHAR) ### Response: ### Response: SELECT production_code FROM table_28967275_2 WHERE series__number = 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most attendance for tamworth with home venue ### Context: CREATE TABLE table_name_4 (attendance INTEGER, opponent VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_4 WHERE opponent = "tamworth" AND venue = "home"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points have a percentage of possible points of 67.22%? ### Context: CREATE TABLE table_name_92 (points INTEGER, percentage_of_possible_points VARCHAR) ### Response: ### Response: SELECT SUM(points) FROM table_name_92 WHERE percentage_of_possible_points = "67.22%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the aircraft type for furstenau/vorden ### Context: CREATE TABLE table_28342423_1 (aircraft_type VARCHAR, geschwader_base VARCHAR) ### Response: ### Response: SELECT aircraft_type FROM table_28342423_1 WHERE geschwader_base = "Furstenau/Vorden"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lost by more than 27 but not more 78 with goals less than 300? ### Context: CREATE TABLE table_name_61 (games INTEGER, goals_against VARCHAR, lost VARCHAR, points VARCHAR) ### Response: ### Response: SELECT AVG(games) FROM table_name_61 WHERE lost > 27 AND points < 78 AND goals_against < 300</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 hemophilia's bleeding time? ### Context: CREATE TABLE table_name_41 (bleeding_time VARCHAR, condition VARCHAR) ### Response: ### Response: SELECT bleeding_time FROM table_name_41 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: Which Segment B has a Segment D of stone wool insulation? ### Context: CREATE TABLE table_name_92 (segment_b VARCHAR, segment_d VARCHAR) ### Response: ### Response: SELECT segment_b FROM table_name_92 WHERE segment_d = "stone wool insulation"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Bronze with a Nation of egypt (egy) and with a Gold that is smaller than 2? ### Context: CREATE TABLE table_name_56 (bronze INTEGER, nation VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT MIN(bronze) FROM table_name_56 WHERE nation = "egypt (egy)" AND gold < 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 points did Joe O'Meara have? ### Context: CREATE TABLE table_name_93 (points VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_name_93 WHERE artist = "joe o'meara"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the lowest attendance at a game that had a score of 5-4 and a loss of Williams (2-4)? ### Context: CREATE TABLE table_name_29 (attendance INTEGER, score VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_29 WHERE score = "5-4" AND loss = "williams (2-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 result for milwaukee county stadium ### Context: CREATE TABLE table_14984050_1 (result VARCHAR, game_site VARCHAR) ### Response: ### Response: SELECT result FROM table_14984050_1 WHERE game_site = "Milwaukee County 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: Name the team for toshihiro kaneishi ### Context: CREATE TABLE table_name_21 (team VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT team FROM table_name_21 WHERE driver = "toshihiro kaneishi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Candlelight Records Catalog of Candle053tin format? ### Context: CREATE TABLE table_name_93 (format VARCHAR, label VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT format FROM table_name_93 WHERE label = "candlelight records" AND catalog = "candle053tin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition did the toronto city saints win? ### Context: CREATE TABLE table_25735_1 (competition VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT competition FROM table_25735_1 WHERE winner = "Toronto City Saints"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 least points with a Coloni FC88 chassis? ### Context: CREATE TABLE table_name_43 (points INTEGER, chassis VARCHAR) ### Response: ### Response: SELECT MIN(points) FROM table_name_43 WHERE chassis = "coloni fc88"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the home team's score when richmond is away? ### Context: CREATE TABLE table_name_87 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_87 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 the average lane for Australia? ### Context: CREATE TABLE table_name_30 (lane INTEGER, nationality VARCHAR) ### Response: ### Response: SELECT AVG(lane) FROM table_name_30 WHERE nationality = "australia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What episode number had US viewership of 4.87 million? ### Context: CREATE TABLE table_27905664_1 (№ VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT № FROM table_27905664_1 WHERE us_viewers__million_ = "4.87"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What capacity opened lessed than 1937 and is located in the region of champagne-ardenne? ### Context: CREATE TABLE table_name_95 (capacity VARCHAR, opened VARCHAR, region VARCHAR) ### Response: ### Response: SELECT capacity FROM table_name_95 WHERE opened < 1937 AND region = "champagne-ardenne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What rank is the title with a gross of $26,589,355? ### Context: CREATE TABLE table_name_21 (rank VARCHAR, gross VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_21 WHERE gross = "$26,589,355"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 duration for nickolas grace as the actor? ### Context: CREATE TABLE table_name_36 (duration VARCHAR, actor VARCHAR) ### Response: ### Response: SELECT duration FROM table_name_36 WHERE actor = "nickolas grace"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 episode name when share was 8? ### Context: CREATE TABLE table_20522228_2 (episode VARCHAR, share VARCHAR) ### Response: ### Response: SELECT episode FROM table_20522228_2 WHERE share = 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What owner or owners have an operational description? ### Context: CREATE TABLE table_name_34 (owner_s_ VARCHAR, description VARCHAR) ### Response: ### Response: SELECT owner_s_ FROM table_name_34 WHERE description = "operational"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points was before game 14? ### Context: CREATE TABLE table_name_82 (points INTEGER, game INTEGER) ### Response: ### Response: SELECT SUM(points) FROM table_name_82 WHERE game < 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who directed the episode written by Shonda Rhimes? ### Context: CREATE TABLE table_23492454_1 (directed_by VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_23492454_1 WHERE written_by = "Shonda Rhimes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 unit price of tracks that belong to Jazz genre? ### Context: CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR) ### Response: ### Response: SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Jazz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 SIGN OF ZODIAC OF മീനം? ### Context: CREATE TABLE table_name_58 (sign_of_zodiac VARCHAR, in_malayalam VARCHAR) ### Response: ### Response: SELECT sign_of_zodiac FROM table_name_58 WHERE in_malayalam = "മീനം"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points were made when the tries for was 83? ### Context: CREATE TABLE table_14058433_3 (points VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT points FROM table_14058433_3 WHERE tries_for = "83"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date of the match against western province? ### Context: CREATE TABLE table_name_52 (date VARCHAR, opposing_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_52 WHERE opposing_team = "western province"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What term did Stewart Mcarthur from Vic serve in office? ### Context: CREATE TABLE table_name_68 (term_in_office VARCHAR, state VARCHAR, member VARCHAR) ### Response: ### Response: SELECT term_in_office FROM table_name_68 WHERE state = "vic" AND member = "stewart mcarthur"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What format does Japan use? ### Context: CREATE TABLE table_name_34 (format VARCHAR, country VARCHAR) ### Response: ### Response: SELECT format FROM table_name_34 WHERE country = "japan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the average attendance when the week is higher than 5 and the opponent is washington redskins? ### Context: CREATE TABLE table_name_81 (attendance INTEGER, week VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT AVG(attendance) FROM table_name_81 WHERE week > 5 AND opponent = "washington redskins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first class team of date of birth 20 november 1969? ### Context: CREATE TABLE table_11950720_4 (first_class_team VARCHAR, date_of_birth VARCHAR) ### Response: ### Response: SELECT first_class_team FROM table_11950720_4 WHERE date_of_birth = "20 November 1969"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the most points and how many did they have in game 11? ### Context: CREATE TABLE table_27733909_5 (high_points VARCHAR, game VARCHAR) ### Response: ### Response: SELECT high_points FROM table_27733909_5 WHERE game = 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHich team draft the player who went to college in Washington? ### Context: CREATE TABLE table_name_19 (nfl_team VARCHAR, college VARCHAR) ### Response: ### Response: SELECT nfl_team FROM table_name_19 WHERE college = "washington"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 points when there was a BMW 269 F2 chassis earlier than 1969? ### Context: CREATE TABLE table_name_63 (points VARCHAR, chassis VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_name_63 WHERE chassis = "bmw 269 f2" AND year < 1969</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2001 % for the status widowed or surviving partner? ### Context: CREATE TABLE table_273617_6 (status VARCHAR) ### Response: ### Response: SELECT 2001 AS __percentage FROM table_273617_6 WHERE status = "Widowed or surviving partner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many people attended the game played with the New England Patriots as opponents? ### Context: CREATE TABLE table_name_53 (attendance VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_53 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: Name the total number of peletier for shortscale comparison billion ### Context: CREATE TABLE table_260938_1 (peletier VARCHAR, shortscale_comparison VARCHAR) ### Response: ### Response: SELECT COUNT(peletier) FROM table_260938_1 WHERE shortscale_comparison = "Billion"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 China's International tourism expenditure (2011)? ### Context: CREATE TABLE table_name_4 (international_tourism_expenditure__2011_ VARCHAR, country VARCHAR) ### Response: ### Response: SELECT international_tourism_expenditure__2011_ FROM table_name_4 WHERE country = "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: Who is Jason Leffler's primary sponsor? ### Context: CREATE TABLE table_1529793_1 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR) ### Response: ### Response: SELECT primary_sponsor_s_ FROM table_1529793_1 WHERE driver_s_ = "Jason Leffler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Venue of melbourne , australia, and a Extra of 200 m has what results? ### Context: CREATE TABLE table_name_90 (result VARCHAR, venue VARCHAR, extra VARCHAR) ### Response: ### Response: SELECT result FROM table_name_90 WHERE venue = "melbourne , australia" AND extra = "200 m"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Party has Years in Assembly of 2008–present, and a Name of tom ammiano? ### Context: CREATE TABLE table_name_77 (party VARCHAR, years_in_assembly VARCHAR, name VARCHAR) ### Response: ### Response: SELECT party FROM table_name_77 WHERE years_in_assembly = "2008–present" AND name = "tom ammiano"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score of player jay haas? ### Context: CREATE TABLE table_name_48 (score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_48 WHERE player = "jay haas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Opponent has a Record of 65-95? ### Context: CREATE TABLE table_name_12 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_12 WHERE record = "65-95"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was the competition that had a score of 3-0? ### Context: CREATE TABLE table_name_34 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_34 WHERE score = "3-0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much Lost has Points larger than 15, and a Name of ev pegnitz? ### Context: CREATE TABLE table_name_23 (lost VARCHAR, points VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(lost) FROM table_name_23 WHERE points > 15 AND name = "ev pegnitz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rider when the grid is 21? ### Context: CREATE TABLE table_name_35 (rider VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT rider FROM table_name_35 WHERE grid = 21</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the average tonnage for the Siljan ship from Sweden? ### Context: CREATE TABLE table_name_97 (tonnage INTEGER, nationality VARCHAR, name_of_ship VARCHAR) ### Response: ### Response: SELECT AVG(tonnage) FROM table_name_97 WHERE nationality = "sweden" AND name_of_ship = "siljan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 no votes from Alaska in 1998? ### Context: CREATE TABLE table_name_31 (no_vote VARCHAR, date VARCHAR, state VARCHAR) ### Response: ### Response: SELECT no_vote FROM table_name_31 WHERE date = "1998" AND state = "alaska"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high points for april 8 ### Context: CREATE TABLE table_27722734_11 (high_points VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_points FROM table_27722734_11 WHERE date = "April 8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number of goals of park sung-ho at the k-league competition, which has the pohang steelers team and less than 46 total Gs? ### Context: CREATE TABLE table_name_65 (goals INTEGER, total_gs VARCHAR, name VARCHAR, competition VARCHAR, team VARCHAR) ### Response: ### Response: SELECT AVG(goals) FROM table_name_65 WHERE competition = "k-league" AND team = "pohang steelers" AND name = "park sung-ho" AND total_gs < 46</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most number for 74 runs margins ### Context: CREATE TABLE table_1594772_2 (s_no INTEGER, margin VARCHAR) ### Response: ### Response: SELECT MAX(s_no) FROM table_1594772_2 WHERE margin = "74 runs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 birth date for shirt number 7 ### Context: CREATE TABLE table_14363116_1 (birth_date VARCHAR, shirt_no VARCHAR) ### Response: ### Response: SELECT birth_date FROM table_14363116_1 WHERE shirt_no = 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the area when the poor law union is skibbereen and the townland is knockmore? ### Context: CREATE TABLE table_30121075_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR) ### Response: ### Response: SELECT area__acres__ FROM table_30121075_1 WHERE poor_law_union = "Skibbereen" AND townland = "Knockmore"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 October 17? ### Context: CREATE TABLE table_name_76 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_76 WHERE date = "october 17"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score of the game on February 26 with the Chicago black hawks as the home team and the New York Rangers as the visitor team? ### Context: CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT score FROM table_name_59 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND date = "february 26"</s>