answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT high_rebounds FROM table_17355408_9 WHERE team = "Sacramento"
Who had the high rebounds when the team played Sacramento?
CREATE TABLE table_17355408_9 (high_rebounds VARCHAR, team VARCHAR)
SELECT high_points FROM table_17118657_10 WHERE score = "62-70"
If the score is 62-70, what are the high points?
CREATE TABLE table_17118657_10 ( high_points VARCHAR, score VARCHAR )
SELECT MIN(grid) FROM table_name_92 WHERE driver = "juan pablo montoya"
What is the smallest grid for driver of juan pablo montoya?
CREATE TABLE table_name_92 (grid INTEGER, driver VARCHAR)
SELECT high_points FROM table_17355408_9 WHERE date = "April 8"
Who had the high points on April 8?
CREATE TABLE table_17355408_9 (high_points VARCHAR, date VARCHAR)
SELECT "semi-final points" FROM table_203_439 WHERE "pos." = 12
what is hisor her total semifinal points to qualify for the 12th position ?
CREATE TABLE table_203_439 ( id number, "pos." number, "rider" text, "semi-final points" number, "final points" number, "final heats" text, "total points" number )
SELECT driver FROM table_name_35 WHERE time_retired = "+1 lap" AND constructor = "bar - honda"
What driver has a ime/Retired of +1 lap, and a Constructor of bar - honda?
CREATE TABLE table_name_35 (driver VARCHAR, time_retired VARCHAR, constructor VARCHAR)
SELECT high_assists FROM table_17355408_9 WHERE game = 80
Who had the high assists in game 80?
CREATE TABLE table_17355408_9 (high_assists VARCHAR, game VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "72" AND prescriptions.drug = "Sodium CITRATE 4%"
how many patients whose age is less than 72 and drug name is sodium citrate 4%?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT chinese_title FROM table_name_91 WHERE premiere = 31
What is the Chinese title with a premiere rating of 31?
CREATE TABLE table_name_91 (chinese_title VARCHAR, premiere VARCHAR)
SELECT high_points FROM table_17355408_5 WHERE date = "December 29"
Name the highh points for december 29
CREATE TABLE table_17355408_5 (high_points VARCHAR, date VARCHAR)
SELECT COUNT(*) FROM table_204_360 WHERE "host" = "gold"
how many countries took home the gold the same year they hosted fiba ?
CREATE TABLE table_204_360 ( id number, "year" number, "host" text, "gold" text, "silver" text, "bronze" text )
SELECT SUM(premiere) FROM table_name_59 WHERE chinese_title = "ι‡Žθ »ε₯Άε₯Άε€§ζˆ°ζˆˆεΈ«ε₯Ά" AND peak < 41
What is the premiere rating for a Chinese title of ι‡Žθ »ε₯Άε₯Άε€§ζˆ°ζˆˆεΈ«ε₯Ά, and a Peak smaller than 41?
CREATE TABLE table_name_59 (premiere INTEGER, chinese_title VARCHAR, peak VARCHAR)
SELECT high_assists FROM table_17355408_5 WHERE game = 29
Name the high assists for 29 game
CREATE TABLE table_17355408_5 (high_assists VARCHAR, game VARCHAR)
SELECT school FROM table_name_68 WHERE college = "duke"
Which school is the player who is headed to Duke from?
CREATE TABLE table_name_68 ( school VARCHAR, college VARCHAR )
SELECT MIN(premiere) FROM table_name_7 WHERE average = 35 AND rank > 1
What is the premiere rating associated with an average of 35 ranked above 1?
CREATE TABLE table_name_7 (premiere INTEGER, average VARCHAR, rank VARCHAR)
SELECT high_points FROM table_17355408_5 WHERE location_attendance = "Pepsi Center 18,611"
Name the high points for pepsi center 18,611
CREATE TABLE table_17355408_5 (high_points VARCHAR, location_attendance VARCHAR)
SELECT "Nationality" FROM table_15865 WHERE "School/Club Team" = 'Georgetown'
Which country is the player that went to Georgetown from?
CREATE TABLE table_15865 ( "Player" text, "No." real, "Nationality" text, "Position" text, "Years in Toronto" text, "School/Club Team" text )
SELECT date FROM table_name_21 WHERE venue = "arden street oval"
When was there a game at Arden Street Oval?
CREATE TABLE table_name_21 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_17355408_4 WHERE team = "Chicago"
Name the date for chicago
CREATE TABLE table_17355408_4 (date VARCHAR, team VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_exams = 'N' AND course.has_projects = 'Y' AND program_course.category LIKE 'ULCS'
Which upper level classes use projects rather than exams for evaluation ?
CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE program ( program_id int, name varchar, college varchar...
SELECT crowd FROM table_name_28 WHERE away_team = "richmond"
How big was the crowd when Richmond was the away team?
CREATE TABLE table_name_28 (crowd VARCHAR, away_team VARCHAR)
SELECT record FROM table_17355408_4 WHERE team = "New Orleans"
Name the record for new orleans
CREATE TABLE table_17355408_4 (record VARCHAR, team VARCHAR)
SELECT "Winning score" FROM table_66972 WHERE "Tournament" = 'mazda senior tournament players championship'
What was the winning score in the mazda senior tournament players championship?
CREATE TABLE table_66972 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text )
SELECT away_team FROM table_name_89 WHERE venue = "arden street oval"
Which away team plays at Arden Street Oval?
CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR)
SELECT high_assists FROM table_17355408_4 WHERE high_points = "Chauncey Billups , Carmelo Anthony (18)"
Name the high assists for chauncey billups , carmelo anthony (18)
CREATE TABLE table_17355408_4 (high_assists VARCHAR, high_points VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.label = "MCV"
how many patients whose gender is f and lab test name is mcv?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
SELECT COUNT(crowd) FROM table_name_48 WHERE home_team = "essendon"
How many fans were at Essendon?
CREATE TABLE table_name_48 (crowd VARCHAR, home_team VARCHAR)
SELECT score FROM table_17355408_7 WHERE team = "@ Orlando"
What was the final score for @ Orlando?
CREATE TABLE table_17355408_7 (score VARCHAR, team VARCHAR)
SELECT grand_rapids__grr_ FROM table_1637981_7 WHERE saginaw__mbs_ = "$470.47"
When Saginaw's fare is $470.47, what was the fare to Grand Rapids?
CREATE TABLE table_1637981_7 ( grand_rapids__grr_ VARCHAR, saginaw__mbs_ VARCHAR )
SELECT athlete FROM table_name_53 WHERE date = "11 july 2003"
On 11 July 2003, which athlete performed?
CREATE TABLE table_name_53 (athlete VARCHAR, date VARCHAR)
SELECT date FROM table_17355408_7 WHERE high_assists = "Chauncey Billups (6)"
Chauncey Billups (6) had a high assist on what date?
CREATE TABLE table_17355408_7 (date VARCHAR, high_assists VARCHAR)
SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-25408')) AND STRFTIME('%y', treatment.treatmenttime) >= '2105...
when last patient 021-25408 had a procedure since 2105?
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREA...
SELECT away_team FROM table_name_27 WHERE home_team = "luton town"
What was the away team that played luton town?
CREATE TABLE table_name_27 (away_team VARCHAR, home_team VARCHAR)
SELECT high_points FROM table_17355408_7 WHERE team = "@ Chicago"
@ Chicago had a high points of what?
CREATE TABLE table_17355408_7 (high_points VARCHAR, team VARCHAR)
SELECT line_name FROM table_name_7 WHERE nimt_junction = "huntly"
What line has Junction of Huntly NIMT
CREATE TABLE table_name_7 ( line_name VARCHAR, nimt_junction VARCHAR )
SELECT d_45_√ FROM table_name_62 WHERE d_41_√ = "r 20"
Name the D 45 √ when it has D 41√ of r 20
CREATE TABLE table_name_62 (d_45_√ VARCHAR, d_41_√ VARCHAR)
SELECT record FROM table_17355408_7 WHERE high_assists = "Carmelo Anthony (11)"
High assists belonging to Carmelo Anthony (11) have a record of what?
CREATE TABLE table_17355408_7 (record VARCHAR, high_assists VARCHAR)
SELECT demographic.diagnosis, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Betty Campbell"
mention the primary disease and diagnosis short title of the subject name betty campbell.
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( ...
SELECT d_41_√ FROM table_name_35 WHERE d_43_√ = "r 18"
Name the D 41 √ when it has D 43 √ of r 18
CREATE TABLE table_name_35 (d_41_√ VARCHAR, d_43_√ VARCHAR)
SELECT high_assists FROM table_17355628_10 WHERE date = "April 8"
Name the high assists for april 8
CREATE TABLE table_17355628_10 (high_assists VARCHAR, date VARCHAR)
SELECT player FROM table_name_90 WHERE previous_team__league_ = "medicine hat tigers ( whl )" AND year < 2002
What is Player, when Previous Team (League) is 'Medicine Hat Tigers ( WHL )', and when Year is less than 2002?
CREATE TABLE table_name_90 ( player VARCHAR, previous_team__league_ VARCHAR, year VARCHAR )
SELECT d_49_√ FROM table_name_24 WHERE d_46_√ = "i 1 @"
Name the D 49 √ for when D 46 √ of i 1 @
CREATE TABLE table_name_24 (d_49_√ VARCHAR, d_46_√ VARCHAR)
SELECT score FROM table_17355628_10 WHERE team = "Charlotte"
Name the score for charlotte
CREATE TABLE table_17355628_10 (score VARCHAR, team VARCHAR)
SELECT at_austin FROM table_name_21 WHERE texas_vs = "kansas state"
What is the Austin record of Kansas State?
CREATE TABLE table_name_21 ( at_austin VARCHAR, texas_vs VARCHAR )
SELECT d_43_√ FROM table_name_89 WHERE d_46_√ = "d 26"
Name the D 43 √ when it has D 46 √ of d 26
CREATE TABLE table_name_89 (d_43_√ VARCHAR, d_46_√ VARCHAR)
SELECT location_attendance FROM table_17355628_10 WHERE high_assists = "Chucky Atkins , Russell Westbrook (4)"
Name the location attendance for chucky atkins , russell westbrook (4)
CREATE TABLE table_17355628_10 (location_attendance VARCHAR, high_assists VARCHAR)
SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1
What is the date of the performance with the highest number of attendees?
CREATE TABLE performance ( Date VARCHAR, Attendance VARCHAR )
SELECT d_44_√ FROM table_name_93 WHERE d_41_√ = "r 41 +"
Name the D 44 √ for when it has D 41 √ of r 41 +
CREATE TABLE table_name_93 (d_44_√ VARCHAR, d_41_√ VARCHAR)
SELECT MAX(series__number) FROM table_17355579_1 WHERE directed_by = "Richard Thorpe" AND written_by = "Dee Johnson"
Name the series number directed by richard thorpe written by dee johnson
CREATE TABLE table_17355579_1 (series__number INTEGER, directed_by VARCHAR, written_by VARCHAR)
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT inputevents_cv.itemid FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31854)) AND DATETIME(inputevents_cv....
what did patient 31854 last have as an intake today?
CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, ...
SELECT d_42_√ FROM table_name_58 WHERE d_49_√ = "r 12"
Name the D 42 √ for when it has D 49 √ of r 12
CREATE TABLE table_name_58 (d_42_√ VARCHAR, d_49_√ VARCHAR)
SELECT team FROM table_17355716_5 WHERE date = "November 17"
Name the team where the date is november 17
CREATE TABLE table_17355716_5 (team VARCHAR, date VARCHAR)
SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 55247) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'glucose') AND DATETIME(labevents.charttime) <= DATETIME(CURRENT_TIME(), '-62 mon...
tell me the first glucose in patient 55247 until 62 months ago?
CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE ...
SELECT goals FROM table_name_5 WHERE score = "26-28"
What were the goals in the game with the 26-28 final score?
CREATE TABLE table_name_5 (goals VARCHAR, score VARCHAR)
SELECT team FROM table_17355716_5 WHERE date = "November 5"
Name the team for november 5
CREATE TABLE table_17355716_5 (team VARCHAR, date VARCHAR)
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 314 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016
Can I take the 314 course next term ?
CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, g...
SELECT score FROM table_name_60 WHERE date = "19/3/00"
What was the score of the game on 19/3/00?
CREATE TABLE table_name_60 (score VARCHAR, date VARCHAR)
SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = "Laura Innes" AND season__number < 7.0
What is the maximum series number what is smaller than season 7.0 and directed by Laura Innes?
CREATE TABLE table_17356106_1 (series__number INTEGER, directed_by VARCHAR, season__number VARCHAR)
SELECT * FROM Users WHERE Location LIKE '%##location##%' ORDER BY CreationDate
List of Users in a given location. This query lists all users in a given location sorted by reputation.
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId n...
SELECT competition FROM table_name_47 WHERE date = "17/9/00"
Which competition was on 17/9/00?
CREATE TABLE table_name_47 (competition VARCHAR, date VARCHAR)
SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = "Arthur Albert"
If Arthur Albert is the director, what is the maximum series number?
CREATE TABLE table_17356106_1 (series__number INTEGER, directed_by VARCHAR)
SELECT Comptroller, COUNT(Comptroller) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2 GROUP BY Comptroller ORDER BY COUNT(Comptroller)
Find the parties associated with the delegates from district 1 or 2 Who served as comptrollers of the parties, and count them by a bar chart, and rank the number of comptroller from low to high order.
CREATE TABLE party ( Party_ID int, Year real, Party text, Governor text, Lieutenant_Governor text, Comptroller text, Attorney_General text, US_Senate text ) CREATE TABLE county ( County_Id int, County_name text, Population real, Zip_code text ) CREATE TABLE election ( ...
SELECT competition FROM table_name_64 WHERE score = "58-4"
Which competition ended with a score of 58-4?
CREATE TABLE table_name_64 (competition VARCHAR, score VARCHAR)
SELECT COUNT(season__number) FROM table_17356106_1 WHERE directed_by = "Joanna Kerns"
What was the number of seasons that was directed by Joanna Kerns?
CREATE TABLE table_17356106_1 (season__number VARCHAR, directed_by VARCHAR)
SELECT COUNT("#") FROM table_16580 WHERE "Episode" = 'Conference Call'
How many times was the episode named 'conference call'?
CREATE TABLE table_16580 ( "#" real, "Episode" text, "Rating" text, "Share" real, "Rating/Share (18-49)" text, "Viewers (millions)" text, "Rank (timeslot)" real, "Rank (night)" real, "Rank (week)" text )
SELECT venue FROM table_name_92 WHERE score = "30-20"
Where was the game that had a final score of 30-20?
CREATE TABLE table_name_92 (venue VARCHAR, score VARCHAR)
SELECT original_air_date FROM table_17356106_1 WHERE series__number = 256
For series number 256, what was the original air date?
CREATE TABLE table_17356106_1 (original_air_date VARCHAR, series__number VARCHAR)
SELECT Users.DisplayName, Users.Reputation, Users.Location, Badges.Name FROM Users INNER JOIN Badges ON Users.Id = Badges.UserId WHERE Users.Reputation = (SELECT MAX(Reputation) FROM Users WHERE Location = 'South Africa' AND Badges.Name = 'Enlightened' AND YEAR(Badges.Date) = 2016)
Users created each year.
CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostLinks ( Id...
SELECT date FROM table_name_72 WHERE venue = "the boulevard" AND score = "8-8"
When was the game at the boulevard that ended with an 8-8 score?
CREATE TABLE table_name_72 (date VARCHAR, venue VARCHAR, score VARCHAR)
SELECT season__number FROM table_17356205_1 WHERE directed_by = "Skipp Sudduth"
What season episode is directed by Skipp Sudduth?
CREATE TABLE table_17356205_1 (season__number VARCHAR, directed_by VARCHAR)
SELECT "nation" FROM table_204_703 WHERE "nation" <> 'russia' AND "bronze" = (SELECT "bronze" FROM table_204_703 WHERE "nation" = 'russia')
name the country that had the same number of bronze medals as russia .
CREATE TABLE table_204_703 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT report FROM table_name_82 WHERE date = "6 may"
Name the report for 6 may
CREATE TABLE table_name_82 (report VARCHAR, date VARCHAR)
SELECT COUNT(title) FROM table_17356205_1 WHERE directed_by = "Joanna Kerns"
How many titles are given for the episode directed by Joanna Kerns?
CREATE TABLE table_17356205_1 (title VARCHAR, directed_by VARCHAR)
SELECT "# of employees" FROM table_203_737 WHERE "employer" = 'mundelein high school'
how many employees does mundelein high school have ?
CREATE TABLE table_203_737 ( id number, "#" number, "employer" text, "# of employees" number )
SELECT report FROM table_name_51 WHERE winning_driver = "louis wagner"
Tell me the report with winner of louis wagner
CREATE TABLE table_name_51 (report VARCHAR, winning_driver VARCHAR)
SELECT original_air_date FROM table_17356205_1 WHERE directed_by = "Terrence Nightingall"
What is the original air date of the episode directed by Terrence Nightingall?
CREATE TABLE table_17356205_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT "Report" FROM table_31991 WHERE "Winning driver" = 'raymond sommer'
Name the report for raymond sommer
CREATE TABLE table_31991 ( "Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning constructor" text, "Report" text )
SELECT report FROM table_name_16 WHERE name = "cuban race"
Name the report with cuban race
CREATE TABLE table_name_16 (report VARCHAR, name VARCHAR)
SELECT title FROM table_17355933_1 WHERE directed_by = "Nelson McCormick"
Which seasons were directed by Nelson McCormick?
CREATE TABLE table_17355933_1 (title VARCHAR, directed_by VARCHAR)
SELECT college_junior_club_team FROM table_1013129_1 WHERE player = "Vadim Sharifijanov"
What teams did the player vadim sharifijanov play for?
CREATE TABLE table_1013129_1 ( college_junior_club_team VARCHAR, player VARCHAR )
SELECT circuit FROM table_name_63 WHERE winning_constructor = "darracq" AND name = "cuban race"
Name the circuit for darracq and name of cuban race
CREATE TABLE table_name_63 (circuit VARCHAR, winning_constructor VARCHAR, name VARCHAR)
SELECT title FROM table_17355933_1 WHERE directed_by = "Laura Innes"
Which season titles were directed by Laura Innes?
CREATE TABLE table_17355933_1 (title VARCHAR, directed_by VARCHAR)
SELECT demographic.admittime, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Josette Orr"
what is admission time and diagnoses short title of subject name josette orr?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic (...
SELECT winning_driver FROM table_name_15 WHERE circuit = "havana"
Name the winning driver for havana
CREATE TABLE table_name_15 (winning_driver VARCHAR, circuit VARCHAR)
SELECT written_by FROM table_17355820_1 WHERE directed_by = "Nelson McCormick"
Which episodes did Nelson McCormick direct?
CREATE TABLE table_17355820_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "29" AND prescriptions.route = "NU"
how many patients who stayed in hospital for more than 29 days had nu roue of drug administration?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
SELECT home_team AS score FROM table_name_23 WHERE away_team = "st kilda"
What is the home team's score when st kilda is away?
CREATE TABLE table_name_23 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(title) FROM table_17355820_1 WHERE season__number = 19
How many episodes were there in season 19?
CREATE TABLE table_17355820_1 (title VARCHAR, season__number VARCHAR)
SELECT COUNT(us_viewers__in_millions_) FROM table_27969432_4 WHERE no_in_season = 4
How many viewers in millions were there for episode 4 of this season?
CREATE TABLE table_27969432_4 ( us_viewers__in_millions_ VARCHAR, no_in_season VARCHAR )
SELECT decision FROM table_name_62 WHERE visitor = "montreal"
No Decision listed above has a visitor of Montreal.
CREATE TABLE table_name_62 (decision VARCHAR, visitor VARCHAR)
SELECT MIN(season__number) FROM table_17355820_1 WHERE directed_by = "Paul McCrane"
In which season did Paul McCrane first direct an episode?
CREATE TABLE table_17355820_1 (season__number INTEGER, directed_by VARCHAR)
SELECT "Team" FROM table_76739 WHERE "Game" = '77'
What is Team, when Game is 77?
CREATE TABLE table_76739 ( "Game" real, "Date" text, "Team" text, "Score" text, "Record" text, "Streak" text )
SELECT record FROM table_name_42 WHERE home = "tampa bay" AND date = "december 4"
On December 4, Tampa Bay has a record of 12-13-2.
CREATE TABLE table_name_42 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT original_air_date FROM table_17355820_1 WHERE directed_by = "TR Babu Subramaniam"
On which dates did the episodes directed by TR Babu Subramaniam air?
CREATE TABLE table_17355820_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT Id AS "post_link", CreationDate FROM Posts WHERE Body LIKE '%apt-cache%' ORDER BY CreationDate DESC
Showing posts that contain apt-cache in the body.
CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text...
SELECT remarks FROM table_name_23 WHERE rank > 2 AND alliance = "skyteam (2012)"
What are the remarks for the entry ranked greater than 2 with a skyteam (2012) alliance?
CREATE TABLE table_name_23 (remarks VARCHAR, rank VARCHAR, alliance VARCHAR)
SELECT MIN(lost) FROM table_17357929_1
What is the fewest number of games lost?
CREATE TABLE table_17357929_1 (lost INTEGER)
SELECT left_office FROM table_name_96 WHERE romanized__hangul_ = "chang myon (μž₯λ©΄)"
When did chang myon ( ) leave office?
CREATE TABLE table_name_96 ( left_office VARCHAR, romanized__hangul_ VARCHAR )
SELECT COUNT(rank) FROM table_name_13 WHERE alliance = "star alliance" AND country = "brazil"
How many airlines have the star alliance and are in brazil?
CREATE TABLE table_name_13 (rank VARCHAR, alliance VARCHAR, country VARCHAR)
SELECT goal_average_1 FROM table_17357929_1 WHERE lost = 9
What is the goal average 1 for teams that lost 9 games?
CREATE TABLE table_17357929_1 (goal_average_1 VARCHAR, lost VARCHAR)