answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT "Player" FROM table_62407 WHERE "Score" = '68-66=134'
What player scored 68-66=134?
CREATE TABLE table_62407 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT original_air_date FROM table_27332038_1 WHERE production_code = "2ARG24"
when was the episode with production code "2arg24" originally aired?
CREATE TABLE table_27332038_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT date FROM table_name_78 WHERE performer_4 = "ryan stiles" AND episode > 5 AND performer_2 = "wayne brady"
What day was wayne brady performer 2, ryan stiles performer 4, and an episode number greater than 5?
CREATE TABLE table_name_78 (date VARCHAR, performer_2 VARCHAR, performer_4 VARCHAR, episode VARCHAR)
SELECT incumbent FROM table_1341865_44 WHERE district = "Tennessee 5"
what's incumbent with district being tennessee 5
CREATE TABLE table_1341865_44 ( incumbent VARCHAR, district VARCHAR )
SELECT episode FROM table_27319183_7 WHERE share___percentage_ = "41.5"
What episode had a share percentage of 41.5%?
CREATE TABLE table_27319183_7 (episode VARCHAR, share___percentage_ VARCHAR)
SELECT course FROM table_name_21 WHERE type = "flat stage" AND date = "4 september"
Which course has a flat stage on 4 September?
CREATE TABLE table_name_21 (course VARCHAR, type VARCHAR, date VARCHAR)
SELECT "Ends Won" FROM table_27411 WHERE "Blank Ends" = '0'
Name the ends won for blank ends for 0
CREATE TABLE table_27411 ( "Country" text, "Skip" text, "W" real, "L" real, "PF" real, "PA" real, "Ends Won" real, "Ends Lost" real, "Blank Ends" real, "Stolen Ends" real, "Shot %" real )
SELECT date FROM table_27319183_7 WHERE weekly_rank = 12
What date was the show's weekly ranking 12?
CREATE TABLE table_27319183_7 (date VARCHAR, weekly_rank VARCHAR)
SELECT date FROM table_name_67 WHERE course = "la granja de san ildefonso to alto de navacerrada"
What is the date for the La Granja de San Ildefonso to Alto de Navacerrada course?
CREATE TABLE table_name_67 (date VARCHAR, course VARCHAR)
SELECT "Code (IATA)" FROM table_35256 WHERE "Total Cargo (Metric Tonnes)" = '1,838,894'
What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes?
CREATE TABLE table_35256 ( "Rank" real, "Airport" text, "Location" text, "Code (IATA)" text, "Total Cargo (Metric Tonnes)" text, "2003 Rank" text, "% Change" text )
SELECT total_itv_viewers__millions_ FROM table_27319183_7 WHERE official_itv_rating__millions_ = "10.24"
How many total itv viewers were there for the episode with official itv ratings of 10.24 million?
CREATE TABLE table_27319183_7 (total_itv_viewers__millions_ VARCHAR, official_itv_rating__millions_ VARCHAR)
SELECT winner FROM table_name_33 WHERE course = "granada"
Who won the Granada course?
CREATE TABLE table_name_33 (winner VARCHAR, course VARCHAR)
SELECT date_of_birth FROM table_name_13 WHERE position_s_ = "goalkeeper" AND seasons = "1st"
What is the date of birth of the goalkeeper from the 1st season?
CREATE TABLE table_name_13 ( date_of_birth VARCHAR, position_s_ VARCHAR, seasons VARCHAR )
SELECT total_itv_viewers__millions_ FROM table_27319183_7 WHERE official_itv_hd_rating__millions_ = "1.12"
How many total itv viewers were there for the episode with official itv hd ratings of 1.12 million?
CREATE TABLE table_27319183_7 (total_itv_viewers__millions_ VARCHAR, official_itv_hd_rating__millions_ VARCHAR)
SELECT distance FROM table_name_69 WHERE date = "5 september"
What is the distance for the 5 September race?
CREATE TABLE table_name_69 (distance VARCHAR, date VARCHAR)
SELECT "Pole position" FROM table_27696 WHERE "Supporting" = 'USAC National Midget Series'
Who got the pole position if the supporting is USAC National Midget Series?
CREATE TABLE table_27696 ( "Round" real, "Circuit" text, "Location" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Winning team" text, "Supporting" text )
SELECT official_itv_rating__millions_ FROM table_27319183_7 WHERE total_itv_viewers__millions_ = "8.53"
What were the official itv ratings in millions for the episode with a total of 8.53 million itv viewers
CREATE TABLE table_27319183_7 (official_itv_rating__millions_ VARCHAR, total_itv_viewers__millions_ VARCHAR)
SELECT date FROM table_name_64 WHERE course = "jaén to córdoba"
What is the race date for the course Jaén to Córdoba?
CREATE TABLE table_name_64 (date VARCHAR, course VARCHAR)
SELECT AVG("Clean & jerk") FROM table_77710 WHERE "Snatch" = '140' AND "Total (kg)" < '315'
Name the average clean and jerk for snatch of 140 and total kg less than 315
CREATE TABLE table_77710 ( "Name" text, "Bodyweight" real, "Snatch" real, "Clean & jerk" real, "Total (kg)" real )
SELECT official_itv_rating__millions_ FROM table_27319183_7 WHERE episode = "Semi-final 5"
What were the official itv ratings in millions for semi-final 5?
CREATE TABLE table_27319183_7 (official_itv_rating__millions_ VARCHAR, episode VARCHAR)
SELECT AVG(election_date) FROM table_name_86 WHERE number_of_deputies < 136 AND number_of_votes_received = "1,560,753"
What was the average election year that has less than 136 deputies, and 1,560,753 votes received?
CREATE TABLE table_name_86 (election_date INTEGER, number_of_deputies VARCHAR, number_of_votes_received VARCHAR)
SELECT "Opponent" FROM table_41741 WHERE "Record" = '39-19'
What is the name of the Opponent when there is a Record of 39-19?
CREATE TABLE table_41741 ( "Date" text, "Opponent" text, "Location" text, "Score" text, "Loss" text, "Record" text )
SELECT club FROM table_27374004_2 WHERE chairman = "Roger Lambrecht"
What is the club when the chairman is roger lambrecht?
CREATE TABLE table_27374004_2 (club VARCHAR, chairman VARCHAR)
SELECT percentage_of_votes FROM table_name_62 WHERE number_of_votes_received = "1,255,153"
What percentage of the vote was 1,255,153 of received votes?
CREATE TABLE table_name_62 (percentage_of_votes VARCHAR, number_of_votes_received VARCHAR)
SELECT "Others%" FROM table_21582 WHERE "Others#" = '2286'
What is the percentage of others when the number of others is 2286?
CREATE TABLE table_21582 ( "County" text, "Kerry%" text, "Kerry#" real, "Bush%" text, "Bush#" real, "Others%" text, "Others#" real )
SELECT team_captain FROM table_27374004_2 WHERE shirt_sponsor = "Quick"
What is the team captain when the shirt sponser is quick?
CREATE TABLE table_27374004_2 (team_captain VARCHAR, shirt_sponsor VARCHAR)
SELECT number_of_deputies FROM table_name_44 WHERE election_date = 1964
What were the number of deputies for the 1964 election year?
CREATE TABLE table_name_44 (number_of_deputies VARCHAR, election_date VARCHAR)
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Users.AboutMe) LIKE LOWER('% Uber %') ORDER BY Reputation DESC
Uber Employees on Stack Overflow by reputation.
CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostsWithDeleted ( 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, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) 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, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PostHistoryTypes ( Id number, Name text )
SELECT chairman FROM table_27374004_2 WHERE current_manager = "Bob Peeters"
Who is the chairman when the current manager is bob peeters?
CREATE TABLE table_27374004_2 (chairman VARCHAR, current_manager VARCHAR)
SELECT SUM(number_of_deputies) FROM table_name_74 WHERE percentage_of_votes = "94.2%"
What is the number of deputies with 94.2% of the votes?
CREATE TABLE table_name_74 (number_of_deputies INTEGER, percentage_of_votes VARCHAR)
SELECT "4th Day" FROM table_670 WHERE "3rd day" = 'bumped by Downing'
what's the 4th day with 3rd day being bumped by downing
CREATE TABLE table_670 ( "Year" real, "Finish position" text, "1st day" text, "2nd day" text, "3rd day" text, "4th Day" text )
SELECT club FROM table_27374004_2 WHERE shirt_sponsor = "e-lotto.be"
What is the club when the shirt sponsor is e-lotto.be?
CREATE TABLE table_27374004_2 (club VARCHAR, shirt_sponsor VARCHAR)
SELECT MIN(number_of_deputies) FROM table_name_17 WHERE number_of_votes_received = "unknown" AND election_date > 1986
What was deputies with the lowest number of unknown received votes, in an election year after 1986?
CREATE TABLE table_name_17 (number_of_deputies INTEGER, number_of_votes_received VARCHAR, election_date VARCHAR)
SELECT T3.Name, T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID
Show names of technicians and series of machines they are assigned to repair.
CREATE TABLE technician ( Name VARCHAR, technician_ID VARCHAR ) CREATE TABLE machine ( Machine_series VARCHAR, machine_id VARCHAR ) CREATE TABLE repair_assignment ( machine_id VARCHAR, technician_ID VARCHAR )
SELECT team_captain FROM table_27374004_2 WHERE club = "K.F.C. Germinal Beerschot"
Who is the team captain when the club is k.f.c. germinal beerschot?
CREATE TABLE table_27374004_2 (team_captain VARCHAR, club VARCHAR)
SELECT result FROM table_name_36 WHERE date = "7 june 2000"
Which Result has a Date of 7 june 2000?
CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR)
SELECT fuel_propulsion FROM table_10007452_3 WHERE fleet_series__quantity_ = "310-329 (20)"
what is the fuel propulsion where the fleet series (quantity) is 310-329 (20)?
CREATE TABLE table_10007452_3 ( fuel_propulsion VARCHAR, fleet_series__quantity_ VARCHAR )
SELECT varsity_name FROM table_27369069_4 WHERE university = "McGill university"
What is the varsity name of the university of mcgill university?
CREATE TABLE table_27369069_4 (varsity_name VARCHAR, university VARCHAR)
SELECT venue FROM table_name_46 WHERE date = "21 june 2000"
Which Venue has a Date of 21 june 2000?
CREATE TABLE table_name_46 (venue VARCHAR, date VARCHAR)
SELECT "Height in Ft." FROM table_54250 WHERE "Years for Rockets" = '2005-06'
What is the Height for Years for Rockets of 2005-06?
CREATE TABLE table_54250 ( "Player" text, "No.(s)" text, "Height in Ft." text, "Position" text, "Years for Rockets" text, "School/Club Team/Country" text )
SELECT soccer_stadium FROM table_27369069_4 WHERE varsity_name = "Citadins"
What is the soccer stadium with the varsity name is citadins?
CREATE TABLE table_27369069_4 (soccer_stadium VARCHAR, varsity_name VARCHAR)
SELECT competition FROM table_name_37 WHERE venue = "jan breydel, bruges, belgium"
Which Competition has a Venue of jan breydel, bruges, belgium?
CREATE TABLE table_name_37 (competition VARCHAR, venue VARCHAR)
SELECT "mile" FROM table_204_888 WHERE "destinations" = 'us 522 south - berkeley springs, wv'
how many miles is the us 522 south - berkeley springs , wv location ?
CREATE TABLE table_204_888 ( id number, "location" text, "mile" number, "destinations" text, "notes" text )
SELECT province FROM table_27369069_4 WHERE soccer_stadium = "terrain #2 of Complexe sportif Claude-Robillard"
What is the province where the soccer statium is terrain #2 of complexe sportif claude-robillard?
CREATE TABLE table_27369069_4 (province VARCHAR, soccer_stadium VARCHAR)
SELECT date FROM table_name_11 WHERE result = "3–4"
Which Date has a Result of 3–4?
CREATE TABLE table_name_11 (date VARCHAR, result VARCHAR)
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-3992')) AND intakeoutput.cellpath LIKE '%output%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day')
what's the total output of patient 033-3992 today?
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number )
SELECT province FROM table_27369069_4 WHERE stadium_capacity = 5100
What is the province for with the stadium capacity of 5100?
CREATE TABLE table_27369069_4 (province VARCHAR, stadium_capacity VARCHAR)
SELECT date FROM table_name_13 WHERE game_site = "shea stadium" AND week < 10 AND opponent = "baltimore colts"
Game site of shea stadium, and a Week smaller than 10, and a Opponent of baltimore colts happened on what date?
CREATE TABLE table_name_13 (date VARCHAR, opponent VARCHAR, game_site VARCHAR, week VARCHAR)
SELECT "name" FROM table_204_980 ORDER BY "construction year" DESC LIMIT 1
what name was in the last construction year ?
CREATE TABLE table_204_980 ( id number, "name" text, "type" text, "elevation\n(ground station)" number, "elevation\n(mountain station)" number, "slope length" number, "capacity\n(persons/hour)" number, "construction year" number )
SELECT university FROM table_27369069_4 WHERE soccer_stadium = "terrain #2 of Complexe sportif Claude-Robillard"
What is the university where the soccer stadium is terrain #2 of complexe sportif claude-robillard?
CREATE TABLE table_27369069_4 (university VARCHAR, soccer_stadium VARCHAR)
SELECT opponent FROM table_name_57 WHERE game_site = "candlestick park"
Game site of candlestick park had what opponent?
CREATE TABLE table_name_57 (opponent VARCHAR, game_site VARCHAR)
SELECT "Record" FROM table_11820 WHERE "Visitor" = 'mavericks'
Name the record when the visitor is mavericks
CREATE TABLE table_11820 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text )
SELECT date_of_appointment FROM table_27374004_4 WHERE replaced_by = "Hugo Broos"
When was the date of appointment by Hugo Broos?
CREATE TABLE table_27374004_4 (date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT MAX(week) FROM table_name_60 WHERE game_site = "miami orange bowl" AND attendance > 49 OFFSET 754
Game site of miami orange bowl, and a Attendance larger than 49,754 happened on what highest week?
CREATE TABLE table_name_60 (week INTEGER, game_site VARCHAR, attendance VARCHAR)
SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'venous cath nec') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26849) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
count the number of times patient 26849 during the last year had received a venous cath nec procedure.
CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) 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 TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text )
SELECT COUNT(date_of_vacancy) FROM table_27374004_4 WHERE outgoing_manager = "Bart De Roover"
How many times did outgoing manager Bart de Roover vacated a position?
CREATE TABLE table_27374004_4 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT date FROM table_name_88 WHERE opponent = "denver broncos"
Opponent of denver broncos happened on what date?
CREATE TABLE table_name_88 (date VARCHAR, opponent VARCHAR)
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-133605') AND patient.unitdischargetime IS NULL) AND intakeoutput.celllabel = 'enteral tube intake: orogastric oral 16' AND intakeoutput.cellpath LIKE '%intake%' ORDER BY intakeoutput.intakeoutputtime DESC LIMIT 1
how many hours has elapsed since the last time that patient 006-133605 took a enteral tube intake: orogastric oral 16 intake on the current icu visit?
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time )
SELECT outgoing_manager FROM table_27374004_4 WHERE manner_of_departure = "Sacked" AND position_in_table = "15th"
Who was the outgoing manager of the team in 15th position that was sacked?
CREATE TABLE table_27374004_4 (outgoing_manager VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)
SELECT score FROM table_name_60 WHERE february > 24 AND record = "9-8-2"
Name the score when february is more than 24 and has a record of 9-8-2
CREATE TABLE table_name_60 (score VARCHAR, february VARCHAR, record VARCHAR)
SELECT "Away team" FROM table_10268 WHERE "Away team score" = '17.17 (119)'
Which away team scored 17.17 (119)?
CREATE TABLE table_10268 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT position_in_table FROM table_27374004_4 WHERE outgoing_manager = "Danny Ost"
What was the team's position in table when Danny OST was the outgoing manager?
CREATE TABLE table_27374004_4 (position_in_table VARCHAR, outgoing_manager VARCHAR)
SELECT MAX(game) FROM table_name_75 WHERE opponent = "hartford whalers"
Name the most game with opponent of hartford whalers
CREATE TABLE table_name_75 (game INTEGER, opponent VARCHAR)
SELECT "Postseason" FROM table_55622 WHERE "Win%" > '0.40700000000000003' AND "Games" < '108' AND "Rank" = '1'
What postseason has a win% between 0.40700000000000003 and 108 with a rank of 1?
CREATE TABLE table_55622 ( "Year" real, "Rank" real, "Games" real, "Win%" real, "Postseason" text )
SELECT MAX(_number) FROM table_27374740_2 WHERE viewers__m_ = "8.01"
how many maximum # when viewers (m) is 8.01
CREATE TABLE table_27374740_2 (_number INTEGER, viewers__m_ VARCHAR)
SELECT distance FROM table_name_72 WHERE course = "civitavecchia to san vincenzo"
What is the distance for the course Civitavecchia to San Vincenzo?
CREATE TABLE table_name_72 (distance VARCHAR, course VARCHAR)
SELECT winter_olympics FROM table_name_38 WHERE country = "japan"
What was the Winter Olympics was Japan as the country?
CREATE TABLE table_name_38 ( winter_olympics VARCHAR, country VARCHAR )
SELECT COUNT(outgoing_manager) FROM table_27374004_3 WHERE replaced_by = "Bob Peeters"
How many outgoing managers were replaced by Bob Peeters?
CREATE TABLE table_27374004_3 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT winner FROM table_name_47 WHERE course = "forlì to carpi"
Who won at course Forlì to Carpi?
CREATE TABLE table_name_47 (winner VARCHAR, course VARCHAR)
SELECT "Type" FROM table_44379 WHERE "Works number" = '75823'
What is Type, when Works Number is 75823?
CREATE TABLE table_44379 ( "Number" text, "Builder" text, "Type" text, "Date" text, "Works number" text )
SELECT replaced_by FROM table_27374004_3 WHERE outgoing_manager = "Michel Preud'homme"
Who replaced Michel Preud'homme?
CREATE TABLE table_27374004_3 (replaced_by VARCHAR, outgoing_manager VARCHAR)
SELECT distance FROM table_name_83 WHERE date = "24 may"
What was the distance on 24 May?
CREATE TABLE table_name_83 (distance VARCHAR, date VARCHAR)
SELECT COUNT("Literate Male(%)") FROM table_30845 WHERE "% of District Population" = '3.28'
How many literate male (%) are there in the district that has a population of 3.28?
CREATE TABLE table_30845 ( "taluka Name" text, "Population (2001 census)" real, "% of District Population" text, "Male" real, "Male(%)" text, "Female" real, "Female(%)" text, "Sex Ratio" real, "Literacy" real, "Literacy(%)" text, "Literate Male" real, "Literate Male(%)" text, "Literate Female" real, "Literate Female(%)" text )
SELECT manner_of_departure FROM table_27374004_3 WHERE team = "Cercle Brugge"
What was the manner of departure for the manager of Cercle Brugge?
CREATE TABLE table_27374004_3 (manner_of_departure VARCHAR, team VARCHAR)
SELECT intercontinental_cup_1998 FROM table_name_67 WHERE copa_mercosur_1998 = "runner-up"
what is the runner-up for the intercontinental cup
CREATE TABLE table_name_67 (intercontinental_cup_1998 VARCHAR, copa_mercosur_1998 VARCHAR)
SELECT date FROM table_15346009_1 WHERE location = "Alabama"
On what day was the tournament in Alabama?
CREATE TABLE table_15346009_1 ( date VARCHAR, location VARCHAR )
SELECT outgoing_manager FROM table_27374004_3 WHERE team = "Charleroi"
Who was the outgoing manager of Charleroi?
CREATE TABLE table_27374004_3 (outgoing_manager VARCHAR, team VARCHAR)
SELECT AVG(attendance) FROM table_name_18 WHERE loss = "stoneman (0-2)"
Which average attendance has stoneman (0-2) as the loss?
CREATE TABLE table_name_18 (attendance INTEGER, loss VARCHAR)
SELECT Id AS "comment_link", PostId AS "post_link", CreationDate AS "comment_date", Score FROM Comments WHERE '##UserId:int##' = UserId AND Score > 0 ORDER BY Score DESC, CreationDate DESC LIMIT 1000
Highest Scoring Comments by User. Finds the highest-scoring comments by a user.
CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostTypes ( Id number, Name text ) 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, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE PostsWithDeleted ( 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, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number )
SELECT shirt_sponsor FROM table_27383390_2 WHERE head_coach = "Samad Marfavi"
What sponsor has the head coach Samad Marfavi?
CREATE TABLE table_27383390_2 (shirt_sponsor VARCHAR, head_coach VARCHAR)
SELECT AVG(attendance) FROM table_name_14 WHERE date = "april 12"
What is the average attendance that has april 12 as the date?
CREATE TABLE table_name_14 (attendance INTEGER, date VARCHAR)
SELECT score FROM table_name_91 WHERE attendance < 83 AND away_team = "raunds town"
What is the score when the attendance is less than 83 and Raunds Town is the away team?
CREATE TABLE table_name_91 ( score VARCHAR, attendance VARCHAR, away_team VARCHAR )
SELECT team FROM table_27383390_2 WHERE head_coach = "Ali Daei"
Which team has Ali Daei as head coach?
CREATE TABLE table_27383390_2 (team VARCHAR, head_coach VARCHAR)
SELECT channels FROM table_name_93 WHERE clock_rate__mhz_ < 400 AND bandwidth__mb_s_ = 1420
Clock rate (MHz) smaller than 400, and a Bandwidth (MB/s) of 1420 has what channels?
CREATE TABLE table_name_93 (channels VARCHAR, clock_rate__mhz_ VARCHAR, bandwidth__mb_s_ VARCHAR)
SELECT title FROM table_10935548_1 WHERE directed_by = "Jean de Segonzac"
Which episode was directed by Jean de Segonzac?
CREATE TABLE table_10935548_1 ( title VARCHAR, directed_by VARCHAR )
SELECT kit_maker FROM table_27383390_2 WHERE team = "Foolad"
What is the kit maker for team foolad?
CREATE TABLE table_27383390_2 (kit_maker VARCHAR, team VARCHAR)
SELECT MAX(clock_rate__mhz_) FROM table_name_75 WHERE bandwidth__mb_s_ < 4800 AND bus_width__bits_ < 16
Bandwidth (MB/s) smaller than 4800, and a Bus width (bits) smaller than 16 has what highest Clock rate (MHz)?
CREATE TABLE table_name_75 (clock_rate__mhz_ INTEGER, bandwidth__mb_s_ VARCHAR, bus_width__bits_ VARCHAR)
SELECT classroom, COUNT(*) FROM list WHERE grade = "4" GROUP BY classroom
Report the total number of students for each fourth-grade classroom.
CREATE TABLE list ( classroom VARCHAR, grade VARCHAR )
SELECT outgoing_head_coach FROM table_27383390_4 WHERE incoming_head_coach = "Abdollah Veysi"
Who is the outgoing head coach when the incoming head coach is abdollah veysi?
CREATE TABLE table_27383390_4 (outgoing_head_coach VARCHAR, incoming_head_coach VARCHAR)
SELECT MAX(bus_width__bits_) FROM table_name_51 WHERE designation = "pc800"
Designation of pc800 has which highest Bus width (bits)?
CREATE TABLE table_name_51 (bus_width__bits_ INTEGER, designation VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.diagnosis = "CORONARY ARTERY DISEASE"
count the number of patients whose admission type is elective and primary disease is coronary artery disease?
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 ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT date_of_appointment FROM table_27383390_4 WHERE position_in_table = 16
When is the date of appointment when the position in table is 16?
CREATE TABLE table_27383390_4 (date_of_appointment VARCHAR, position_in_table VARCHAR)
SELECT AVG(year) FROM table_name_66 WHERE start = "14"
Which Year has a Start of 14?
CREATE TABLE table_name_66 (year INTEGER, start VARCHAR)
SELECT SUM(laps) FROM table_name_80 WHERE year = "1958"
How many laps were in 1958?
CREATE TABLE table_name_80 ( laps INTEGER, year VARCHAR )
SELECT COUNT(team) FROM table_27383390_4 WHERE incoming_head_coach = "Abdollah Veysi"
How many times is the incoming head coach abdollah veysi?
CREATE TABLE table_27383390_4 (team VARCHAR, incoming_head_coach VARCHAR)
SELECT AVG(year) FROM table_name_37 WHERE finish = "22" AND team = "swan"
Which Year has a Finish of 22, and a Team of swan?
CREATE TABLE table_name_37 (year INTEGER, finish VARCHAR, team VARCHAR)
SELECT MIN(body_width_mm) FROM table_name_48 WHERE lead_pitch_mm < 0.55 AND body_length_mm > 18.4
Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Body Length/mm larger than 18.4?
CREATE TABLE table_name_48 ( body_width_mm INTEGER, lead_pitch_mm VARCHAR, body_length_mm VARCHAR )
SELECT team FROM table_27383390_4 WHERE date_of_vacancy = "8 Dec 2010"
What is the team with the date of vacancy 8 dec 2010?
CREATE TABLE table_27383390_4 (team VARCHAR, date_of_vacancy VARCHAR)
SELECT finish FROM table_name_49 WHERE start = "15" AND team = "bahari"
Which Finish has a Start of 15, and a Team of bahari?
CREATE TABLE table_name_49 (finish VARCHAR, start VARCHAR, team VARCHAR)
SELECT AVG(week) FROM table_name_11 WHERE game_site = "shea stadium" AND date = "1979-12-09"
What average week has shea stadium as the game site, and 1979-12-09 as the date?
CREATE TABLE table_name_11 ( week INTEGER, game_site VARCHAR, date VARCHAR )