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: What is Position in Table, when Team is "Morelia"? ### Context: CREATE TABLE table_name_64 (position_in_table VARCHAR, team VARCHAR) ### Response: ### Response: SELECT position_in_table FROM table_name_64 WHERE team = "morelia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Net profit/loss (SEK) has a Basic eps (SEK) of -6.58, and Employees (Average/Year) larger than 31,035? ### Context: CREATE TABLE table_name_87 (net_profit_loss__sek_ INTEGER, basic_eps__sek_ VARCHAR, employees__average_year_ VARCHAR) ### Response: ### Response: SELECT SUM(net_profit_loss__sek_) FROM table_name_87 WHERE basic_eps__sek_ = -6.58 AND employees__average_year_ > 31 OFFSET 035</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the November playmate with the July playmate Hope Marie Carlton? ### Context: CREATE TABLE table_name_66 (november VARCHAR, july VARCHAR) ### Response: ### Response: SELECT november FROM table_name_66 WHERE july = "hope marie carlton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date of the game played at Gillette Stadium with a score of 40-21? ### Context: CREATE TABLE table_name_97 (date VARCHAR, location VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_97 WHERE location = "gillette stadium" AND result = "40-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: How many regions had rainfall infiltration (km 3/year) of 9.3? ### Context: CREATE TABLE table_25983027_1 (rainfall_by_depth__mm_year_ VARCHAR, infiltration__km_3__year_ VARCHAR) ### Response: ### Response: SELECT COUNT(rainfall_by_depth__mm_year_) FROM table_25983027_1 WHERE infiltration__km_3__year_ = "9.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 Airspeed Fleet Shadower aircraft are retired? ### Context: CREATE TABLE table_13605170_2 (retired VARCHAR, aircraft_type VARCHAR) ### Response: ### Response: SELECT retired FROM table_13605170_2 WHERE aircraft_type = "Airspeed Fleet Shadower"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Doug Davis' maximum pitching stats? ### Context: CREATE TABLE table_19839391_3 (stats INTEGER, pitcher VARCHAR) ### Response: ### Response: SELECT MAX(stats) FROM table_19839391_3 WHERE pitcher = "Doug Davis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 where the total points was 50? ### Context: CREATE TABLE table_name_34 (score VARCHAR, total_points VARCHAR) ### Response: ### Response: SELECT score FROM table_name_34 WHERE total_points = 50</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 title with episode 8? ### Context: CREATE TABLE table_name_82 (title VARCHAR, episodes VARCHAR) ### Response: ### Response: SELECT title FROM table_name_82 WHERE episodes = "8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What nation is the cyclist from team discovery channel? ### Context: CREATE TABLE table_name_22 (nation VARCHAR, team VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_22 WHERE team = "discovery channel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 sum of the Pick that has the Player of Robert Ingalls? ### Context: CREATE TABLE table_name_47 (pick VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(pick) FROM table_name_47 WHERE player = "robert ingalls"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 top-25s for tournaments that had 0 wins, 1 cut made, and more than 5 events? ### Context: CREATE TABLE table_name_23 (top_25 VARCHAR, events VARCHAR, wins VARCHAR, cuts_made VARCHAR) ### Response: ### Response: SELECT COUNT(top_25) FROM table_name_23 WHERE wins = 0 AND cuts_made = 1 AND events > 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many placings did Jacqueline du Bief earn where her total score is greater than 131.26? ### Context: CREATE TABLE table_name_72 (placings VARCHAR, total VARCHAR, name VARCHAR) ### Response: ### Response: SELECT placings FROM table_name_72 WHERE total > 131.26 AND name = "jacqueline du bief"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season has rank 2? ### Context: CREATE TABLE table_name_35 (season VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT season FROM table_name_35 WHERE rank = "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 highest heat for more than 3 lanes and a time of 2:09.12? ### Context: CREATE TABLE table_name_23 (heat INTEGER, lane VARCHAR, time VARCHAR) ### Response: ### Response: SELECT MAX(heat) FROM table_name_23 WHERE lane > 3 AND time = "2:09.12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the earliest founded when the home city is mayagüez? ### Context: CREATE TABLE table_name_51 (founded INTEGER, home_city VARCHAR) ### Response: ### Response: SELECT MIN(founded) FROM table_name_51 WHERE home_city = "mayagüez"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the ids and names of stations from which at least 200 trips started. ### Context: CREATE TABLE trip (start_station_id VARCHAR, start_station_name VARCHAR) ### Response: ### Response: SELECT start_station_id, start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*) >= 200</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number of goals with 21 games for a debut round less than 1? ### Context: CREATE TABLE table_name_47 (goals__2008_ INTEGER, games__2008_ VARCHAR, debut_round VARCHAR) ### Response: ### Response: SELECT AVG(goals__2008_) FROM table_name_47 WHERE games__2008_ = 21 AND debut_round < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the away team that played at Princes Park? ### Context: CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_51 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: who is the the incumbent with dbeingtrict being arkansas 1 ### Context: CREATE TABLE table_1342331_5 (incumbent VARCHAR, district VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_1342331_5 WHERE district = "Arkansas 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 years have goals less than 229, and 440 as matches? ### Context: CREATE TABLE table_name_70 (years VARCHAR, goals VARCHAR, matches VARCHAR) ### Response: ### Response: SELECT years FROM table_name_70 WHERE goals < 229 AND matches = 440</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the smallest Total produced with a model of FM H-15-44? ### Context: CREATE TABLE table_name_68 (total_produced INTEGER, model VARCHAR) ### Response: ### Response: SELECT MIN(total_produced) FROM table_name_68 WHERE model = "fm h-15-44"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Points for has a Try bonus of 140? ### Context: CREATE TABLE table_name_26 (points_for VARCHAR, try_bonus VARCHAR) ### Response: ### Response: SELECT points_for FROM table_name_26 WHERE try_bonus = "140"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the match where geelong was the away team, who was the home team? ### Context: CREATE TABLE table_name_46 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_46 WHERE away_team = "geelong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the pyramid location? ### Context: CREATE TABLE table_name_69 (date VARCHAR, location VARCHAR) ### Response: ### Response: SELECT date FROM table_name_69 WHERE location = "the pyramid"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 English Pluperfect when the Bulgarian is бяха чули? ### Context: CREATE TABLE table_name_48 (english VARCHAR, bulgarian VARCHAR) ### Response: ### Response: SELECT english FROM table_name_48 WHERE bulgarian = "бяха чули"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 husband date that was married in 1858? ### Context: CREATE TABLE table_name_54 (husband_dates VARCHAR, date_married VARCHAR) ### Response: ### Response: SELECT husband_dates FROM table_name_54 WHERE date_married = "1858"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Try bonus has a Points against of 488? ### Context: CREATE TABLE table_name_61 (try_bonus VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT try_bonus FROM table_name_61 WHERE points_against = "488"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: brooklyn dodgers – 3, new york yankees – 5, and a Game larger than 1 had what attendance figure? ### Context: CREATE TABLE table_name_47 (attendance INTEGER, score VARCHAR, game VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_47 WHERE score = "brooklyn dodgers – 3, new york yankees – 5" AND game > 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 highest bronze when the silver was 3 and the total was larger than 5? ### Context: CREATE TABLE table_name_20 (bronze INTEGER, silver VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MAX(bronze) FROM table_name_20 WHERE silver = 3 AND total > 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 was the departure time of the train that arrived at 21.26? ### Context: CREATE TABLE table_18365784_3 (departure VARCHAR, arrival VARCHAR) ### Response: ### Response: SELECT departure FROM table_18365784_3 WHERE arrival = "21.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: Which nominee won the Drama Desk Award for outstanding choreography? ### Context: CREATE TABLE table_name_81 (nominee VARCHAR, category VARCHAR, award VARCHAR, result VARCHAR) ### Response: ### Response: SELECT nominee FROM table_name_81 WHERE award = "drama desk award" AND result = "won" AND category = "outstanding choreography"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendances have w 48-10 as the result? ### Context: CREATE TABLE table_name_6 (attendance INTEGER, result VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_6 WHERE result = "w 48-10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the team's league in 2010? ### Context: CREATE TABLE table_16636344_1 (league VARCHAR, year VARCHAR) ### Response: ### Response: SELECT league FROM table_16636344_1 WHERE year = "2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 a prominence less than 1292 and an Isolation (km) of 14? ### Context: CREATE TABLE table_name_9 (county VARCHAR, prominence__m_ VARCHAR, isolation__km_ VARCHAR) ### Response: ### Response: SELECT county FROM table_name_9 WHERE prominence__m_ < 1292 AND isolation__km_ = 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average rank for nations with fewer than 0 gold medals? ### Context: CREATE TABLE table_name_86 (rank INTEGER, gold INTEGER) ### Response: ### Response: SELECT AVG(rank) FROM table_name_86 WHERE gold < 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: Which team has a Reg GP of 0, a pick number under 136 with a player named Regan Darby? ### Context: CREATE TABLE table_name_85 (team__league_ VARCHAR, player VARCHAR, reg_gp VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT team__league_ FROM table_name_85 WHERE reg_gp = 0 AND pick__number < 136 AND player = "regan darby"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Return all the committees that have delegates from Democratic party. ### Context: CREATE TABLE election (Committee VARCHAR, Party VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Party VARCHAR) ### Response: ### Response: SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the number of viewers for the episode having a fourth couple of Tony and Jamie? ### Context: CREATE TABLE table_25664518_3 (viewers__millions_ VARCHAR, fourth_couple VARCHAR) ### Response: ### Response: SELECT viewers__millions_ FROM table_25664518_3 WHERE fourth_couple = "Tony and Jamie"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Record has a Year larger than 1974, and a Finish of 3rd? ### Context: CREATE TABLE table_name_33 (record VARCHAR, year VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT record FROM table_name_33 WHERE year > 1974 AND finish = "3rd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Week number on November 30, 1958 with more than 33,240 in Attendance? ### Context: CREATE TABLE table_name_64 (week VARCHAR, date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT COUNT(week) FROM table_name_64 WHERE date = "november 30, 1958" AND attendance > 33 OFFSET 240</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Bible Gothic for the word hand? ### Context: CREATE TABLE table_name_7 (bible_gothic VARCHAR, english VARCHAR) ### Response: ### Response: SELECT bible_gothic FROM table_name_7 WHERE english = "hand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament took place before 1972 with an extra of 200 m? ### Context: CREATE TABLE table_name_14 (tournament VARCHAR, extra VARCHAR, year VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_14 WHERE extra = "200 m" AND year < 1972</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lane has a Country of united states, and a Time smaller than 22.01, and a Reaction Time smaller than 0.193? ### Context: CREATE TABLE table_name_95 (lane INTEGER, reaction_time VARCHAR, country VARCHAR, time VARCHAR) ### Response: ### Response: SELECT MIN(lane) FROM table_name_95 WHERE country = "united states" AND time < 22.01 AND reaction_time < 0.193</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 coding for hq021442 genbankid? ### Context: CREATE TABLE table_14332822_1 (coding VARCHAR, genbank_id VARCHAR) ### Response: ### Response: SELECT coding FROM table_14332822_1 WHERE genbank_id = "HQ021442"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 place for ed oliver ### Context: CREATE TABLE table_name_47 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_47 WHERE player = "ed oliver"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Round with a Opponent with blackburn? ### Context: CREATE TABLE table_name_15 (round VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT round FROM table_name_15 WHERE opponent = "blackburn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'? ### Context: CREATE TABLE enzyme (product VARCHAR, chromosome VARCHAR, porphyria VARCHAR, LOCATION VARCHAR) ### Response: ### Response: SELECT product, chromosome, porphyria FROM enzyme WHERE LOCATION = 'Cytosol'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Gold has a Nation of south korea (kor), and Bronze smaller than 65? ### Context: CREATE TABLE table_name_83 (gold INTEGER, nation VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT AVG(gold) FROM table_name_83 WHERE nation = "south korea (kor)" AND bronze < 65</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average zone for waddon marsh tram stop ### Context: CREATE TABLE table_name_64 (zone INTEGER, stations VARCHAR) ### Response: ### Response: SELECT AVG(zone) FROM table_name_64 WHERE stations = "waddon marsh tram stop"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Winner in the Year of 2000? ### Context: CREATE TABLE table_name_9 (winner VARCHAR, year VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_9 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: Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in. ### Context: CREATE TABLE Faculty_participates_in (facID VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR, facID VARCHAR) ### Response: ### Response: SELECT T1.fname, T1.lname, COUNT(*), T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 first year in the competition? ### Context: CREATE TABLE table_19047_2 (year INTEGER) ### Response: ### Response: SELECT MIN(year) FROM table_19047_2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many clubs have won 6 games? ### Context: CREATE TABLE table_12886178_5 (club VARCHAR, won VARCHAR) ### Response: ### Response: SELECT COUNT(club) FROM table_12886178_5 WHERE won = "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's the maximum wickets taken by players named Bill Lockwood? ### Context: CREATE TABLE table_2482547_5 (wickets_taken INTEGER, name VARCHAR) ### Response: ### Response: SELECT MAX(wickets_taken) FROM table_2482547_5 WHERE name = "Bill Lockwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for United States when the player was Mike Reid and the To par was e? ### Context: CREATE TABLE table_name_30 (score VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT score FROM table_name_30 WHERE country = "united states" AND to_par = "e" AND player = "mike reid"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average rank for Denmark? ### Context: CREATE TABLE table_name_33 (rank INTEGER, country VARCHAR) ### Response: ### Response: SELECT AVG(rank) FROM table_name_33 WHERE country = "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: What was the Opponent on the game played on a Hard Surface with a Score of 3–6, 6–3, [7–10]? ### Context: CREATE TABLE table_name_61 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_61 WHERE surface = "hard" AND score = "3–6, 6–3, [7–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 Opponent has a Record of 22-10? ### Context: CREATE TABLE table_name_36 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_36 WHERE record = "22-10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What happened on 2009-09-05? ### Context: CREATE TABLE table_name_93 (circumstances VARCHAR, date VARCHAR) ### Response: ### Response: SELECT circumstances FROM table_name_93 WHERE date = "2009-09-05"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Date, when Comment is Tailcone On, Lakebed Landing, and when Duration is 5min 34 s? ### Context: CREATE TABLE table_name_52 (date VARCHAR, comment VARCHAR, duration VARCHAR) ### Response: ### Response: SELECT date FROM table_name_52 WHERE comment = "tailcone on, lakebed landing" AND duration = "5min 34 s"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score of the friendly competition? ### Context: CREATE TABLE table_name_72 (score VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT score FROM table_name_72 WHERE competition = "friendly"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 male rep. when Caroline Rhoads was the artistic director? ### Context: CREATE TABLE table_22410780_1 (male_rep VARCHAR, artistic_director VARCHAR) ### Response: ### Response: SELECT male_rep FROM table_22410780_1 WHERE artistic_director = "Caroline Rhoads"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 sample size when the date(s) administered is march 24, 2010? ### Context: CREATE TABLE table_name_4 (sample_size VARCHAR, date_s__administered VARCHAR) ### Response: ### Response: SELECT sample_size FROM table_name_4 WHERE date_s__administered = "march 24, 2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 distance in 2006? ### Context: CREATE TABLE table_name_18 (distance VARCHAR, year VARCHAR) ### Response: ### Response: SELECT distance FROM table_name_18 WHERE year = 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: How many locations was game 3 played at? ### Context: CREATE TABLE table_23248967_5 (location_attendance VARCHAR, game VARCHAR) ### Response: ### Response: SELECT COUNT(location_attendance) FROM table_23248967_5 WHERE game = 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: Name the bayonet lug with ar-15 lightweight ### Context: CREATE TABLE table_name_92 (bayonet_lug VARCHAR, name VARCHAR) ### Response: ### Response: SELECT bayonet_lug FROM table_name_92 WHERE name = "ar-15 lightweight"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 opponent for the tournament of rio de janeiro? ### Context: CREATE TABLE table_name_22 (opponent VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_22 WHERE tournament = "rio de janeiro"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 championship has a final score of 3–6, 4–6, 2–6? ### Context: CREATE TABLE table_2201724_1 (championship VARCHAR, score_in_the_final VARCHAR) ### Response: ### Response: SELECT championship FROM table_2201724_1 WHERE score_in_the_final = "3–6, 4–6, 2–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: In 1987 who was the mens singles ### Context: CREATE TABLE table_15001681_1 (mens_singles VARCHAR, year VARCHAR) ### Response: ### Response: SELECT mens_singles FROM table_15001681_1 WHERE year = 1987</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lost has Points smaller than 15, and a Name of sc forst, and Drawn smaller than 0? ### Context: CREATE TABLE table_name_89 (lost INTEGER, drawn VARCHAR, points VARCHAR, name VARCHAR) ### Response: ### Response: SELECT AVG(lost) FROM table_name_89 WHERE points < 15 AND name = "sc forst" AND drawn < 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 format is Première Chaîne? ### Context: CREATE TABLE table_name_44 (format VARCHAR, branding VARCHAR) ### Response: ### Response: SELECT format FROM table_name_44 WHERE branding = "première chaîne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 John McEnroe's minimum year? ### Context: CREATE TABLE table_22597626_1 (year INTEGER) ### Response: ### Response: SELECT MIN(year) FROM table_22597626_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 interface is used on the scanner that has a 36 pages per minute? ### Context: CREATE TABLE table_16409745_1 (interface VARCHAR, pages_per_minute__color_ VARCHAR) ### Response: ### Response: SELECT interface FROM table_16409745_1 WHERE pages_per_minute__color_ = 36</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Week on October 18, 1992? ### Context: CREATE TABLE table_name_3 (week INTEGER, date VARCHAR) ### Response: ### Response: SELECT SUM(week) FROM table_name_3 WHERE date = "october 18, 1992"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bronze is more than 3, what is the rank? ### Context: CREATE TABLE table_name_19 (rank VARCHAR, bronze INTEGER) ### Response: ### Response: SELECT rank FROM table_name_19 WHERE bronze > 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: who got the third position when laranja kyoto got the second position? ### Context: CREATE TABLE table_21632864_1 (third_place VARCHAR, runners_up VARCHAR) ### Response: ### Response: SELECT third_place FROM table_21632864_1 WHERE runners_up = "Laranja Kyoto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 H/A/N when Date is February 24? ### Context: CREATE TABLE table_name_55 (h_a_n VARCHAR, date VARCHAR) ### Response: ### Response: SELECT h_a_n FROM table_name_55 WHERE date = "february 24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the pole position in Milwaukee? ### Context: CREATE TABLE table_27913160_3 (pole_position VARCHAR, race VARCHAR) ### Response: ### Response: SELECT pole_position FROM table_27913160_3 WHERE race = "Milwaukee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the least number of field goals scored by a player? ### Context: CREATE TABLE table_25711913_14 (field_goals__4_points_ INTEGER) ### Response: ### Response: SELECT MIN(field_goals__4_points_) FROM table_25711913_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: Which city contains the KPIX station? ### Context: CREATE TABLE table_name_96 (city_of_license__market VARCHAR, station VARCHAR) ### Response: ### Response: SELECT city_of_license__market FROM table_name_96 WHERE station = "kpix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 all the regular season where year is 2011 ### Context: CREATE TABLE table_1046454_1 (regular_season VARCHAR, year VARCHAR) ### Response: ### Response: SELECT regular_season FROM table_1046454_1 WHERE year = 2011</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent in the final of the Senegal f2 tournament> ### Context: CREATE TABLE table_name_8 (opponent_in_the_final VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_8 WHERE tournament = "senegal f2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the 4th district in 1924? ### Context: CREATE TABLE table_14123513_5 (year VARCHAR) ### Response: ### Response: SELECT 4 AS th_district FROM table_14123513_5 WHERE year = 1924</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has Wins smaller than 2? ### Context: CREATE TABLE table_name_41 (points INTEGER, wins INTEGER) ### Response: ### Response: SELECT MIN(points) FROM table_name_41 WHERE wins < 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 Phoenician letter for the Hangul of ㄹ? ### Context: CREATE TABLE table_name_77 (phoenician VARCHAR, hangul VARCHAR) ### Response: ### Response: SELECT phoenician FROM table_name_77 WHERE hangul = "ㄹ"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Segment A where Segment D is luxury sports cars? ### Context: CREATE TABLE table_15187735_15 (segment_a VARCHAR, segment_d VARCHAR) ### Response: ### Response: SELECT segment_a FROM table_15187735_15 WHERE segment_d = "Luxury Sports Cars"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game number was located in Prudential Center 15,086? ### Context: CREATE TABLE table_27700375_6 (game INTEGER, location_attendance VARCHAR) ### Response: ### Response: SELECT MIN(game) FROM table_27700375_6 WHERE location_attendance = "Prudential Center 15,086"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 density of yushan county? ### Context: CREATE TABLE table_1300525_1 (density VARCHAR, english_name VARCHAR) ### Response: ### Response: SELECT COUNT(density) FROM table_1300525_1 WHERE english_name = "Yushan County"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the away team's score against Hawthorn? ### Context: CREATE TABLE table_name_23 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_23 WHERE away_team = "hawthorn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 athletic nickname blue crusaders founded? ### Context: CREATE TABLE table_22171978_1 (founded VARCHAR, athletic_nickname VARCHAR) ### Response: ### Response: SELECT founded FROM table_22171978_1 WHERE athletic_nickname = "Blue Crusaders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 director when there were 13.66 million u.s viewers? ### Context: CREATE TABLE table_11404452_1 (director VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT director FROM table_11404452_1 WHERE us_viewers__millions_ = "13.66"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament where the match was on a hard surface and jan-michael gambill (19) was the finalist? ### Context: CREATE TABLE table_name_75 (tournament VARCHAR, surface VARCHAR, finalist VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_75 WHERE surface = "hard" AND finalist = "jan-michael gambill (19)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average loss with a goal higher than 51 and wins higher than 14? ### Context: CREATE TABLE table_name_88 (losses INTEGER, goals_against VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT AVG(losses) FROM table_name_88 WHERE goals_against > 51 AND wins > 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: How many car numbers were recorded when the time/retired is +4.0019? ### Context: CREATE TABLE table_17319931_1 (car_no VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT COUNT(car_no) FROM table_17319931_1 WHERE time_retired = "+4.0019"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 TO PAR WITH A T7 PLACE, SCORE OF 72-67=139, AND PLAYER RAYMOND FLOYD? ### Context: CREATE TABLE table_name_77 (to_par VARCHAR, player VARCHAR, place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_77 WHERE place = "t7" AND score = 72 - 67 = 139 AND player = "raymond floyd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Played is the lowest one that has a Blackpool smaller than 0? ### Context: CREATE TABLE table_name_57 (played INTEGER, blackpool INTEGER) ### Response: ### Response: SELECT MIN(played) FROM table_name_57 WHERE blackpool < 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: Which circuit did Peter Whitehead win? ### Context: CREATE TABLE table_name_43 (circuit VARCHAR, winning_driver VARCHAR) ### Response: ### Response: SELECT circuit FROM table_name_43 WHERE winning_driver = "peter whitehead"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 budget record has a budget amount smaller than the invested amount? ### Context: CREATE TABLE budget (budgeted INTEGER, invested VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM budget WHERE budgeted < invested</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 and distance for aircraft with id 12? ### Context: CREATE TABLE Aircraft (name VARCHAR, distance VARCHAR, aid VARCHAR) ### Response: ### Response: SELECT name, distance FROM Aircraft WHERE aid = 12</s>