instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: What is the largest metropolitan area of the Central-West? ### Response:
SELECT "Largest Metropolitan Area" FROM table_70872 WHERE "Name" = 'central-west'
### Instruction: Which Years in Orlando has a Player of bo outlaw? ### Response:
SELECT "Years in Orlando" FROM table_39897 WHERE "Player" = 'bo outlaw'
### Instruction: What studio has the director Philip Frank Messina? ### Response:
SELECT "Studio(s)" FROM table_63482 WHERE "Director" = 'philip frank messina'
### Instruction: What is the Product Name, when the Company Name is HTC Corporation? ### Response:
SELECT "Product Name" FROM table_7803 WHERE "Company Name" = 'htc corporation'
### Instruction: What's the lowest goal difference when the position is higher than 16? ### Response:
SELECT MIN(goal_difference) FROM table_name_85 WHERE position > 16
### Instruction: What is the smallest silver that has a bronze less than 0? ### Response:
SELECT MIN("Silver") FROM table_42743 WHERE "Bronze" < '0'
### Instruction: How many height entries are there for players from bayside high school? ### Response:
SELECT COUNT("Height") FROM table_25063 WHERE "High School" = 'Bayside'
### Instruction: What is the highest goals against that has 15 as position? ### Response:
SELECT MAX("Goals Against") FROM table_58694 WHERE "Position" = '15'
### Instruction: Which countries has the most number of airlines whose active status is 'Y'? ### Response:
SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: Name the episode for run time of 22:50 ### Response:
SELECT episode FROM table_2114308_1 WHERE run_time = "22:50"
### Instruction: How many people were in attendance when the home shows as Bulls? ### Response:
SELECT COUNT("Attendance") FROM table_10703 WHERE "Home" = 'bulls'
### Instruction: What score has a to par of 12 and is from Jersey? ### Response:
SELECT score FROM table_name_25 WHERE to_par = 12 AND country = "jersey"
### Instruction: What city licensed the broadcast on virtual channel 8.2? ### Response:
SELECT "City of license" FROM table_30611 WHERE "Virtual channel" = '8.2'
### Instruction: What was the score for the game in which Samir Nasri played? ### Response:
SELECT score FROM table_24765815_2 WHERE player = "Samir Nasri"
### Instruction: What is the name of the country when the ioc code is mas? ### Response:
SELECT country FROM table_2879165_1 WHERE ioc_code = "MAS"
### Instruction: What is the league that has the pick #160? ### Response:
SELECT "League from" FROM table_79141 WHERE "Pick #" = '160'
### Instruction: What was Fitzroy's score when they were the home team? ### Response:
SELECT "Home team score" FROM table_32722 WHERE "Home team" = 'fitzroy'
### Instruction: What position has ronjay buenafe as the name? ### Response:
SELECT "Position" FROM table_41464 WHERE "Name" = 'ronjay buenafe'
### Instruction: what is the intake method of the ecotrin ec? ### Response:
SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'ecotrin ec'
### Instruction: tony fisher and ryan brewer each played what position ? ### Response:
SELECT "position" FROM table_203_805 WHERE "player" = 'tony fisher'
### Instruction: What are the ids of every student who has never attended a course? ### Response:
SELECT student_id FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)
### Instruction: what is the object type when the ngc number is 3314? ### Response:
SELECT object_type FROM table_name_98 WHERE ngc_number = 3314
### Instruction: what 1919 brazilian football team had the most points ? ### Response:
SELECT "team" FROM table_203_254 ORDER BY "points" DESC LIMIT 1
### Instruction: What Date was the Country of japan, and a Label of sony? ### Response:
SELECT date FROM table_name_75 WHERE country = "japan" AND label = "sony"
### Instruction: what are the number of times a competition took place in the united states ? ### Response:
SELECT COUNT(*) FROM table_203_245 WHERE "venue" = 'united states'
### Instruction: How many weeks in total were games played at Cleveland Browns Stadium? ### Response:
SELECT COUNT(week) FROM table_name_81 WHERE stadium = "cleveland browns stadium"
### Instruction: which has the most land area in miles ? ### Response:
SELECT "township" FROM table_203_510 ORDER BY "land area\n(mi2)" DESC LIMIT 1
### Instruction: how long is the song look through my eyes by everlife ? ### Response:
SELECT "length" FROM table_204_573 WHERE "title" = '"look through my eyes"'
### Instruction: What week has an attendance of 10402 ### Response:
SELECT MIN("Week") FROM table_2919 WHERE "Attendance" = '10402'
### Instruction: What is the zan 1 that has 11 as the nor 1? ### Response:
SELECT zan_1 FROM table_name_34 WHERE nor_1 = "11"
### Instruction: which nation has set the record the most times ? ### Response:
SELECT "nation" FROM table_204_678 GROUP BY "nation" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: In what year was the rank less than 6 for Damac Heights? ### Response:
SELECT year FROM table_name_10 WHERE rank < 6 AND name = "damac heights"
### Instruction: The winner and nominee 'Hidden Agenda' is from which country? ### Response:
SELECT country FROM table_name_69 WHERE winner_and_nominees = "hidden agenda"
### Instruction: how many drops does diego dominguez have ? ### Response:
SELECT SUM("drop") FROM table_203_871 WHERE "player" = 'diego dominguez'
### Instruction: Which Station has a Zone 2010 of 7? ### Response:
SELECT "Station" FROM table_75340 WHERE "Zone 2010" = '7'
### Instruction: The series titled dragon laws i: the undercover has what role? ### Response:
SELECT role FROM table_name_73 WHERE series_title = "dragon laws i: the undercover"
### Instruction: Who were the finalists in the 1972 73 season? ### Response:
SELECT finalists FROM table_name_53 WHERE season = "1972–73"
### Instruction: What is the total when the score of set 1 is 15 11? ### Response:
SELECT total FROM table_name_5 WHERE set_1 = "15–11"
### Instruction: What is listed as the highest Points that's got a Position that's smaller than 1? ### Response:
SELECT MAX(points) FROM table_name_64 WHERE position < 1
### Instruction: Who was the opponent when the Seattle Seahawks had a record of 8-7? ### Response:
SELECT opponent FROM table_name_87 WHERE record = "8-7"
### Instruction: What is the Heat for Smiljana Marinovi ? ### Response:
SELECT COUNT(heat) FROM table_name_88 WHERE name = "smiljana marinović"
### Instruction: What was the party for first elected 1923? ### Response:
SELECT party FROM table_1342393_23 WHERE first_elected = 1923
### Instruction: What is the smallest crowd with the away team of North Melbourne? ### Response:
SELECT MIN(crowd) FROM table_name_61 WHERE away_team = "north melbourne"
### Instruction: What is the nationality of the player from Vancouver Canucks? ### Response:
SELECT "Nationality" FROM table_12 WHERE "NHL team" = 'Vancouver Canucks'
### Instruction: How many years was famas awards the award giving body? ### Response:
SELECT COUNT("Year") FROM table_50065 WHERE "Award giving body" = 'famas awards'
### Instruction: ictd ### Response:
SELECT DISTINCT paper.paperid FROM paper, venue WHERE venue.venueid = paper.venueid AND venue.venuename = 'ictd'
### Instruction: What is the pick of player don waddell from round 7? ### Response:
SELECT pick FROM table_name_96 WHERE round = "7" AND player = "don waddell"
### Instruction: What are Arthur Ashe's games w-l? ### Response:
SELECT "Games W-L" FROM table_25674 WHERE "Player" = 'Arthur Ashe'
### Instruction: How many incoming managers did Burnley have? ### Response:
SELECT COUNT(incoming_manager) FROM table_26593762_3 WHERE team = "Burnley"
### Instruction: What venue has euro 2004 q. as the competition? ### Response:
SELECT venue FROM table_name_60 WHERE competition = "euro 2004 q."
### Instruction: Which Week has a Result of l 41-14? ### Response:
SELECT MIN(week) FROM table_name_89 WHERE result = "l 41-14"
### Instruction: Who is the director of the 'Adam's Family'? ### Response:
SELECT "Director" FROM table_24039 WHERE "Title" = 'Adam''s Family'
### Instruction: For the catalog title DP068-07, what formats are available? ### Response:
SELECT format FROM table_name_52 WHERE catalog = "dp068-07"
### Instruction: What does a hand of Theoretical return have as a 3 credit? ### Response:
SELECT 3 AS _credits FROM table_name_34 WHERE hand = "theoretical return"
### Instruction: How many points when 15 is scored is considered the minimum? ### Response:
SELECT MIN("Points") FROM table_19656 WHERE "Scored" = '15'
### Instruction: how many managerial changes were there in 2009 ? ### Response:
SELECT COUNT(*) FROM table_204_805 WHERE "date of departure" = 2009
### Instruction: Who is every main presenter for the Estonia region/country? ### Response:
SELECT "Main presenter" FROM table_26679 WHERE "Region/Country" = 'Estonia'
### Instruction: what was the total number of medals the ivory coast won ? ### Response:
SELECT "total" FROM table_203_377 WHERE "nation" = 'ivory coast'
### Instruction: Which Year(s) won has a To par of +8? ### Response:
SELECT "Year(s) won" FROM table_9754 WHERE "To par" = '+8'
### Instruction: What is the Host of the Show with a Market of New York? ### Response:
SELECT "Host(s)" FROM table_50181 WHERE "Market" = 'new york'
### Instruction: What location was the event ufc: fight for the troops? ### Response:
SELECT "Location" FROM table_62562 WHERE "Event" = 'ufc: fight for the troops'
### Instruction: Name the Daytime which has Saturday of yes and a Name of exmouth? ### Response:
SELECT daytime FROM table_name_5 WHERE saturday = "yes" AND name = "exmouth"
### Instruction: How many years did Peter Mikkelsen win the Mens Singles? ### Response:
SELECT COUNT("Year") FROM table_17503 WHERE "Mens singles" = 'Peter Mikkelsen'
### Instruction: How many teams does Maxim Bets play for? ### Response:
SELECT COUNT(nhl_team) FROM table_2781227_2 WHERE player = "Maxim Bets"
### Instruction: What was the home team when the Tie no was 60? ### Response:
SELECT "Home team" FROM table_44034 WHERE "Tie no" = '60'
### Instruction: What is the rank of the games that had 9 gold and 9 silvers? ### Response:
SELECT rank FROM table_name_47 WHERE gold = "9" AND silver = "9"
### Instruction: How many tournament titles for texas with over 0 total? ### Response:
SELECT COUNT(tournament) FROM table_name_89 WHERE total > 0 AND team = "texas"
### Instruction: What is the total attendance for Candlestick Park? ### Response:
SELECT COUNT(attendance) FROM table_name_74 WHERE game_site = "candlestick park"
### Instruction: What was the position when the affiliation is ldu quito? ### Response:
SELECT "Position" FROM table_31274 WHERE "Affiliation" = 'LDU Quito'
### Instruction: Create a bar chart showing the total number across builder, and I want to show Y from low to high order. ### Response:
SELECT Builder, COUNT(*) FROM railway GROUP BY Builder ORDER BY COUNT(*)
### Instruction: How many films were in assamese? ### Response:
SELECT COUNT(name_of_film) FROM table_25926120_3 WHERE language = "Assamese"
### Instruction: Which Centerfold model has a Cover model of irina voronina? ### Response:
SELECT centerfold_model FROM table_name_81 WHERE cover_model = "irina voronina"
### Instruction: What was the score of the team that played against Fitzroy? ### Response:
SELECT "Home team score" FROM table_56089 WHERE "Away team" = 'fitzroy'
### Instruction: Who was the winner with the 24-21 result? ### Response:
SELECT "Winner" FROM table_47823 WHERE "Result" = '24-21'
### Instruction: What is the total number of PLD for Team Arsenal? ### Response:
SELECT COUNT("Total Pld") FROM table_78721 WHERE "Team" = 'arsenal'
### Instruction: what is the number of networks that are owned by televisa ? ### Response:
SELECT COUNT("network name") FROM table_204_779 WHERE "owner" = 'televisa'
### Instruction: In what year was Leo E. Allen first elected? ### Response:
SELECT "First elected" FROM table_18588 WHERE "Incumbent" = 'Leo E. Allen'
### Instruction: create big list of questions. ### Response:
SELECT p.Id, p.Tags, p.Id AS "post_link" FROM Posts AS p WHERE NOT Tags LIKE '%##exclude##%'
### Instruction: What is the highest Ovrs, when Econ is 2.02? ### Response:
SELECT MAX(ovrs) FROM table_name_20 WHERE econ = 2.02
### Instruction: What cub team or college did Bob Law come from? ### Response:
SELECT "College/junior/club team" FROM table_2103 WHERE "Player" = 'Bob Law'
### Instruction: what country is team djurg rdens if not from ? ### Response:
SELECT "country" FROM table_204_235 WHERE "team" = 'djurgardens if'
### Instruction: How much A-League has a Pre-Season larger than 0? ### Response:
SELECT COUNT(a_league) FROM table_name_85 WHERE pre_season > 0
### Instruction: What rank has a rating of 146.8? ### Response:
SELECT "Rank" FROM table_23055 WHERE "Rating" = '146.8'
### Instruction: How many intro dates have the price of 686 ? ### Response:
SELECT COUNT("Intro Date") FROM table_31332 WHERE "Price" = '686€'
### Instruction: Show the party and the number of drivers in each party with a bar chart, and order from low to high by the bars. ### Response:
SELECT Party, COUNT(*) FROM driver GROUP BY Party ORDER BY Party
### Instruction: Who is iv n navarro's opponent? ### Response:
SELECT "Opponent" FROM table_66230 WHERE "Result" = 'iván navarro'
### Instruction: Who was the incumbent in Virginia 3? ### Response:
SELECT incumbent FROM table_2668374_18 WHERE district = "Virginia 3"
### Instruction: How many poles does the European F3 Open series have? ### Response:
SELECT poles FROM table_29434211_1 WHERE series = "European F3 Open"
### Instruction: Which Country has a Margin of victory of 2 strokes? ### Response:
SELECT "Country" FROM table_39227 WHERE "Margin of victory" = '2 strokes'
### Instruction: How many games have 61-16 as the record? ### Response:
SELECT COUNT("Game") FROM table_44287 WHERE "Record" = '61-16'
### Instruction: What municipality had 754 votes for coakley? ### Response:
SELECT "Municipality" FROM table_2994 WHERE "Coakley votes" = '754'
### Instruction: what entrant has the most drivers ? ### Response:
SELECT "entrant" FROM table_203_670 GROUP BY "entrant" ORDER BY COUNT("driver") DESC LIMIT 1
### Instruction: what is the week when the finalist is marcelo r os? ### Response:
SELECT "Week" FROM table_9220 WHERE "Finalist" = 'marcelo ríos'
### Instruction: What is the location/state that has adelaide international raceway as the circuit? ### Response:
SELECT location___state FROM table_name_5 WHERE circuit = "adelaide international raceway"
### Instruction: What is the Region, when the Catalog is 25AP 301? ### Response:
SELECT region FROM table_name_61 WHERE catalog = "25ap 301"
### Instruction: Which Geological Trend has an Operator(s) of woc? ### Response:
SELECT geological_trend FROM table_name_41 WHERE operator_s_ = "woc"
### Instruction: What is the average attendance on april 24? ### Response:
SELECT AVG("Attendance") FROM table_53603 WHERE "Date" = 'april 24'
### Instruction: What was the score when the Rangers were playing against the Vancouver Canucks? ### Response:
SELECT score FROM table_name_99 WHERE opponent = "vancouver canucks"
### Instruction: Name the year with the best female pop vocal album and result of won ### Response:
SELECT year FROM table_name_43 WHERE category = "best female pop vocal album" AND result = "won"
### Instruction: What was the high point for January 20? ### Response:
SELECT high_points FROM table_22883210_7 WHERE date = "January 20"