answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT nationality FROM table_22402438_7 WHERE player = "John Garrett"
Which nationality is player John Garrett?
CREATE TABLE table_22402438_7 (nationality VARCHAR, player VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.label = "WBC, Pleural"
Count the number of married patients who had a wbc pleural lab test done.
CREATE TABLE procedures ( 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 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 )
SELECT suffix FROM table_name_77 WHERE prefix = "thiocyanato- (-scn)"
Which item has the suffix containing thiocyanato- (-scn) as a prefix?
CREATE TABLE table_name_77 (suffix VARCHAR, prefix VARCHAR)
SELECT team_classification FROM table_22410316_17 WHERE combativity_prize = "Ricardo Serrano"
what team had ricardo serrano for combativity prize?
CREATE TABLE table_22410316_17 (team_classification VARCHAR, combativity_prize VARCHAR)
SELECT player_name FROM table_10361625_1 WHERE position = "Linebacker" AND college = "Illinois"
What is the name of the linebacker at Illinois college?
CREATE TABLE table_10361625_1 ( player_name VARCHAR, position VARCHAR, college VARCHAR )
SELECT formula FROM table_name_7 WHERE chemical_class = "thial"
Which formula has thial as a chemical class?
CREATE TABLE table_name_7 (formula VARCHAR, chemical_class VARCHAR)
SELECT COUNT(production_stagemanager) FROM table_22410780_1 WHERE male_rep = "Gabriel Di Chiara"
How many production stage managers worked with Gabriel di Chiara as the Male Rep?
CREATE TABLE table_22410780_1 (production_stagemanager VARCHAR, male_rep VARCHAR)
SELECT microbiologyevents.org_name FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26612) AND microbiologyevents.spec_type_desc = 'urine' AND NOT microbiologyevents.org_name IS NULL AND DATETIME(microbiologyevents.charttime) >= DATETIME(CURRENT_TIME(), '-69 month') ORDER BY microbiologyevents.charttime LIMIT 1
what was the organism name found since 69 months ago in patient 26612's first urine microbiology test?
CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) 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 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 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 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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label 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 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 d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) 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 microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text )
SELECT date FROM table_name_97 WHERE away_team = "fitzroy"
If fitzroy is the Away team, what Date did they play?
CREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(production_stagemanager) FROM table_22410780_1 WHERE secretary = "Rachel Hartmann"
How many production stage managers worked with secretary Rachel Hartmann?
CREATE TABLE table_22410780_1 (production_stagemanager VARCHAR, secretary VARCHAR)
SELECT date FROM table_name_23 WHERE score = "42-6"
What was the date of game with a score of 42-6?
CREATE TABLE table_name_23 ( date VARCHAR, score VARCHAR )
SELECT home_team FROM table_name_89 WHERE date = "15 july 1967" AND away_team = "fitzroy"
When the Away team is fitzroy on the Date of 15 july 1967, what was the Home team playing?
CREATE TABLE table_name_89 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT performance_liaison FROM table_22410780_1 WHERE dramaturge = "Chrisena Ricci"
Who were the performance liaisons for the dramaturge Chrisena Ricci?
CREATE TABLE table_22410780_1 (performance_liaison VARCHAR, dramaturge VARCHAR)
SELECT "Year(s) won" FROM table_13142 WHERE "Total" = '289'
Which Year(s) won has a Total of 289?
CREATE TABLE table_13142 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text )
SELECT venue FROM table_name_5 WHERE away_team = "st kilda"
Which Venue has an Away team of st kilda?
CREATE TABLE table_name_5 (venue VARCHAR, away_team VARCHAR)
SELECT male_rep FROM table_22410780_1 WHERE artistic_director = "Caroline Rhoads"
Who was the male rep. when Caroline Rhoads was the artistic director?
CREATE TABLE table_22410780_1 (male_rep VARCHAR, artistic_director VARCHAR)
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'ath ext ntv art gngrene')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'thiamine study drug (*ind*)') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id
what number of patients were prescribed thiamine study drug (*ind*) in the same hospital visit after having been diagnosed with ath ext ntv art gngrene?
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 outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) 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 microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name 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 d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime 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 procedures_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 inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount 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 ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title 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 d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text )
SELECT AVG(place) FROM table_name_90 WHERE draw < 2
What place has a draw smaller than 2?
CREATE TABLE table_name_90 (place INTEGER, draw INTEGER)
SELECT COUNT(driver) FROM table_2241101_1 WHERE manufacturer = "Toyota"
How many different drivers were there for the team when the manufacturer was Toyota?
CREATE TABLE table_2241101_1 (driver VARCHAR, manufacturer VARCHAR)
SELECT COUNT(DISTINCT instructor.instructor_id) FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ARTDES' AND course.number = 210 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id AND semester.semester = 'Spring-Summer' AND semester.semester_id = course_offering.semester AND semester.year = 2017
ARTDES 210 is taught by how many professors during Spring-Summer 2017 ?
CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) 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 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 jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE 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 program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) 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 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 semester ( semester_id int, semester varchar, year 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 )
SELECT launch_date__utc_ FROM table_name_32 WHERE cospar_id_satcat_โ„– = "1995-022a"
What is the launch date of the satellite with a COSPAR ID of 1995-022a?
CREATE TABLE table_name_32 (launch_date__utc_ VARCHAR, cospar_id_satcat_โ„– VARCHAR)
SELECT COUNT(year) FROM table_2241101_1 WHERE date = "February 27"
In how many different years did the race happen on February 27?
CREATE TABLE table_2241101_1 (year VARCHAR, date VARCHAR)
SELECT "Sprints classification" FROM table_55587 WHERE "Points Classification" = 'mark cavendish' AND "Team Classification" = 'caisse d''epargne'
What Sprints classification has the Points classification, Mark Cavendish and Team classification, Caisse D'epargne?
CREATE TABLE table_55587 ( "Stage (Winner)" text, "General Classification" text, "Mountains Classification" text, "Points Classification" text, "Sprints classification" text, "Team Classification" text )
SELECT cospar_id_satcat_โ„– FROM table_name_20 WHERE launch_vehicle = "titan iv(401)a"
What is the COSPAR ID of the satellite with a titan iv(401)a launch vehicle?
CREATE TABLE table_name_20 (cospar_id_satcat_โ„– VARCHAR, launch_vehicle VARCHAR)
SELECT team FROM table_2241101_1 WHERE average_speed__mph_ = "107.063"
What team had average speed of 107.063 mph?
CREATE TABLE table_2241101_1 (team VARCHAR, average_speed__mph_ VARCHAR)
SELECT 'Six months ago', COUNT(*) FROM Posts WHERE PostTypeId = 2 AND CreationDate BETWEEN DATEADD('m', -6, GETDATE()) AND DATEADD('m', -6, DATEADD('w', -1, GETDATE())) UNION ALL SELECT 'Two years ago months ago', COUNT(*) FROM Posts WHERE PostTypeId = 2 AND CreationDate BETWEEN DATEADD('y', -2, GETDATE()) AND DATEADD('y', -2, DATEADD('w', -1, GETDATE()))
[WIP] Number of answers in a given week over time.
CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) 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 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 PostTypes ( Id number, Name text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) 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 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 ReviewTaskResultTypes ( 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 Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) 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 PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) 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 Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) 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 PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId 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 PostTags ( PostId number, TagId number )
SELECT launch_designation FROM table_name_53 WHERE cospar_id_satcat_โ„– = "2009-001a"
What is the launch designation of the satellite with a 2009-001a COSPAR ID?
CREATE TABLE table_name_53 (launch_designation VARCHAR, cospar_id_satcat_โ„– VARCHAR)
SELECT report FROM table_2241101_1 WHERE year = 2010
What was the report for 2010?
CREATE TABLE table_2241101_1 (report VARCHAR, year VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2107" AND lab.itemid = "51501"
how many patients with lab test item id 51501 were born before 2107?
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 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 procedures ( 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 )
SELECT launch_site FROM table_name_71 WHERE cospar_id_satcat_โ„– = "2003-041a"
What is the launch site of the satellite with a 2003-041a COSPAR ID?
CREATE TABLE table_name_71 (launch_site VARCHAR, cospar_id_satcat_โ„– VARCHAR)
SELECT COUNT(race_time) FROM table_2241259_1 WHERE driver = "Kevin Harvick"
Name the total number of race time for kevin harvick
CREATE TABLE table_2241259_1 (race_time VARCHAR, driver VARCHAR)
SELECT "Aggregate" FROM table_68560 WHERE "Opponents" = 'tauras'
Name the aggregate with opponents of tauras
CREATE TABLE table_68560 ( "Season" text, "Competition" text, "Round" text, "Opponents" text, "Home leg" text, "Away leg" text, "Aggregate" text )
SELECT construction_completed FROM table_name_1 WHERE cerclis_id = "ard092916188"
What construction has a CERCLIS ID of ard092916188?
CREATE TABLE table_name_1 (construction_completed VARCHAR, cerclis_id VARCHAR)
SELECT manufacturer FROM table_2241841_1 WHERE year = "2004"
What manufacturer made the car that won in 2004?
CREATE TABLE table_2241841_1 (manufacturer VARCHAR, year VARCHAR)
SELECT "CPU speed" FROM table_13823 WHERE "Type" = 'new plus'
What is the CPU speed(s) of the New Plus type hardware?
CREATE TABLE table_13823 ( "Brand" text, "Model" text, "Type" text, "Modem" text, "Storage" text, "CPU speed" text, "CPU chip" text )
SELECT cerclis_id FROM table_name_16 WHERE deleted = "04/07/2008"
What CERCLIS ID is Deleted of 04/07/2008?
CREATE TABLE table_name_16 (cerclis_id VARCHAR, deleted VARCHAR)
SELECT COUNT(miles__km_) FROM table_2241841_1 WHERE manufacturer = "Dodge"
How many wins are with Dodge vehicles?
CREATE TABLE table_2241841_1 (miles__km_ VARCHAR, manufacturer VARCHAR)
SELECT "UK Broadcast Date" FROM table_1209 WHERE "Presenter" = 'Buck Henry'
What was the UK broadcast date for the episode presented by Buck Henry?
CREATE TABLE table_1209 ( "Episode No." text, "Episode Title" text, "UK Broadcast Date" text, "Presenter" text, "Countries Visited" text )
SELECT construction_completed FROM table_name_48 WHERE listed = "09/08/1983" AND deleted = "โ€“" AND name = "mid-south wood products"
What construction has a Listed 09/08/1983, and a Deleted of โ€“, and a Name of mid-south wood products?
CREATE TABLE table_name_48 (construction_completed VARCHAR, name VARCHAR, listed VARCHAR, deleted VARCHAR)
SELECT manufacturer FROM table_2241841_1 WHERE date = "May 21"
Who made the car that won the race on May 21?
CREATE TABLE table_2241841_1 (manufacturer VARCHAR, date VARCHAR)
SELECT "Netflix" FROM table_75286 WHERE "Series Ep." = '1-01'
What is the Netflix number having a series episode of 1-01?
CREATE TABLE table_75286 ( "Series Ep." text, "Episode" real, "Netflix" text, "Segment A" text, "Segment B" text, "Segment C" text, "Segment D" text )
SELECT construction_completed FROM table_name_49 WHERE listed = "09/08/1983" AND name = "cecil lindsey"
What is the Construction that has a Listed 09/08/1983, and a Name of cecil lindsey?
CREATE TABLE table_name_49 (construction_completed VARCHAR, listed VARCHAR, name VARCHAR)
SELECT laps FROM table_2241841_1 WHERE race_time = "4:17:18"
In the race with a winning time of 4:17:18, how many laps were run?
CREATE TABLE table_2241841_1 (laps VARCHAR, race_time VARCHAR)
SELECT ground FROM table_name_83 WHERE away = "high park demons"
The Away High Park Demons was which Ground?
CREATE TABLE table_name_83 ( ground VARCHAR, away VARCHAR )
SELECT AVG(crowd) FROM table_name_63 WHERE venue = "kardinia park"
What was the attendance at Kardinia Park?
CREATE TABLE table_name_63 (crowd INTEGER, venue VARCHAR)
SELECT team FROM table_2241841_1 WHERE race_time = "3:15:43"
What team set a 3:15:43 winning time?
CREATE TABLE table_2241841_1 (team VARCHAR, race_time VARCHAR)
SELECT Directed_by, COUNT(Directed_by) FROM film GROUP BY Directed_by
What is the number of films of each director? Return a bar chart.
CREATE TABLE schedule ( Cinema_ID int, Film_ID int, Date text, Show_times_per_day int, Price float ) CREATE TABLE film ( Film_ID int, Rank_in_series int, Number_in_season int, Title text, Directed_by text, Original_air_date text, Production_code text ) CREATE TABLE cinema ( Cinema_ID int, Name text, Openning_year int, Capacity int, Location text )
SELECT date FROM table_name_43 WHERE week = 16
What was the Date of Week 16?
CREATE TABLE table_name_43 (date VARCHAR, week VARCHAR)
SELECT COUNT(hometown) FROM table_22447251_2 WHERE height = "1.80"
How many different cities are represented by contestants whose height stands at 1.80?
CREATE TABLE table_22447251_2 (hometown VARCHAR, height 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 = 'cholangiogram nec') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 76005) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
how many times did patient 76005 in the last year have a cholangiogram nec?
CREATE TABLE diagnoses_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 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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) 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 outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) 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_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name 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 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 cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) 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 transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time )
SELECT date FROM table_name_85 WHERE home = "colorado"
What date was Colorado the home team?
CREATE TABLE table_name_85 (date VARCHAR, home VARCHAR)
SELECT height FROM table_22447251_2 WHERE contestant = "Alexandra Dรญaz Bello"
How tall is contestant Alexandra Dรญaz Bello?
CREATE TABLE table_22447251_2 (height VARCHAR, contestant VARCHAR)
SELECT "Language" FROM table_27577 WHERE "Reading" = '94.47'
What was the language score when the reading score was 94.47?
CREATE TABLE table_27577 ( "School Year" text, "Language" text, "Science" text, "Reading" text, "Mathematics" text, "Social Studies" text )
SELECT record FROM table_name_69 WHERE decision = "backstrom" AND date = "november 28"
What was the record for the game on November 28 when the decision was Backstrom?
CREATE TABLE table_name_69 (record VARCHAR, decision VARCHAR, date VARCHAR)
SELECT province, _community FROM table_22447251_2 WHERE hometown = "Villa Bisonรณ"
Which province is Villa Bisonรณ in?
CREATE TABLE table_22447251_2 (province VARCHAR, _community VARCHAR, hometown VARCHAR)
SELECT MAX(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-8147')) AND lab.labname = 'rbc' AND DATETIME(lab.labresulttime) >= DATETIME(CURRENT_TIME(), '-173 month') GROUP BY STRFTIME('%y-%m', lab.labresulttime)
tell me patient 029-8147's monthly maximum rbc since 173 months ago.
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 allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime 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 ) 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 cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number )
SELECT home FROM table_name_26 WHERE record = "11โ€“8โ€“2"
What team was the home team when the record was 11โ€“8โ€“2?
CREATE TABLE table_name_26 (home VARCHAR, record VARCHAR)
SELECT MAX(age) FROM table_22447251_2 WHERE contestant = "Valerie Chardonnens Vargas"
How old is contestant Valerie Chardonnens Vargas?
CREATE TABLE table_22447251_2 (age INTEGER, contestant VARCHAR)
SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 92788) AND icustays.outtime IS NULL) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'foley' AND d_items.linksto = 'outputevents')
tell me patient 92788's total foley output on the current icu visit.
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) 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_diagnoses ( row_id number, icd9_code text, short_title text, long_title 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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) 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 cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost 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 ) 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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) 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 microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text )
SELECT score FROM table_name_10 WHERE home = "edmonton"
What was the score when Edmonton was the home team?
CREATE TABLE table_name_10 (score VARCHAR, home VARCHAR)
SELECT original_south_korean_performer FROM table_22460085_1 WHERE original_manchester_performer = "Adebayo Bolaji"
Who was the origianal south korean performer when Adebayo Bolaji performed in Manchester?
CREATE TABLE table_22460085_1 (original_south_korean_performer VARCHAR, original_manchester_performer VARCHAR)
SELECT SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini"
What is the total amount of money spent by Lucas Mancini?
CREATE TABLE customers ( id VARCHAR, first_name VARCHAR, last_name VARCHAR ) CREATE TABLE invoices ( total INTEGER, customer_id VARCHAR )
SELECT MAX(pl_gp) FROM table_name_97 WHERE pick__number > 159 AND reg_gp > 0
Tell me the highest PI GP with pick # greater than 159 and reg GP more than 0
CREATE TABLE table_name_97 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR)
SELECT character FROM table_22460085_1 WHERE original_manchester_performer = "Lisa Davina Phillip"
What character did Lisa Davina Phillip portray?
CREATE TABLE table_22460085_1 (character VARCHAR, original_manchester_performer VARCHAR)
SELECT 1 AS st_party FROM table_name_18 WHERE first_member = "peter john locke king" AND second_member = "james watney"
What is 1st Party, when First Member is 'Peter John Locke King', and when Second Member is 'James Watney'?
CREATE TABLE table_name_18 ( first_member VARCHAR, second_member VARCHAR )
SELECT home_team FROM table_name_34 WHERE away_team = "south melbourne"
In the match where south melbourne was the away team, who was the home team?
CREATE TABLE table_name_34 (home_team VARCHAR, away_team VARCHAR)
SELECT original_broadway_performer FROM table_22460085_1 WHERE original_west_end_performer = "Sharon D. Clarke"
Who was the Broadway equivalent of Sharon D. Clarke's character?
CREATE TABLE table_22460085_1 (original_broadway_performer VARCHAR, original_west_end_performer VARCHAR)
SELECT winning_score FROM table_name_64 WHERE tournament = "oldsmobile lpga classic"
What was the winning score for oldsmobile lpga classic?
CREATE TABLE table_name_64 ( winning_score VARCHAR, tournament VARCHAR )
SELECT team_2 FROM table_name_48 WHERE team_1 = "barcelona"
Which Team 2 faced Team 1 from Barcelona?
CREATE TABLE table_name_48 (team_2 VARCHAR, team_1 VARCHAR)
SELECT character FROM table_22460085_1 WHERE original_broadway_performer = "Moya Angela"
What character did Moya Angela portray?
CREATE TABLE table_22460085_1 (character VARCHAR, original_broadway_performer VARCHAR)
SELECT MAX("Crowd") FROM table_55355 WHERE "Away team" = 'hawthorn'
What was the crowd number when Hawthorn was the away team?
CREATE TABLE table_55355 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT 1 AS st_leg FROM table_name_34 WHERE team_1 = "galatasaray"
Which first leg had Galatasaray as Team 1?
CREATE TABLE table_name_34 (team_1 VARCHAR)
SELECT character FROM table_22460085_1 WHERE original_west_end_performer = "Richard Fleeshman"
What character did Richard Fleeshman portray?
CREATE TABLE table_22460085_1 (character VARCHAR, original_west_end_performer VARCHAR)
SELECT MAX("Points") FROM table_19281 WHERE "Position" = 'Left tackle' AND "Extra points" = '5'
How many maximum points were there when the left tackle was played and there were 5 extra points?
CREATE TABLE table_19281 ( "Player" text, "Position" text, "Starter" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real )
SELECT event FROM table_name_8 WHERE time = "2:19"
What was the name of the Event with a time of 2:19?
CREATE TABLE table_name_8 (event VARCHAR, time VARCHAR)
SELECT original_manchester_performer FROM table_22460085_1 WHERE original_west_end_performer = "Lisa Davina Phillip"
Who was the Manchester performer of Lisa Davina Phillip's character?
CREATE TABLE table_22460085_1 (original_manchester_performer VARCHAR, original_west_end_performer VARCHAR)
SELECT "Semifinals" FROM table_72904 WHERE "Round of 32" = 'Bye'
When there was a bye in the round of 32, what was the result in the round of 16?
CREATE TABLE table_72904 ( "Athlete" text, "Event" text, "Round of 32" text, "Round of 16" text, "Quarterfinals" text, "Semifinals" text )
SELECT location FROM table_name_76 WHERE opponent = "joe lauzon"
Where was match which had Joe Lauzon as an opponent?
CREATE TABLE table_name_76 (location VARCHAR, opponent VARCHAR)
SELECT european_tier FROM table_22457674_1 WHERE artist = "Rick Springfield"
Name the european tier for rick springfield
CREATE TABLE table_22457674_1 (european_tier VARCHAR, artist VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "50805"
count the number of patients whose item id is 50805?
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 procedures ( 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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT name FROM table_name_78 WHERE city = "frankfurt" AND years_as_tallest = "1990โ€“1997"
What is the name of the building that was the tallest from 1990โ€“1997 in Frankfurt?
CREATE TABLE table_name_78 (name VARCHAR, city VARCHAR, years_as_tallest VARCHAR)
SELECT song_title FROM table_22457674_1 WHERE artist = "Europe"
Name the song title for europe
CREATE TABLE table_22457674_1 (song_title VARCHAR, artist VARCHAR)
SELECT "L2 cache" FROM table_22632 WHERE "Release date" = 'September 2009' AND "Part number(s)" = 'BY80607002529AF'
When by80607002529af is the part number and september 2009 is the release date what is the l2 cache?
CREATE TABLE table_22632 ( "Model number" text, "sSpec number" text, "Frequency" text, "Turbo" text, "Cores" real, "L2 cache" text, "L3 cache" text, "I/O bus" text, "Mult." text, "Memory" text, "Voltage" text, "TDP" text, "Socket" text, "Release date" text, "Part number(s)" text, "Release price ( USD )" text )
SELECT MAX(height__ft_) FROM table_name_58 WHERE height__m_ < 122
For a height less than 122 meters, what is the greatest height in feet?
CREATE TABLE table_name_58 (height__ft_ INTEGER, height__m_ INTEGER)
SELECT COUNT(master_recording) FROM table_22457674_1 WHERE artist = "Doobie Brothers The Doobie Brothers"
Name the number of master recording for doobie brothers the doobie brothers
CREATE TABLE table_22457674_1 (master_recording VARCHAR, artist VARCHAR)
SELECT DISTINCT paper.venueid FROM author, paper, writes WHERE author.authorname = 'Yejin Kim' AND paper.year = 2015 AND writes.authorid = author.authorid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid
What conferences did Yejin Kim submit to in 2015 ?
CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE field ( fieldid int ) CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numciting int, numcitedby int, journalid int ) CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE keyphrase ( keyphraseid int, keyphrasename varchar ) CREATE TABLE writes ( paperid int, authorid int )
SELECT MAX(height__ft_) FROM table_name_66 WHERE city = "cologne"
How high was the highest building in feet in the city of cologne?
CREATE TABLE table_name_66 (height__ft_ INTEGER, city VARCHAR)
SELECT master_recording FROM table_22457674_1 WHERE artist = "Europe"
Name the master recording for europe
CREATE TABLE table_22457674_1 (master_recording VARCHAR, artist VARCHAR)
SELECT COUNT(*) FROM table_204_73 WHERE "result" = 'win'
what was the total number of wins in the season ?
CREATE TABLE table_204_73 ( id number, "date" text, "opponent" text, "score" text, "result" text, "record" text )
SELECT MIN(height__ft_) FROM table_name_24 WHERE city = "frankfurt" AND height__m_ = 257 AND floors < 55
What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors?
CREATE TABLE table_name_24 (height__ft_ INTEGER, floors VARCHAR, city VARCHAR, height__m_ VARCHAR)
SELECT date FROM table_22464685_1 WHERE georgian_name = "แƒชแƒฎแƒแƒ•แƒ แƒ”แƒ‘แƒ แƒ“แƒ แƒฃแƒฌแƒงแƒ”แƒ‘แƒ แƒ‘แƒแƒ’แƒ แƒแƒขแƒแƒœแƒ˜แƒแƒœแƒ—แƒ"
what is the date for when the georgian name is แƒชแƒฎแƒแƒ•แƒ แƒ”แƒ‘แƒ แƒ“แƒ แƒฃแƒฌแƒงแƒ”แƒ‘แƒ แƒ‘แƒแƒ’แƒ แƒแƒขแƒแƒœแƒ˜แƒแƒœแƒ—แƒ?
CREATE TABLE table_22464685_1 (date VARCHAR, georgian_name VARCHAR)
SELECT date FROM table_name_63 WHERE away_team = "st kilda"
When was a game played where the away team is St Kilda?
CREATE TABLE table_name_63 ( date VARCHAR, away_team VARCHAR )
SELECT height__m_ FROM table_name_66 WHERE city = "frankfurt" AND height__ft_ = 850
What is the height in meters for a building in Frankfurt that is 850 feet tall?
CREATE TABLE table_name_66 (height__m_ VARCHAR, city VARCHAR, height__ft_ VARCHAR)
SELECT transliteration FROM table_22464685_1 WHERE period_covered = "1125-1223"
what is the transliteration during the period covered is 1125-1223?
CREATE TABLE table_22464685_1 (transliteration VARCHAR, period_covered VARCHAR)
SELECT t.TagName, COUNT(*) AS PostCount FROM Posts AS p LEFT JOIN Posts AS q ON p.ParentId = q.Id LEFT JOIN (PostTags AS pt INNER JOIN Tags AS t ON pt.TagId = t.Id) ON pt.PostId = p.Id OR pt.PostId = q.Id WHERE p.OwnerUserId = '##UserId##' GROUP BY t.TagName ORDER BY PostCount DESC, t.TagName
User's Tags by Post Count.
CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) 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 SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, 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 Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE FlagTypes ( 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 PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) 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 Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE VoteTypes ( Id number, Name 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 ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE ReviewTaskTypes ( 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 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 ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostTypes ( Id number, Name text ) 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 ReviewTaskResultTypes ( Id number, Name text, Description text )
SELECT mintage FROM table_name_76 WHERE theme = "toronto maple leafs" AND issue_price < 24.95
What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95?
CREATE TABLE table_name_76 (mintage VARCHAR, theme VARCHAR, issue_price VARCHAR)
SELECT author FROM table_22464685_1 WHERE english_name = "Histories and Eulogies of the Sovereigns"
Who is the auther when the english name was histories and eulogies of the sovereigns?
CREATE TABLE table_22464685_1 (author VARCHAR, english_name VARCHAR)
SELECT investor_id, COUNT(*) FROM TRANSACTIONS GROUP BY investor_id
Show the number of transactions for different investors.
CREATE TABLE TRANSACTIONS ( investor_id VARCHAR )
SELECT away_team AS score FROM table_name_39 WHERE away_team = "collingwood"
What was Collingwood's score in their away game?
CREATE TABLE table_name_39 (away_team VARCHAR)
SELECT author FROM table_22464685_1 WHERE transliteration = "lasha-giorgis droindeli matiane"
who is the auther when the transliteration is lasha-giorgis droindeli matiane?
CREATE TABLE table_22464685_1 (author VARCHAR, transliteration VARCHAR)