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: Show the delegate and committee information of elections. ### Context: CREATE TABLE election (Delegate VARCHAR, Committee VARCHAR) ### Response: ### Response: SELECT Delegate, Committee FROM election</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of Israeli deaths in the attack with 0 total casulaties and 0 total deaths? ### Context: CREATE TABLE table_name_37 (israeli_deaths VARCHAR, total_casualties VARCHAR, total_deaths VARCHAR) ### Response: ### Response: SELECT COUNT(israeli_deaths) FROM table_name_37 WHERE total_casualties = "0" AND total_deaths = "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: Name the champion for 2000 ### Context: CREATE TABLE table_name_52 (champion VARCHAR, year VARCHAR) ### Response: ### Response: SELECT champion FROM table_name_52 WHERE year = "2000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first place participants where from croatia? ### Context: CREATE TABLE table_30018460_1 (country_territory VARCHAR) ### Response: ### Response: SELECT 3 AS rd_runner_up FROM table_30018460_1 WHERE country_territory = "Croatia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Status, when Opposing Teams is "Scotland"? ### Context: CREATE TABLE table_name_16 (status VARCHAR, opposing_teams VARCHAR) ### Response: ### Response: SELECT status FROM table_name_16 WHERE opposing_teams = "scotland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 viewers for audience share in timeslot for 10.2% ### Context: CREATE TABLE table_19834691_4 (viewers__millions_ VARCHAR, audience_share_in_timeslot VARCHAR) ### Response: ### Response: SELECT COUNT(viewers__millions_) FROM table_19834691_4 WHERE audience_share_in_timeslot = "10.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: March of 29 involves what highest scoring game? ### Context: CREATE TABLE table_name_40 (game INTEGER, march VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_name_40 WHERE march = 29</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the game against Seattle on June 1? ### Context: CREATE TABLE table_name_7 (home_team VARCHAR, road_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_7 WHERE road_team = "seattle" AND date = "june 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 course had a rest day for the Race Leader? ### Context: CREATE TABLE table_name_1 (course VARCHAR, race_leader VARCHAR) ### Response: ### Response: SELECT course FROM table_name_1 WHERE race_leader = "rest day"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Record of 11-10-3 is what sum of game #? ### Context: CREATE TABLE table_name_57 (game__number INTEGER, record VARCHAR) ### Response: ### Response: SELECT SUM(game__number) FROM table_name_57 WHERE record = "11-10-3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Image attachment has a Threaded of yes, and a Calendar of yes? ### Context: CREATE TABLE table_name_44 (image_attachment VARCHAR, threaded VARCHAR, calendar VARCHAR) ### Response: ### Response: SELECT image_attachment FROM table_name_44 WHERE threaded = "yes" AND calendar = "yes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 television that was dated December 28, 2009? ### Context: CREATE TABLE table_23718905_6 (television VARCHAR, date VARCHAR) ### Response: ### Response: SELECT television FROM table_23718905_6 WHERE date = "December 28, 2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 years for talbot-lago t26c and points less than 3 ### Context: CREATE TABLE table_name_52 (year VARCHAR, chassis VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_52 WHERE chassis = "talbot-lago t26c" AND points < 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many losses have byes greater than 2? ### Context: CREATE TABLE table_name_38 (losses VARCHAR, byes INTEGER) ### Response: ### Response: SELECT COUNT(losses) FROM table_name_38 WHERE byes > 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 date where the winner was the Oakland Raiders in 1975? ### Context: CREATE TABLE table_name_95 (date VARCHAR, year VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT date FROM table_name_95 WHERE year = 1975 AND winner = "oakland raiders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round has an Opponent of jorge magalhaes? ### Context: CREATE TABLE table_name_83 (round INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_83 WHERE opponent = "jorge magalhaes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Total Medals that has 0 Gold Medal and a Ensemble of east 80 indoor percussion? ### Context: CREATE TABLE table_name_27 (total_medals INTEGER, gold_medals VARCHAR, ensemble VARCHAR) ### Response: ### Response: SELECT MAX(total_medals) FROM table_name_27 WHERE gold_medals = 0 AND ensemble = "east 80 indoor percussion"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 population(2006) when there is a 1.06% in 2011? ### Context: CREATE TABLE table_189893_1 (population__2006_ INTEGER, percentage__2011_ VARCHAR) ### Response: ### Response: SELECT MIN(population__2006_) FROM table_189893_1 WHERE percentage__2011_ = "1.06%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what song is a genre of glam ### Context: CREATE TABLE table_name_26 (song_title VARCHAR, genre VARCHAR) ### Response: ### Response: SELECT song_title FROM table_name_26 WHERE genre = "glam"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 surface of the track at the indianapolis speedrome? ### Context: CREATE TABLE table_name_2 (surface VARCHAR, track VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_2 WHERE track = "indianapolis speedrome"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 wind on 21 june 1976? ### Context: CREATE TABLE table_1231316_7 (wind__m_s_ VARCHAR, date VARCHAR) ### Response: ### Response: SELECT wind__m_s_ FROM table_1231316_7 WHERE date = "21 June 1976"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what Date was The Open Championship in Japan? ### Context: CREATE TABLE table_name_99 (date VARCHAR, major VARCHAR, country VARCHAR) ### Response: ### Response: SELECT date FROM table_name_99 WHERE major = "the open championship" AND 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: How much ht does the model with 10x mult. 1 have? ### Context: CREATE TABLE table_27277284_28 (ht VARCHAR, mult_1 VARCHAR) ### Response: ### Response: SELECT ht FROM table_27277284_28 WHERE mult_1 = "10x"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position was less than 421 overall played by Matt Clark? ### Context: CREATE TABLE table_name_28 (position VARCHAR, overall VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_name_28 WHERE overall < 421 AND player = "matt clark"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is races more than 14, position is 9th and wins less than 0? ### Context: CREATE TABLE table_name_48 (season VARCHAR, wins VARCHAR, races VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(season) FROM table_name_48 WHERE races > 14 AND position = "9th" AND wins < 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 Republican seat plurality of North Carolina? ### Context: CREATE TABLE table_name_18 (republican_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR) ### Response: ### Response: SELECT republican_seat_plurality FROM table_name_18 WHERE state_ranked_in_partisan_order = "north carolina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country has 370 supermarkets? ### Context: CREATE TABLE table_name_47 (country VARCHAR, supermarkets VARCHAR) ### Response: ### Response: SELECT country FROM table_name_47 WHERE supermarkets = "370"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 episode 120 in the series that Mike Rohl directed? ### Context: CREATE TABLE table_27892955_1 (title VARCHAR, directed_by VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT title FROM table_27892955_1 WHERE directed_by = "Mike Rohl" AND no_in_series = 120</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 dipole moment of ethyl acetate (etoac)? ### Context: CREATE TABLE table_name_78 (dipole_moment___d__ VARCHAR, solvent VARCHAR) ### Response: ### Response: SELECT dipole_moment___d__ FROM table_name_78 WHERE solvent = "ethyl acetate (etoac)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lake Oval? ### Context: CREATE TABLE table_name_50 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_50 WHERE venue = "lake oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Pick number of the Player from Syracuse? ### Context: CREATE TABLE table_name_76 (pick VARCHAR, college VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_76 WHERE college = "syracuse"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 penalty for Jonathan Toews? ### Context: CREATE TABLE table_name_19 (penalty VARCHAR, player VARCHAR) ### Response: ### Response: SELECT penalty FROM table_name_19 WHERE player = "jonathan toews"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 baseball stadium for the school with the Murray Center basketball arena? ### Context: CREATE TABLE table_1974545_3 (baseball_stadium VARCHAR, basketball_arena VARCHAR) ### Response: ### Response: SELECT baseball_stadium FROM table_1974545_3 WHERE basketball_arena = "The Murray Center"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of Goals with a nationality of England, and position of DF, and a Crewe Alexandra career is 1958–1962, and less than 170 appearances? ### Context: CREATE TABLE table_name_98 (goals VARCHAR, appearances VARCHAR, crewe_alexandra_career VARCHAR, nationality VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(goals) FROM table_name_98 WHERE nationality = "england" AND position = "df" AND crewe_alexandra_career = "1958–1962" AND appearances < 170</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Margin of victory has a Tournament of u.s. senior open? ### Context: CREATE TABLE table_name_34 (margin_of_victory VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_34 WHERE tournament = "u.s. senior open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the rank for Denmark? ### Context: CREATE TABLE table_name_33 (rank VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_33 WHERE nationality = "denmark"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tennessee 3 district incumbent first elected? ### Context: CREATE TABLE table_1342233_42 (first_elected INTEGER, district VARCHAR) ### Response: ### Response: SELECT MAX(first_elected) FROM table_1342233_42 WHERE district = "Tennessee 3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: which Oberliga Baden-Württemberg has a Season of 1991-92? ### Context: CREATE TABLE table_name_41 (oberliga_baden_württemberg VARCHAR, season VARCHAR) ### Response: ### Response: SELECT oberliga_baden_württemberg FROM table_name_41 WHERE season = "1991-92"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is Madeleine Plamondon a member of? ### Context: CREATE TABLE table_name_94 (party VARCHAR, name VARCHAR) ### Response: ### Response: SELECT party FROM table_name_94 WHERE name = "madeleine plamondon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 First elected has a Result of re-elected, and a Party of republican, and a District of illinois 4? ### Context: CREATE TABLE table_name_76 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR) ### Response: ### Response: SELECT COUNT(first_elected) FROM table_name_76 WHERE result = "re-elected" AND party = "republican" AND district = "illinois 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 Region, when Date is 2004? ### Context: CREATE TABLE table_name_61 (region VARCHAR, date VARCHAR) ### Response: ### Response: SELECT region FROM table_name_61 WHERE date = 2004</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does g a vandervell have? ### Context: CREATE TABLE table_name_95 (points VARCHAR, entrant VARCHAR) ### Response: ### Response: SELECT points FROM table_name_95 WHERE entrant = "g a vandervell"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What school has an IHSAA Class of aaa, and their mascot is Tiger Cubs? ### Context: CREATE TABLE table_name_50 (school VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR) ### Response: ### Response: SELECT school FROM table_name_50 WHERE ihsaa_class = "aaa" AND mascot = "tiger cubs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum number of disc for bill gereghty ### Context: CREATE TABLE table_15430606_1 (no_disc INTEGER, directed_by VARCHAR) ### Response: ### Response: SELECT MAX(no_disc) FROM table_15430606_1 WHERE directed_by = "Bill Gereghty"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 entries for 50 occur when strike rate is 92.81? ### Context: CREATE TABLE table_2985664_8 (strike_rate VARCHAR) ### Response: ### Response: SELECT COUNT(50) FROM table_2985664_8 WHERE strike_rate = "92.81"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers? ### Context: CREATE TABLE table_name_16 (gold VARCHAR, rank VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT COUNT(gold) FROM table_name_16 WHERE rank = "2" AND silver < 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 played number when the tries against shows correct as of 18:13 26 May 2008? ### Context: CREATE TABLE table_name_1 (played VARCHAR, tries_against VARCHAR) ### Response: ### Response: SELECT played FROM table_name_1 WHERE tries_against = "correct as of 18:13 26 may 2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of the grid for Johnny Herbert with more than 52 laps? ### Context: CREATE TABLE table_name_28 (grid INTEGER, driver VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT SUM(grid) FROM table_name_28 WHERE driver = "johnny herbert" AND laps > 52</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 different voivodenship have 747 900 citizes? ### Context: CREATE TABLE table_11656578_2 (voivodeship VARCHAR, population__1980_ VARCHAR) ### Response: ### Response: SELECT COUNT(voivodeship) FROM table_11656578_2 WHERE population__1980_ = "747 900"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Game larger than 76, and a March larger than 26 involves what score? ### Context: CREATE TABLE table_name_60 (score VARCHAR, game VARCHAR, march VARCHAR) ### Response: ### Response: SELECT score FROM table_name_60 WHERE game > 76 AND march > 26</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Constructor with total time of 2:45.416 ### Context: CREATE TABLE table_name_72 (constructor VARCHAR, q1 VARCHAR, q2_time VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_72 WHERE q1 + q2_time = "2:45.416"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 name of the barangay whose area is 3.6787 km² ? ### Context: CREATE TABLE table_2004733_2 (barangay VARCHAR, area__in_km_2__ VARCHAR) ### Response: ### Response: SELECT barangay FROM table_2004733_2 WHERE area__in_km_2__ = "3.6787"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 maximum burglary statistics if the property crimes is 168630? ### Context: CREATE TABLE table_26060884_2 (burglary INTEGER, property_crimes VARCHAR) ### Response: ### Response: SELECT MAX(burglary) FROM table_26060884_2 WHERE property_crimes = 168630</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What lowest games have 20 goals and a Goal Ratio smaller than 0.14? ### Context: CREATE TABLE table_name_51 (games INTEGER, goals VARCHAR, goal_ratio VARCHAR) ### Response: ### Response: SELECT MIN(games) FROM table_name_51 WHERE goals = 20 AND goal_ratio < 0.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 class is the city of black mountain, north carolina? ### Context: CREATE TABLE table_name_45 (class VARCHAR, city_of_license VARCHAR) ### Response: ### Response: SELECT class FROM table_name_45 WHERE city_of_license = "black mountain, north carolina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Venue has a Year larger than 1868, and an Opposition of derbyshire? ### Context: CREATE TABLE table_name_97 (venue VARCHAR, year VARCHAR, opposition VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_97 WHERE year > 1868 AND opposition = "derbyshire"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the tournament that was held in 1974? ### Context: CREATE TABLE table_name_92 (score_in_the_final VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score_in_the_final FROM table_name_92 WHERE date = 1974</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 aircrafts do we have? ### Context: CREATE TABLE Aircraft (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Aircraft</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List all results from the 3-3 scoring game. ### Context: CREATE TABLE table_24561550_1 (result VARCHAR, record VARCHAR) ### Response: ### Response: SELECT result FROM table_24561550_1 WHERE record = "3-3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the lowest amount of 12 games and less than 48 rebounds? ### Context: CREATE TABLE table_name_1 (rank INTEGER, games VARCHAR, rebounds VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_1 WHERE games = 12 AND rebounds < 48</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record for golden state ### Context: CREATE TABLE table_23186738_6 (record VARCHAR, team VARCHAR) ### Response: ### Response: SELECT record FROM table_23186738_6 WHERE team = "Golden 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: Who was the leading scorer on April 9, 2008? ### Context: CREATE TABLE table_name_34 (leading_scorer VARCHAR, date VARCHAR) ### Response: ### Response: SELECT leading_scorer FROM table_name_34 WHERE date = "april 9, 2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In which round was Jerry Butler chosen? ### Context: CREATE TABLE table_name_58 (round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT round FROM table_name_58 WHERE player = "jerry butler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011? ### Context: CREATE TABLE table_1717824_1 (south_asians_2001 VARCHAR, _percentage_2011 VARCHAR) ### Response: ### Response: SELECT COUNT(south_asians_2001) FROM table_1717824_1 WHERE _percentage_2011 = "4.4%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Long is the highest one that has a Loss larger than 3, and a Gain larger than 2,894? ### Context: CREATE TABLE table_name_22 (long INTEGER, loss VARCHAR, gain VARCHAR) ### Response: ### Response: SELECT MAX(long) FROM table_name_22 WHERE loss > 3 AND gain > 2 OFFSET 894</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Distance has an Event of breaststroke, and a Location of beijing, chn? ### Context: CREATE TABLE table_name_16 (distance VARCHAR, event VARCHAR, location VARCHAR) ### Response: ### Response: SELECT distance FROM table_name_16 WHERE event = "breaststroke" AND location = "beijing, chn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 On-air ID of FM broadcaster 4nsa? ### Context: CREATE TABLE table_name_54 (on_air_id VARCHAR, band VARCHAR, callsign VARCHAR) ### Response: ### Response: SELECT on_air_id FROM table_name_54 WHERE band = "fm" AND callsign = "4nsa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player Davis Love III? ### Context: CREATE TABLE table_name_82 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_82 WHERE player = "davis love iii"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Icelandic word for rain? ### Context: CREATE TABLE table_name_12 (icelandic VARCHAR, english VARCHAR) ### Response: ### Response: SELECT icelandic FROM table_name_12 WHERE english = "rain"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 circuit has a length of 45 minutes and is held on August 6? ### Context: CREATE TABLE table_name_78 (circuit VARCHAR, length VARCHAR, date VARCHAR) ### Response: ### Response: SELECT circuit FROM table_name_78 WHERE length = "45 minutes" AND date = "august 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 team has a player from Santa Clara? ### Context: CREATE TABLE table_name_82 (team VARCHAR, college VARCHAR) ### Response: ### Response: SELECT team FROM table_name_82 WHERE college = "santa clara"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Titans play the Houston Texans at LP Field before Week 13? ### Context: CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR) ### Response: ### Response: SELECT date FROM table_name_68 WHERE week < 13 AND game_site = "lp field" AND opponent = "houston texans"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the Athletes from Germany? ### Context: CREATE TABLE table_name_41 (notes VARCHAR, country VARCHAR) ### Response: ### Response: SELECT notes FROM table_name_41 WHERE country = "germany"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 melbourne's away score? ### Context: CREATE TABLE table_name_29 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_29 WHERE away_team = "melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the location of the National event with Kevin Martin winning? ### Context: CREATE TABLE table_name_49 (location VARCHAR, winning_skip VARCHAR, event VARCHAR) ### Response: ### Response: SELECT location FROM table_name_49 WHERE winning_skip = "kevin martin" AND event = "the national"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team at the game at Kardinia Park? ### Context: CREATE TABLE table_name_99 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_99 WHERE venue = "kardinia park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who directed the episode with the production code of 6AKY11? ### Context: CREATE TABLE table_28027307_1 (directed_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_28027307_1 WHERE production_code = "6AKY11"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 score for the Away team of North Melbourne? ### Context: CREATE TABLE table_name_69 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_69 WHERE away_team = "north melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of bronze that Scotland, which has less than 7 total medals, has? ### Context: CREATE TABLE table_name_55 (bronze INTEGER, nation VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(bronze) FROM table_name_55 WHERE nation = "scotland" AND total < 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 African Spoonbill when the Hadeda Ibis is the Brown Snake Eagle? ### Context: CREATE TABLE table_20042805_2 (african_spoonbill VARCHAR, hadeda_ibis VARCHAR) ### Response: ### Response: SELECT african_spoonbill FROM table_20042805_2 WHERE hadeda_ibis = "Brown Snake Eagle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Romanised name of the Undersecretary with an education portfolio attachment? ### Context: CREATE TABLE table_name_84 (romanised_name VARCHAR, portfolio_attachment VARCHAR) ### Response: ### Response: SELECT romanised_name FROM table_name_84 WHERE portfolio_attachment = "education"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 type of the magazine that was named dengeki game appli? ### Context: CREATE TABLE table_name_32 (magazine_type VARCHAR, title VARCHAR) ### Response: ### Response: SELECT magazine_type FROM table_name_32 WHERE title = "dengeki game appli"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 name is the island with a population of just 64? ### Context: CREATE TABLE table_13897690_1 (islands_name VARCHAR, population__2000_ VARCHAR) ### Response: ### Response: SELECT islands_name FROM table_13897690_1 WHERE population__2000_ = "64"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 stadium in Moorabbin, Victoria built for? ### Context: CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR) ### Response: ### Response: SELECT built_for FROM table_28885977_1 WHERE location = "Moorabbin, Victoria"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What district did Dave Treen serve? ### Context: CREATE TABLE table_1341663_19 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_1341663_19 WHERE incumbent = "Dave Treen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 third place of the performance in 2006 with the host Japan? ### Context: CREATE TABLE table_name_79 (third_place VARCHAR, host VARCHAR, season VARCHAR) ### Response: ### Response: SELECT third_place FROM table_name_79 WHERE host = "japan" AND season < 2006</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 sum of the population in 2010 for the division of japeri with an area of 82.9 squared km? ### Context: CREATE TABLE table_name_16 (population__2010_census_ INTEGER, administrative_division VARCHAR, area__km²_ VARCHAR) ### Response: ### Response: SELECT SUM(population__2010_census_) FROM table_name_16 WHERE administrative_division = "japeri" AND area__km²_ < 82.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: When has a Leading scorer of ricky davis (20)? ### Context: CREATE TABLE table_name_48 (date VARCHAR, leading_scorer VARCHAR) ### Response: ### Response: SELECT date FROM table_name_48 WHERE leading_scorer = "ricky davis (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: Which venue was used for the game whose score was 2:3? ### Context: CREATE TABLE table_name_25 (venue VARCHAR, score VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_25 WHERE score = "2:3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many locations had a density (pop/km²) of 91.8 in the 2011 census? ### Context: CREATE TABLE table_1425958_1 (density__pop_km²_ VARCHAR) ### Response: ### Response: SELECT COUNT(2011 AS _census) FROM table_1425958_1 WHERE density__pop_km²_ = "91.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 was the average score for the country with the evening gown score of 9.100? ### Context: CREATE TABLE table_17521433_1 (average VARCHAR, evening_gown VARCHAR) ### Response: ### Response: SELECT COUNT(average) FROM table_17521433_1 WHERE evening_gown = "9.100"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2008, what was the world ranking that ranked 5th in L.A.? ### Context: CREATE TABLE table_name_54 (world_ranking__1_ VARCHAR, ranking_la__2_ VARCHAR, year_of_publication VARCHAR) ### Response: ### Response: SELECT world_ranking__1_ FROM table_name_54 WHERE ranking_la__2_ = "5th" AND year_of_publication = "2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Round has a Time of 0:37? ### Context: CREATE TABLE table_name_26 (round VARCHAR, time VARCHAR) ### Response: ### Response: SELECT round FROM table_name_26 WHERE time = "0:37"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Touchdowns (5 points) have an Extra points 1 point of 0, and a Field goals (5 points) larger than 0? ### Context: CREATE TABLE table_name_50 (touchdowns__5_points_ VARCHAR, extra_points_1_point VARCHAR, field_goals__5_points_ VARCHAR) ### Response: ### Response: SELECT COUNT(touchdowns__5_points_) FROM table_name_50 WHERE extra_points_1_point = 0 AND field_goals__5_points_ > 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 nationality of the player who played 505 games? ### Context: CREATE TABLE table_name_37 (nationality VARCHAR, games VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_37 WHERE games = "505"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Genre has a Game of tony hawk's pro skater 2? ### Context: CREATE TABLE table_name_12 (genre VARCHAR, game VARCHAR) ### Response: ### Response: SELECT genre FROM table_name_12 WHERE game = "tony hawk's pro skater 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 total failures of heliocentric orbit orbital regimes and launches less than 1? ### Context: CREATE TABLE table_name_33 (failures INTEGER, orbital_regime VARCHAR, launches VARCHAR) ### Response: ### Response: SELECT SUM(failures) FROM table_name_33 WHERE orbital_regime = "heliocentric orbit" AND launches < 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 Points for has Points against smaller than 93, and Tries for larger than 25? ### Context: CREATE TABLE table_name_38 (points_for INTEGER, points_against VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT MIN(points_for) FROM table_name_38 WHERE points_against < 93 AND tries_for > 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: Who was the writer of the episode that originally aired on October 14, 1968? ### Context: CREATE TABLE table_25800134_13 (writer_s_ VARCHAR, airdate VARCHAR) ### Response: ### Response: SELECT writer_s_ FROM table_25800134_13 WHERE airdate = "October 14, 1968"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the nationality of the player on the Jazz from 1974-79? ### Context: CREATE TABLE table_name_73 (nationality VARCHAR, years_for_jazz VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_73 WHERE years_for_jazz = "1974-79"</s>