answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT surface FROM table_name_63 WHERE championship = "indian wells" AND outcome = "winner" | What surface has indian wells as the championship, with winner as the outcome? | CREATE TABLE table_name_63 (
surface VARCHAR,
championship VARCHAR,
outcome VARCHAR
) |
SELECT order__number FROM table_22736523_1 WHERE song_choice = "Coba" | If Coba is the song choice, what is the order number? | CREATE TABLE table_22736523_1 (order__number VARCHAR, song_choice VARCHAR) |
SELECT _percentage_2001 FROM table_1939405_2 WHERE _percentage_2011 = "0.8%" AND province = "Manitoba" | What's the percentage in 2001 in Manitoba where the percentage in 2011 is 0.8%? | CREATE TABLE table_1939405_2 (_percentage_2001 VARCHAR, _percentage_2011 VARCHAR, province VARCHAR) |
SELECT Users.Id, COUNT(Posts.Id) FROM Users LEFT JOIN Posts ON Users.Id = Posts.OwnerUserId WHERE Posts.DeletionDate IS NULL AND PostTypeId = 1 GROUP BY Users.Id | Users with most deleted questions. | 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 ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId 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 VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
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 PostTags (
PostId number,
TagId 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 Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount 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 PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
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 PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
) |
SELECT theme FROM table_22736523_1 WHERE song_choice = "Crazy In Love" | If Crazy In Love is the song choice, what is the theme? | CREATE TABLE table_22736523_1 (theme VARCHAR, song_choice VARCHAR) |
SELECT _percentage_2001 FROM table_1939405_2 WHERE _percentage_2011 = "0.2%" | What are the percentages in 2001 in all the provinces where the percentage in 2011 is 0.2%? | CREATE TABLE table_1939405_2 (_percentage_2001 VARCHAR, _percentage_2011 VARCHAR) |
SELECT "Game Site" FROM table_1401 WHERE "Attendance" = '79176' | At which stadiums was attendance total 79176? | CREATE TABLE table_1401 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
) |
SELECT result FROM table_22736523_1 WHERE week__number = "Top 40" | For week number of the top 40, what was the results? | CREATE TABLE table_22736523_1 (result VARCHAR, week__number VARCHAR) |
SELECT MAX(latin_americans_2001) FROM table_1939405_2 WHERE _percentage_2001 = "0.0%" AND _percentage_2011 = "0.2%" | How many Latin Americans were there in 2001 in the province with 0.0% 2001 and 0.2% 2011? | CREATE TABLE table_1939405_2 (latin_americans_2001 INTEGER, _percentage_2001 VARCHAR, _percentage_2011 VARCHAR) |
SELECT * FROM table_dev_47 WHERE elevated_blood_pressure = 1 OR (systolic_blood_pressure_sbp > 130 OR diastolic_blood_pressure_dbp > 85) | elevated blood pressure > 130 mmhg systolic, > 85 mmhg diastolic | CREATE TABLE table_dev_47 (
"id" int,
"gender" string,
"gestational_diabetes" bool,
"systolic_blood_pressure_sbp" int,
"leukopenia" int,
"hemoglobin_a1c_hba1c" float,
"cd4_count" int,
"platelets" int,
"diabetic" string,
"elevated_blood_pressure" bool,
"diastolic_blood_pressure_dbp" int,
"lymphopenia" int,
"diabetes" bool,
"serum_creatinine" float,
"prior_elevated_fasting_glucose" bool,
"baseline_hemoglobin_hgb" float,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) |
SELECT result FROM table_22736523_1 WHERE week__number = "Top 9" | For week of top 9, what were the results? | CREATE TABLE table_22736523_1 (result VARCHAR, week__number VARCHAR) |
SELECT MIN(latin_americans_2011) FROM table_1939405_2 WHERE province = "Saskatchewan" | How many Latin Americans lived in 2011 in Saskatchewan? | CREATE TABLE table_1939405_2 (latin_americans_2011 INTEGER, province VARCHAR) |
SELECT COUNT(DISTINCT COURSE_PREREQUISITEalias0.course_id), COURSEalias0.department, COURSEalias0.name, COURSEalias0.number FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course AS COURSEalias1, course_offering AS COURSE_OFFERINGalias0, course_prerequisite AS COURSE_PREREQUISITEalias0, semester AS SEMESTERalias0 WHERE COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id AND COURSEalias0.course_id = COURSE_PREREQUISITEalias0.pre_course_id AND NOT COURSEalias0.course_id IN (DERIVED_TABLEalias0.course_id) AND NOT COURSEalias0.course_id IN (SELECT DISTINCT COURSE_PREREQUISITEalias1.course_id FROM course_prerequisite AS COURSE_PREREQUISITEalias1 WHERE NOT COURSE_PREREQUISITEalias1.pre_course_id IN (DERIVED_TABLEalias0.course_id)) AND COURSEalias1.course_id = COURSE_PREREQUISITEalias0.course_id AND COURSEalias1.department = 'EECS' AND SEMESTERalias0.semester = 'WN' AND SEMESTERalias0.semester_id = COURSE_OFFERINGalias0.semester AND SEMESTERalias0.year = 2016 GROUP BY COURSE_PREREQUISITEalias0.course_id ORDER BY COUNT(COURSE_PREREQUISITEalias0.course_id) DESC | What class can I take this semester that 's a prerequisite for most other classes ? | CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
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 ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id 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 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 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
) |
SELECT type FROM table_2273738_1 WHERE city = "Birmingham" | The city of Birmingham is what type of location? | CREATE TABLE table_2273738_1 (type VARCHAR, city VARCHAR) |
SELECT MIN(champ_car_world_series__2004_2007_) FROM table_19524523_1 | What is the minimum number of wins possible for the Champ Car World Series among all the drivers? | CREATE TABLE table_19524523_1 (champ_car_world_series__2004_2007_ INTEGER) |
SELECT "% 40-59" FROM table_26181 WHERE "% 60-74" = '12,40%' | What is every value for % 40-59 if % 60-74 is 12,40%? | CREATE TABLE table_26181 (
"Neighbourhood" text,
"% 0-19" text,
"% 20-39" text,
"% 40-59" text,
"% 60-74" text,
"% 75 +" text
) |
SELECT type FROM table_2273738_1 WHERE local_authority = "Leeds city Council" | Leeds City Council is the local authority for what type of location? | CREATE TABLE table_2273738_1 (type VARCHAR, local_authority VARCHAR) |
SELECT MAX(champ_car_world_series__2004_2007_) FROM table_19524523_1 WHERE usac__1956_1995_ = 2 | What is the most Champ Car wins for any driver with a USAC record of 2? | CREATE TABLE table_19524523_1 (champ_car_world_series__2004_2007_ INTEGER, usac__1956_1995_ VARCHAR) |
SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Price | For those records from the products and each product's manufacturer, find name and price , and group by attribute founder, and visualize them by a bar chart, and sort by the Y from low to high. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) |
SELECT metropolitan_area FROM table_2273738_1 WHERE county = "Tyne and Wear" | Tyne and Wear County has what total membership for their metropolitan area? | CREATE TABLE table_2273738_1 (metropolitan_area VARCHAR, county VARCHAR) |
SELECT MAX(afc_titles) FROM table_1952065_4 WHERE teams_with_division_titles = "Cleveland Browns" | How many afc titles did the Cleveland Browns have? | CREATE TABLE table_1952065_4 (afc_titles INTEGER, teams_with_division_titles VARCHAR) |
SELECT "Slalom" FROM table_35320 WHERE "Season" > '1994' AND "Overall" > '22' | What is the value for Slalom in seasons later than 1994 and overall value greater than 22? | CREATE TABLE table_35320 (
"Season" real,
"Overall" real,
"Slalom" text,
"Giant Slalom" real,
"Super G" text,
"Downhill" text,
"Combined" text
) |
SELECT MAX(metropolitan_area) FROM table_2273738_1 WHERE city = "Manchester" | What is the total membership for the metropolitan area in the city of Manchester? | CREATE TABLE table_2273738_1 (metropolitan_area INTEGER, city VARCHAR) |
SELECT division_championships FROM table_1952065_4 WHERE teams_with_division_titles = "Pittsburgh Steelers" | How many division championships did the Pittsburgh Steelers have? | CREATE TABLE table_1952065_4 (division_championships VARCHAR, teams_with_division_titles VARCHAR) |
SELECT position FROM table_11803648_21 WHERE player = "Cody Ceci" | What position does Cody Ceci play? | CREATE TABLE table_11803648_21 (
position VARCHAR,
player VARCHAR
) |
SELECT runner_up_a FROM table_22752982_5 WHERE winner = "K. P. Ramalingam" | Who was the runner-up (a) if K. P. Ramalingam won the election? | CREATE TABLE table_22752982_5 (runner_up_a VARCHAR, winner VARCHAR) |
SELECT MAX(afc_titles) FROM table_1952065_4 WHERE super_bowl_wins = 2 | How many afc titles were there when there were 2 super bowl wins? | CREATE TABLE table_1952065_4 (afc_titles INTEGER, super_bowl_wins VARCHAR) |
SELECT home_team AS score FROM table_name_55 WHERE venue = "princes park" | Who was home at Princes Park? | CREATE TABLE table_name_55 (
home_team VARCHAR,
venue VARCHAR
) |
SELECT team_name FROM table_22737506_1 WHERE races = "1 (5)" | When 1 (5) is the races what is the team name? | CREATE TABLE table_22737506_1 (team_name VARCHAR, races VARCHAR) |
SELECT COUNT(teams_with_division_titles) FROM table_1952065_4 WHERE division_championships = 9 | How many division title teams were in the division championships 9 times? | CREATE TABLE table_1952065_4 (teams_with_division_titles VARCHAR, division_championships VARCHAR) |
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'diagnoses_icd' AND cost.event_id IN (SELECT diagnoses_icd.row_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 = 'bmi 33.0-33.9,adult')) | how much does it cost to get diagnostic of bmi 33.0-33.9,adult? | 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 transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label 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 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 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
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime 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 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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
) |
SELECT MAX(poles) FROM table_22737506_1 WHERE pos = "19th" | When 19th is the position what is the highest amount of poles? | CREATE TABLE table_22737506_1 (poles INTEGER, pos VARCHAR) |
SELECT MAX(division_championships) FROM table_1952065_4 WHERE playoff_berths = 11 | What is the highest number of division championships where playoff berths were 11? | CREATE TABLE table_1952065_4 (division_championships INTEGER, playoff_berths VARCHAR) |
SELECT to_par FROM table_name_38 WHERE country = "united states" AND place = "t5" | What is the to par of the player from the United States with a t5 place? | CREATE TABLE table_name_38 (
to_par VARCHAR,
country VARCHAR,
place VARCHAR
) |
SELECT pos FROM table_22737506_1 WHERE points = 86 | When 86 is the amount of points what is the position? | CREATE TABLE table_22737506_1 (pos VARCHAR, points VARCHAR) |
SELECT original_toronto_cast FROM table_19529639_3 WHERE current_broadway_cast = "Kate Rockwell" | Who in the original Toronto cast played the character played by Kate Rockwell in the current Broadway cast? | CREATE TABLE table_19529639_3 (original_toronto_cast VARCHAR, current_broadway_cast VARCHAR) |
SELECT round_of_16 FROM table_18602462_22 WHERE semifinals = "Vergeer ( NED ) L 0-6, 1-6" | The semifinal score of vergeer ( ned ) l 0-6, 1-6 follows a round of 16 result of what? | CREATE TABLE table_18602462_22 (
round_of_16 VARCHAR,
semifinals VARCHAR
) |
SELECT MAX(margin) FROM table_22754310_1 WHERE party = "NCO" AND winner = "P. Ramachandran" | Name the most margin for nco party and p. ramachandran won | CREATE TABLE table_22754310_1 (margin INTEGER, party VARCHAR, winner VARCHAR) |
SELECT current_west_end_cast FROM table_19529639_3 WHERE original_west_end_cast = "Jodie Jacobs" | What member of the current West End cast plays the character played by Jodie Jacobs in the original West End cast? | CREATE TABLE table_19529639_3 (current_west_end_cast VARCHAR, original_west_end_cast VARCHAR) |
SELECT MIN("Ends Lost") FROM table_47260 WHERE "Stolen Ends For" < '13' AND "Stolen Ends Against" = '6' | What is the lowest ends lost when the stolen ends for is less than 13, and stolten ends against is 6? | CREATE TABLE table_47260 (
"Country" text,
"Skip" text,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends F/A" text,
"Stolen Ends For" real,
"Stolen Ends Against" real,
"Shot %" real
) |
SELECT party AS a FROM table_22754310_1 WHERE runner_up_a = "M. S. K. Sathiyendran" | Name the party a for m. s. k. sathiyendran runner up | CREATE TABLE table_22754310_1 (party VARCHAR, runner_up_a VARCHAR) |
SELECT current_broadway_cast FROM table_19529639_3 WHERE original_broadway_cast = "Constantine Maroulis" | What member of the current Broadway cast plays the character played by Constantine Maroulis from the original Broadway cast? | CREATE TABLE table_19529639_3 (current_broadway_cast VARCHAR, original_broadway_cast VARCHAR) |
SELECT "18-49 (Rating/Share)" FROM table_29464 WHERE "Air Date" = 'October 14, 2010' | when air date is october 14, 2010 what are all 18-49 (rating/share date. | CREATE TABLE table_29464 (
"#" real,
"Episode" text,
"Air Date" text,
"Rating" text,
"Share" text,
"18-49 (Rating/Share)" text,
"Viewers (m)" text,
"Weekly Rank (#)" text
) |
SELECT party AS a FROM table_22754310_1 WHERE constituency = "Sriperumbudur" | Name the party a for sriperumbudur | CREATE TABLE table_22754310_1 (party VARCHAR, constituency VARCHAR) |
SELECT COUNT(second_national_tour_year_2) FROM table_19529639_3 WHERE original_west_end_cast = "Oliver Tompsett" | How many different actors from the Second national tour year 2 played the character played by Oliver Tompsett from the original West End cast? | CREATE TABLE table_19529639_3 (second_national_tour_year_2 VARCHAR, original_west_end_cast VARCHAR) |
SELECT directed_by FROM table_11820086_1 WHERE us_viewers__millions_ = "2.57" | Who directed the episode that was viewed by 2.57 million people in the U.S.? | CREATE TABLE table_11820086_1 (
directed_by VARCHAR,
us_viewers__millions_ VARCHAR
) |
SELECT COUNT(runner_up_a) FROM table_22754310_1 WHERE constituency = "Perambalur" | Name the total number of runner up a for perambalur | CREATE TABLE table_22754310_1 (runner_up_a VARCHAR, constituency VARCHAR) |
SELECT original_toronto_cast FROM table_19529639_3 WHERE first_national_tour_cast = "Constantine Maroulis" | What member of the original Toronto cast played the character played by Constantine Maroulis in the first national tour cast? | CREATE TABLE table_19529639_3 (original_toronto_cast VARCHAR, first_national_tour_cast VARCHAR) |
SELECT bronze FROM table_name_6 WHERE silver < 89 AND total = 4 | What is Bronze, when Silver is less than 89, and when Total is '4'? | CREATE TABLE table_name_6 (
bronze VARCHAR,
silver VARCHAR,
total VARCHAR
) |
SELECT constituency FROM table_22754310_1 WHERE margin = 175130 | Name the constituency for 175130 | CREATE TABLE table_22754310_1 (constituency VARCHAR, margin VARCHAR) |
SELECT _number FROM table_19534677_1 WHERE creators = "Bill Finger Edmond Hamilton Dick Sprang , et al." | Name the # for bill finger edmond hamilton dick sprang , et al. | CREATE TABLE table_19534677_1 (_number VARCHAR, creators VARCHAR) |
SELECT Id AS "post_link", LENGTH(Title), * FROM Posts WHERE PostTypeId = 1 AND LENGTH(Title) < 15 | Questions with title length shorter than 15 characters. | 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 FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
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 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 ReviewTaskTypes (
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 Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
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 PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostHistoryTypes (
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 ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
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 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 ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE 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 PostTags (
PostId number,
TagId number
) |
SELECT COUNT(margin) FROM table_22753439_1 WHERE winner = "S. Singaravadivel" | How many margins have a winner of S. Singaravadivel? | CREATE TABLE table_22753439_1 (margin VARCHAR, winner VARCHAR) |
SELECT volume_line FROM table_19534677_1 WHERE _number = 8 | Name the volume line for number 8 | CREATE TABLE table_19534677_1 (volume_line VARCHAR, _number VARCHAR) |
SELECT (SELECT "year" FROM table_203_215 WHERE "position" = 1 AND "event" = '10,000m') < (SELECT "year" FROM table_203_215 WHERE "position" = 28 AND "event" = '10,000m') | did ito take 1st in the 10,000 m before or after he took 28th in the 10,000 m ? | CREATE TABLE table_203_215 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) |
SELECT COUNT(winner) FROM table_22753439_1 WHERE runner_up_a = "A. Karthikeyan" | How many winners have a runner-up of A. Karthikeyan? | CREATE TABLE table_22753439_1 (winner VARCHAR, runner_up_a VARCHAR) |
SELECT COUNT(material_collected) FROM table_19534677_1 WHERE isbn = "978-1401221935" | Name the total number for material collected for 978-1401221935 | CREATE TABLE table_19534677_1 (material_collected VARCHAR, isbn VARCHAR) |
SELECT COUNT(money___) AS $__ FROM table_name_14 WHERE to_par = "e" | How much money has a to par of E? | CREATE TABLE table_name_14 (
money___ VARCHAR,
to_par VARCHAR
) |
SELECT party AS a FROM table_22753439_1 WHERE winner = "P. Chidambaram" | What is every party with a winner of P. Chidambaram? | CREATE TABLE table_22753439_1 (party VARCHAR, winner VARCHAR) |
SELECT COUNT(creators) FROM table_19534677_1 WHERE volume_title = "Flash of Two Worlds" | Name the umbr of creators for flash of two worlds | CREATE TABLE table_19534677_1 (creators VARCHAR, volume_title VARCHAR) |
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'change in mental status' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-4 year')) AS t1 JOIN (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'esophagitis - regurgitant' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-4 year')) AS t2 WHERE t1.diagnosistime < t2.diagnosistime AND DATETIME(t1.diagnosistime, 'start of month') = DATETIME(t2.diagnosistime, 'start of month') | how many patients until 4 years ago were diagnosed with change in mental status during the same month after being diagnosed with esophagitis - regurgitant? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime 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 intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
) |
SELECT party AS a FROM table_22753439_1 WHERE constituency = "Tiruchendur" | What is every party A with a constituency of Tiruchendur? | CREATE TABLE table_22753439_1 (party VARCHAR, constituency VARCHAR) |
SELECT COUNT(material_collected) FROM table_19534677_1 WHERE volume_title = "Justice League of America by George PΓ©rez, Vol. 2" | Name the total number of material collected for justice league of america by george pΓ©rez, vol. 2 | CREATE TABLE table_19534677_1 (material_collected VARCHAR, volume_title VARCHAR) |
SELECT COUNT("event") FROM table_204_364 WHERE "event" = 800 | how many 800m events ? | CREATE TABLE table_204_364 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) |
SELECT constituency FROM table_22753245_1 WHERE runner_up_a = "D. Venugopal" | Who is the constituency when the runner-up was d. Venugopal? | CREATE TABLE table_22753245_1 (constituency VARCHAR, runner_up_a VARCHAR) |
SELECT MAX(number_one_s_) FROM table_19542477_8 | What is the highest overall number one(s)? | CREATE TABLE table_19542477_8 (number_one_s_ INTEGER) |
SELECT MIN(end_term) FROM table_name_39 WHERE start_term = 1913 AND name = "ludwig iii" | What is the smallest End term with a Start term of 1913, and a Name of ludwig iii? | CREATE TABLE table_name_39 (
end_term INTEGER,
start_term VARCHAR,
name VARCHAR
) |
SELECT party FROM table_22753245_1 WHERE constituency = "10. Tindivanam" | What is the party where the constituency is 10. Tindivanam? | CREATE TABLE table_22753245_1 (party VARCHAR, constituency VARCHAR) |
SELECT "player" FROM table_19611329_1 WHERE year_inducted = 1945 AND inducted_as = "player" | Name the player for 1945 for player | CREATE TABLE table_19611329_1 (year_inducted VARCHAR, inducted_as VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "4523" AND prescriptions.drug_type = "MAIN" | show me the number of patients on main type of drug prescription who have procedure icd9 code 4523. | 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
)
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
) |
SELECT party FROM table_22753245_1 WHERE constituency = "1. Chennai North" | What is the party when the constituency is 1. Chennai North? | CREATE TABLE table_22753245_1 (party VARCHAR, constituency VARCHAR) |
SELECT inducted_as FROM table_19611329_1 WHERE player = "Joe Medwick Category:Articles with hCards" | Name the inducted as for joe medwick category:articles with hcards | CREATE TABLE table_19611329_1 (inducted_as VARCHAR, player VARCHAR) |
SELECT AVG("Height (ft)") FROM table_45394 WHERE "Floors" = '12' AND "Rank" = '75=' AND "Name" = 'canterbury house' | What is the Height of the Canterbury House with 12 Floors and a Rank of 75=? | CREATE TABLE table_45394 (
"Rank" text,
"Name" text,
"Height (m)" real,
"Height (ft)" real,
"Floors" text
) |
SELECT COUNT(margin) FROM table_22753245_1 WHERE party = "Indian National Congress" AND winner = "L. Adaikalaraj c" | How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress? | CREATE TABLE table_22753245_1 (margin VARCHAR, party VARCHAR, winner VARCHAR) |
SELECT team FROM table_1963459_2 WHERE manufacturer = "Toyota" | What teams drive cars manufactured by Toyota? | CREATE TABLE table_1963459_2 (team VARCHAR, manufacturer VARCHAR) |
WITH Dates AS (SELECT a.Id, q.CreationDate AS QDate, a.CreationDate AS ADate FROM Posts AS q, Posts AS a WHERE q.Id = a.ParentId AND q.PostTypeId = 1 AND a.PostTypeId = 2 AND a.OwnerUserId = '##UserId##'), Delays AS (SELECT Id, CAST((JULIANDAY(ADate) - JULIANDAY(QDate)) * 1440.0 AS INT) AS Delay FROM Dates) SELECT SUM(CASE WHEN Delay <= 15 THEN 1 ELSE 0 END) AS WITHin15, SUM(CASE WHEN Delay > 15 AND Delay <= 30 THEN 1 ELSE 0 END) AS WITHin30, SUM(CASE WHEN Delay > 30 AND Delay <= 45 THEN 1 ELSE 0 END) AS WITHin45, SUM(CASE WHEN Delay > 45 AND Delay <= 60 THEN 1 ELSE 0 END) AS WITHinHour, SUM(CASE WHEN Delay > 60 THEN 1 ELSE 0 END) AS MoreThanHour FROM Delays | Fast-gun' distribution for a user. | 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 ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
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 Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE CloseReasonTypes (
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 Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId 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 ReviewTaskResultTypes (
Id number,
Name text,
Description 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 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 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 TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostTypes (
Id number,
Name 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 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
) |
SELECT MAX(margin) FROM table_22754491_1 WHERE winner = "K. Balathandayutham" | What is the margin when k. balathandayutham is the winner? | CREATE TABLE table_22754491_1 (margin INTEGER, winner VARCHAR) |
SELECT average_speed__mph_ FROM table_1963459_2 WHERE team = "Jon Thorne" | What is Jon Thorne's average speed? | CREATE TABLE table_1963459_2 (average_speed__mph_ VARCHAR, team VARCHAR) |
SELECT "Score" FROM table_5182 WHERE "Location" = 'brendan byrne arena' | Location of brendan byrne arena had what score? | CREATE TABLE table_5182 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) |
SELECT margin FROM table_22754491_1 WHERE constituency = "Periyakulam" | What is the margin when periyakulam is the constituency? | CREATE TABLE table_22754491_1 (margin VARCHAR, constituency VARCHAR) |
SELECT date FROM table_1963459_2 WHERE year = 1974 | What day did the race in 1974 take place on? | CREATE TABLE table_1963459_2 (date VARCHAR, year VARCHAR) |
SELECT "City" FROM table_67516 WHERE "Gross Revenue (2011)" = '$739,578' | Which city had a gross revenue in 2011 of $739,578? | CREATE TABLE table_67516 (
"Venue" text,
"City" text,
"State" text,
"Tickets Sold / Available" text,
"Gross Revenue (1982)" text,
"Gross Revenue (2011)" text
) |
SELECT pole_position FROM table_22765887_1 WHERE date = "August 15, 1981" | Who had the pole position in the August 15, 1981 race? | CREATE TABLE table_22765887_1 (pole_position VARCHAR, date VARCHAR) |
SELECT average_speed__mph_ FROM table_1963459_2 WHERE driver = "Tony Stewart" | What is Tony Stewart's average speed? | CREATE TABLE table_1963459_2 (average_speed__mph_ VARCHAR, driver VARCHAR) |
SELECT "Whenbuilt" FROM table_67054 WHERE "Name" = 'moray firth' | When was moray firth built? | CREATE TABLE table_67054 (
"BR No." real,
"Name" text,
"Builder" text,
"Whenbuilt" text,
"Withdrawn" text
) |
SELECT track FROM table_22765887_1 WHERE date = "September 12, 1981" | Which track was used on September 12, 1981? | CREATE TABLE table_22765887_1 (track VARCHAR, date VARCHAR) |
SELECT MAX(year) FROM table_1963459_2 WHERE average_speed__mph_ = "145.24" | What year was the average speed 145.24 | CREATE TABLE table_1963459_2 (year INTEGER, average_speed__mph_ VARCHAR) |
SELECT DEPT_ADDRESS, COUNT(*) FROM STUDENT AS T1 JOIN DEPARTMENT AS T2 ON T1.DEPT_CODE = T2.DEPT_CODE GROUP BY T1.DEPT_CODE ORDER BY COUNT(*) DESC LIMIT 3 | Which departments have the top 3 highest number of students? Show the department address and number of students with a pie chart. | CREATE TABLE STUDENT (
STU_NUM int,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int
)
CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE TABLE EMPLOYEE (
EMP_NUM int,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5)
)
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4)
)
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
) |
SELECT extension FROM table_22771048_3 WHERE city_neighborhood = "University of Washington" | Name the extension for university of washington | CREATE TABLE table_22771048_3 (extension VARCHAR, city_neighborhood VARCHAR) |
SELECT COUNT(surface) FROM table_1964010_2 WHERE year = 2005 AND score = "6β7 (4β7) , 3β6, 7β6 (7β2) , 3β6" | How many surfaces were played on in 2005 where the score was 6β7 (4β7) , 3β6, 7β6 (7β2) , 3β6? | CREATE TABLE table_1964010_2 (surface VARCHAR, year VARCHAR, score VARCHAR) |
SELECT cpu_chip FROM table_name_10 WHERE modem = "v.90" AND type = "dish tuner" AND model = "dishplayer 7100" | What is the CPU chip in the Dishplayer 7100, which is a dish tuner with a v.90 modem? | CREATE TABLE table_name_10 (
cpu_chip VARCHAR,
model VARCHAR,
modem VARCHAR,
type VARCHAR
) |
SELECT MIN(projected_opening) FROM table_22771048_3 | Name the least projected opening | CREATE TABLE table_22771048_3 (projected_opening INTEGER) |
SELECT opponents FROM table_1964010_2 WHERE score = "6β4, 4β6, 7β6 (7β4)" | Who are the opponents of Mike Byron and partner in matches where the score was 6β4, 4β6, 7β6 (7β4)? | CREATE TABLE table_1964010_2 (opponents VARCHAR, score VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2200" AND lab.label = "Homocysteine" | count the number of patients whose year of birth is less than 2200 and lab test name is homocysteine? | 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
)
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 transit_connections FROM table_22771048_3 WHERE station = "Capitol Hill U" | Name the transit connections for capitol hill u | CREATE TABLE table_22771048_3 (transit_connections VARCHAR, station VARCHAR) |
SELECT player FROM table_1965650_10 WHERE nhl_team = "California Golden Seals" | What player is from the California Golden Seals? | CREATE TABLE table_1965650_10 (player VARCHAR, nhl_team VARCHAR) |
SELECT no_in_series FROM table_17482534_1 WHERE production_code = "5016/5017" | What number in the series are the episodes with production code 5016/5017? | CREATE TABLE table_17482534_1 (
no_in_series VARCHAR,
production_code VARCHAR
) |
SELECT COUNT(city_neighborhood) FROM table_22771048_4 WHERE station = "Hospital" | How many neighborhoods have a station proposed at a Hospital? | CREATE TABLE table_22771048_4 (city_neighborhood VARCHAR, station VARCHAR) |
SELECT college_junior_club_team FROM table_1965650_10 WHERE player = "Lee Palmer" | What team does Lee Palmer play for? | CREATE TABLE table_1965650_10 (college_junior_club_team VARCHAR, player VARCHAR) |
SELECT County, SUM(Enrollment) FROM School GROUP BY County | Compute the total sum enrollment across county as a pie chart. | CREATE TABLE endowment (
endowment_id int,
School_id int,
donator_name text,
amount real
)
CREATE TABLE School (
School_id text,
School_name text,
Location text,
Mascot text,
Enrollment int,
IHSAA_Class text,
IHSAA_Football_Class text,
County text
)
CREATE TABLE budget (
School_id int,
Year int,
Budgeted int,
total_budget_percent_budgeted real,
Invested int,
total_budget_percent_invested real,
Budget_invested_percent text
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.