instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: Which Position player was born June 30, 1981? ### Response:
SELECT position FROM table_name_90 WHERE birthdate = "june 30, 1981"
### Instruction: Name the school/club team for jawann oldham ### Response:
SELECT school_club_team FROM table_15621965_14 WHERE player = "Jawann Oldham"
### Instruction: What is the result of choreographer bj rn holthe? ### Response:
SELECT result FROM table_name_60 WHERE choreographer_s_ = "bjørn holthe"
### Instruction: What is the Director of Children of Sarajevo? ### Response:
SELECT "Director" FROM table_42394 WHERE "Film title used in nomination" = 'children of sarajevo'
### Instruction: What team was the away team when the home team was Grimsby Town? ### Response:
SELECT "Away team" FROM table_48960 WHERE "Home team" = 'grimsby town'
### Instruction: Show the booking status code and the corresponding number of bookings in a bar chart. ### Response:
SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code
### Instruction: which type of hospitals are the same as grossmont hospital ? ### Response:
SELECT "type of hospital" FROM table_203_216 WHERE "hospital" = 'grossmont hospital'
### Instruction: What grid has 78 laps, and Ronnie Bremer as driver? ### Response:
SELECT grid FROM table_name_54 WHERE laps = 78 AND driver = "ronnie bremer"
### Instruction: Which home teams had crowds larger than 4,000? ### Response:
SELECT "Home team" FROM table_56144 WHERE "Crowd" > '4,000'
### Instruction: What is the score for Set 2 at 15:21? ### Response:
SELECT "Score" FROM table_12315 WHERE "Set 2" = '15:21'
### Instruction: For all games with calgary as home, what is the average number of attendees? ### Response:
SELECT AVG(attendance) FROM table_name_1 WHERE home = "calgary"
### Instruction: when did the club Citizen achieve its last top division title? ### Response:
SELECT last_top_division_title FROM table_1908877_2 WHERE club = "Citizen"
### Instruction: in what year did babin have the highest amount of fumble recoveries ### Response:
SELECT "year" FROM table_203_258 ORDER BY "fumble recoveries" DESC LIMIT 1
### Instruction: WHAT IS THE AWAY TEAM WITH HOME OF LEICESTER CITY? ### Response:
SELECT away_team FROM table_name_33 WHERE home_team = "leicester city"
### Instruction: Name the most enrollment when nickname is hawks ### Response:
SELECT MAX(enrollment) FROM table_16734640_1 WHERE nickname = "Hawks"
### Instruction: how many patients are born before 2053? ### Response:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.dob_year < "2053"
### Instruction: How many players with a position are listed for the 2009 season? ### Response:
SELECT COUNT("Position") FROM table_20095 WHERE "Season" = '2009'
### Instruction: What is the League Cup for 1947 1958? ### Response:
SELECT league_cup FROM table_name_40 WHERE years = "1947–1958"
### Instruction: what's the party with incumbent being william e. evans ### Response:
SELECT party FROM table_1342359_5 WHERE incumbent = "William E. Evans"
### Instruction: When the home team was geelong, what did the away team score? ### Response:
SELECT "Away team score" FROM table_54941 WHERE "Home team" = 'geelong'
### Instruction: Bar graph to show the total number from different nationality, I want to show by the X-axis from low to high. ### Response:
SELECT Nationality, COUNT(*) FROM pilot GROUP BY Nationality ORDER BY Nationality
### Instruction: What was the winning score with a margin victory of 2 strokes? ### Response:
SELECT "Winning score" FROM table_43395 WHERE "Margin of victory" = '2 strokes'
### Instruction: What is the average of laps ridden by Toni Elias? ### Response:
SELECT AVG("Laps") FROM table_49459 WHERE "Rider" = 'toni elias'
### Instruction: What is Score, when Opponent is Natalia Rizhonkova? ### Response:
SELECT score FROM table_name_62 WHERE opponent = "natalia rizhonkova"
### Instruction: which two buildings were listed before 1974 ? ### Response:
SELECT "name" FROM table_204_872 WHERE "year of listing & ref(s)" < 1974
### Instruction: Which clubs have players with height 2.14m? ### Response:
SELECT current_club FROM table_23670057_5 WHERE height__m_ = "2.14"
### Instruction: what were the number of wins in the month of october ? ### Response:
SELECT COUNT(*) FROM table_203_382 WHERE "result" = 'w' AND "date" = 10
### Instruction: What is the party where the incumbent is overton brooks? ### Response:
SELECT "Party" FROM table_18534 WHERE "Incumbent" = 'Overton Brooks'
### Instruction: How fast is the coaster that is 163 feet tall ### Response:
SELECT speed__mph_ FROM table_2665085_1 WHERE height__ft_ = 163
### Instruction: When Kubb is in 9th, who is in 10th? ### Response:
SELECT tenth FROM table_17111812_1 WHERE ninth = "Kubb"
### Instruction: Who was the opponent with a 32-25 record? ### Response:
SELECT "Opponent" FROM table_63633 WHERE "Record" = '32-25'
### Instruction: Who is the player in the 2008 draft with a pick greater than 5? ### Response:
SELECT player FROM table_name_26 WHERE draft = 2008 AND pick > 5
### Instruction: tell me the total number of decile with a roll showing 251. ### Response:
SELECT COUNT("Decile") FROM table_68265 WHERE "Roll" = '251'
### Instruction: Who was the champion in the match where C.A. Palmer was the runner-up? ### Response:
SELECT champion FROM table_name_80 WHERE runner_up = "c.a. palmer"
### Instruction: What week has a result of L 17-31 first? ### Response:
SELECT MAX("Week") FROM table_62727 WHERE "Result" = 'l 17-31'
### Instruction: Which player was active in Jazz in 1975-79? ### Response:
SELECT player FROM table_name_36 WHERE years_for_jazz = "1975-79"
### Instruction: For what tournament was Bla Kav i the opponent in the final? ### Response:
SELECT tournament FROM table_name_16 WHERE opponent_in_the_final = "blaž kavčič"
### Instruction: What is every name for longitude of 152.0E? ### Response:
SELECT name FROM table_16799784_12 WHERE longitude = "152.0E"
### Instruction: Name the total number of episodes written by david cantor ### Response:
SELECT COUNT(episode) FROM table_17641206_6 WHERE written_by = "David Cantor"
### Instruction: What is the nature of the incident that's a bomb attack? ### Response:
SELECT "Nature of incident" FROM table_68827 WHERE "Circumstances" = 'bomb attack'
### Instruction: What is every year named for the latitude of 66.5N? ### Response:
SELECT "Year named" FROM table_21082 WHERE "Latitude" = '66.5N'
### Instruction: Which Number has a Proto-Polynesian of *taha? ### Response:
SELECT "Number" FROM table_41801 WHERE "Proto-Polynesian" = '*taha'
### Instruction: What is the make of the car that won the brazilian grand prix? ### Response:
SELECT "Constructor" FROM table_16690 WHERE "Grand Prix" = 'Brazilian Grand Prix'
### Instruction: Name the attendance for 4 january 2004 ### Response:
SELECT "Attendance" FROM table_67944 WHERE "Date" = '4 january 2004'
### Instruction: Who lost when the mariners played on September 12? ### Response:
SELECT loss FROM table_name_37 WHERE opponent = "mariners" AND date = "september 12"
### Instruction: Which 2nd leg has a 1st leg of 2 0? ### Response:
SELECT "2nd leg" FROM table_8158 WHERE "1st leg" = '2–0'
### Instruction: What's the part 3 of the verb with part 4 gelopen? ### Response:
SELECT part_3 FROM table_1745843_7 WHERE part_4 = "gelopen"
### Instruction: Which church had a Split off/Continuation in 1836? ### Response:
SELECT split_off___continuation_of FROM table_name_40 WHERE date = "1836"
### Instruction: what's the others% with parbeingh being tangipahoa ### Response:
SELECT "Others%" FROM table_18860 WHERE "Parish" = 'Tangipahoa'
### Instruction: What is the minimum number of members Africa had in 2001? ### Response:
SELECT MIN("Africa") FROM table_22854 WHERE "Year" = '2001'
### Instruction: Avid users under 18 years old.. ### Response:
SELECT Id, DisplayName, Views AS Age, Reputation FROM Users WHERE Age < 18 AND Reputation >= 200 ORDER BY Age
### Instruction: What event did Rastislav Turecek participate in? ### Response:
SELECT "Event" FROM table_66509 WHERE "Name" = 'rastislav turecek'
### Instruction: In what year did Rafa Kurma ski come in 2nd place? ### Response:
SELECT "Year" FROM table_70988 WHERE "2nd place" = 'rafał kurmański'
### Instruction: If the opponent was the Philadelphia flyers, what was the record? ### Response:
SELECT record FROM table_27537870_6 WHERE opponent = "Philadelphia Flyers"
### Instruction: Name the macedonian for il/elle avait entendu ### Response:
SELECT "Macedonian" FROM table_22305 WHERE "French" = 'il/elle avait entendu'
### Instruction: What rowers have a 6:29.56 time? ### Response:
SELECT "Rowers" FROM table_62947 WHERE "Time" = '6:29.56'
### Instruction: What is Shot Pct., when Stolen Ends is 2? ### Response:
SELECT "Shot Pct." FROM table_49861 WHERE "Stolen Ends" = '2'
### Instruction: What game was located at the Los Angeles Memorial Sports Arena? ### Response:
SELECT "Game" FROM table_66088 WHERE "Location/Attendance" = 'los angeles memorial sports arena'
### Instruction: Show weight from each date of birth, and I want to order X-axis from low to high order. ### Response:
SELECT Date_of_Birth, Weight FROM people ORDER BY Date_of_Birth
### Instruction: What was the Record during the game with a Score of 113 103? ### Response:
SELECT record FROM table_name_16 WHERE score = "113–103"
### Instruction: Who wrote the episode 'victor/victorious'? ### Response:
SELECT "Written by" FROM table_27831 WHERE "Title" = 'Victor/Victorious'
### Instruction: What is the Russian name with lbr as the Latin 3-letter code? ### Response:
SELECT russian_name FROM table_name_86 WHERE latin_3_letter_code = "lbr"
### Instruction: Tell me the Laps for time/retired of +8 laps ### Response:
SELECT "Laps" FROM table_10280 WHERE "Time/retired" = '+8 laps'
### Instruction: what is the name of the episode whose writer is philippe browning? ### Response:
SELECT title FROM table_2791668_1 WHERE written_by = "Philippe Browning"
### Instruction: What's the year when 1851 had 634? ### Response:
SELECT "Year" FROM table_13560 WHERE "1851" = '634'
### Instruction: Who has position in year 1996-97 in Toronto? ### Response:
SELECT position FROM table_name_88 WHERE years_in_toronto = "1996-97"
### Instruction: Who was the winner at spa-francorchamps? ### Response:
SELECT "Race Winner" FROM table_54255 WHERE "Location" = 'spa-francorchamps'
### Instruction: At the match in windy hill, how much did the home team score? ### Response:
SELECT "Home team score" FROM table_10972 WHERE "Venue" = 'windy hill'
### Instruction: Count the number of captains that have each rank Visualize by bar chart, and order by the y-axis in ascending please. ### Response:
SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY COUNT(*)
### Instruction: tell me the short title of procedure for procedure icd9 code 9744. ### Response:
SELECT procedures.short_title FROM procedures WHERE procedures.icd9_code = "9744"
### Instruction: Name the english gloss for nah i ### Response:
SELECT english_gloss FROM table_1499791_2 WHERE southern_lakota = "naháŋȟčiŋ"
### Instruction: What season did the Sake Tuyas come in 1st place? ### Response:
SELECT season FROM table_29619494_2 WHERE sake_tuyas = "1st"
### Instruction: What was the date of appointment for the manager that replaced Simon Davies? ### Response:
SELECT "Date of appointment" FROM table_22615 WHERE "Outgoing manager" = 'Simon Davies'
### Instruction: What was the result when the guest was fc z rich (asl)? ### Response:
SELECT "Result" FROM table_8505 WHERE "Guest" = 'fc zürich (asl)'
### Instruction: In what Round was the Memphis Player drafted? ### Response:
SELECT AVG("Round") FROM table_44817 WHERE "School/Club Team" = 'memphis'
### Instruction: In what race did Buddy Rice hav fastest lap? ### Response:
SELECT "Race Name" FROM table_26922 WHERE "Fastest lap" = 'Buddy Rice'
### Instruction: What is the label for catalog number CRG3P-90054? ### Response:
SELECT label FROM table_name_96 WHERE catalog = "crg3p-90054"
### Instruction: How many outcomes were there in the elections in California 38? ### Response:
SELECT COUNT("Result") FROM table_18331 WHERE "District" = 'California 38'
### Instruction: Name the pictorials for terrel owens ### Response:
SELECT "Pictorials" FROM table_20246 WHERE "20 Questions" = 'Terrel Owens'
### Instruction: When the USA's captain was Beth Daniel, who was the winning team? ### Response:
SELECT "Winning team" FROM table_42428 WHERE "USA Captain" = 'beth daniel'
### Instruction: What is the release date with par116 as the cat. #? ### Response:
SELECT "Release date" FROM table_48667 WHERE "Cat. #" = 'par116'
### Instruction: What is the original air date for the episode directed by kevin dowling? ### Response:
SELECT "Original air date" FROM table_28259 WHERE "Director" = 'Kevin Dowling'
### Instruction: What country did mario lemieux play for in 1994? ### Response:
SELECT country FROM table_name_17 WHERE player = "mario lemieux" AND year = 1994
### Instruction: Who wrote the episode for s02 e07? ### Response:
SELECT written_by FROM table_16384596_4 WHERE broadcast_order = "S02 E07"
### Instruction: What number episode was Week 4, Part 2? ### Response:
SELECT episode_number FROM table_25391981_20 WHERE episode = "Week 4, Part 2"
### Instruction: What surface was the match on November 6, 1982 played on? ### Response:
SELECT surface FROM table_name_82 WHERE date = "november 6, 1982"
### Instruction: What is number of the train that originated in Secunderabad Junction? ### Response:
SELECT "Train No." FROM table_51959 WHERE "Origin" = 'secunderabad junction'
### Instruction: What was the attendance when Footscray played as the away team? ### Response:
SELECT COUNT("Crowd") FROM table_52022 WHERE "Away team" = 'footscray'
### Instruction: Show different publishers together with the number of publications they have in a bar chart, show total number from low to high order. ### Response:
SELECT Publisher, COUNT(*) FROM publication GROUP BY Publisher ORDER BY COUNT(*)
### Instruction: What is the name of the manager of the Atl tico Baleares? ### Response:
SELECT "Manager" FROM table_64956 WHERE "Current Club" = 'atlético baleares'
### Instruction: when was lawrence academy at groton established? ### Response:
SELECT MIN(founded) FROM table_2439728_1 WHERE school = "Lawrence Academy at Groton"
### Instruction: Name the least season for round of 32 ### Response:
SELECT MIN("Season") FROM table_3092 WHERE "U.S. Open Cup" = 'Round of 32'
### Instruction: Which team 1 played against team 2 of Tours FC (D2)? ### Response:
SELECT team_1 FROM table_name_21 WHERE team_2 = "tours fc (d2)"
### Instruction: How many times was Jillian Grace the centerfold model? ### Response:
SELECT COUNT(date) FROM table_1566852_6 WHERE centerfold_model = "Jillian Grace"
### Instruction: How many engine b5234 t3? ### Response:
SELECT COUNT(model) FROM table_1147705_1 WHERE engine_type = "B5234 T3"
### Instruction: If the new points were 5760, what is the RK? ### Response:
SELECT "Rk" FROM table_28434 WHERE "New points" = '5760'
### Instruction: How many poles has a percentage of 22.08%? ### Response:
SELECT SUM("Poles") FROM table_4952 WHERE "Percentage" = '22.08%'
### Instruction: Which Malaysia Satellite tournaments were played after 1998? ### Response:
SELECT outcome FROM table_name_52 WHERE year > 1998 AND tournament = "malaysia satellite"
### Instruction: how many mills were mentioned or built before 1700 ? ### Response:
SELECT COUNT(*) FROM table_204_929 WHERE "first mention\nor built" < 1700
### Instruction: Name the height in ft for the player from wyoming ### Response:
SELECT "Height in Ft." FROM table_56340 WHERE "School/Club Team/Country" = 'wyoming'