instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: What is the number of staterooms when guests was larger than 210? ### Response:
SELECT AVG(staterooms) FROM table_name_28 WHERE guests > 210
### Instruction: What is the Venue of the WCQ5 Competition? ### Response:
SELECT "Venue" FROM table_60430 WHERE "Competition" = 'wcq5'
### Instruction: How many clubs remain in the fourth round? ### Response:
SELECT MIN(clubs_remaining) FROM table_18328569_1 WHERE round = "Fourth round"
### Instruction: What is the D 46 when the D 44 is majority? ### Response:
SELECT d_46_√ FROM table_name_3 WHERE d_44_√ = "← majority"
### Instruction: Which Week has a Opponent of tennessee titans? ### Response:
SELECT "Week" FROM table_50206 WHERE "Opponent" = 'tennessee titans'
### Instruction: What percentage of the votes in Copiah did McCain get? ### Response:
SELECT mccain_percentage FROM table_20799587_1 WHERE county = "Copiah"
### Instruction: Draw a bar chart for what are the different ship flags, and how many ships have each?, show names in ascending order please. ### Response:
SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY Flag
### Instruction: Give me a histogram for how many rooms cost more than 120, for each different decor? ### Response:
SELECT decor, COUNT(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor
### Instruction: oklahoma state and penn state both have how many cws appearances ? ### Response:
SELECT "cws appearances" FROM table_203_412 WHERE "school" = 'oklahoma state'
### Instruction: What is Country, when Event is Rip Curl Women's Pro? ### Response:
SELECT "Country" FROM table_41438 WHERE "Event" = 'rip curl women''s pro'
### Instruction: belinda and simona were among the oldest finalists but who was the youngest ? ### Response:
SELECT "finalist" FROM table_203_129 ORDER BY "age" LIMIT 1
### Instruction: What is the lowest league for the Malaysia Cup when it was larger than 0? ### Response:
SELECT MIN(league) FROM table_name_98 WHERE malaysia_cup > 0
### Instruction: When was the ship BRP Miguel Malvar commissioned? ### Response:
SELECT "Commissioned" FROM table_61531 WHERE "Ship name" = 'brp miguel malvar'
### Instruction: The nation of denmark has what average total nad more than 0 gold? ### Response:
SELECT AVG(total) FROM table_name_70 WHERE nation = "denmark" AND gold > 0
### Instruction: What is the smallest grid for driver of juan pablo montoya? ### Response:
SELECT MIN(grid) FROM table_name_92 WHERE driver = "juan pablo montoya"
### Instruction: Show the number of games in each season and group by home team in a group line chart. The x-axis is season. ### Response:
SELECT Season, COUNT(Season) FROM game GROUP BY Home_team
### Instruction: What was the Score of the match in Torrance, California? ### Response:
SELECT "Score" FROM table_31845 WHERE "Venue" = 'torrance, california'
### Instruction: What is the Capacity of the Rainer Kraft's Stadium? ### Response:
SELECT AVG("Capacity") FROM table_7833 WHERE "Head Coach" = 'rainer kraft'
### Instruction: What are the notes for bydgoszcz, Poland? ### Response:
SELECT "Notes" FROM table_80215 WHERE "Venue" = 'bydgoszcz, poland'
### Instruction: What is the total when the gold of 0, and a bronze larger than 1? ### Response:
SELECT MAX(total) FROM table_name_25 WHERE gold = 0 AND bronze > 1
### Instruction: Who was the opponent at the game that had a loss of Harden (9-6)? ### Response:
SELECT opponent FROM table_name_27 WHERE loss = "harden (9-6)"
### Instruction: If the opponent is Kristian Pless, who was it against? ### Response:
SELECT against FROM table_23314951_4 WHERE opponent = "Kristian Pless"
### Instruction: Which Date has a Score of 6 3, 7 6? ### Response:
SELECT SUM(date) FROM table_name_3 WHERE score = "6–3, 7–6"
### Instruction: What are the names and cities of the branches that do not have any registered members? ### Response:
SELECT name, city FROM branch WHERE NOT branch_id IN (SELECT branch_id FROM membership_register_branch)
### Instruction: Visualize a bar chart about the distribution of login_name and author_id . ### Response:
SELECT login_name, author_id FROM Course_Authors_and_Tutors ORDER BY personal_name
### Instruction: What is the home team score when the away team is St Kilda? ### Response:
SELECT "Home team score" FROM table_74665 WHERE "Away team" = 'st kilda'
### Instruction: Who is the passenger in 2009 season with 17 races? ### Response:
SELECT passenger FROM table_name_55 WHERE season = "2009" AND races = 17
### Instruction: Who is the player from Hotchkiss School with a position of d? ### Response:
SELECT player FROM table_name_45 WHERE position = "d" AND team_from = "hotchkiss school"
### Instruction: how many rounds had the score 44-22 ### Response:
SELECT COUNT(round) FROM table_21256068_3 WHERE score = "44-22"
### Instruction: how many players went 0-1 in total w l ? ### Response:
SELECT COUNT("player") FROM table_204_177 WHERE "total w-l" = '0-1'
### Instruction: A bar chart about how many customers use each payment method?, order Y in asc order. ### Response:
SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code ORDER BY COUNT(*)
### Instruction: what title received the most favorable position on the aus chart ? ### Response:
SELECT "title" FROM table_203_426 ORDER BY "peak chart positions\naus" LIMIT 1
### Instruction: Which race did Bill Holland win in 1946? ### Response:
SELECT race_name FROM table_name_40 WHERE year = 1946 AND winner = "bill holland"
### Instruction: For the game that was 76-85, what was the record? ### Response:
SELECT "Record" FROM table_43762 WHERE "Score" = '76-85'
### Instruction: How many entered the match with a time of 14:42? ### Response:
SELECT entered FROM table_18438494_3 WHERE time = "14:42"
### Instruction: What is the platform if the weight is 131.5g? ### Response:
SELECT "Platform" FROM table_26146 WHERE "Weight" = '131.5g'
### Instruction: Which Pick # has an NHL team of detroit red wings? ### Response:
SELECT "Pick #" FROM table_79872 WHERE "NHL team" = 'detroit red wings'
### Instruction: I would like to know the names of courses that are worth 16 credits . ### Response:
SELECT DISTINCT name, number FROM course WHERE credits = 16 AND department = 'EECS'
### Instruction: Tell me the outcome of 2 6, 1 6 ### Response:
SELECT "Outcome" FROM table_4367 WHERE "Score" = '2–6, 1–6'
### Instruction: What was the record for the Sun Devils when they scored 44 points? ### Response:
SELECT "Record" FROM table_2402 WHERE "Sun Devils points" = '44'
### Instruction: How many outgoing managers were replaced by Bob Peeters? ### Response:
SELECT COUNT("Outgoing manager") FROM table_29465 WHERE "Replaced by" = 'Bob Peeters'
### Instruction: What game had the result of 112-100? ### Response:
SELECT "Game" FROM table_48818 WHERE "Result" = '112-100'
### Instruction: What is the hometown of Bubba Starling? ### Response:
SELECT hometown FROM table_11677100_17 WHERE player = "Bubba Starling"
### Instruction: What was the Constructor for the race that had Derek Warwick as its Fastest Lap? ### Response:
SELECT constructor FROM table_name_36 WHERE fastest_lap = "derek warwick"
### Instruction: What is the average capacity for rooms in each building? Draw a bar chart, and display bars in asc order. ### Response:
SELECT building, AVG(capacity) FROM classroom GROUP BY building ORDER BY building
### Instruction: What was the number of losses when the scored value was 25? ### Response:
SELECT MAX("Losses") FROM table_72584 WHERE "Scored" = '25'
### Instruction: What tyre has 1 round with Dave Charlton driving? ### Response:
SELECT tyre FROM table_name_91 WHERE rounds = "1" AND driver = "dave charlton"
### Instruction: With the Royal Navy as Combatants B, what was the result? ### Response:
SELECT result FROM table_26977890_1 WHERE combatants_b = "Royal Navy"
### Instruction: How many seasons did Ken Bouchard finish in 38th place? ### Response:
SELECT COUNT(year) FROM table_2333416_2 WHERE position = "38th"
### Instruction: Which flight had an aircraft of vickers viscount type 794? ### Response:
SELECT flight FROM table_name_26 WHERE aircraft = "vickers viscount type 794"
### Instruction: Which Top-10 has a Cuts made larger than 42? ### Response:
SELECT MIN(top_10) FROM table_name_57 WHERE cuts_made > 42
### Instruction: Which entrant had a constructor of benetton - playlife? ### Response:
SELECT "Entrant" FROM table_11740 WHERE "Constructor" = 'benetton - playlife'
### Instruction: What position belonged to the player from Paramus, New Jersey? ### Response:
SELECT position FROM table_11677691_10 WHERE hometown = "Paramus, New Jersey"
### Instruction: Name the disposition for date built is march 1909 ### Response:
SELECT "Disposition" FROM table_21742 WHERE "Date built" = 'March 1909'
### Instruction: What is every bus type for the texture of fillrate? ### Response:
SELECT bus_type FROM table_25005714_3 WHERE texture___gt__s_ = "Fillrate"
### Instruction: What state has a Net contribution per capita of $-171? ### Response:
SELECT state FROM table_name_67 WHERE net_contribution_per_capita = "$-171"
### Instruction: What party represents the district with incumbent matthew clay? ### Response:
SELECT "Party" FROM table_3624 WHERE "Incumbent" = 'Matthew Clay'
### Instruction: What was the total number of rebounds on november 27? ### Response:
SELECT COUNT("High rebounds") FROM table_25365 WHERE "Date" = 'November 27'
### Instruction: What is the Serial number for the Space Security Trooper Function (figure)? ### Response:
SELECT "Serial number" FROM table_14948 WHERE "Function (figure)" = 'space security trooper'
### Instruction: What is the Year of the Film Belle of the Nineties? ### Response:
SELECT "Year" FROM table_76914 WHERE "Film" = 'belle of the nineties'
### Instruction: How many people attended the game against the Kaizer Chiefs? ### Response:
SELECT SUM("Attendance") FROM table_61541 WHERE "Opponents" = 'kaizer chiefs'
### Instruction: What category was the movie Working Girl nominated? ### Response:
SELECT category FROM table_18638067_1 WHERE film_title_used_in_nomination = "Working Girl"
### Instruction: how many chicago bulls have a retired nba jersey ? ### Response:
SELECT COUNT(*) FROM table_203_348 WHERE "team" = 'chicago bulls'
### Instruction: Find the number of students living in each city with a bar chart, and display in ascending by the Y. ### Response:
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY COUNT(*)
### Instruction: What is Date, when Opponent in Final is 'Guy Forget'? ### Response:
SELECT date FROM table_name_64 WHERE opponent_in_final = "guy forget"
### Instruction: During what period did Dell Curry play for Toronto? ### Response:
SELECT years_in_toronto FROM table_10015132_3 WHERE player = "Dell Curry"
### Instruction: What is the format of the album with a year less than 1992? ### Response:
SELECT "Format" FROM table_41704 WHERE "Year" < '1992'
### Instruction: Which church was organized by George M. Hinkle? ### Response:
SELECT "Church name" FROM table_5433 WHERE "Organized by" = 'george m. hinkle'
### Instruction: What was the rank of tris speaker when BB/SO was 7? ### Response:
SELECT rank FROM table_name_20 WHERE player = "tris speaker" AND bb_so = 7
### Instruction: What is the IHSAA class when the county was 83 vermillion? ### Response:
SELECT ihsaa_class FROM table_name_40 WHERE county = "83 vermillion"
### Instruction: What U.S. Rap has life in the concrete jungle as the album? ### Response:
SELECT us_rap FROM table_name_15 WHERE album = "life in the concrete jungle"
### Instruction: What is the airdate when the story is listed as hugh leonard? ### Response:
SELECT airdate FROM table_15739098_2 WHERE story = "Hugh Leonard"
### Instruction: which wrestler lasted the least amount of time in part two of battle royal ? ### Response:
SELECT "wrestler" FROM table_203_277 ORDER BY "time" LIMIT 1
### Instruction: How many times did bec tero sasana win? ### Response:
SELECT MAX("Winners") FROM table_17599 WHERE "Nation" = 'BEC Tero Sasana'
### Instruction: What school or team is in a round below 5 with a pick of 2? ### Response:
SELECT school_club_team FROM table_name_57 WHERE round < 5 AND pick = 2
### Instruction: For driver Mark Skaife what is the result for race 1? ### Response:
SELECT race_1 FROM table_11581984_2 WHERE driver = "Mark Skaife"
### Instruction: Show the name and phone of the customer without any mailshot. ### Response:
SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM mailshot_customers)
### Instruction: Which City has a Series of Tamra's oc wedding? ### Response:
SELECT "City" FROM table_38502 WHERE "Series" = 'tamra''s oc wedding'
### Instruction: Who was the away team at the game at Lake Oval? ### Response:
SELECT "Away team score" FROM table_33630 WHERE "Venue" = 'lake oval'
### Instruction: What was the Outcome in 1983 of the WD Event? ### Response:
SELECT outcome FROM table_name_11 WHERE event = "wd" AND year = "1983"
### Instruction: tell me the sex of patient 007-9115. ### Response:
SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '007-9115'
### Instruction: Which school players have a number of 255 ### Response:
SELECT college_junior_club_team FROM table_2781227_10 WHERE pick = 255
### Instruction: What kind of Takuu has a North Marquesan of /vehine/? ### Response:
SELECT takuu FROM table_name_83 WHERE north_marquesan = "/vehine/"
### Instruction: What is the 2013 with virgin in 2009? ### Response:
SELECT 2013 FROM table_name_5 WHERE 2009 = "virgin"
### Instruction: Which Reason is given when 1103 is the date for Became heir? ### Response:
SELECT reason FROM table_name_7 WHERE became_heir = "1103"
### Instruction: Name the result for total attendance-regular season ### Response:
SELECT "Result/Games" FROM table_24339 WHERE "Type of Record" = 'Total Attendance-Regular season'
### Instruction: What is the team for the position in table 19th? ### Response:
SELECT team FROM table_24231638_3 WHERE position_in_table = "19th"
### Instruction: Which retitled network has a Show of supermarket sweep? ### Response:
SELECT "Retitled as/Same" FROM table_50875 WHERE "Show" = 'supermarket sweep'
### Instruction: What was the result for the nomination of Best Revival of a Musical? ### Response:
SELECT "Result" FROM table_78856 WHERE "Category" = 'best revival of a musical'
### Instruction: questions closed by mods vs community. ### Response:
SELECT UserId, UserId AS "user_link", COUNT(PostId) FROM PostHistory WHERE PostHistoryTypeId = 10 GROUP BY UserId
### Instruction: Which is the LMS SPR when the car number was 15? ### Response:
SELECT "LMS SPR" FROM table_69844 WHERE "Car No." = '15'
### Instruction: how long did tigerair fly into chiang mai ? ### Response:
SELECT "ended" - "commenced" FROM table_204_49 WHERE "city" = 'chiang mai'
### Instruction: The nhl team new york islanders is what nationality? ### Response:
SELECT nationality FROM table_1013129_1 WHERE nhl_team = "New York Islanders"
### Instruction: How many districts represented Edwin E. Willis? ### Response:
SELECT COUNT("District") FROM table_18423 WHERE "Incumbent" = 'Edwin E. Willis'
### Instruction: which number was in service the least amount of time ? ### Response:
SELECT "number" FROM table_204_882 ORDER BY "withdrawn" - "entered service" LIMIT 1
### Instruction: Tell me the record for a time in seconds smaller than 5.22. ### Response:
SELECT "Record" FROM table_6816 WHERE "Time (seconds)" < '5.22'
### Instruction: which week had an attendance of 53,677? ### Response:
SELECT COUNT("Week") FROM table_5683 WHERE "Attendance" = '53,677'
### Instruction: What country are the new orleans shell shockers from? ### Response:
SELECT "Country" FROM table_30199 WHERE "Sponsored name" = 'New Orleans Shell Shockers'
### Instruction: What is the lowest election that has cinisello balsamo as the municipality? ### Response:
SELECT MIN(election) FROM table_name_4 WHERE municipality = "cinisello balsamo"
### Instruction: who was the only judge appointed by mckinley ? ### Response:
SELECT "judge" FROM table_203_563 WHERE "appointed by" = 'mckinley'