answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT ViewCount / 100 AS Hundred_Views, COUNT(*) AS Nquestions FROM Posts WHERE PostTypeId = 1 GROUP BY ViewCount / 100 ORDER BY ViewCount / 100
graph of distribution of question view counts.
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 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 ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment 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 Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostHistoryTypes ( Id number, Name 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 TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) 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 PostTags ( PostId number, TagId number ) 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 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 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 PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) 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 ReviewTaskTypes ( 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 PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text )
SELECT directed_by FROM table_24132054_1 WHERE no_in_series = 28
Who directed episode 28 in the series?
CREATE TABLE table_24132054_1 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT dominant_religion__2002_ FROM table_2562572_35 WHERE cyrillic_name_other_names = "Меленци"
Name the dominant religion 2002 for меленци
CREATE TABLE table_2562572_35 (dominant_religion__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT MIN(average) FROM table_name_81 WHERE city = "bergen, norway"
What is the Average of bergen, norway?
CREATE TABLE table_name_81 ( average INTEGER, city VARCHAR )
SELECT MIN(no_in_series) FROM table_24132083_1 WHERE written_by = "Lauren Gussis"
What in the series number of the episode written by Lauren Gussis?
CREATE TABLE table_24132083_1 (no_in_series INTEGER, written_by VARCHAR)
SELECT COUNT(population__2011_) FROM table_2562572_35 WHERE settlement = "Perlez"
Name the total number of population 2011 for perlez
CREATE TABLE table_2562572_35 (population__2011_ VARCHAR, settlement VARCHAR)
SELECT clubs FROM table_19412902_1 WHERE group_stage = 4 AND member_association = "Iran"
which club in group stage 4 had member association iran
CREATE TABLE table_19412902_1 ( clubs VARCHAR, group_stage VARCHAR, member_association VARCHAR )
SELECT COUNT(original_air_date) FROM table_24132083_1 WHERE directed_by = "Marcos Siega" AND written_by = "Scott Buck"
On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?
CREATE TABLE table_24132083_1 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT type FROM table_2562572_52 WHERE settlement = "Subotište"
What is the type when the settlement is subotište?
CREATE TABLE table_2562572_52 (type VARCHAR, settlement VARCHAR)
SELECT "Rider" FROM table_27455 WHERE "Thurs 3 June" = '20'' 27.93 110.615mph'
If Thursday 3 June is 20' 27.93 110.615mph, what are the names of the riders?
CREATE TABLE table_27455 ( "Rank" real, "Rider" text, "Sat 29 May" text, "Mon 31 May" text, "Tues 1 June" text, "Wed 2 June" text, "Thurs 3 June" text, "Fri 4 June" text )
SELECT MIN(no_in_series) FROM table_24132083_1 WHERE written_by = "Tim Schlattmann"
What's the series number of the episode written by Tim Schlattmann?
CREATE TABLE table_24132083_1 (no_in_series INTEGER, written_by VARCHAR)
SELECT COUNT(dominant_religion__2002_) FROM table_2562572_52 WHERE cyrillic_name = "Сибач"
how many times is the cyrillic name сибач?
CREATE TABLE table_2562572_52 (dominant_religion__2002_ VARCHAR, cyrillic_name VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "10" AND procedures.long_title = "(Aorto)coronary bypass of two coronary arteries"
count the number of patients whose days of hospital stay is greater than 10 and procedure long title is (aorto)coronary bypass of two coronary arteries?
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 semifinal_matches FROM table_2413292_1 WHERE commercial_name = "Buick WCT Finals"
Who played in the semi finals matches at the Buick WCT finals?
CREATE TABLE table_2413292_1 (semifinal_matches VARCHAR, commercial_name VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_52 WHERE cyrillic_name = "Брестач"
What is the largest ethnic group (2002) when cyrillic name is брестач?
CREATE TABLE table_2562572_52 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.icd9_code = "7069"
count the number of patients whose admission location is clinic referral/premature and diagnoses icd9 code is 7069?
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 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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT date FROM table_24138601_2 WHERE final_score = "L 28–15"
Name the date for l 28–15
CREATE TABLE table_24138601_2 (date VARCHAR, final_score VARCHAR)
SELECT COUNT(dominant_religion__2002_) FROM table_2562572_52 WHERE settlement = "Karlovčić"
How many times is the settlement karlovčić?
CREATE TABLE table_2562572_52 (dominant_religion__2002_ VARCHAR, settlement VARCHAR)
SELECT MIN("Jews and others 1") FROM table_28192 WHERE "Localities" = '11'
What is the lowest jews and others 1 for the localities 11?
CREATE TABLE table_28192 ( "Metropolitan ring" text, "Localities" real, "Total" real, "Jews and others 1" real, "Thereof: Jews" real, "Arabs" real, "Population density (per km\u00b2)" text, "Annual Population growth rate" text )
SELECT location FROM table_24136365_2 WHERE opponent = "Tiger-Cats"
When tiger-cats is the opponent what is the location?
CREATE TABLE table_24136365_2 (location VARCHAR, opponent VARCHAR)
SELECT cyrillic_name FROM table_2562572_52 WHERE settlement = "Ašanja"
What is the cyrillic name when the settlement is ašanja?
CREATE TABLE table_2562572_52 (cyrillic_name VARCHAR, settlement VARCHAR)
SELECT MAX(starts) FROM table_name_49 WHERE year = 2007 AND avg_start > 17.6
What was the highest number of starts in 2007 when the average start was over 17.6?
CREATE TABLE table_name_49 ( starts INTEGER, year VARCHAR, avg_start VARCHAR )
SELECT location FROM table_24136365_2 WHERE week = 4
When 4 is the week what is the location?
CREATE TABLE table_24136365_2 (location VARCHAR, week VARCHAR)
SELECT MIN(population__2002_) FROM table_2562572_5 WHERE population__2011_ = 9564
Name the least population for 2002 for 2011 being 9564
CREATE TABLE table_2562572_5 (population__2002_ INTEGER, population__2011_ VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Promethazine HCl"
count the number of patients whose drug name is promethazine hcl?
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 ) 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 )
SELECT record FROM table_24136814_3 WHERE date = "September 7"
What was the record for the Argonauts on September 7?
CREATE TABLE table_24136814_3 (record VARCHAR, date VARCHAR)
SELECT COUNT(population__1991_) FROM table_2562572_5 WHERE population__2011_ = 9564
Name the total number of population for 1991 for 9564 for 2011
CREATE TABLE table_2562572_5 (population__1991_ VARCHAR, population__2011_ VARCHAR)
SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.age >= "79"
calculate the maximum days for which patients aged 79 years or more were hospitalized.
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 ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT MIN(week) FROM table_24136814_3
What is he smallest numbered week?
CREATE TABLE table_24136814_3 (week INTEGER)
SELECT city___municipality FROM table_2562572_5 WHERE urban_settlement = "Kanjiža"
Name the city for kanjiža
CREATE TABLE table_2562572_5 (city___municipality VARCHAR, urban_settlement VARCHAR)
SELECT p.Id AS "user_link", p.Ranking, SUBSTRING(CAST(CAST(Ranking AS FLOAT) / Count * 100.00 AS TEXT), 1, 6) + '%' AS Percentile, Reputation, SUBSTRING(CAST(CAST(Reputation AS FLOAT) / Sum * 100.00 AS TEXT), 1, 6) + '%' AS "Hoarded rep" FROM (SELECT Id, ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS Ranking, Reputation FROM Users WHERE Reputation > @MinRep) AS p, (SELECT Count = COUNT(*) FROM Users WHERE Reputation > @MinRep) AS Counts, (SELECT Sum = SUM(Reputation) FROM Users WHERE Reputation > @MinRep) AS Rep ORDER BY ranking LIMIT 1000
User Rank and Hoarded Rep.
CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) 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 Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, 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 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 Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId 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 ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId 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 ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress 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 ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time )
SELECT celli FROM table_2414_1 WHERE section_size = "20 players"
How many cellos are suggested in the reference with section size for 20 players?
CREATE TABLE table_2414_1 (celli VARCHAR, section_size VARCHAR)
SELECT city___municipality FROM table_2562572_5 WHERE cyrillic_name = "Ада"
Name the city for ада
CREATE TABLE table_2562572_5 (city___municipality VARCHAR, cyrillic_name VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND lab.itemid = "50983"
calculate the number of patients with item id 50983 who were provided phys referral/normal deli.
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 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 reference FROM table_2414_1 WHERE violas = 2 AND author = "Nelson Riddle"
What reference, written by Nelson Riddle, suggests 2 violas?
CREATE TABLE table_2414_1 (reference VARCHAR, violas VARCHAR, author VARCHAR)
SELECT MIN(population__2002_) FROM table_2562572_5 WHERE urban_settlement = "Ada"
Name the population for 2002 being ada
CREATE TABLE table_2562572_5 (population__2002_ INTEGER, urban_settlement VARCHAR)
SELECT SUM("Number of clubs") FROM table_12752 WHERE "Season" < '1992' AND "Total wins" > '3'
What is the sum of the number of clubs in seasons before 1992 with more than 3 total wins?
CREATE TABLE table_12752 ( "Season" real, "Winners" text, "Total wins" real, "Runners-up" text, "Third-place" text, "Number of clubs" real )
SELECT MAX(basses) FROM table_2414_1
What is the biggest number of basses suggested in either one of the references?
CREATE TABLE table_2414_1 (basses INTEGER)
SELECT MAX(no_votes) FROM table_256286_14
Name the most no votes
CREATE TABLE table_256286_14 (no_votes INTEGER)
SELECT opponent FROM table_name_66 WHERE arena = "honda center" AND date = "march 29"
What is the Opponent at the Honda Center on March 29?
CREATE TABLE table_name_66 ( opponent VARCHAR, arena VARCHAR, date VARCHAR )
SELECT current_marital_status FROM table_24143253_2 WHERE name = "Stella Farentino"
What is Stella Farentino's current relationship status?
CREATE TABLE table_24143253_2 (current_marital_status VARCHAR, name VARCHAR)
SELECT MIN(yes_votes) FROM table_256286_14 WHERE passed = "YES"
Name the least yes votes for yes passed
CREATE TABLE table_256286_14 (yes_votes INTEGER, passed VARCHAR)
SELECT SUM(against) FROM table_name_19 WHERE draw = 1 AND played < 8
What is the total against with 1 draw and less than 8 played?
CREATE TABLE table_name_19 ( against INTEGER, draw VARCHAR, played VARCHAR )
SELECT children_together FROM table_24143253_2 WHERE deceased_spouse = "Dennis Hawley"
How many children did Dennis Hawley have at his time of death?
CREATE TABLE table_24143253_2 (children_together VARCHAR, deceased_spouse VARCHAR)
SELECT _percentage_yes FROM table_256286_14 WHERE yes_votes = 78961
Name the % yes for yes votes for 78961
CREATE TABLE table_256286_14 (_percentage_yes VARCHAR, yes_votes VARCHAR)
SELECT "Opponent" FROM table_32706 WHERE "Attendance" = '40,070'
Which opponent had an attendance of 40,070?
CREATE TABLE table_32706 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Attendance" text )
SELECT cause_of_death FROM table_24143253_2 WHERE name = "Stella Farentino"
How did Stella Farentino die?
CREATE TABLE table_24143253_2 (cause_of_death VARCHAR, name VARCHAR)
SELECT description FROM table_256286_43 WHERE no_votes = 233759
What is every description if NO votes is 233759?
CREATE TABLE table_256286_43 (description VARCHAR, no_votes VARCHAR)
SELECT "3rd place" FROM table_69694 WHERE "Winners" = 'weymouth wildcats' AND "4th place" = 'boston barracudas'
Name the 3rd place with winners of weymouth wildcats and 4th place of boston barracudas
CREATE TABLE table_69694 ( "Year" real, "Winners" text, "2nd place" text, "3rd place" text, "4th place" text )
SELECT cause_of_death FROM table_24143253_4 WHERE length_of_marriage = "28 years"
What was the cause of death in the marriage that lasted 28 years?
CREATE TABLE table_24143253_4 (cause_of_death VARCHAR, length_of_marriage VARCHAR)
SELECT passed FROM table_256286_43 WHERE no_votes = 312187
What is every entry for passed when NO votes is 312187?
CREATE TABLE table_256286_43 (passed VARCHAR, no_votes VARCHAR)
SELECT district FROM table_1341865_40 WHERE incumbent = "Albert W. Johnson"
What district is incumbent albert w. johnson from?
CREATE TABLE table_1341865_40 ( district VARCHAR, incumbent VARCHAR )
SELECT length_of_marriage FROM table_24143253_4 WHERE name = "Ray Bradbury"
How long were Ray Bradbury and his wife married?
CREATE TABLE table_24143253_4 (length_of_marriage VARCHAR, name VARCHAR)
SELECT _percentage_yes FROM table_256286_43 WHERE type = "Ref"
What is every value for %yes when type is ref?
CREATE TABLE table_256286_43 (_percentage_yes VARCHAR, type VARCHAR)
SELECT "Condition" FROM table_74970 WHERE "Bleeding time" = 'unaffected' AND "Partial thromboplastin time" = 'prolonged' AND "Prothrombin time" = 'unaffected'
Which Condition has a Bleeding time of unaffected, and a Partial thromboplastin time of prolonged, and a Prothrombin time of unaffected?
CREATE TABLE table_74970 ( "Condition" text, "Prothrombin time" text, "Partial thromboplastin time" text, "Bleeding time" text, "Platelet count" text )
SELECT name FROM table_24143253_1 WHERE deceased_spouse = "Louis Malle"
Name the name for deceased spouse being louis malle
CREATE TABLE table_24143253_1 (name VARCHAR, deceased_spouse VARCHAR)
SELECT description FROM table_256286_43 WHERE _percentage_yes = "51.82%"
What is every entry for description when the value of %yes is 51.82%?
CREATE TABLE table_256286_43 (description VARCHAR, _percentage_yes VARCHAR)
SELECT * FROM table_test_29 WHERE hemorrhagic_stroke = 1
history of hemorrhagic stroke.
CREATE TABLE table_test_29 ( "id" int, "bleeding" int, "left_ventricular_ejection_fraction_lvef" int, "systolic_blood_pressure_sbp" int, "hemoglobin_a1c_hba1c" float, "heart_disease" bool, "trauma" bool, "renal_disease" bool, "creatinine_clearance_cl" float, "hemorrhagic_stroke" bool, "platelet_count" float, "surgery" bool, "thrombocytopenia" float, "liver_disease" bool, "oral_anticoagulant_therapy" bool, "heart_rate" int, "kidney_disease" bool, "inr" float, "hypertension" bool, "NOUSE" float )
SELECT deceased_spouse FROM table_24143253_1 WHERE length_of_marriage = "24 years"
Name the deceased spouse for length of marriage being 24 years
CREATE TABLE table_24143253_1 (deceased_spouse VARCHAR, length_of_marriage VARCHAR)
SELECT title FROM table_25640730_7 WHERE _number = 12
What is the episode title for episode number 12?
CREATE TABLE table_25640730_7 (title VARCHAR, _number VARCHAR)
SELECT member FROM table_name_50 WHERE electorate = "kennedy"
Which member has an Electorate of kennedy?
CREATE TABLE table_name_50 ( member VARCHAR, electorate VARCHAR )
SELECT deceased_spouse FROM table_24143253_1 WHERE name = "Carol DeLuise"
Name the decease spouse for carol deluise
CREATE TABLE table_24143253_1 (deceased_spouse VARCHAR, name VARCHAR)
SELECT written_by FROM table_25640730_7 WHERE uk_air_date = "February 18, 2013"
If the UK air date is February 18, 2013, who was the episode written by?
CREATE TABLE table_25640730_7 (written_by VARCHAR, uk_air_date VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "0"
what is the number of patients who are still alive?
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 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT children_together FROM table_24143253_1 WHERE length_of_marriage = "9 years"
Name the children together for 9 years of marriage
CREATE TABLE table_24143253_1 (children_together VARCHAR, length_of_marriage VARCHAR)
SELECT COUNT(canadian_viewers__millions_) FROM table_25640730_7 WHERE directed_by = "Yannick Bisson"
If the director is Yannick Bisson, what was the Canadian amount of viewers?
CREATE TABLE table_25640730_7 (canadian_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT dorm_name, COUNT(*) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.Age > 20 GROUP BY T3.dorm_name ORDER BY COUNT(*)
Find the number of students who is older than 20 in each dorm Plot them as bar chart, I want to rank in ascending by the Y.
CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) )
SELECT deceased_spouse FROM table_24143253_5 WHERE length_of_marriage = "4 years"
Who was the deceased spouse who was married for 4 years?
CREATE TABLE table_24143253_5 (deceased_spouse VARCHAR, length_of_marriage VARCHAR)
SELECT passed FROM table_256286_63 WHERE _percentage_yes = "42.87%"
Did the legislation pass that had 42.87% yes votes?
CREATE TABLE table_256286_63 (passed VARCHAR, _percentage_yes VARCHAR)
SELECT Founder, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY SUM(Price) DESC
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of founder and the sum of price , and group by attribute founder, order by the total number of price in desc please.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT children_together FROM table_24143253_5 WHERE name = "Benjamin Harrison"
Who were the children of Benjamin Harrison?
CREATE TABLE table_24143253_5 (children_together VARCHAR, name VARCHAR)
SELECT no_votes FROM table_256286_63 WHERE description = "Partial public funding of election campaigns"
How many no votes were there in the partial public funding of election campaigns legislation?
CREATE TABLE table_256286_63 (no_votes VARCHAR, description VARCHAR)
SELECT COUNT("Left Bloc") FROM table_19479 WHERE "Social Democratic" = '32.1%'
How many percentages of Left Bloc correspond to a 32.1% Social Democratic?
CREATE TABLE table_19479 ( "Date Released" text, "Polling institute" text, "Socialist" text, "Social Democratic" text, "Peoples Party" text, "Green-Communist" text, "Left Bloc" text, "Lead" text )
SELECT segment_1 FROM table_24172078_2 WHERE episode__number = "2/225"
Name the segment 1 for episode # 2/225
CREATE TABLE table_24172078_2 (segment_1 VARCHAR, episode__number VARCHAR)
SELECT MAX(touchdowns) FROM table_25642873_2 WHERE player = "Sam Babcock"
How many touchdowns did Sam Babcock get?
CREATE TABLE table_25642873_2 (touchdowns INTEGER, player VARCHAR)
SELECT "Where Built" FROM table_39471 WHERE "Year Built" < '1858'
Where was something built earlier than 1858?
CREATE TABLE table_39471 ( "Name" text, "Type" text, "Year Built" real, "Where Built" text, "Initial Owners" text )
SELECT lessons_taught FROM table_24172078_2 WHERE episode__number = "2/205"
Name the lessons taught for episode # 2/205
CREATE TABLE table_24172078_2 (lessons_taught VARCHAR, episode__number VARCHAR)
SELECT COUNT(extra_points) FROM table_25642873_2 WHERE player = "na"
How many extra points catagories are there for the na player?
CREATE TABLE table_25642873_2 (extra_points VARCHAR, player VARCHAR)
SELECT "PRINT NAME" FROM table_39448 WHERE "DATE COMPLETED" = '07/87'
What was the print name in 07/87?
CREATE TABLE table_39448 ( "PRINT NAME" text, "NICKNAME" text, "NUMBER OF COLORS" text, "FRAMED SIZE" text, "DATE COMPLETED" text )
SELECT state__class_ FROM table_2417308_3 WHERE successor = "William Bigler (D)"
What state had william bigler (d) as a successor)
CREATE TABLE table_2417308_3 (state__class_ VARCHAR, successor VARCHAR)
SELECT extra_points FROM table_25642873_2 WHERE touchdowns = 5
The player who had 5 touchdowns had how many extra points?
CREATE TABLE table_25642873_2 (extra_points VARCHAR, touchdowns VARCHAR)
SELECT date FROM table_name_4 WHERE score = "195 (-21)"
When did the Score of 195 (-21) happen?
CREATE TABLE table_name_4 ( date VARCHAR, score VARCHAR )
SELECT date_successor_seated FROM table_2417330_4 WHERE successor = "Vacant"
Name the date successor seated for successor being vacant
CREATE TABLE table_2417330_4 (date_successor_seated VARCHAR, successor VARCHAR)
SELECT MIN(safeties) FROM table_25642873_2
What is the smallest number of safeties?
CREATE TABLE table_25642873_2 (safeties INTEGER)
SELECT COUNT("U.S. viewers (in millions)") FROM table_29271 WHERE "Title" = 'If at First You Don''t Succeed, Lie, Lie Again'
How many viewer data were given for episode 'If at First You Don't Succeed, Lie, Lie Again'?
CREATE TABLE table_29271 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (in millions)" text )
SELECT vacator FROM table_2417330_4 WHERE district = "Kentucky 2nd"
Name the vacator for kentucky 2nd
CREATE TABLE table_2417330_4 (vacator VARCHAR, district VARCHAR)
SELECT latitude FROM table_25675509_1 WHERE longitude = "157.941° E"
If the longitude is 157.941° e, what is the latitude?
CREATE TABLE table_25675509_1 (latitude VARCHAR, longitude VARCHAR)
SELECT Date_of_Birth, COUNT(Date_of_Birth) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones"
What are the dates of birth of entrepreneurs with investor 'Simon Woodroffe' or 'Peter Jones', and count them by a line chart
CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Date_of_Birth text ) CREATE TABLE entrepreneur ( Entrepreneur_ID int, People_ID int, Company text, Money_Requested real, Investor text )
SELECT successor FROM table_2417330_4 WHERE reason_for_change = "Election was successfully contested July 30, 1861"
Name the successor for election was successfully contested july 30, 1861
CREATE TABLE table_2417330_4 (successor VARCHAR, reason_for_change VARCHAR)
SELECT depth FROM table_25675509_1 WHERE latitude = "08.979° S"
If the latitude is 08.979° s, what is the depth?
CREATE TABLE table_25675509_1 (depth VARCHAR, latitude VARCHAR)
SELECT COUNT(*) FROM table_204_486 WHERE "position(s)" = 'left fielder'
tell me the number of left fielders on the list .
CREATE TABLE table_204_486 ( id number, "name" text, "season(s)" text, "position(s)" text, "notes" text )
SELECT successor FROM table_2417330_4 WHERE reason_for_change = "Vacant" AND date_successor_seated = "December 3, 1862"
Name the successor for vacant and december 3, 1862
CREATE TABLE table_2417330_4 (successor VARCHAR, reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT latitude FROM table_25675509_1 WHERE time__utc_ = "13:10:02"
At what latitude did the shock at time 13:10:02 occur?
CREATE TABLE table_25675509_1 (latitude VARCHAR, time__utc_ VARCHAR)
SELECT loss FROM table_name_20 WHERE opponent = "coyotes"
What was the loss from the coyotes as opponents?
CREATE TABLE table_name_20 ( loss VARCHAR, opponent VARCHAR )
SELECT vacator FROM table_2417340_4 WHERE district = "Georgia 2nd"
What was the vacator for georgia 2nd?
CREATE TABLE table_2417340_4 (vacator VARCHAR, district VARCHAR)
SELECT date__yyyy_mm_dd_ FROM table_25675509_1 WHERE latitude = "08.909° S"
On which date did the shock at latitude 08.909° s occur?
CREATE TABLE table_25675509_1 (date__yyyy_mm_dd_ VARCHAR, latitude VARCHAR)
SELECT position FROM table_name_30 WHERE year > 2008 AND player = "greg fredlund"
What was the position of Greg Fredlund in years after 2008?
CREATE TABLE table_name_30 ( position VARCHAR, year VARCHAR, player VARCHAR )
SELECT successor FROM table_2417340_4 WHERE vacator = "Vacant" AND district = "Alabama 3rd"
What was the successor for vacant alabama 3rd?
CREATE TABLE table_2417340_4 (successor VARCHAR, vacator VARCHAR, district VARCHAR)
SELECT longitude FROM table_25675509_1 WHERE date__yyyy_mm_dd_ = "2010-01-09"
What was the longitude for the shock that occured on 2010-01-09?
CREATE TABLE table_25675509_1 (longitude VARCHAR, date__yyyy_mm_dd_ VARCHAR)
SELECT mountain_range FROM table_name_90 WHERE region = "british columbia" AND mountain_peak = "mount edziza"
what is the mountain range when the region is british columbia and mountain pea is mount edziza?
CREATE TABLE table_name_90 ( mountain_range VARCHAR, region VARCHAR, mountain_peak VARCHAR )