instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: tell me the birth date and death status of patient travis hofman. ### Response:
SELECT demographic.dob, demographic.expire_flag FROM demographic WHERE demographic.name = "Travis Hofman"
### Instruction: Who is the opponent of the game with 33,628 folks in attendance? ### Response:
SELECT opponent FROM table_name_27 WHERE attendance = "33,628"
### Instruction: What packages offer the Cartello Promozionale Sky HD service? ### Response:
SELECT package_option FROM table_15887683_3 WHERE television_service = "Cartello promozionale Sky HD"
### Instruction: Highest and lowest voted posts. ### Response:
SELECT 'site://questions/' + CAST(Id AS TEXT) AS "question_with_highest_score" FROM Posts ORDER BY Score DESC LIMIT 1
### Instruction: What average city has a total less than 2, with a borough greater than 0? ### Response:
SELECT AVG(city) FROM table_name_70 WHERE total < 2 AND borough > 0
### Instruction: What is the quarterfinal week for Austin Anderson? ### Response:
SELECT MIN("Qtr. Final (Week)") FROM table_29572 WHERE "Name/Name of Act" = 'Austin Anderson'
### Instruction: Who did the Blue Jays lose to when their record was 36-20? ### Response:
SELECT "Loss" FROM table_71920 WHERE "Record" = '36-20'
### Instruction: How many artists were there for the show thoroughly modern millie? ### Response:
SELECT COUNT(artist) FROM table_28140141_1 WHERE show = "Thoroughly Modern Millie"
### Instruction: Where does the judge whose court is in Groton reside? ### Response:
SELECT judges_residence FROM table_26758262_1 WHERE location_of_court = "Groton"
### Instruction: Name the network for dr steemans ann van elsen ### Response:
SELECT network FROM table_16884579_1 WHERE host_s_ = "Dré Steemans Ann Van Elsen"
### Instruction: Which country had a contestant that was 1.76 meters tall? ### Response:
SELECT "Represent" FROM table_26124 WHERE "Height (mtr.)" = '1.76'
### Instruction: how man total democrats died in office ? ### Response:
SELECT COUNT(*) FROM table_204_145 WHERE "party" = 'democratic' AND "served" = "date of death"
### Instruction: how many games were n october 1990 ? ### Response:
SELECT COUNT(*) FROM table_204_662 WHERE "date" = 10 AND "date" = 1990
### Instruction: What is the total number of Dates during which the Catalog nebbc003 was given? ### Response:
SELECT SUM(date) FROM table_name_71 WHERE catalog = "nebbc003"
### Instruction: how many films grossed over five million in their first week ? ### Response:
SELECT COUNT(DISTINCT "film") FROM table_203_180 WHERE "weekend gross (millions)" > 5
### Instruction: Who was the visiting team on November 26, 2007? ### Response:
SELECT visitor FROM table_name_65 WHERE date = "november 26, 2007"
### Instruction: When did Jos Luis S nchez Sol end his term of coaching? ### Response:
SELECT "Until" FROM table_54948 WHERE "Name" = 'josé luis sánchez solá'
### Instruction: What date was the Piston's record at 23-47? ### Response:
SELECT date FROM table_22822559_8 WHERE record = "23-47"
### Instruction: How much gold when silver, bronze and total is smaller than 1? ### Response:
SELECT MAX(gold) FROM table_name_27 WHERE silver < 1 AND bronze = 1 AND total < 1
### Instruction: Please show the results of music festivals and the number of music festivals that have had each, ordered by this count. ### Response:
SELECT result, COUNT(*) FROM music_festival GROUP BY result ORDER BY COUNT(*) DESC
### Instruction: What is the highest number of third place runners up held by any of the countries competing in the Mr. International competition?. ### Response:
SELECT MAX("3rd runner-up") FROM table_23660
### Instruction: Who had the pole position in the Canadian Grand Prix? ### Response:
SELECT pole_position FROM table_26258348_4 WHERE grand_prix = "Canadian grand_prix"
### Instruction: What is the away team that plays at Punt Road Oval? ### Response:
SELECT "Away team score" FROM table_11794 WHERE "Venue" = 'punt road oval'
### Instruction: What is the sum of Metres wiht a Feet that's smaller than 196? ### Response:
SELECT COUNT(metres) FROM table_name_51 WHERE feet < 196
### Instruction: What was the title of the episode with a production code of 2010? ### Response:
SELECT title FROM table_26429658_1 WHERE production_code = 2010
### Instruction: How many teams from the Atlantic 10 conference made it to the Elite Eight? ### Response:
SELECT elite_eight FROM table_name_47 WHERE conference = "atlantic 10"
### Instruction: For each classroom with at least 2 classes, how many classes are offered. Show the proportion. ### Response:
SELECT CLASS_ROOM, COUNT(*) FROM CLASS GROUP BY CLASS_ROOM
### Instruction: Create a bar chart showing the total number across city code, rank from high to low by the X-axis. ### Response:
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY city_code DESC
### Instruction: How many results have 14,381 as the attendance? ### Response:
SELECT COUNT("Result") FROM table_24311 WHERE "Attendance" = '14,381'
### Instruction: Which Round has an Event of nle - capital city carnage? ### Response:
SELECT "Round" FROM table_48086 WHERE "Event" = 'nle - capital city carnage'
### Instruction: Can undergrad students take 438 ? ### Response:
SELECT DISTINCT advisory_requirement, enforced_requirement, name FROM course WHERE department = 'EECS' AND number = 438
### Instruction: Howard Twitty was the runner-up of what tournament? ### Response:
SELECT "Tournament" FROM table_34306 WHERE "Runner(s)-up" = 'howard twitty'
### Instruction: Which mean number of losses had a played number that was bigger than 34? ### Response:
SELECT AVG("Losses") FROM table_53526 WHERE "Played" > '34'
### Instruction: What are the names of players who train between 500 and 1500 hours? ### Response:
SELECT pname FROM player WHERE hs BETWEEN 500 AND 1500
### Instruction: what is the number of players who weight over 200 pounds ? ### Response:
SELECT COUNT("name") FROM table_204_105 WHERE "weight (lbs.)" > 200
### Instruction: What are the titles of the episodes where Rodman Flender is the director? ### Response:
SELECT episode_title FROM table_11404452_1 WHERE director = "Rodman Flender"
### Instruction: Bar chart of department_id from each first name, and sort from low to high by the x axis. ### Response:
SELECT FIRST_NAME, DEPARTMENT_ID FROM employees ORDER BY FIRST_NAME
### Instruction: What ERP W has a 95.1 MHZ frequency? ### Response:
SELECT "ERP W" FROM table_5796 WHERE "Frequency MHz" = '95.1'
### Instruction: Name the game site for l 26 42 ### Response:
SELECT game_site FROM table_26401898_2 WHERE final_score = "L 26–42"
### Instruction: When the team had more than 46 wins, what were the average losses? ### Response:
SELECT AVG("Losses") FROM table_39853 WHERE "Wins" > '46'
### Instruction: How many releases did the DVD River Cottage forever have? ### Response:
SELECT COUNT("Released") FROM table_17193 WHERE "DVD Name" = 'River Cottage Forever'
### Instruction: What is the verb meaning of the word with part 2 'bant'? ### Response:
SELECT verb_meaning FROM table_1745843_8 WHERE part_2 = "bant"
### Instruction: Is drawing tablet support part of the semi-DDM class? ### Response:
SELECT semi_ddm_class FROM table_1153898_1 WHERE comparisons = "Drawing Tablet Support"
### Instruction: Show the name, phone, and payment method code for all customers in descending order of customer number. ### Response:
SELECT customer_name, customer_phone, payment_method_code FROM customers ORDER BY customer_number DESC
### Instruction: How many people were first elected with an incument of diane watson? ### Response:
SELECT COUNT("First elected") FROM table_22125 WHERE "Incumbent" = 'Diane Watson'
### Instruction: When 70 is the total points what is the rr4 points? ### Response:
SELECT rr4_pts FROM table_21489362_2 WHERE total_pts = 70
### Instruction: What is the rank of the player with the 39.69 average? ### Response:
SELECT rank FROM table_26041144_11 WHERE average = "39.69"
### Instruction: What is the ICAO for simferopol international airport? ### Response:
SELECT "ICAO" FROM table_41848 WHERE "Airport" = 'simferopol international airport'
### Instruction: Display a bar chart for what are the different card types, and how many cards are there of each? ### Response:
SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code
### Instruction: What was the location of the fight when Sara McMann's record was 1-0? ### Response:
SELECT "Location" FROM table_7132 WHERE "Record" = '1-0'
### Instruction: How many totals have a Gold larger than 0, and a Bronze smaller than 0? ### Response:
SELECT COUNT(total) FROM table_name_62 WHERE gold > 0 AND bronze < 0
### Instruction: What is the D 42 when the D 50 is d 31? ### Response:
SELECT d_42 FROM table_name_17 WHERE d_50 = "d 31"
### Instruction: What is the snowfall for ski resort Snowmass? ### Response:
SELECT MAX(snowfall__in_year_) FROM table_25762852_1 WHERE name = "Snowmass"
### Instruction: what is item id and lab test value of subject id 3343? ### Response:
SELECT lab.itemid, lab.value_unit FROM lab WHERE lab.subject_id = "3343"
### Instruction: WHAT IS THE AVERAGE WEEK WITH A DATE OF JULY 25? ### Response:
SELECT AVG(week) FROM table_name_5 WHERE date = "july 25"
### Instruction: What was the result in 2011 for the French Open tournament? ### Response:
SELECT "2011" FROM table_12167 WHERE "Tournament" = 'french open'
### Instruction: What's the sum of money ($) that angela park has won? ### Response:
SELECT SUM("Money ( $ )") FROM table_60450 WHERE "Player" = 'angela park'
### Instruction: How many different part 3 verbs are there that mean to freeze? ### Response:
SELECT COUNT("Part 3") FROM table_21708 WHERE "Verb meaning" = 'to freeze'
### Instruction: Which National League is in 1969-70 season? ### Response:
SELECT "National League" FROM table_55921 WHERE "Season" = '1969-70'
### Instruction: Which overall pick number went to college at Youngstown State? ### Response:
SELECT MIN(overall) FROM table_10360823_1 WHERE college = "Youngstown State"
### Instruction: What was the date of the game with a score of W 106-100? ### Response:
SELECT date FROM table_name_2 WHERE score = "w 106-100"
### Instruction: What team was in 1st plate in a year later than 1956? ### Response:
SELECT 1 AS st_place_team FROM table_name_84 WHERE year > 1956
### Instruction: Visualize a bar chart, group by name and compute each group's total number, and display X-axis in ascending order. ### Response:
SELECT Name, COUNT(Name) FROM train GROUP BY Name ORDER BY Name
### Instruction: what is the total number of laps performed by rider imre toth ? ### Response:
SELECT "laps" FROM table_204_352 WHERE "rider" = 'imre toth'
### Instruction: Name the number of candidates for samuel d. ingham ### Response:
SELECT COUNT("Candidates") FROM table_28908 WHERE "Incumbent" = 'Samuel D. Ingham'
### Instruction: What is the sum of all the crowds that watched North Melbourne at home? ### Response:
SELECT SUM("Crowd") FROM table_74725 WHERE "Home team" = 'north melbourne'
### Instruction: At 1:48.16 what was the number of track time? ### Response:
SELECT COUNT("Track") FROM table_1499 WHERE "Time" = '1:48.16'
### Instruction: Which Bronze has a Total of 4, and a Gold smaller than 1? ### Response:
SELECT MIN(bronze) FROM table_name_34 WHERE total = 4 AND gold < 1
### Instruction: who is the tallest player born in july ? ### Response:
SELECT "name" FROM table_204_490 WHERE "birthdate" = 7 ORDER BY "height" DESC LIMIT 1
### Instruction: How many in total were elected first in lost renomination? ### Response:
SELECT COUNT(first_elected) FROM table_1342338_3 WHERE result = "Lost renomination"
### Instruction: Name the average Wins which has a Top 10 smaller than 0? ### Response:
SELECT AVG("Wins") FROM table_45368 WHERE "Top 10" < '0'
### Instruction: What is the average score for 6th place with a total of 165? ### Response:
SELECT average FROM table_name_49 WHERE place = "6th" AND total = "165"
### Instruction: What days held has 1 as the reign with eden black as the wrestlers? ### Response:
SELECT days_held FROM table_name_2 WHERE reign = "1" AND wrestlers = "eden black"
### Instruction: What was the last year someone was elected to the 14th district? ### Response:
SELECT MAX(elected) FROM table_13618584_2 WHERE district = "14th"
### Instruction: What is Actor, when Number Of Episodes is '117 Episodes'? ### Response:
SELECT actor FROM table_name_88 WHERE number_of_episodes = "117 episodes"
### Instruction: What was the share for the first episode that ranked 85? ### Response:
SELECT MIN(share) FROM table_11274401_2 WHERE rank___number_ = "85"
### Instruction: What are the distinct reigns of wrestlers whose location is not 'Tokyo,Japan' ? ### Response:
SELECT DISTINCT Reign FROM wrestler WHERE LOCATION <> "Tokyo , Japan"
### Instruction: Which gatchaman has eagle riders as lukan? ### Response:
SELECT gatchaman FROM table_17480471_3 WHERE eagle_riders = "Lukan"
### Instruction: What is the tie when team 2 is koper? ### Response:
SELECT MIN(tie_no) FROM table_19294812_2 WHERE team_2 = "Koper"
### Instruction: What was the result of the game on January 5, 1926? ### Response:
SELECT result FROM table_name_79 WHERE date = "january 5, 1926"
### Instruction: The theme Auditioner's Choice has what song choice? ### Response:
SELECT "Song choice" FROM table_73927 WHERE "Theme" = 'Auditioner''s Choice'
### Instruction: How many States have an Indian population of 30947? ### Response:
SELECT COUNT("Filipino") FROM table_15934 WHERE "Indian" = '30947'
### Instruction: How many games did janae stokes play? ### Response:
SELECT MAX(games_played) FROM table_23346303_4 WHERE player = "Janae Stokes"
### Instruction: What's the total amount of Bulgaria that has more than 13 bronze? ### Response:
SELECT SUM(total) FROM table_name_2 WHERE nation = "bulgaria" AND bronze > 13
### Instruction: For the game showing a final record of 0-5, what was the attendance level? ### Response:
SELECT "Attendance" FROM table_49721 WHERE "Record" = '0-5'
### Instruction: What were the average partial failures when the rocket was Ariane 5? ### Response:
SELECT AVG(partial_failures) FROM table_name_87 WHERE rocket = "ariane 5"
### Instruction: Where is the Cagayan de Oro city located? ### Response:
SELECT "Province/Region" FROM table_69569 WHERE "Location" = 'cagayan de oro city'
### Instruction: Name the number of season for beluga shipping ### Response:
SELECT COUNT(no_in_season) FROM table_26168687_5 WHERE vessel_operator = "Beluga Shipping"
### Instruction: What is the hometown of the players for placer, california ### Response:
SELECT "School" FROM table_17094 WHERE "Hometown" = 'Placer, California'
### Instruction: What game score was there for the team with a record of 84-56? ### Response:
SELECT "Score" FROM table_71049 WHERE "Record" = '84-56'
### Instruction: Who was the artist who worked on the stories published in 1966? ### Response:
SELECT "Artist" FROM table_2977 WHERE "Date of Publication" = '1966'
### Instruction: Which design has a serial format of AB-12-34? ### Response:
SELECT "Design" FROM table_47895 WHERE "Serial format" = 'ab-12-34'
### Instruction: How many attended during the game with a score of 80-94? ### Response:
SELECT SUM("Attendance") FROM table_49716 WHERE "Score" = '80-94'
### Instruction: When autodromo nazionale monza is the circuit what is the report? ### Response:
SELECT "Report" FROM table_24198 WHERE "Circuit" = 'Autodromo Nazionale Monza'
### Instruction: Name the unemployment rate for 34024 ### Response:
SELECT COUNT("Unemployment Rate") FROM table_25330 WHERE "Population" = '34024'
### Instruction: What is the frequency of the dates (bin into year interval) that had the top 5 cloud cover rates? You can draw me a bar chart for this purpose. ### Response:
SELECT date, COUNT(date) FROM weather
### Instruction: Who is the crew chief, of driver Matt kurzejewski? ### Response:
SELECT "Crew Chief" FROM table_68023 WHERE "Driver(s)" = 'matt kurzejewski'
### Instruction: When was the coin with the mass of 3.7 g first minted? ### Response:
SELECT "first minting" FROM table_17976 WHERE "Mass" = '3.7 g'
### Instruction: For a team having goals for more than 95, what is the lowest position? ### Response:
SELECT MIN("Position") FROM table_46667 WHERE "Goals For" > '95'
### Instruction: how many different species were released in 1971 ? ### Response:
SELECT COUNT(DISTINCT "species") FROM table_204_869 WHERE "first release" = 1971