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: Which date has a Terrain of plain stage, and a Stage of 4? ### Context: CREATE TABLE table_name_34 (date VARCHAR, terrain VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT date FROM table_name_34 WHERE terrain = "plain stage" AND stage = "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: How much Loss has a Gain smaller than 1571, and a Long smaller than 47, and an Avg/G of 36.4? ### Context: CREATE TABLE table_name_27 (loss VARCHAR, avg_g VARCHAR, gain VARCHAR, long VARCHAR) ### Response: ### Response: SELECT COUNT(loss) FROM table_name_27 WHERE gain < 1571 AND long < 47 AND avg_g = 36.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 pick number for Danny Green in a round less than 2? ### Context: CREATE TABLE table_name_21 (pick VARCHAR, player VARCHAR, round VARCHAR) ### Response: ### Response: SELECT COUNT(pick) FROM table_name_21 WHERE player = "danny green" AND round < 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: Name the opponent for jul 31 and score of w 5-1 ### Context: CREATE TABLE table_name_50 (opponent VARCHAR, date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_50 WHERE date = "jul 31" AND score = "w 5-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 enrollment for Kendallville? ### Context: CREATE TABLE table_name_73 (enrollment INTEGER, location VARCHAR) ### Response: ### Response: SELECT MAX(enrollment) FROM table_name_73 WHERE location = "kendallville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Set 2 has a Date of 25 may, and a Set 3 of 21–25? ### Context: CREATE TABLE table_name_45 (set_2 VARCHAR, date VARCHAR, set_3 VARCHAR) ### Response: ### Response: SELECT set_2 FROM table_name_45 WHERE date = "25 may" AND set_3 = "21–25"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has goals less than 2? ### Context: CREATE TABLE table_name_98 (competition VARCHAR, goal INTEGER) ### Response: ### Response: SELECT competition FROM table_name_98 WHERE goal < 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 party did the incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 belong to? ### Context: CREATE TABLE table_2668401_17 (party VARCHAR, district VARCHAR, result VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT party FROM table_2668401_17 WHERE result = "Re-elected" AND first_elected = "1797" AND district = "Virginia 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 airlines does Russia has? ### Context: CREATE TABLE airlines (country VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM airlines WHERE country = 'Russia'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 crowd of the west coast home team? ### Context: CREATE TABLE table_name_86 (crowd INTEGER, home_team VARCHAR) ### Response: ### Response: SELECT MIN(crowd) FROM table_name_86 WHERE home_team = "west coast"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 descriptions and dates if the share count is smaller than 10. ### Context: CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR); CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, transaction_type_code VARCHAR, share_count INTEGER) ### Response: ### Response: SELECT T1.transaction_type_description, T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 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: If a radius is 10, what is the lowest possible mass? ### Context: CREATE TABLE table_10432351_1 (mass__m___ INTEGER, radius__r___ VARCHAR) ### Response: ### Response: SELECT MIN(mass__m___) FROM table_10432351_1 WHERE radius__r___ = 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest number of floors recorded for buildings built by Dubai Marriott Harbour Hotel & Suites? ### Context: CREATE TABLE table_name_82 (floors INTEGER, name VARCHAR) ### Response: ### Response: SELECT MIN(floors) FROM table_name_82 WHERE name = "dubai marriott harbour hotel & suites"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 type earlier than 1968, and a Title of stretchin' out? ### Context: CREATE TABLE table_name_42 (type VARCHAR, year VARCHAR, title VARCHAR) ### Response: ### Response: SELECT type FROM table_name_42 WHERE year < 1968 AND title = "stretchin' out"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 recording date when the title is screech owl blues? ### Context: CREATE TABLE table_name_79 (recording_date VARCHAR, title VARCHAR) ### Response: ### Response: SELECT recording_date FROM table_name_79 WHERE title = "screech owl blues"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 leagues entering this round is Süper Lig, what is the maximum amount of clubs remaining? ### Context: CREATE TABLE table_1859269_1 (clubs_remaining INTEGER, leagues_entering_at_this_round VARCHAR) ### Response: ### Response: SELECT MAX(clubs_remaining) FROM table_1859269_1 WHERE leagues_entering_at_this_round = "Süper Lig"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played against TSV bayer 04 leverkusen when they were team #1? ### Context: CREATE TABLE table_name_9 (team__number1 VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_name_9 WHERE team__number1 = "tsv bayer 04 leverkusen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the club got 34 points ### Context: CREATE TABLE table_19179465_1 (lost INTEGER, points VARCHAR) ### Response: ### Response: SELECT MIN(lost) FROM table_19179465_1 WHERE points = 34</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the venue where goal #2 occured? ### Context: CREATE TABLE table_name_11 (venue VARCHAR, goal__number VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_11 WHERE goal__number = 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 name of the jockey for Pink Gin? ### Context: CREATE TABLE table_28750142_1 (jockey VARCHAR, name VARCHAR) ### Response: ### Response: SELECT jockey FROM table_28750142_1 WHERE name = "Pink Gin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 tallest building? ### Context: CREATE TABLE building (name VARCHAR, height_feet VARCHAR) ### Response: ### Response: SELECT name FROM building ORDER BY height_feet 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 was the total score where Toronto was played? ### Context: CREATE TABLE table_name_71 (game INTEGER, team VARCHAR) ### Response: ### Response: SELECT SUM(game) FROM table_name_71 WHERE team = "toronto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 customer id and number of accounts with most accounts. ### Context: CREATE TABLE Accounts (customer_id VARCHAR) ### Response: ### Response: SELECT customer_id, COUNT(*) FROM Accounts GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many writers are listed when the U.S viewers are 11.21 million? ### Context: CREATE TABLE table_24910733_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT COUNT(written_by) FROM table_24910733_1 WHERE us_viewers__millions_ = "11.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: Which Outcome has a Opponent of lindsay lee-waters? ### Context: CREATE TABLE table_name_83 (outcome VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_83 WHERE opponent = "lindsay lee-waters"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which school is in the hometown of Aledo, Texas? ### Context: CREATE TABLE table_11677691_5 (school VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT school FROM table_11677691_5 WHERE hometown = "Aledo, Texas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Hong Kong value with a 0 Brisbane value and a greater than 0 Kuala Lumpur value? ### Context: CREATE TABLE table_name_52 (hong_kong INTEGER, brisbane VARCHAR, kuala_lumpur VARCHAR) ### Response: ### Response: SELECT MIN(hong_kong) FROM table_name_52 WHERE brisbane = 0 AND kuala_lumpur > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest play-offs that have stevenage borough as the club, and a total greater than 21? ### Context: CREATE TABLE table_name_64 (play_offs INTEGER, club VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(play_offs) FROM table_name_64 WHERE club = "stevenage borough" AND total > 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's the Outcome for the Date of July 16, 2011? ### Context: CREATE TABLE table_name_76 (outcome VARCHAR, date VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_76 WHERE date = "july 16, 2011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is terrence ross' nationality ### Context: CREATE TABLE table_10015132_16 (nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nationality FROM table_10015132_16 WHERE player = "Terrence Ross"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week was the game on August 24, 1956 played in front of 40,175 fans? ### Context: CREATE TABLE table_name_10 (week INTEGER, date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT MAX(week) FROM table_name_10 WHERE date = "august 24, 1956" AND attendance > 40 OFFSET 175</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Event when the opponent was wesslan evaristo de oliveira? ### Context: CREATE TABLE table_name_79 (event VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT event FROM table_name_79 WHERE opponent = "wesslan evaristo de oliveira"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Score, when Away Team is "Thame United"? ### Context: CREATE TABLE table_name_67 (score VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_67 WHERE away_team = "thame 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: Name the representation for om fjorten dage ### Context: CREATE TABLE table_name_59 (representing VARCHAR, original_title VARCHAR) ### Response: ### Response: SELECT representing FROM table_name_59 WHERE original_title = "om fjorten dage"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 THE WEEK NUMBER WAS TOP 8, WHAT WAS THE THEME? ### Context: CREATE TABLE table_15778392_1 (theme VARCHAR, week__number VARCHAR) ### Response: ### Response: SELECT theme FROM table_15778392_1 WHERE week__number = "Top 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: Which Opponent has an Event of king of the cage: shock and awe? ### Context: CREATE TABLE table_name_8 (opponent VARCHAR, event VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_8 WHERE event = "king of the cage: shock and awe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1972, how many points did the entrant with the March 721G Chassis have? ### Context: CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT points FROM table_name_74 WHERE year > 1972 AND chassis = "march 721g"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What week had a lower attendance than 51,423 but was still higher than the other weeks? ### Context: CREATE TABLE table_name_76 (week INTEGER, attendance INTEGER) ### Response: ### Response: SELECT MAX(week) FROM table_name_76 WHERE attendance < 51 OFFSET 423</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rank# of the opponent when the result of the game was w42-14? ### Context: CREATE TABLE table_name_53 (rank__number VARCHAR, result VARCHAR) ### Response: ### Response: SELECT rank__number FROM table_name_53 WHERE result = "w42-14"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score for Milwaukee? ### Context: CREATE TABLE table_17121262_5 (score VARCHAR, team VARCHAR) ### Response: ### Response: SELECT score FROM table_17121262_5 WHERE team = "Milwaukee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Outcome of the Melbourne Tournament? ### Context: CREATE TABLE table_name_48 (outcome VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_48 WHERE tournament = "melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the winner with the loser being russia-2? ### Context: CREATE TABLE table_name_66 (winner VARCHAR, loser VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_66 WHERE loser = "russia-2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was Maxim Podoprigora's lowest rank? ### Context: CREATE TABLE table_name_91 (rank INTEGER, name VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_91 WHERE name = "maxim podoprigora"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 highest series number ? ### Context: CREATE TABLE table_27823058_1 (series__number INTEGER) ### Response: ### Response: SELECT MAX(series__number) FROM table_27823058_1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the location of the car that has a constructor of Lorraine-Dietrich? ### Context: CREATE TABLE table_18893428_1 (location VARCHAR, constructor VARCHAR) ### Response: ### Response: SELECT location FROM table_18893428_1 WHERE constructor = "Lorraine-Dietrich"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Record has a Visitor of quebec nordiques with a Score of 7–5? ### Context: CREATE TABLE table_name_37 (record VARCHAR, visitor VARCHAR, score VARCHAR) ### Response: ### Response: SELECT record FROM table_name_37 WHERE visitor = "quebec nordiques" AND score = "7–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 date for visiting team of denver broncos ### Context: CREATE TABLE table_name_72 (date VARCHAR, visiting_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_72 WHERE visiting_team = "denver broncos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: when the nickname halley is used, what are the date completed ### Context: CREATE TABLE table_15070195_1 (date_completed VARCHAR, nickname VARCHAR) ### Response: ### Response: SELECT date_completed FROM table_15070195_1 WHERE nickname = "Halley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Score of 68-71-70=208? ### Context: CREATE TABLE table_name_60 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_60 WHERE score = 68 - 71 - 70 = 208</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 week 5? ### Context: CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR) ### Response: ### Response: SELECT result FROM table_name_33 WHERE week = 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 date on week 6 ### Context: CREATE TABLE table_name_97 (date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT date FROM table_name_97 WHERE week = 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was his record when he went over 1 round? ### Context: CREATE TABLE table_name_81 (record VARCHAR, round INTEGER) ### Response: ### Response: SELECT record FROM table_name_81 WHERE round > 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: For week number of the top 40, what was the results? ### Context: CREATE TABLE table_22736523_1 (result VARCHAR, week__number VARCHAR) ### Response: ### Response: SELECT result FROM table_22736523_1 WHERE week__number = "Top 40"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 maximum number of episodes for a show? ### Context: CREATE TABLE table_18540104_1 (episodes INTEGER) ### Response: ### Response: SELECT MAX(episodes) FROM table_18540104_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 Weight & Height has a Player of james donaldson? ### Context: CREATE TABLE table_name_43 (weight_ VARCHAR, _height VARCHAR, player VARCHAR) ### Response: ### Response: SELECT weight_ & _height FROM table_name_43 WHERE player = "james donaldson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had been played when the Mavericks had a 46-22 record? ### Context: CREATE TABLE table_23284271_9 (game INTEGER, record VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_23284271_9 WHERE record = "46-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: What are the miles when February 25 is the date? ### Context: CREATE TABLE table_2226343_1 (miles__km_ VARCHAR, date VARCHAR) ### Response: ### Response: SELECT miles__km_ FROM table_2226343_1 WHERE date = "February 25"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 flights arriving in Aberdeen city? ### Context: CREATE TABLE FLIGHTS (DestAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR, City VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = "Aberdeen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 airport for ICAO of flls ### Context: CREATE TABLE table_name_6 (airport VARCHAR, icao VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_6 WHERE icao = "flls"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Time/Retired has a Manufacturer of yamaha, and a Rider of garry mccoy? ### Context: CREATE TABLE table_name_88 (time_retired VARCHAR, manufacturer VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_88 WHERE manufacturer = "yamaha" AND rider = "garry mccoy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what year was the bridge in Lovell built? ### Context: CREATE TABLE table_name_71 (built VARCHAR, location VARCHAR) ### Response: ### Response: SELECT built FROM table_name_71 WHERE location = "lovell"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Eliminated Kurt Angle? ### Context: CREATE TABLE table_name_49 (eliminated_by VARCHAR, wrestler VARCHAR) ### Response: ### Response: SELECT eliminated_by FROM table_name_49 WHERE wrestler = "kurt angle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many wins have a Series of formula nippon, and a Position of 8th? ### Context: CREATE TABLE table_name_78 (wins VARCHAR, series VARCHAR, position VARCHAR) ### Response: ### Response: SELECT wins FROM table_name_78 WHERE series = "formula nippon" AND position = "8th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what Year was the Result of the game 16-14? ### Context: CREATE TABLE table_name_81 (year INTEGER, result VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_81 WHERE result = "16-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 was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth? ### Context: CREATE TABLE table_name_97 (player VARCHAR, debut VARCHAR, born VARCHAR) ### Response: ### Response: SELECT player FROM table_name_97 WHERE debut = "age 18 v plymouth , 14 august 2012" AND born = "portsmouth"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 round for Wisconsin when the overall is larger than 238 and there is a defensive end? ### Context: CREATE TABLE table_name_87 (round INTEGER, school_club_team VARCHAR, overall VARCHAR, position VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_87 WHERE overall > 238 AND position = "defensive end" AND school_club_team = "wisconsin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nation won 1 gold medal and 1 bronze, for a total of 2 medals? ### Context: CREATE TABLE table_name_70 (nation VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_70 WHERE gold = "1" AND bronze = "1" 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: Which college did the player attend that went to Mission Viejo High School? ### Context: CREATE TABLE table_11677691_4 (college VARCHAR, school VARCHAR) ### Response: ### Response: SELECT college FROM table_11677691_4 WHERE school = "Mission Viejo High school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 notes for a Type of 0-6-0t? ### Context: CREATE TABLE table_name_37 (notes VARCHAR, type VARCHAR) ### Response: ### Response: SELECT notes FROM table_name_37 WHERE type = "0-6-0t"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Year, when Role is "himself", and when Notes is "celebrity guest alongside yg family"? ### Context: CREATE TABLE table_name_39 (year INTEGER, role VARCHAR, notes VARCHAR) ### Response: ### Response: SELECT SUM(year) FROM table_name_39 WHERE role = "himself" AND notes = "celebrity guest alongside yg family"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the host in the city of Philadelphia? ### Context: CREATE TABLE table_name_61 (host VARCHAR, city VARCHAR) ### Response: ### Response: SELECT host FROM table_name_61 WHERE city = "philadelphia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date when Miranda Gore Browne was runner-up? ### Context: CREATE TABLE table_28962227_1 (finale VARCHAR, runners_up VARCHAR) ### Response: ### Response: SELECT finale FROM table_28962227_1 WHERE runners_up = "Miranda Gore Browne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 shop that is hiring the largest number of employees? ### Context: CREATE TABLE shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (shop_id VARCHAR) ### Response: ### Response: SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id 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 year was the USS Cambridge laid down? ### Context: CREATE TABLE table_name_17 (laid_down VARCHAR, name VARCHAR) ### Response: ### Response: SELECT laid_down FROM table_name_17 WHERE name = "uss cambridge"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the director when there is 8.44 million viewers? ### Context: CREATE TABLE table_24910733_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_24910733_1 WHERE us_viewers__millions_ = "8.44"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 erp w of class c3, which has a frequency mhz less than 89.9? ### Context: CREATE TABLE table_name_58 (erp_w VARCHAR, class VARCHAR, frequency_mhz VARCHAR) ### Response: ### Response: SELECT COUNT(erp_w) FROM table_name_58 WHERE class = "c3" AND frequency_mhz < 89.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: what is the number of people in sri lanka ### Context: CREATE TABLE table_name_10 (s_no INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT AVG(s_no) FROM table_name_10 WHERE opponent = "sri lanka"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 SOCIAL SOFTWARE WITH NO DISCUSSION, NO TIME TRACKING, AND NO CHARTING? ### Context: CREATE TABLE table_name_18 (social_software VARCHAR, charting VARCHAR, discussion VARCHAR, time_tracking VARCHAR) ### Response: ### Response: SELECT social_software FROM table_name_18 WHERE discussion = "no" AND time_tracking = "no" AND charting = "no"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Championship, when Year is greater than 2002, and when Surface is Hard? ### Context: CREATE TABLE table_name_50 (championship VARCHAR, year VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT championship FROM table_name_50 WHERE year > 2002 AND surface = "hard"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor manufactured the car with a c24 chassis and which is driven by Jacques Villeneuve? ### Context: CREATE TABLE table_name_85 (engine_† VARCHAR, chassis VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT engine_† FROM table_name_85 WHERE chassis = "c24" AND driver = "jacques villeneuve"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Manuela Maleeva opponent when she played a match partnered with michelle strebel? ### Context: CREATE TABLE table_name_81 (opponents VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT opponents FROM table_name_81 WHERE partner = "michelle strebel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were the finalists in the 1972–73 season? ### Context: CREATE TABLE table_name_53 (finalists VARCHAR, season VARCHAR) ### Response: ### Response: SELECT finalists FROM table_name_53 WHERE season = "1972–73"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 A Seine-Saint-Denis WITH A PARIS OF 12.1%? ### Context: CREATE TABLE table_name_90 (seine_saint_denis VARCHAR, paris VARCHAR) ### Response: ### Response: SELECT seine_saint_denis FROM table_name_90 WHERE paris = "12.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: Tell me the ship for lieutenant montagu verling ### Context: CREATE TABLE table_name_52 (ship VARCHAR, captain VARCHAR) ### Response: ### Response: SELECT ship FROM table_name_52 WHERE captain = "lieutenant montagu verling"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 district New York 10th, what was the reason for change? ### Context: CREATE TABLE table_1694492_2 (reason_for_change VARCHAR, district VARCHAR) ### Response: ### Response: SELECT reason_for_change FROM table_1694492_2 WHERE district = "New York 10th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the capital of Uasin Gishu county? ### Context: CREATE TABLE table_16278894_1 (capital VARCHAR, county VARCHAR) ### Response: ### Response: SELECT capital FROM table_16278894_1 WHERE county = "Uasin Gishu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What institution is located in Watertown, Wisconsin? ### Context: CREATE TABLE table_1974443_1 (institution VARCHAR, location VARCHAR) ### Response: ### Response: SELECT institution FROM table_1974443_1 WHERE location = "Watertown, Wisconsin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was Peru with a total greater than 3? ### Context: CREATE TABLE table_name_34 (rank INTEGER, country VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_34 WHERE country = "peru" AND total > 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On which circuit was the lites race two winning team #13 Inspire Motorsports? ### Context: CREATE TABLE table_26638600_3 (circuit VARCHAR, lites_1_race_two_winning_team VARCHAR) ### Response: ### Response: SELECT circuit FROM table_26638600_3 WHERE lites_1_race_two_winning_team = "#13 Inspire Motorsports"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Class Pos., when Year is before 2013, and when Laps is greater than 175? ### Context: CREATE TABLE table_name_72 (class VARCHAR, year VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT class AS pos FROM table_name_72 WHERE year < 2013 AND laps > 175</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Year(s) of manufacture has an Axle arrangement of 2′b n2? ### Context: CREATE TABLE table_name_92 (year_s__of_manufacture VARCHAR, axle_arrangement VARCHAR) ### Response: ### Response: SELECT year_s__of_manufacture FROM table_name_92 WHERE axle_arrangement = "2′b n2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2007 for the 2003 desert prince? ### Context: CREATE TABLE table_name_48 (Id VARCHAR) ### Response: ### Response: SELECT 2007 FROM table_name_48 WHERE 2003 = "desert prince"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Return the maximum and minimum population among all counties. ### Context: CREATE TABLE county (Population INTEGER) ### Response: ### Response: SELECT MAX(Population), MIN(Population) FROM county</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: how many times was hancock % considered when starky % was 20.96% ### Context: CREATE TABLE table_19681738_1 (hancock__percentage VARCHAR, starky__percentage VARCHAR) ### Response: ### Response: SELECT COUNT(hancock__percentage) FROM table_19681738_1 WHERE starky__percentage = "20.96%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 international use of the 1 единица flag? ### Context: CREATE TABLE table_29997112_3 (international_use VARCHAR, flag_name VARCHAR) ### Response: ### Response: SELECT international_use FROM table_29997112_3 WHERE flag_name = "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 are values of attendance for the El Paso, TX location? ### Context: CREATE TABLE table_15647838_3 (attendance VARCHAR, location VARCHAR) ### Response: ### Response: SELECT attendance FROM table_15647838_3 WHERE location = "El Paso, TX"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Date of the Tournament against Anastasiya Yakimova? ### Context: CREATE TABLE table_name_35 (date VARCHAR, opponent_in_final VARCHAR) ### Response: ### Response: SELECT date FROM table_name_35 WHERE opponent_in_final = "anastasiya yakimova"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Tournament has a Score of 3–6 6–4 4–6? ### Context: CREATE TABLE table_name_43 (tournament VARCHAR, score VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_43 WHERE score = "3–6 6–4 4–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: Tell me the sum of wins for top 5 less than 1 ### Context: CREATE TABLE table_name_77 (wins INTEGER, top_5 INTEGER) ### Response: ### Response: SELECT SUM(wins) FROM table_name_77 WHERE top_5 < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many services are there? ### Context: CREATE TABLE services (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM services</s>