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 are the losses where the award is Mike Miller (Smoy)? ### Context: CREATE TABLE table_name_34 (losses VARCHAR, awards VARCHAR) ### Response: ### Response: SELECT losses FROM table_name_34 WHERE awards = "mike miller (smoy)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ties occurred with a score of 2–2? ### Context: CREATE TABLE table_name_83 (tie_no VARCHAR, score VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_83 WHERE score = "2–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 Group Song of Shine 王幸儿? ### Context: CREATE TABLE table_name_60 (Group VARCHAR, name VARCHAR) ### Response: ### Response: SELECT Group AS song FROM table_name_60 WHERE name = "shine 王幸儿"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Catalog has a Label of geffen records / universal music special markets? ### Context: CREATE TABLE table_name_5 (catalog VARCHAR, label VARCHAR) ### Response: ### Response: SELECT catalog FROM table_name_5 WHERE label = "geffen records / universal music special 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: When 17 is the tries for what is the points against? ### Context: CREATE TABLE table_17941032_1 (points_against VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT points_against FROM table_17941032_1 WHERE tries_for = "17"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the number of leaders for % of popular vote being 11.05% ### Context: CREATE TABLE table_19283982_4 (leader VARCHAR, _percentage_of_popular_vote VARCHAR) ### Response: ### Response: SELECT COUNT(leader) FROM table_19283982_4 WHERE _percentage_of_popular_vote = "11.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: Of which part does congressman dick clark belong to? ### Context: CREATE TABLE table_24415627_2 (party VARCHAR, senator VARCHAR) ### Response: ### Response: SELECT party FROM table_24415627_2 WHERE senator = "Dick Clark"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What week was the game played on November 12, 1961, with an attendance of 7,859 played? ### Context: CREATE TABLE table_name_71 (week INTEGER, date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT MIN(week) FROM table_name_71 WHERE date = "november 12, 1961" AND attendance < 7 OFFSET 859</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Date has a Visitor of edmonton? ### Context: CREATE TABLE table_name_24 (date VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT date FROM table_name_24 WHERE visitor = "edmonton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what opponent has an average less than 62 and a January average less than 6 ### Context: CREATE TABLE table_name_34 (opponent VARCHAR, points VARCHAR, january VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_34 WHERE points < 62 AND january < 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: Which country has a total less than 289 and finished t2? ### Context: CREATE TABLE table_name_22 (country VARCHAR, total VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT country FROM table_name_22 WHERE total < 289 AND finish = "t2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many people in the sorata municipality when the quiabaya municipality has 33? ### Context: CREATE TABLE table_2509202_2 (sorata_municipality VARCHAR, quiabaya_municipality VARCHAR) ### Response: ### Response: SELECT sorata_municipality FROM table_2509202_2 WHERE quiabaya_municipality = "33"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When Brett Lancaster won the general classification, who won the team calssification? ### Context: CREATE TABLE table_25055040_22 (team_classification VARCHAR, general_classification VARCHAR) ### Response: ### Response: SELECT team_classification FROM table_25055040_22 WHERE general_classification = "Brett Lancaster"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance with carolina visitor ### Context: CREATE TABLE table_name_97 (attendance INTEGER, visitor VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_97 WHERE visitor = "carolina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the school picking is utah state for the position of linebacker, what's the sum of those rounds? ### Context: CREATE TABLE table_name_51 (round INTEGER, position VARCHAR, school VARCHAR) ### Response: ### Response: SELECT SUM(round) FROM table_name_51 WHERE position = "linebacker" AND school = "utah state"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the value for race 4 when race 3 is dns and race 2 is 27? ### Context: CREATE TABLE table_name_55 (race_4 VARCHAR, race_3 VARCHAR, race_2 VARCHAR) ### Response: ### Response: SELECT race_4 FROM table_name_55 WHERE race_3 = "dns" AND race_2 = "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: What is the gpa per capita (nominal) for the country with gdp (nominal) is $52.0 billion? ### Context: CREATE TABLE table_11780179_1 (gdp_per_capita__nominal_ VARCHAR, gdp__nominal_ VARCHAR) ### Response: ### Response: SELECT gdp_per_capita__nominal_ FROM table_11780179_1 WHERE gdp__nominal_ = "$52.0 billion"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date of the game that had a decision of wall? ### Context: CREATE TABLE table_name_41 (date VARCHAR, decision VARCHAR) ### Response: ### Response: SELECT date FROM table_name_41 WHERE decision = "wall"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 dates and locations of performances? ### Context: CREATE TABLE performance (Date VARCHAR, LOCATION VARCHAR) ### Response: ### Response: SELECT Date, LOCATION FROM performance</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 John Shadegg's First Elected date? ### Context: CREATE TABLE table_name_18 (first_elected INTEGER, incumbent VARCHAR) ### Response: ### Response: SELECT AVG(first_elected) FROM table_name_18 WHERE incumbent = "john shadegg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 No. 5, when No. 9 is Michael, and when Region (Year) is New Hampshire (2010)? ### Context: CREATE TABLE table_name_16 (no_5 VARCHAR, no_9 VARCHAR, region__year_ VARCHAR) ### Response: ### Response: SELECT no_5 FROM table_name_16 WHERE no_9 = "michael" AND region__year_ = "new hampshire (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 lowest nuber of games drawn in the total column? ### Context: CREATE TABLE table_name_31 (drawn INTEGER, against VARCHAR) ### Response: ### Response: SELECT MIN(drawn) FROM table_name_31 WHERE against = "total"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every young rider classification when Jelle Vanendert is the winner? ### Context: CREATE TABLE table_25999087_2 (young_rider_classification VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT young_rider_classification FROM table_25999087_2 WHERE winner = "Jelle Vanendert"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 highest rated wine? ### Context: CREATE TABLE WINE (Name VARCHAR, Score VARCHAR) ### Response: ### Response: SELECT Name FROM WINE ORDER BY Score 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: Who took the loss on May 20? ### Context: CREATE TABLE table_name_52 (loss VARCHAR, date VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_52 WHERE date = "may 20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the most common birth place of people? ### Context: CREATE TABLE people (Birth_Place VARCHAR) ### Response: ### Response: SELECT Birth_Place FROM people GROUP BY Birth_Place 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: Find the total number of employees. ### Context: CREATE TABLE employee (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM employee</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of license has the Kyli call sign? ### Context: CREATE TABLE table_name_98 (city_of_license VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT city_of_license FROM table_name_98 WHERE call_sign = "kyli"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first names of the faculty members who participate in Canoeing and Kayaking. ### Context: CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR) ### Response: ### Response: SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT HINDI HAS Tamil of vyazhan? ### Context: CREATE TABLE table_name_37 (hindi VARCHAR, tamil VARCHAR) ### Response: ### Response: SELECT hindi FROM table_name_37 WHERE tamil = "vyazhan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 typhoid fever number for the year 1934 ### Context: CREATE TABLE table_1007688_1 (typhoid_fever VARCHAR, year VARCHAR) ### Response: ### Response: SELECT typhoid_fever FROM table_1007688_1 WHERE year = "1934"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Spike which has a Name of senna ušić-jogunica category:articles with hcards? ### Context: CREATE TABLE table_name_84 (spike VARCHAR, name VARCHAR) ### Response: ### Response: SELECT spike FROM table_name_84 WHERE name = "senna ušić-jogunica category:articles with hcards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What shows for 1997 when 1987 is 2r? ### Context: CREATE TABLE table_name_46 (Id VARCHAR) ### Response: ### Response: SELECT 1997 FROM table_name_46 WHERE 1987 = "2r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 id of tv channels that do not play any cartoon directed by Ben Jones. ### Context: CREATE TABLE TV_Channel (id VARCHAR, channel VARCHAR, directed_by VARCHAR); CREATE TABLE cartoon (id VARCHAR, channel VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Minutes Played, when Rebounds is 25, and when Field Goal % is less than "0.315"? ### Context: CREATE TABLE table_name_95 (minutes_played INTEGER, rebounds VARCHAR, field_goal__percentage VARCHAR) ### Response: ### Response: SELECT MIN(minutes_played) FROM table_name_95 WHERE rebounds = 25 AND field_goal__percentage < 0.315</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average number of followers for the users who do not have any tweet. ### Context: CREATE TABLE user_profiles (followers INTEGER, UID VARCHAR); CREATE TABLE tweets (followers INTEGER, UID VARCHAR) ### Response: ### Response: SELECT AVG(followers) FROM user_profiles WHERE NOT UID IN (SELECT UID FROM tweets)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Carl Elliott is a member of which party? ### Context: CREATE TABLE table_1342149_3 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1342149_3 WHERE incumbent = "Carl Elliott"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine of Rob Walker Racing Team has 47 points and F tyres? ### Context: CREATE TABLE table_name_27 (engine VARCHAR, entrant VARCHAR, points VARCHAR, tyres VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_27 WHERE points = "47" AND tyres = "f" AND entrant = "rob walker racing team"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 league goals when the total goals is 179? ### Context: CREATE TABLE table_29701419_2 (league_goals INTEGER, total_goals VARCHAR) ### Response: ### Response: SELECT MAX(league_goals) FROM table_29701419_2 WHERE total_goals = 179</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Blane Smith play linebacker? ### Context: CREATE TABLE table_name_12 (round VARCHAR, position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_12 WHERE position = "linebacker" AND player = "blane smith"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Code Name of the figure born in Hawaii? ### Context: CREATE TABLE table_name_81 (code_name VARCHAR, birthplace VARCHAR) ### Response: ### Response: SELECT code_name FROM table_name_81 WHERE birthplace = "hawaii"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What venue was the game played on 9 February 2011 played at? ### Context: CREATE TABLE table_name_28 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_28 WHERE date = "9 february 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: state the round that had a game attended attended by 9359 people ### Context: CREATE TABLE table_21256068_3 (round VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT round FROM table_21256068_3 WHERE attendance = 9359</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What ranking did Team 250cc Honda end up in when it finished a race with a time of 1:27.57.28? ### Context: CREATE TABLE table_name_44 (rank VARCHAR, team VARCHAR, time VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_44 WHERE team = "250cc honda" AND time = "1:27.57.28"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 semifinalists for 19 rank ### Context: CREATE TABLE table_30007505_1 (semifinalists VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(semifinalists) FROM table_30007505_1 WHERE rank = 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 dollar amount of ebit when the net profit is 120.6? ### Context: CREATE TABLE table_18077713_1 (ebit__us_$m_ VARCHAR, net_profit__us_$m_ VARCHAR) ### Response: ### Response: SELECT ebit__us_$m_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "120.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: Who is the main contestant with scores by each individual judge of 8 + 7 + 7 = 21? ### Context: CREATE TABLE table_name_62 (main_contestant VARCHAR, scores_by_each_individual_judge VARCHAR) ### Response: ### Response: SELECT main_contestant FROM table_name_62 WHERE scores_by_each_individual_judge = 8 + 7 + 7 = 21</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the type for a general programming and the owner tv kanal 5? ### Context: CREATE TABLE table_name_73 (type VARCHAR, programming VARCHAR, owner VARCHAR) ### Response: ### Response: SELECT type FROM table_name_73 WHERE programming = "general" AND owner = "tv kanal 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: Which Driver has Laps larger than 78, and a Time/Retired of + 1:09.4? ### Context: CREATE TABLE table_name_99 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_99 WHERE laps > 78 AND time_retired = "+ 1:09.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 percent for when against prohibition is 2978? ### Context: CREATE TABLE table_120778_1 (percent_for VARCHAR, against_prohibition VARCHAR) ### Response: ### Response: SELECT percent_for FROM table_120778_1 WHERE against_prohibition = 2978</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 title and issues of the books? ### Context: CREATE TABLE book (Title VARCHAR, Issues VARCHAR) ### Response: ### Response: SELECT Title, Issues FROM book</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Man of the Match when the opponent was Milton Keynes Lightning and the venue was Away? ### Context: CREATE TABLE table_name_19 (man_of_the_match VARCHAR, opponent VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT man_of_the_match FROM table_name_19 WHERE opponent = "milton keynes lightning" AND venue = "away"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 position when lot is less than 14, goal difference is +1 and drawn is more than 15? ### Context: CREATE TABLE table_name_88 (position INTEGER, drawn VARCHAR, lost VARCHAR, goal_difference VARCHAR) ### Response: ### Response: SELECT SUM(position) FROM table_name_88 WHERE lost < 14 AND goal_difference = "+1" AND drawn > 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7? ### Context: CREATE TABLE table_name_26 (Id VARCHAR) ### Response: ### Response: SELECT AVG(2006) FROM table_name_26 WHERE 2010 = 417.9 AND 2011 > 426.7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the runner-up is the Fort Lauderdale Strikers, what is the winner (number of titles)? ### Context: CREATE TABLE table_237757_3 (winner__number_of_titles_ VARCHAR, runners_up VARCHAR) ### Response: ### Response: SELECT winner__number_of_titles_ FROM table_237757_3 WHERE runners_up = "Fort Lauderdale Strikers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the location for the country of platte? ### Context: CREATE TABLE table_name_64 (location VARCHAR, county VARCHAR) ### Response: ### Response: SELECT location FROM table_name_64 WHERE county = "platte"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the launch date with Institutional authority of ndc and launch vehicle of hatf-xi ### Context: CREATE TABLE table_name_58 (launch_date VARCHAR, institutional_authority VARCHAR, launch_vehicle VARCHAR) ### Response: ### Response: SELECT launch_date FROM table_name_58 WHERE institutional_authority = "ndc" AND launch_vehicle = "hatf-xi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 countiers had 2009 remittances of 6.02? ### Context: CREATE TABLE table_2941963_1 (country VARCHAR, remittances_2009 VARCHAR) ### Response: ### Response: SELECT COUNT(country) FROM table_2941963_1 WHERE remittances_2009 = "6.02"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many times is avg/g 2? ### Context: CREATE TABLE table_name_82 (receptions VARCHAR, avg_g VARCHAR) ### Response: ### Response: SELECT COUNT(receptions) FROM table_name_82 WHERE avg_g = 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 different production codes does the episode originally aired on October 18, 1984 have? ### Context: CREATE TABLE table_2818164_2 (production_code VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT COUNT(production_code) FROM table_2818164_2 WHERE original_air_date = "October 18, 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: What are the names of managers in ascending order of level? ### Context: CREATE TABLE manager (Name VARCHAR, LEVEL VARCHAR) ### Response: ### Response: SELECT Name FROM manager ORDER BY LEVEL</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 record when the Clippers played Philadelphia? ### Context: CREATE TABLE table_27756572_10 (record VARCHAR, team VARCHAR) ### Response: ### Response: SELECT record FROM table_27756572_10 WHERE team = "Philadelphia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Game site has a Week larger than 14? ### Context: CREATE TABLE table_name_44 (game_site VARCHAR, week INTEGER) ### Response: ### Response: SELECT game_site FROM table_name_44 WHERE week > 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: Show the names of phones with carrier either "Sprint" or "TMobile". ### Context: CREATE TABLE phone (Name VARCHAR, Carrier VARCHAR) ### Response: ### Response: SELECT Name FROM phone WHERE Carrier = "Sprint" OR Carrier = "TMobile"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the wins is 3, what is the maximum races? ### Context: CREATE TABLE table_17289224_1 (races INTEGER, wins VARCHAR) ### Response: ### Response: SELECT MAX(races) FROM table_17289224_1 WHERE wins = 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 the away team score at Windy Hill? ### Context: CREATE TABLE table_name_15 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_15 WHERE venue = "windy hill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Opponent, when Location/Attendance is "Mellon Arena - 17,132"? ### Context: CREATE TABLE table_name_67 (opponent VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_67 WHERE location_attendance = "mellon arena - 17,132"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 resolution for the fight against tom bolger by submission (guillotine choke)? ### Context: CREATE TABLE table_name_65 (res VARCHAR, method VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT res FROM table_name_65 WHERE method = "submission (guillotine choke)" AND opponent = "tom bolger"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Venue with a Date with 27-02-2003? ### Context: CREATE TABLE table_name_22 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_22 WHERE date = "27-02-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: who is the the high points with score being w 117–93 ### Context: CREATE TABLE table_13480122_5 (high_points VARCHAR, score VARCHAR) ### Response: ### Response: SELECT high_points FROM table_13480122_5 WHERE score = "W 117–93"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 highest assists for game 3? ### Context: CREATE TABLE table_name_7 (high_assists VARCHAR, game VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_name_7 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: What is Set 4, when Set 5 is NA, and when Set 3 is 19-25? ### Context: CREATE TABLE table_name_10 (set_4 VARCHAR, set_5 VARCHAR, set_3 VARCHAR) ### Response: ### Response: SELECT set_4 FROM table_name_10 WHERE set_5 = "na" AND set_3 = "19-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: What country had a Time of 6:14.84? ### Context: CREATE TABLE table_name_14 (country VARCHAR, time VARCHAR) ### Response: ### Response: SELECT country FROM table_name_14 WHERE time = "6:14.84"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 PARIS WITH A FRANCE OF 1.4%? ### Context: CREATE TABLE table_name_71 (paris VARCHAR, france VARCHAR) ### Response: ### Response: SELECT paris FROM table_name_71 WHERE france = "1.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: When is the original air date written by sean whitesell? ### Context: CREATE TABLE table_22904752_1 (original_air_date VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_22904752_1 WHERE written_by = "Sean Whitesell"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2003 seat number, when seats contested was at 38.23% ### Context: CREATE TABLE table_20728138_1 (_percentage_in_seats_contested VARCHAR) ### Response: ### Response: SELECT MIN(2003 AS _seats) FROM table_20728138_1 WHERE _percentage_in_seats_contested = "38.23%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 director for huelepega: ley de la calle ### Context: CREATE TABLE table_18123274_1 (director VARCHAR, original_title VARCHAR) ### Response: ### Response: SELECT COUNT(director) FROM table_18123274_1 WHERE original_title = "Huelepega: Ley de la Calle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 0,4, or 8 mb is the nupowr 117 what is the sonnet? ### Context: CREATE TABLE table_3002894_4 (sonnet VARCHAR, nupowr_117 VARCHAR) ### Response: ### Response: SELECT sonnet FROM table_3002894_4 WHERE nupowr_117 = "0,4, or 8 MB"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 first series in this list that Jack Orman wrote? ### Context: CREATE TABLE table_12564633_1 (series__number INTEGER, written_by VARCHAR) ### Response: ### Response: SELECT MIN(series__number) FROM table_12564633_1 WHERE written_by = "Jack Orman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 year in 5th position that happened in Osaka, Japan? ### Context: CREATE TABLE table_name_92 (year INTEGER, position VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_92 WHERE position = "5th" AND venue = "osaka, japan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many international tourist arrivals were in Senegal in 2011? ### Context: CREATE TABLE table_14752049_2 (international_tourist_arrivals__2011_ VARCHAR, country VARCHAR) ### Response: ### Response: SELECT international_tourist_arrivals__2011_ FROM table_14752049_2 WHERE country = "Senegal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Whose Visitor has a Record of 3–18? ### Context: CREATE TABLE table_name_20 (visitor VARCHAR, record VARCHAR) ### Response: ### Response: SELECT visitor FROM table_name_20 WHERE record = "3–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: When 0-1 is the series who has the highest amount of assists? ### Context: CREATE TABLE table_22883210_11 (high_assists VARCHAR, series VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_22883210_11 WHERE series = "0-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 sum of Total Regions that have the Year 1954, and a Nebo greater than 447? ### Context: CREATE TABLE table_name_2 (total_region INTEGER, year VARCHAR, nebo VARCHAR) ### Response: ### Response: SELECT SUM(total_region) FROM table_name_2 WHERE year = 1954 AND nebo > 447</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 First used has a Quantity of 26? ### Context: CREATE TABLE table_name_84 (first_used VARCHAR, quantity VARCHAR) ### Response: ### Response: SELECT first_used FROM table_name_84 WHERE quantity = 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: what date did tie number 5 occur? ### Context: CREATE TABLE table_name_44 (date VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT date FROM table_name_44 WHERE tie_no = "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's bob tway's score? ### Context: CREATE TABLE table_name_51 (score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_51 WHERE player = "bob tway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What day was the score 200 (-16)? ### Context: CREATE TABLE table_15346009_1 (date VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_15346009_1 WHERE score = "200 (-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: What is Finalist, when Year is "2008"? ### Context: CREATE TABLE table_name_30 (finalist VARCHAR, year VARCHAR) ### Response: ### Response: SELECT finalist FROM table_name_30 WHERE year = 2008</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year was the winners vote 55.99%? ### Context: CREATE TABLE table_18106841_1 (year INTEGER, winners__percentage_votes VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_18106841_1 WHERE winners__percentage_votes = "55.99%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 laps when the grid number is 9? ### Context: CREATE TABLE table_name_48 (laps INTEGER, grid VARCHAR) ### Response: ### Response: SELECT AVG(laps) FROM table_name_48 WHERE grid = 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Home team with an Away team that is wrexham? ### Context: CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_90 WHERE away_team = "wrexham"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the person who has no student friends. ### Context: CREATE TABLE Person (name VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE person (name VARCHAR) ### Response: ### Response: SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 HER SONG CHOICE WHEN THE WEEK WAS TOP 10? ### Context: CREATE TABLE table_15778392_1 (song_choice VARCHAR, week__number VARCHAR) ### Response: ### Response: SELECT song_choice FROM table_15778392_1 WHERE week__number = "Top 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: Name the original name for last days of the victim ### Context: CREATE TABLE table_name_97 (original_name VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT original_name FROM table_name_97 WHERE film_title_used_in_nomination = "last days of the victim"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 scored with a result of 46-18? ### Context: CREATE TABLE table_name_49 (scored INTEGER, result VARCHAR) ### Response: ### Response: SELECT MIN(scored) FROM table_name_49 WHERE result = "46-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: What race is held in Germany in the month of May? ### Context: CREATE TABLE table_26166836_3 (road_race VARCHAR, country VARCHAR, month_held VARCHAR) ### Response: ### Response: SELECT road_race FROM table_26166836_3 WHERE country = "Germany" AND month_held = "May"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the ships in classs for kuha class ### Context: CREATE TABLE table_name_52 (ships_in_class VARCHAR, class VARCHAR) ### Response: ### Response: SELECT ships_in_class FROM table_name_52 WHERE class = "kuha class"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much power does the 1500 model have with a displacement of 1490cc? ### Context: CREATE TABLE table_name_22 (power VARCHAR, model VARCHAR, displacement VARCHAR) ### Response: ### Response: SELECT power FROM table_name_22 WHERE model = "1500" AND displacement = "1490cc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What school did bo jackson attend? ### Context: CREATE TABLE table_name_96 (school VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school FROM table_name_96 WHERE player = "bo jackson"</s>