answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT "Webcast" FROM table_36235 WHERE "Website" = 'ktrh.com'
The KTRH.com website includes which type of webcast?
CREATE TABLE table_36235 ( "Frequency" real, "Callsign" text, "Brand" text, "City of License" text, "Website" text, "Webcast" text )
SELECT writer FROM table_26866434_1 WHERE series__number = 122
Who wrote episode 122 in the series?
CREATE TABLE table_26866434_1 (writer VARCHAR, series__number VARCHAR)
SELECT speed FROM table_name_6 WHERE rank < 9 AND team = "kawasaki zx6 600cc"
Which Speed has a Rank smaller than 9 in kawasaki zx6 600cc Team?
CREATE TABLE table_name_6 (speed VARCHAR, rank VARCHAR, team VARCHAR)
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.start_time >= '12:00:00' AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 662 AND semester.semester = 'Spring' AND semester.semester_id = course_offering.semester AND semester.year = 2019
Is 662 offered in Spring 2019 in the afternoon ?
CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college 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, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int )
SELECT director FROM table_26866519_1 WHERE series__number = 201
Who directed series episode number 201?
CREATE TABLE table_26866519_1 (director VARCHAR, series__number VARCHAR)
SELECT speed FROM table_name_59 WHERE rank = 2
WHich Speed has a Rank of 2?
CREATE TABLE table_name_59 (speed VARCHAR, rank VARCHAR)
SELECT "2011" FROM table_65708 WHERE "2010" = '12.7%'
What 2011 has 12.7% as the 2010?
CREATE TABLE table_65708 ( "Score" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text )
SELECT original_airdate FROM table_26866519_1 WHERE season__number = 20
What are the original air date(s) for season episode 20?
CREATE TABLE table_26866519_1 (original_airdate VARCHAR, season__number VARCHAR)
SELECT SUM(game) FROM table_name_49 WHERE opponent = "@ hartford whalers" AND february > 19
What is the total of Game with an Opponent of @ Hartford Whalers and February that's larger than 19?
CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR, february VARCHAR)
SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY AVG(salary)
Give me a histogram for what are the names and average salaries for departments with average salary higher than 42000?, and list in ascending by the y axis.
CREATE TABLE classroom ( building varchar(15), room_number varchar(7), capacity numeric(4,0) ) CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0) ) CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) ) CREATE TABLE course ( course_id varchar(8), title varchar(50), dept_name varchar(20), credits numeric(2,0) ) CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number varchar(7), time_slot_id varchar(4) ) CREATE TABLE department ( dept_name varchar(20), building varchar(15), budget numeric(12,2) ) CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ) CREATE TABLE time_slot ( time_slot_id varchar(4), day varchar(1), start_hr numeric(2), start_min numeric(2), end_hr numeric(2), end_min numeric(2) )
SELECT COUNT(season__number) FROM table_26866519_1 WHERE director = "Ricardo Mendez Matta"
How many episodes are directed by ricardo mendez matta?
CREATE TABLE table_26866519_1 (season__number VARCHAR, director VARCHAR)
SELECT opponent FROM table_name_3 WHERE february > 7 AND record = "37-16-4"
Which Opponent has a February larger than 7 and Record of 37-16-4?
CREATE TABLE table_name_3 (opponent VARCHAR, february VARCHAR, record VARCHAR)
SELECT 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 = '030-34260')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.celllabel = 'enteral water flushes' AND DATETIME(intakeoutput.intakeoutputtime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day') ORDER BY intakeoutput.intakeoutputtime DESC LIMIT 1
when did patient 030-34260 get the enteral water flushes last time in a day before?
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) 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 microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime 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 allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time )
SELECT MIN(points) FROM table_26882866_1 WHERE standing = "5th"
Name the leaast points for standing 5th
CREATE TABLE table_26882866_1 (points INTEGER, standing VARCHAR)
SELECT MAX(february) FROM table_name_51 WHERE record = "34-14-4" AND game > 52
What is listed as the highest February with a Record of 34-14-4 and Game that's larger than 52?
CREATE TABLE table_name_51 (february INTEGER, record VARCHAR, game VARCHAR)
SELECT COUNT(gain) FROM table_name_77 WHERE long = 29 AND avg_g < 33.7
How much Gain has a Long of 29, and an Avg/G smaller than 33.7?
CREATE TABLE table_name_77 ( gain VARCHAR, long VARCHAR, avg_g VARCHAR )
SELECT MIN(camper) FROM table_26894949_2 WHERE puma = "12"
If puma is 12, what is camper?
CREATE TABLE table_26894949_2 (camper INTEGER, puma VARCHAR)
SELECT opponent FROM table_name_89 WHERE game > 56 AND february = 24
Which Opponent has a Game larger than 56 and February of 24?
CREATE TABLE table_name_89 (opponent VARCHAR, game VARCHAR, february VARCHAR)
SELECT "Name" FROM table_19328 WHERE "2nd (m)" = '220.5'
Who is shown for the 2nd (m) of 220.5?
CREATE TABLE table_19328 ( "Rank" real, "Name" text, "Nationality" text, "1st (m)" text, "2nd (m)" text, "Points" text, "Overall WC points (Rank)" text )
SELECT COUNT(event) FROM table_26894949_2 WHERE puma = "20" AND abu_dhabi = "30"
In how many events was Puma 20 and abu dhabi 30?
CREATE TABLE table_26894949_2 (event VARCHAR, puma VARCHAR, abu_dhabi VARCHAR)
SELECT MIN(extra_points) FROM table_name_26 WHERE player = "rheinschild" AND touchdowns > 1
Which Extra points is the lowest one that has a Player of rheinschild, and Touchdowns larger than 1?
CREATE TABLE table_name_26 (extra_points INTEGER, player VARCHAR, touchdowns VARCHAR)
SELECT COUNT(ClosedDate) AS NowClosed, COUNT(*) AS ClosedOnce FROM Posts WHERE Id IN (SELECT DISTINCT PostId FROM PostHistory WHERE PostHistoryTypeId = 10)
Probability of a closed question to get reopened. NowClosed: the questions closed now. ClosedOnce: questions closed at least once. This query does not see the now deleted questions.
CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description 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 ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostTypes ( 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 PostTags ( PostId number, TagId number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId 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 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 Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount 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 PostHistoryTypes ( Id number, Name text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId 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 TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewTaskTypes ( 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 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 )
SELECT COUNT(sanya) FROM table_26894949_2 WHERE distance = "abu_dhabi"
How many time was the distance Abu Dhabi?
CREATE TABLE table_26894949_2 (sanya VARCHAR, distance VARCHAR)
SELECT result FROM table_name_76 WHERE couple = "mario & karina"
What result has mario & karina as the couple?
CREATE TABLE table_name_76 (result VARCHAR, couple VARCHAR)
SELECT p.Id, p.CreationDate, DATEADD(ww, -1, GETDATE()), DATEADD(ww, 0, GETDATE()) FROM Posts AS p INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE t.TagName = 'lens'
data explorer query to find winner of (proposed) new contest. https://photo.meta.stackexchange.com/questions/5899/sql-help-wanted-data-explorer-query-to-find-winner-of-proposed-new-contest/5900#5900
CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) 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 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 ReviewTaskStates ( 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 Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) 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 PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE CloseReasonTypes ( 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 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 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 PostHistoryTypes ( 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 PostTags ( PostId number, TagId 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 FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskTypes ( 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 )
SELECT MAX(Ends) AS lost FROM table_26912584_2
What is the largest amount of ends lost?
CREATE TABLE table_26912584_2 (Ends INTEGER)
SELECT time FROM table_name_15 WHERE set_2 = "20–25" AND date = "05 jun"
Which Time has a Set 2 of 20–25, and a Date of 05 jun?
CREATE TABLE table_name_15 (time VARCHAR, set_2 VARCHAR, date VARCHAR)
SELECT "Nationality" FROM table_16835 WHERE "School/Club Team" = 'Oregon'
Which country is the player that went to Oregon?
CREATE TABLE table_16835 ( "Player" text, "No." real, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text )
SELECT skip FROM table_26912584_2 WHERE country = Sweden
When sweden is the country who is the skip?
CREATE TABLE table_26912584_2 (skip VARCHAR, country VARCHAR, Sweden VARCHAR)
SELECT date FROM table_name_49 WHERE score = "0–3" AND set_2 = "16–25"
Which Date has a Score of 0–3, and a Set 2 of 16–25?
CREATE TABLE table_name_49 (date VARCHAR, score VARCHAR, set_2 VARCHAR)
SELECT d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'necator americanus' UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'necator americanus'
what is the unabbreviated version of the necator americanus?
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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) 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 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 d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) 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_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text )
SELECT story_by FROM table_26914076_3 WHERE us_viewers__millions_ = "0.53"
Who wrote the story viewed by 0.53 million viewers?
CREATE TABLE table_26914076_3 (story_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT total FROM table_name_60 WHERE set_2 = "19–25"
Which Total has a Set 2 of 19–25?
CREATE TABLE table_name_60 (total VARCHAR, set_2 VARCHAR)
SELECT cardinalatial_title FROM table_name_40 WHERE elevated = "december 18, 1182" AND place_of_birth = "lucca" AND elector = "pandolfo"
What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo?
CREATE TABLE table_name_40 ( cardinalatial_title VARCHAR, elector VARCHAR, elevated VARCHAR, place_of_birth VARCHAR )
SELECT us_viewers__millions_ FROM table_26914076_3 WHERE story_by = "David Simon & Mari Kornhauser"
How many viewers watched the episode with a story by david simon & mari kornhauser?
CREATE TABLE table_26914076_3 (us_viewers__millions_ VARCHAR, story_by VARCHAR)
SELECT score FROM table_name_9 WHERE set_2 = "25–17" AND time = "16:00"
Which Score has a Set 2 of 25–17, and a Time of 16:00?
CREATE TABLE table_name_9 (score VARCHAR, set_2 VARCHAR, time VARCHAR)
SELECT tag_team FROM table_name_10 WHERE time = "03:34"
Name the Tag Team with a Time of 03:34?
CREATE TABLE table_name_10 ( tag_team VARCHAR, time VARCHAR )
SELECT COUNT(us_viewers__millions_) FROM table_26914076_3 WHERE directed_by = "Rob Bailey"
How many entries are there for u.s. viewers (millions) for the episode directed by rob bailey?
CREATE TABLE table_26914076_3 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT set_1 FROM table_name_22 WHERE time = "14:00" AND set_3 = "19–25"
Which Set 1 has a Time of 14:00, and a Set 3 of 19–25?
CREATE TABLE table_name_22 (set_1 VARCHAR, time VARCHAR, set_3 VARCHAR)
SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-195541')) AND DATETIME(lab.labresulttime) <= DATETIME(CURRENT_TIME(), '-104 month')
has patient 006-195541 had laboratory tests until 104 months ago?
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime 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 lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) 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 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 treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time )
SELECT original_air_date FROM table_26914076_3 WHERE directed_by = "Rob Bailey"
What is the date the episode directed by rob bailey aired?
CREATE TABLE table_26914076_3 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT time FROM table_name_68 WHERE set_3 = "24–26" AND score = "0–3"
Which Time has a Set 3 of 24–26, and a Score of 0–3?
CREATE TABLE table_name_68 (time VARCHAR, set_3 VARCHAR, score VARCHAR)
SELECT Id AS "post_link", Score, AnswerCount FROM Posts WHERE PostTypeId = 1 AND Tags = '<##Tag##>' AND ClosedDate IS NULL ORDER BY CreationDate DESC
Posts tagged with only one selected tag, plus the score and number of answers. Finds posts tagged only with the one tag input below.
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 PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) 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 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 FlagTypes ( Id number, Name text, Description text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId 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 PostHistoryTypes ( Id number, Name text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE ReviewTaskResultTypes ( 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 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 ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description 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 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 PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) 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 PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number )
SELECT team FROM table_26914759_3 WHERE incoming_manager = "Dave Penney"
WHich team had dave penney as an incoming manager
CREATE TABLE table_26914759_3 (team VARCHAR, incoming_manager VARCHAR)
SELECT attendance FROM table_name_44 WHERE home_team = "nuneaton borough"
What was the attendance when Nuneaton Borough was the home team?
CREATE TABLE table_name_44 (attendance VARCHAR, home_team VARCHAR)
SELECT admissions.subject_id FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'prim central sleep apnea') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2104')
get the id of the patients who had been diagnosed with prim central sleep apnea until 2104.
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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom 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 cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime 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 d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) 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 d_labitems ( row_id number, itemid number, label text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) 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 )
SELECT manner_of_departure FROM table_26914759_3 WHERE team = "Notts County" AND incoming_manager = "Martin Allen"
What was the manner of departure for notts county with an incoming manager of martin allen
CREATE TABLE table_26914759_3 (manner_of_departure VARCHAR, team VARCHAR, incoming_manager VARCHAR)
SELECT nflcom_recap FROM table_name_81 WHERE game_site = "qualcomm stadium"
What's the site of the recap at qualcomm stadium?
CREATE TABLE table_name_81 (nflcom_recap VARCHAR, game_site VARCHAR)
SELECT "1:30 pm" FROM table_12244 WHERE "2:00 pm" = 'one life to live'
What is on at 1:30pm before One Life to Live at 2:00pm?
CREATE TABLE table_12244 ( "7:00 am" text, "8:00 am" text, "9:00 am" text, "11:00 am" text, "noon" text, "12:30 pm" text, "1:00 pm" text, "1:30 pm" text, "2:00 pm" text, "3:00 pm" text, "3:30 pm" text, "4:00 pm" text, "4:30 pm" text, "5:00 pm" text, "6:30 pm" text )
SELECT COUNT(position_in_table) FROM table_26914759_3 WHERE incoming_manager = "Gary Megson"
How many teams had gary megson as an incoming manager
CREATE TABLE table_26914759_3 (position_in_table VARCHAR, incoming_manager VARCHAR)
SELECT race_name FROM table_name_65 WHERE city_location = "cleveland, ohio"
What is the name of the race in Cleveland, Ohio?
CREATE TABLE table_name_65 (race_name VARCHAR, city_location VARCHAR)
SELECT opponent FROM table_name_39 WHERE save = "||33,453||36–27"
Who is the opponent with a save of ||33,453||36 27?
CREATE TABLE table_name_39 ( opponent VARCHAR, save VARCHAR )
SELECT incoming_manager FROM table_26914759_3 WHERE position_in_table = "12th"
who was the incoming manager for the 12th position in the table
CREATE TABLE table_26914759_3 (incoming_manager VARCHAR, position_in_table VARCHAR)
SELECT circuit FROM table_name_66 WHERE winning_driver = "michael andretti"
Which circuit did Michael Andretti win?
CREATE TABLE table_name_66 (circuit VARCHAR, winning_driver VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.icd9_code = "3019"
how many patients whose insurance is medicare and diagnoses icd9 code is 3019?
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 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 ) 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 )
SELECT height FROM table_26916717_1 WHERE home_town = "Farmington, KY"
How tall is the player from farmington, ky?
CREATE TABLE table_26916717_1 (height VARCHAR, home_town VARCHAR)
SELECT winning_team FROM table_name_74 WHERE circuit = "homestead-miami speedway"
Who was the winning team at the Homestead-Miami Speedway?
CREATE TABLE table_name_74 (winning_team VARCHAR, circuit VARCHAR)
SELECT "Player" FROM table_51427 WHERE "School" = 'st. benedict''s prep'
What is the player that went to st. benedict's prep?
CREATE TABLE table_51427 ( "Player" text, "Height" text, "School" text, "Hometown" text, "College" text, "NBA Draft" text )
SELECT team_school FROM table_26916717_1 WHERE name = "Adrian Smith"
Where did adrian smith go to college?
CREATE TABLE table_26916717_1 (team_school VARCHAR, name VARCHAR)
SELECT fastest_lap FROM table_name_32 WHERE winning_driver = "jimmy vasser"
What was Jimmy Vasser's fastest lap?
CREATE TABLE table_name_32 (fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT COUNT(pick) FROM table_name_64 WHERE round < 13 AND position = "fullback"
How many Pick has a Round smaller than 13, and a Position of fullback?
CREATE TABLE table_name_64 ( pick VARCHAR, round VARCHAR, position VARCHAR )
SELECT name FROM table_26916717_1 WHERE team_school = "California"
What player attended california university?
CREATE TABLE table_26916717_1 (name VARCHAR, team_school VARCHAR)
SELECT spanish_voice_actor FROM table_name_4 WHERE french_voice_actor = "véronique desmadryl"
Which Spanish voice actor does the same character as French voice actor Véronique Desmadryl?
CREATE TABLE table_name_4 (spanish_voice_actor VARCHAR, french_voice_actor VARCHAR)
SELECT COUNT("Regular Judge") FROM table_20451 WHERE "Host" = 'Bernie Chan'
Name the number of regular judge when host is bernie chan
CREATE TABLE table_20451 ( "Country" text, "Name" text, "Host" text, "Channel" text, "First Premiere" text, "Regular Judge" text, "Seasons" real )
SELECT name FROM table_26916717_1 WHERE home_town = "Purcell, OK"
What is the name of the player from purcell, ok?
CREATE TABLE table_26916717_1 (name VARCHAR, home_town VARCHAR)
SELECT spanish_voice_actor FROM table_name_61 WHERE french_voice_actor = "dennis boileau"
Which Spanish voice actor does the same character as French voice actor Dennis Boileau?
CREATE TABLE table_name_61 (spanish_voice_actor VARCHAR, french_voice_actor VARCHAR)
SELECT "Final Standing" FROM table_60911 WHERE "Years" = '1981–82'
What is the final standing in 1981 82?
CREATE TABLE table_60911 ( "Season" real, "Years" text, "Final Standing" real, "Points" real, "Top Goal Scorer" text )
SELECT hebrew FROM table_26919_6 WHERE arabic = "tisʕ-"
Name the hebrew for tisʕ-
CREATE TABLE table_26919_6 (hebrew VARCHAR, arabic VARCHAR)
SELECT spanish_voice_actor FROM table_name_36 WHERE french_voice_actor = "véronique desmadryl"
Which Spanish voice actor does the same character as French voice actor Véronique Desmadryl?
CREATE TABLE table_name_36 (spanish_voice_actor VARCHAR, french_voice_actor VARCHAR)
SELECT ground FROM table_name_83 WHERE competition = "tim trophy" AND time = "23:00 cet"
What is the ground of the tim trophy competition, which had a time of 23:00 cet?
CREATE TABLE table_name_83 ( ground VARCHAR, competition VARCHAR, time VARCHAR )
SELECT COUNT(tigrinya) FROM table_26919_6 WHERE arabic = "χams-"
Name the tigrinya for χams-
CREATE TABLE table_26919_6 (tigrinya VARCHAR, arabic VARCHAR)
SELECT character FROM table_name_63 WHERE german_voice_actor = "dirk fenselau"
What character does German voice actor Dirk Fenselau play?
CREATE TABLE table_name_63 (character VARCHAR, german_voice_actor VARCHAR)
SELECT "Pole Position" FROM table_52253 WHERE "Race" = 'belgian grand prix'
What was the pole position for the belgian grand prix?
CREATE TABLE table_52253 ( "Race" text, "Date" text, "Location" text, "Pole Position" text, "Fastest Lap" text, "Race Winner" text, "Constructor" text, "Report" text )
SELECT hebrew FROM table_26919_6 WHERE proto_semitic = "*tišʻ-"
Name the hebrew for *tišʻ-
CREATE TABLE table_26919_6 (hebrew VARCHAR, proto_semitic VARCHAR)
SELECT character FROM table_name_48 WHERE italian_voice_actor = "emanuela damasio"
What character does Italian voice actor Emanuela Damasio play?
CREATE TABLE table_name_48 (character VARCHAR, italian_voice_actor VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.short_title = "Neutropenia NOS"
provide the number of patients whose insurance is medicare and diagnoses short title is neutropenia nos?
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 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, 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 ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT arabic FROM table_26919_6 WHERE tigrinya = "ħamuʃte"
Name the arabic for ħamuʃte
CREATE TABLE table_26919_6 (arabic VARCHAR, tigrinya VARCHAR)
SELECT character FROM table_name_70 WHERE french_voice_actor = "marc saez" AND german_voice_actor = "dirk fenselau"
Which character has a French voice actor of Marc Saez and a German voice actor of Dirk Fenselau?
CREATE TABLE table_name_70 (character VARCHAR, french_voice_actor VARCHAR, german_voice_actor VARCHAR)
SELECT "Time/Retired" FROM table_55675 WHERE "Laps" = '47' AND "Driver" = 'rené arnoux'
Tell me the time/retired with Laps of 47 and driver of ren arnoux
CREATE TABLE table_55675 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT sabaean FROM table_26919_6 WHERE arabic = "sabʕ-"
Name the sabaean for sabʕ-
CREATE TABLE table_26919_6 (sabaean VARCHAR, arabic VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_28 WHERE player = "jeff staples"
Jeff Staples player for which College, Junior or Club league?
CREATE TABLE table_name_28 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT "Result" FROM table_31661 WHERE "Round" > '4' AND "Opponent" = 'ed mahone'
What resulted after 4 rounds with Ed Mahone?
CREATE TABLE table_31661 ( "Date" text, "Result" text, "Opponent" text, "Method" text, "Round" real )
SELECT incoming_manager FROM table_26914854_3 WHERE date_of_vacancy = "21 March 2011"
Who is the incoming manager when the date of vacancy was 21 march 2011?
CREATE TABLE table_26914854_3 (incoming_manager VARCHAR, date_of_vacancy VARCHAR)
SELECT round FROM table_name_23 WHERE player = "ken hemenway"
Ken Hemenway is in which Round?
CREATE TABLE table_name_23 (round VARCHAR, player VARCHAR)
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-44495')) AND microlab.culturesite = 'sputum, expectorated' AND DATETIME(microlab.culturetakentime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY microlab.culturetakentime LIMIT 1
when did patient 025-44495 get its first sputum, expectorated microbiology test this month?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) 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 ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime 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 cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) 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 medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time )
SELECT position_in_table FROM table_26914854_3 WHERE date_of_vacancy = "4 January 2011"
What is the position in table when the date of vacancy was 4 january 2011?
CREATE TABLE table_26914854_3 (position_in_table VARCHAR, date_of_vacancy VARCHAR)
SELECT nationality FROM table_name_99 WHERE player = "e.j. bradley"
Which Nation does e.j. bradley play for?
CREATE TABLE table_name_99 (nationality VARCHAR, player VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.admityear < "2194"
find the number of urgent hospital admission patients before the year 2194.
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 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 ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT team FROM table_26914854_3 WHERE incoming_manager = "Martin Allen"
What is the team when the incoming manager is martin allen?
CREATE TABLE table_26914854_3 (team VARCHAR, incoming_manager VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_86 WHERE position = "defense" AND player = "mike crowley"
Mike Crowley plays defense for league?
CREATE TABLE table_name_86 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR)
SELECT "Tuesday" FROM table_16422 WHERE "Location" = 'Millhopper'
what's the tuesday time with location being millhopper
CREATE TABLE table_16422 ( "Location" text, "Monday" text, "Tuesday" text, "Wednesday" text, "Thursday" text, "Friday" text, "Saturday" text, "Sunday" text )
SELECT incoming_manager FROM table_26914854_3 WHERE date_of_appointment = "9 March 2011"
Who is the incoming manager when the date of appointment is 9 march 2011?
CREATE TABLE table_26914854_3 (incoming_manager VARCHAR, date_of_appointment VARCHAR)
SELECT MAX(games) FROM table_name_69 WHERE drawn > 1
Name the most games with drawn more than 1
CREATE TABLE table_name_69 (games INTEGER, drawn INTEGER)
SELECT lot_details, COUNT(lot_details) FROM Lots GROUP BY lot_details ORDER BY COUNT(lot_details)
Bar chart x axis lot details y axis the number of lot details, rank in ascending by the total number.
CREATE TABLE Transactions_Lots ( transaction_id INTEGER, lot_id INTEGER ) CREATE TABLE Lots ( lot_id INTEGER, investor_id INTEGER, lot_details VARCHAR(255) ) CREATE TABLE Investors ( investor_id INTEGER, Investor_details VARCHAR(255) ) CREATE TABLE Ref_Transaction_Types ( transaction_type_code VARCHAR(10), transaction_type_description VARCHAR(80) ) CREATE TABLE Transactions ( transaction_id INTEGER, investor_id INTEGER, transaction_type_code VARCHAR(10), date_of_transaction DATETIME, amount_of_transaction DECIMAL(19,4), share_count VARCHAR(40), other_details VARCHAR(255) ) CREATE TABLE Sales ( sales_transaction_id INTEGER, sales_details VARCHAR(255) ) CREATE TABLE Purchases ( purchase_transaction_id INTEGER, purchase_details VARCHAR(255) )
SELECT team FROM table_26914854_3 WHERE date_of_appointment = "23 March 2011"
What is the team when the date of appointment is 23 march 2011?
CREATE TABLE table_26914854_3 (team VARCHAR, date_of_appointment VARCHAR)
SELECT MAX(points) FROM table_name_74 WHERE lost = 2 AND games > 7
Name the most points with lost of 2 and games more than 7
CREATE TABLE table_name_74 (points INTEGER, lost VARCHAR, games VARCHAR)
SELECT ABS((SELECT "points" FROM table_204_641 WHERE "driver" = 'chris amon') - (SELECT "points" FROM table_204_641 WHERE "driver" = 'jim clark'))
what is the difference in points between chris amon and jim clark ?
CREATE TABLE table_204_641 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number, "points" number )
SELECT team FROM table_26914854_3 WHERE date_of_appointment = "11 June 2010"
what is the date of appointment 11 june 2010?
CREATE TABLE table_26914854_3 (team VARCHAR, date_of_appointment VARCHAR)
SELECT MAX(peak) FROM table_name_81 WHERE track = "moño negro" AND year < 1996
What number did Moño Negro peak at before 1996?
CREATE TABLE table_name_81 (peak INTEGER, track VARCHAR, year VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.diagnosis = "UPPER GI BLEED"
How many patients discharge location is snf and were diagnosed with the primary disease upper gi bleed?
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, 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 ) 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 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 )