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 3rd run has rank of 1? ### Context: CREATE TABLE table_name_97 (rank VARCHAR) ### Response: ### Response: SELECT 3 AS rd_run FROM table_name_97 WHERE rank = 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 ship has a pennant number h05? ### Context: CREATE TABLE table_name_89 (ship VARCHAR, pennant_number VARCHAR) ### Response: ### Response: SELECT ship FROM table_name_89 WHERE pennant_number = "h05"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest pick listed in the table. ### Context: CREATE TABLE table_10812938_4 (pick__number INTEGER) ### Response: ### Response: SELECT MIN(pick__number) FROM table_10812938_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 air force cross when you recieve the Aerial achievement medal? ### Context: CREATE TABLE table_2104176_1 (air_force_cross VARCHAR, homeland_security_distinguished_service_medal VARCHAR) ### Response: ### Response: SELECT air_force_cross FROM table_2104176_1 WHERE homeland_security_distinguished_service_medal = "Aerial Achievement Medal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which country has the score of 71-71-68=210? ### Context: CREATE TABLE table_name_99 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_99 WHERE score = 71 - 71 - 68 = 210</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total medals the team with more than 0 bronze, 6 silver, and a rank higher than 3 has? ### Context: CREATE TABLE table_name_97 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_97 WHERE bronze > 0 AND silver = 6 AND rank < 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: Where was the Deep - 30 Impact event held? ### Context: CREATE TABLE table_name_55 (location VARCHAR, event VARCHAR) ### Response: ### Response: SELECT location FROM table_name_55 WHERE event = "deep - 30 impact"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1998-2000 Years for Grizzlies? ### Context: CREATE TABLE table_name_54 (nationality VARCHAR, years_for_grizzlies VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_54 WHERE years_for_grizzlies = "1998-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: What was the Obama% when McCain% was 61.2%? ### Context: CREATE TABLE table_20750731_1 (obama_percentage VARCHAR, mccain_percentage VARCHAR) ### Response: ### Response: SELECT obama_percentage FROM table_20750731_1 WHERE mccain_percentage = "61.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 state has a Name of diamond lake, and a GNIS Feature ID of 1579127? ### Context: CREATE TABLE table_name_91 (state VARCHAR, name VARCHAR, gnis_feature_id VARCHAR) ### Response: ### Response: SELECT state FROM table_name_91 WHERE name = "diamond lake" AND gnis_feature_id = 1579127</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 medals won by nations that had 7 bronze medals and more than 18 gold medals? ### Context: CREATE TABLE table_name_26 (total INTEGER, bronze VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_26 WHERE bronze = 7 AND gold > 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which wins have less than 1 bye? ### Context: CREATE TABLE table_name_29 (wins INTEGER, byes INTEGER) ### Response: ### Response: SELECT MAX(wins) FROM table_name_29 WHERE byes < 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 city of license having a D ERP of 100kw? ### Context: CREATE TABLE table_name_21 (city_of_license VARCHAR, d_erp VARCHAR) ### Response: ### Response: SELECT city_of_license FROM table_name_21 WHERE d_erp = "100kw"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 snowfall for ski resort Snowmass? ### Context: CREATE TABLE table_25762852_1 (snowfall__in_year_ INTEGER, name VARCHAR) ### Response: ### Response: SELECT MAX(snowfall__in_year_) FROM table_25762852_1 WHERE name = "Snowmass"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score for howard (8) high rebounds ### Context: CREATE TABLE table_name_44 (score VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT score FROM table_name_44 WHERE high_rebounds = "howard (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: Hom many musicians performed in the song "Flash"? ### Context: CREATE TABLE performance (bandmate VARCHAR, songid VARCHAR); CREATE TABLE songs (songid VARCHAR, Title VARCHAR); CREATE TABLE band (id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T3.Title = "Flash"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the lowest percentages of wins in 1989 with a GB [c] of 17? ### Context: CREATE TABLE table_name_59 (win_percentage INTEGER, reds_season VARCHAR, gb_ VARCHAR, c_ VARCHAR) ### Response: ### Response: SELECT MIN(win_percentage) FROM table_name_59 WHERE gb_[c_] = "17" AND reds_season = 1989</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 group a winner was for nocerina? ### Context: CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_d_winner VARCHAR) ### Response: ### Response: SELECT group_a_winner FROM table_1137142_1 WHERE group_d_winner = "Nocerina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shut down state of the unit that's been in commercial operation since 01.02.1984? ### Context: CREATE TABLE table_12983929_1 (shut_down VARCHAR, commercial_operation VARCHAR) ### Response: ### Response: SELECT shut_down FROM table_12983929_1 WHERE commercial_operation = "01.02.1984"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player's results were T6 in the PGA Ch., T4 in the Masters and T8 at the U.S. Open? ### Context: CREATE TABLE table_1506950_9 (player VARCHAR, us_open VARCHAR, pga_ch VARCHAR, masters VARCHAR) ### Response: ### Response: SELECT player FROM table_1506950_9 WHERE pga_ch = "T6" AND masters = "T4" AND us_open = "T8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 utility PV with hydro great than 289.25 and renweable total larger than 520.07? ### Context: CREATE TABLE table_name_87 (utility_pv INTEGER, hydro VARCHAR, renewable_total VARCHAR) ### Response: ### Response: SELECT MIN(utility_pv) FROM table_name_87 WHERE hydro > 289.25 AND renewable_total > 520.07</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ground in region NZL? ### Context: CREATE TABLE table_name_40 (home_ground VARCHAR, region VARCHAR) ### Response: ### Response: SELECT home_ground FROM table_name_40 WHERE region = "nzl"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least number of poins for San Lorenzo? ### Context: CREATE TABLE table_18594107_1 (points INTEGER, team VARCHAR) ### Response: ### Response: SELECT MIN(points) FROM table_18594107_1 WHERE team = "San Lorenzo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 schoo/club team of the player in round 3? ### Context: CREATE TABLE table_name_92 (school_club_team VARCHAR, round VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_name_92 WHERE round = 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 city is the host of the University of Texas? ### Context: CREATE TABLE table_name_1 (city VARCHAR, host VARCHAR) ### Response: ### Response: SELECT city FROM table_name_1 WHERE host = "university of 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 record of the game before week 5 and a bye game site? ### Context: CREATE TABLE table_name_54 (record VARCHAR, week VARCHAR, game_site VARCHAR) ### Response: ### Response: SELECT record FROM table_name_54 WHERE week < 5 AND game_site = "bye"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 market rank and city had the station KABC-TV? ### Context: CREATE TABLE table_22329326_1 (market_rank_ VARCHAR, _city_of_license__market VARCHAR, station VARCHAR) ### Response: ### Response: SELECT market_rank_ & _city_of_license__market FROM table_22329326_1 WHERE station = "KABC-TV"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning driver with circuit of monza ### Context: CREATE TABLE table_name_59 (winning_driver VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_name_59 WHERE circuit = "monza"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the game end against the New Orleans Saints? ### Context: CREATE TABLE table_16729071_1 (result VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_16729071_1 WHERE opponent = "New Orleans Saints"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Please give me the title of Season 2, episode 1. ### Context: CREATE TABLE table_12451376_2 (title VARCHAR, season_2_ep__number VARCHAR) ### Response: ### Response: SELECT title FROM table_12451376_2 WHERE season_2_ep__number = 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 points did North Melbourne score? ### Context: CREATE TABLE table_name_12 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_12 WHERE home_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 was the to par for the game with a score of 74-69-66=209? ### Context: CREATE TABLE table_name_24 (to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_24 WHERE score = 74 - 69 - 66 = 209</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 matches did wayne mardle play ### Context: CREATE TABLE table_20301877_2 (played VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(played) FROM table_20301877_2 WHERE player = "Wayne Mardle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of class aaaaa for 1988-89 ### Context: CREATE TABLE table_14601528_2 (class_aAAAA VARCHAR, school_year VARCHAR) ### Response: ### Response: SELECT COUNT(class_aAAAA) FROM table_14601528_2 WHERE school_year = "1988-89"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Parker Moloney's party affiliation when he was the Minister for Markets? ### Context: CREATE TABLE table_name_3 (party VARCHAR, minister VARCHAR, title VARCHAR) ### Response: ### Response: SELECT party FROM table_name_3 WHERE minister = "parker moloney" AND title = "minister for markets"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd leg of the Comunicaciones team? ### Context: CREATE TABLE table_name_78 (team_1 VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_name_78 WHERE team_1 = "comunicaciones"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent on the game on April 14, 2007? ### Context: CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_60 WHERE date = "april 14, 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every value for rushing yards per game if sacks if 25? ### Context: CREATE TABLE table_27487336_1 (rushing_yards_per_game VARCHAR, sacks VARCHAR) ### Response: ### Response: SELECT rushing_yards_per_game FROM table_27487336_1 WHERE sacks = "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 races had 4 podiums, 5 poles and more than 3 Flaps? ### Context: CREATE TABLE table_name_64 (race INTEGER, flap VARCHAR, podium VARCHAR, pole VARCHAR) ### Response: ### Response: SELECT SUM(race) FROM table_name_64 WHERE podium = 4 AND pole = 5 AND flap > 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the order number that has top 20 (10 women) as the week number? ### Context: CREATE TABLE table_name_16 (order__number VARCHAR, week__number VARCHAR) ### Response: ### Response: SELECT order__number FROM table_name_16 WHERE week__number = "top 20 (10 women)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver in round 4? ### Context: CREATE TABLE table_27913160_3 (driver VARCHAR, round VARCHAR) ### Response: ### Response: SELECT driver FROM table_27913160_3 WHERE round = 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What athlete has less than 7 gold and 14 total medals? ### Context: CREATE TABLE table_name_87 (athlete VARCHAR, gold VARCHAR, total VARCHAR) ### Response: ### Response: SELECT athlete FROM table_name_87 WHERE gold < 7 AND total = 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 date was Leeds United the away team? ### Context: CREATE TABLE table_name_36 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_36 WHERE away_team = "leeds 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: How many FA cups for the player with under 5 champs, 0 league cups, and over 3 total? ### Context: CREATE TABLE table_name_13 (fa_cup INTEGER, total VARCHAR, championship VARCHAR, league_cup VARCHAR) ### Response: ### Response: SELECT SUM(fa_cup) FROM table_name_13 WHERE championship < 5 AND league_cup = 0 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: What was coach Dick Bennett's overall win percentage? ### Context: CREATE TABLE table_name_5 (overall_win_percentage VARCHAR, coach VARCHAR) ### Response: ### Response: SELECT overall_win_percentage FROM table_name_5 WHERE coach = "dick bennett"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time of the game that had an NFL recap and a result of W 22–16? ### Context: CREATE TABLE table_name_2 (time VARCHAR, nfl_recap VARCHAR, result VARCHAR) ### Response: ### Response: SELECT time FROM table_name_2 WHERE nfl_recap = "recap" AND result = "w 22–16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Draw is the lowest one that has Champs smaller than 0? ### Context: CREATE TABLE table_name_40 (draw INTEGER, champs INTEGER) ### Response: ### Response: SELECT MIN(draw) FROM table_name_40 WHERE champs < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was North Melbourne's score as an away team? ### Context: CREATE TABLE table_name_66 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_66 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 date did Paul Goldstein play the final? ### Context: CREATE TABLE table_name_69 (date VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT date FROM table_name_69 WHERE opponent_in_the_final = "paul goldstein"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 largest crowd at princes park? ### Context: CREATE TABLE table_name_88 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_88 WHERE venue = "princes park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I want the most top 25 when events are more than 20 and top 10 is more than 21 ### Context: CREATE TABLE table_name_84 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR) ### Response: ### Response: SELECT MAX(top_25) FROM table_name_84 WHERE events > 20 AND top_10 > 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: Who was the commentator when the spokesperson was michael aspel? ### Context: CREATE TABLE table_name_35 (commentator VARCHAR, spokespersons VARCHAR) ### Response: ### Response: SELECT commentator FROM table_name_35 WHERE spokespersons = "michael aspel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crew chief for rhonda thorson ### Context: CREATE TABLE table_24535095_2 (crew_chief VARCHAR, listed_owner_s_ VARCHAR) ### Response: ### Response: SELECT crew_chief FROM table_24535095_2 WHERE listed_owner_s_ = "Rhonda Thorson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the Event ept copenhagen? ### Context: CREATE TABLE table_name_71 (date VARCHAR, event VARCHAR) ### Response: ### Response: SELECT date FROM table_name_71 WHERE event = "ept copenhagen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Attendance when the Result is l0-13? ### Context: CREATE TABLE table_name_59 (attendance VARCHAR, result VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_59 WHERE result = "l0-13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Supercopa Sudamericana 1992 has a Team of santos? ### Context: CREATE TABLE table_name_83 (supercopa_sudamericana_1992 VARCHAR, team VARCHAR) ### Response: ### Response: SELECT supercopa_sudamericana_1992 FROM table_name_83 WHERE team = "santos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the all the assets make, model, details by the disposed date ascendingly. ### Context: CREATE TABLE Assets (asset_make VARCHAR, asset_model VARCHAR, asset_details VARCHAR, asset_disposed_date VARCHAR) ### Response: ### Response: SELECT asset_make, asset_model, asset_details FROM Assets ORDER BY asset_disposed_date</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the ids of the problems reported after the date of any problems reported by Rylan Homenick? ### Context: CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR) ### Response: ### Response: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > (SELECT MAX(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Rylan" AND T4.staff_last_name = "Homenick")</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 years have a class a being lindsay and a class aaa being cuero? ### Context: CREATE TABLE table_14603212_1 (school_year VARCHAR, class_a VARCHAR, class_aAA VARCHAR, Cuero VARCHAR) ### Response: ### Response: SELECT school_year FROM table_14603212_1 WHERE class_a = "Lindsay" AND class_aAA = Cuero</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Entrepreneurs requested £60,000? ### Context: CREATE TABLE table_name_27 (entrepreneur_s_ VARCHAR, money_requested__£_ VARCHAR) ### Response: ### Response: SELECT entrepreneur_s_ FROM table_name_27 WHERE money_requested__£_ = "60,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 largest ethnic group in the settlement with a 2011 population of 5082? ### Context: CREATE TABLE table_2562572_44 (largest_ethnic_group__2002_ VARCHAR, population__2011_ VARCHAR) ### Response: ### Response: SELECT COUNT(largest_ethnic_group__2002_) FROM table_2562572_44 WHERE population__2011_ = 5082</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Place of the Player with a Score of 73-73-65-73=284? ### Context: CREATE TABLE table_name_32 (place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT place FROM table_name_32 WHERE score = 73 - 73 - 65 - 73 = 284</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 City has a State of massachusetts, and a School of northeastern university? ### Context: CREATE TABLE table_name_59 (city VARCHAR, state VARCHAR, school VARCHAR) ### Response: ### Response: SELECT city FROM table_name_59 WHERE state = "massachusetts" AND school = "northeastern university"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title of the episode that was directed by Roy Dupuis? ### Context: CREATE TABLE table_name_38 (title VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT title FROM table_name_38 WHERE directed_by = "roy dupuis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Order with an Elector of Marino Bulcani? ### Context: CREATE TABLE table_name_61 (order VARCHAR, elector VARCHAR) ### Response: ### Response: SELECT order FROM table_name_61 WHERE elector = "marino bulcani"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 copoes per particle are created in the segment that forms inner shell of the core? ### Context: CREATE TABLE table_140968_1 (copies_per_particle VARCHAR, location VARCHAR) ### Response: ### Response: SELECT copies_per_particle FROM table_140968_1 WHERE location = "Forms inner shell of the core"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 last performance for Liam Mower? ### Context: CREATE TABLE table_name_11 (last_performance VARCHAR, name VARCHAR) ### Response: ### Response: SELECT last_performance FROM table_name_11 WHERE name = "liam mower"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall pick for the player who was a guard and had a round less than 9? ### Context: CREATE TABLE table_name_4 (overall INTEGER, position VARCHAR, round VARCHAR) ### Response: ### Response: SELECT AVG(overall) FROM table_name_4 WHERE position = "guard" AND round < 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points in total were scored by the player whose Oberstdork score and rank were 252.6 (11)? ### Context: CREATE TABLE table_14948647_1 (total_points VARCHAR, oberstdorf__rk_ VARCHAR) ### Response: ### Response: SELECT total_points FROM table_14948647_1 WHERE oberstdorf__rk_ = "252.6 (11)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the surface for finalist Justine Henin? ### Context: CREATE TABLE table_name_56 (surface VARCHAR, finalist VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_56 WHERE finalist = "justine henin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 role of Rachel active in TV? ### Context: CREATE TABLE table_name_83 (year_active VARCHAR, role VARCHAR) ### Response: ### Response: SELECT year_active FROM table_name_83 WHERE role = "rachel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every year with average start of 27.2? ### Context: CREATE TABLE table_2597876_2 (year VARCHAR, avg_start VARCHAR) ### Response: ### Response: SELECT year FROM table_2597876_2 WHERE avg_start = "27.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 rank of the team with 0 gold and less than 0 silvers? ### Context: CREATE TABLE table_name_72 (rank INTEGER, gold VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT SUM(rank) FROM table_name_72 WHERE gold = 0 AND silver < 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: Who has rank 5? ### Context: CREATE TABLE table_name_23 (name VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT name FROM table_name_23 WHERE rank = 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 smallest weight of the car produced with 8 cylinders on 1974 ? ### Context: CREATE TABLE cars_data (weight INTEGER, cylinders VARCHAR, year VARCHAR) ### Response: ### Response: SELECT MIN(weight) FROM cars_data WHERE cylinders = 8 AND year = 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: What year(s) did Hakeem Olajuwon play Center for Toronto? ### Context: CREATE TABLE table_name_33 (years_in_toronto VARCHAR, player VARCHAR) ### Response: ### Response: SELECT years_in_toronto FROM table_name_33 WHERE player = "hakeem olajuwon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Martina Wood's Position? ### Context: CREATE TABLE table_name_46 (position VARCHAR, name VARCHAR) ### Response: ### Response: SELECT position FROM table_name_46 WHERE name = "martina wood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position where the team scored 9 points? ### Context: CREATE TABLE table_18597302_1 (position VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_18597302_1 WHERE points = 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 was the last year someone was elected to the 14th district? ### Context: CREATE TABLE table_13618584_2 (elected INTEGER, district VARCHAR) ### Response: ### Response: SELECT MAX(elected) FROM table_13618584_2 WHERE district = "14th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all the tournaments that took place in Rhode Island. ### Context: CREATE TABLE table_11622840_1 (tournament VARCHAR, location VARCHAR) ### Response: ### Response: SELECT tournament FROM table_11622840_1 WHERE location = "Rhode Island"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Please show the most common age of editors. ### Context: CREATE TABLE editor (Age VARCHAR) ### Response: ### Response: SELECT Age FROM editor GROUP BY Age 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: In Pakistan, what was the total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 1029(96%)? ### Context: CREATE TABLE table_15909409_2 (total_freshwater_withdrawal__km_3__yr_ VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR) ### Response: ### Response: SELECT total_freshwater_withdrawal__km_3__yr_ FROM table_15909409_2 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "1029(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: For the attendance of 2 january 1999 with a home team of plymouth argyle what is the tie no. ? ### Context: CREATE TABLE table_name_5 (tie_no VARCHAR, attendance VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_5 WHERE attendance = "2 january 1999" AND home_team = "plymouth argyle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cyber girl in week 4 when Lexi Lombardelli was the cyber girl in week 2? ### Context: CREATE TABLE table_name_75 (week_4 VARCHAR, week_2 VARCHAR) ### Response: ### Response: SELECT week_4 FROM table_name_75 WHERE week_2 = "lexi lombardelli"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Turkey's average Gold entry that also has a Bronze entry that is smaller than 2 and the Total is greater than 1? ### Context: CREATE TABLE table_name_90 (gold INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT AVG(gold) FROM table_name_90 WHERE bronze < 2 AND nation = "turkey" AND total > 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 constellation when the Right ascension ( J2000 ) is 10h18m58.4s? ### Context: CREATE TABLE table_name_10 (constellation VARCHAR, right_ascension___j2000__ VARCHAR) ### Response: ### Response: SELECT constellation FROM table_name_10 WHERE right_ascension___j2000__ = "10h18m58.4s"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's round was 3 when the event was fight festival 27? ### Context: CREATE TABLE table_name_19 (record VARCHAR, round VARCHAR, event VARCHAR) ### Response: ### Response: SELECT record FROM table_name_19 WHERE round = 3 AND event = "fight festival 27"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show all the locations with at least two cinemas with capacity above 300. ### Context: CREATE TABLE cinema (LOCATION VARCHAR, capacity INTEGER) ### Response: ### Response: SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING COUNT(*) >= 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 least top-10 for cuts made less than 11 and wins more than 0 ### Context: CREATE TABLE table_name_10 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT MIN(top_10) FROM table_name_10 WHERE cuts_made < 11 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 their position when the b score is more than 8.975 for Ekaterina Kramarenko ( rus )? ### Context: CREATE TABLE table_name_57 (position VARCHAR, b_score VARCHAR, gymnast VARCHAR) ### Response: ### Response: SELECT position FROM table_name_57 WHERE b_score > 8.975 AND gymnast = "ekaterina kramarenko ( rus )"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rounds were played on May 8? ### Context: CREATE TABLE table_25773116_2 (round VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_25773116_2 WHERE date = "May 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 air date has a red winner and an emergency braking challenge? ### Context: CREATE TABLE table_name_39 (air_date VARCHAR, winner VARCHAR, challenge VARCHAR) ### Response: ### Response: SELECT air_date FROM table_name_39 WHERE winner = "red" AND challenge = "emergency braking"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Result has a Score of 2 – 0, and a Competition of 2006 fifa world cup qualification? ### Context: CREATE TABLE table_name_74 (result VARCHAR, score VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT result FROM table_name_74 WHERE score = "2 – 0" AND competition = "2006 fifa world cup qualification"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Taper/ft that has a Large end smaller than 0.5, and a Taper of #2? ### Context: CREATE TABLE table_name_27 (ft VARCHAR, taper INTEGER, large_end VARCHAR) ### Response: ### Response: SELECT MAX(taper) / ft FROM table_name_27 WHERE large_end < 0.5 AND taper = "#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 type of environment is the venue that was built in 2003? ### Context: CREATE TABLE table_name_11 (environment VARCHAR, year_built VARCHAR) ### Response: ### Response: SELECT environment FROM table_name_11 WHERE year_built = "2003"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total Goals with Rank larger than 10? ### Context: CREATE TABLE table_name_71 (goals INTEGER, rank INTEGER) ### Response: ### Response: SELECT SUM(goals) FROM table_name_71 WHERE rank > 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: Which From club had a Transfer fee of £3.87m? ### Context: CREATE TABLE table_name_40 (from_club VARCHAR, transfer_fee VARCHAR) ### Response: ### Response: SELECT from_club FROM table_name_40 WHERE transfer_fee = "£3.87m"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendance of the w 28-13 game? ### Context: CREATE TABLE table_name_61 (attendance VARCHAR, result VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_61 WHERE result = "w 28-13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How manywins for dunfermline athletic that has a total final appearances less than 2? ### Context: CREATE TABLE table_name_54 (wins VARCHAR, total_final_appearances VARCHAR, club VARCHAR) ### Response: ### Response: SELECT wins FROM table_name_54 WHERE total_final_appearances < 2 AND club = "dunfermline athletic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school when the team is new york yankees? ### Context: CREATE TABLE table_name_1 (school VARCHAR, team VARCHAR) ### Response: ### Response: SELECT school FROM table_name_1 WHERE team = "new york yankees"</s>