answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT rider FROM table_29218221_2 WHERE fri_3_june = "18' 19.68 123.516mph" | Who was the rider with a Fri 3 June time of 18' 19.68 123.516mph? | CREATE TABLE table_29218221_2 (
rider VARCHAR,
fri_3_june VARCHAR
) |
SELECT directed_by FROM table_26561498_1 WHERE production_code = 176452 | who directed and produced 176452? | CREATE TABLE table_26561498_1 (directed_by VARCHAR, production_code VARCHAR) |
SELECT AVG(overall) FROM table_name_95 WHERE name = "vance walker" | Which Overall is the average one that has a Name of vance walker? | CREATE TABLE table_name_95 (overall INTEGER, name VARCHAR) |
SELECT COUNT(*) AS score, p.Id, p.OwnerUserId FROM Votes AS v, Posts AS p, Posts AS p2 WHERE v.VoteTypeId = 2 AND v.PostId = p.Id AND p.ParentId = p2.Id AND v.CreationDate - p2.CreationDate < 14 GROUP BY p.Id, p.OwnerUserId HAVING COUNT(*) > 10 | CV Most Interesting Users - Only Counting 'immediate' votes. | CREATE TABLE PostTags (
PostId number,
TagId 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 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 TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId 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 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 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 ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE 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 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 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 PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
) |
SELECT original_air_date FROM table_26561498_1 WHERE patient_portrayer = "Julie Warner" | what is the original air date for julie warner? | CREATE TABLE table_26561498_1 (original_air_date VARCHAR, patient_portrayer VARCHAR) |
SELECT MAX(pick__number) FROM table_name_86 WHERE name = "lawrence sidbury" AND round < 4 | Which Pick # is the highest one that has a Name of lawrence sidbury, and a Round smaller than 4? | CREATE TABLE table_name_86 (pick__number INTEGER, name VARCHAR, round VARCHAR) |
SELECT away_team AS score FROM table_name_50 WHERE away_team = "south melbourne" | What was South Melbourne's score as the away team? | CREATE TABLE table_name_50 (
away_team VARCHAR
) |
SELECT written_by FROM table_26561498_1 WHERE patient_portrayer = "Alex Carter" | what was written by alex carter? | CREATE TABLE table_26561498_1 (written_by VARCHAR, patient_portrayer VARCHAR) |
SELECT AVG(february) FROM table_name_35 WHERE opponent = "st. louis blues" AND game < 58 | What is the February number of the game played against the St. Louis Blues with a game number less than 58? | CREATE TABLE table_name_35 (february INTEGER, opponent VARCHAR, game VARCHAR) |
SELECT entrant FROM table_name_64 WHERE year = 1999 | What is the entrant in 1999? | CREATE TABLE table_name_64 (
entrant VARCHAR,
year VARCHAR
) |
SELECT patient_portrayer FROM table_26561509_1 WHERE production_code = "3T5004" | Who is the patient portrayer of the episode with the production code 3T5004? | CREATE TABLE table_26561509_1 (patient_portrayer VARCHAR, production_code VARCHAR) |
SELECT opponent FROM table_name_50 WHERE record = "24-26-4" | Who is the opponent of the game that had a record of 24-26-4? | CREATE TABLE table_name_50 (opponent VARCHAR, record VARCHAR) |
SELECT "Tournament" FROM table_6328 WHERE "Date" = 'october 24, 1982' AND "Partner" = 'alycia moulton' | What Tournament on October 24, 1982 had Alycia Moulton as the Partner? | CREATE TABLE table_6328 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) |
SELECT written_by FROM table_26561509_1 WHERE directed_by = "Charles Haid" AND no = 54 | The episode with the no. 54, directed by Charles Haid, is written by who? | CREATE TABLE table_26561509_1 (written_by VARCHAR, directed_by VARCHAR, no VARCHAR) |
SELECT COUNT(february) FROM table_name_48 WHERE opponent = "vancouver canucks" AND game > 55 | What is the February number of the game with the Vancouver Canucks as the opponent and a game number greater than 55? | CREATE TABLE table_name_48 (february VARCHAR, opponent VARCHAR, game VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "42831" AND lab.fluid = "Other Body Fluid" | give me the number of patients whose diagnoses icd9 code is 42831 and lab test fluid is other body fluid? | 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 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT COUNT(directed_by) FROM table_26561509_1 WHERE production_code = "3T5009" | How many are directed by episodes with the production code 3T5009? | CREATE TABLE table_26561509_1 (directed_by VARCHAR, production_code VARCHAR) |
SELECT nationality FROM table_name_59 WHERE player = "larry mcmorran" | What nationality is Larry McMorran? | CREATE TABLE table_name_59 (nationality VARCHAR, player VARCHAR) |
SELECT "Title" FROM table_17683 WHERE "Season 3 Ep #" = '12' | What is the title of season 3 ep# 12? | CREATE TABLE table_17683 (
"Series Ep #" real,
"Season 3 Ep #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original Airdate" text,
"Production Code" real
) |
SELECT first_broadcast_uk___bbc_four__ FROM table_26591309_2 WHERE episode = 9 | When was the first UK broadcast for episode 9? | CREATE TABLE table_26591309_2 (first_broadcast_uk___bbc_four__ VARCHAR, episode VARCHAR) |
SELECT date FROM table_name_71 WHERE game = 17 | what team scored 17 | CREATE TABLE table_name_71 (date VARCHAR, game VARCHAR) |
SELECT "Country" FROM table_42202 WHERE "Score" = '71-67=138' | What Country had a Score of 71-67=138? | CREATE TABLE table_42202 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) |
SELECT first_broadcast_uk___bbc_four__ FROM table_26591309_2 WHERE official_tns_gallup_ratings = 1575000 | When was the first UK broadcast for the episode with an official TNS Gallup rating of 1575000? | CREATE TABLE table_26591309_2 (first_broadcast_uk___bbc_four__ VARCHAR, official_tns_gallup_ratings VARCHAR) |
SELECT record FROM table_name_58 WHERE date = "july 22" | What was their record on July 22? | CREATE TABLE table_name_58 (record VARCHAR, date VARCHAR) |
SELECT surface FROM table_name_45 WHERE score = "6–1, 3–0 ret." | Which has a Score of 6 1, 3 0 ret.? | CREATE TABLE table_name_45 (
surface VARCHAR,
score VARCHAR
) |
SELECT first_broadcast_uk___bbc_four__ FROM table_26591309_2 WHERE official_barb_ratings = 1085000 | When was the first UK broadcast when the official Barb ratings was 1085000? | CREATE TABLE table_26591309_2 (first_broadcast_uk___bbc_four__ VARCHAR, official_barb_ratings VARCHAR) |
SELECT date FROM table_name_17 WHERE record = "46-39" | On what date was their record 46-39? | CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR) |
SELECT start_station_name, start_station_id FROM trip ORDER BY start_station_name | what are the ids and names of all start stations that were the beginning of at least 200 trips?, and could you rank bars in ascending order? | CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER,
max_humidity INTEGER,
mean_humidity INTEGER,
min_humidity INTEGER,
max_sea_level_pressure_inches NUMERIC,
mean_sea_level_pressure_inches NUMERIC,
min_sea_level_pressure_inches NUMERIC,
max_visibility_miles INTEGER,
mean_visibility_miles INTEGER,
min_visibility_miles INTEGER,
max_wind_Speed_mph INTEGER,
mean_wind_speed_mph INTEGER,
max_gust_speed_mph INTEGER,
precipitation_inches INTEGER,
cloud_cover INTEGER,
events TEXT,
wind_dir_degrees INTEGER,
zip_code INTEGER
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
) |
SELECT writer FROM table_26591434_1 WHERE ratings__kanto_ = "14.8" | Who is the writer with the ratings 14.8? | CREATE TABLE table_26591434_1 (writer VARCHAR, ratings__kanto_ VARCHAR) |
SELECT record FROM table_name_1 WHERE date = "october 20" | What was the oilers record on October 20? | CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR) |
SELECT COUNT(*) > 0 FROM course, program_course WHERE course.department = 'LHC' AND course.number = 750 AND program_course.category LIKE '%Core%' AND program_course.course_id = course.course_id | For my graduation is LHC 750 essential ? | 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 area (
course_id int,
area varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year 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 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 offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id 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 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_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
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 original_airdate FROM table_26591434_1 WHERE writer = "Tanaka Shinichi" | What is the original air date for the writer tanaka shinichi? | CREATE TABLE table_26591434_1 (original_airdate VARCHAR, writer VARCHAR) |
SELECT record FROM table_name_85 WHERE home = "edmonton oilers" AND visitor = "chicago blackhawks" AND date = "november 27" | What was the oilers record for the game on November 27 when the Edmonton oilers were playing at home and the Chicago Blackhawks were the visiting team? | CREATE TABLE table_name_85 (record VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR) |
SELECT "Home team score" FROM table_57613 WHERE "Away team score" = '9.11 (65)' | What was the score of the home team when the opposing team had a score of 9.11 (65)? | CREATE TABLE table_57613 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT ratings__kansai_ FROM table_26591434_1 WHERE original_airdate = "May 25, 2010 22.00 - 22.54" | What is the ratings for the original air date may 25, 2010 22.00 - 22.54? | CREATE TABLE table_26591434_1 (ratings__kansai_ VARCHAR, original_airdate VARCHAR) |
SELECT lead FROM table_name_25 WHERE left_bloc = "8.4%" | Name the lead with left bloc of 8.4% | CREATE TABLE table_name_25 (lead VARCHAR, left_bloc VARCHAR) |
SELECT "Opponent" FROM table_17879 WHERE "Game Site" = 'Veterans Stadium' | What is the opponent of the veterans stadium | CREATE TABLE table_17879 (
"Week" real,
"Date" text,
"Kickoff ( ET )" text,
"TV" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text
) |
SELECT ratings__kanto_ FROM table_26591434_1 WHERE episode = 11 | What was the ratings for episode 11? | CREATE TABLE table_26591434_1 (ratings__kanto_ VARCHAR, episode VARCHAR) |
SELECT lead FROM table_name_95 WHERE institute = "election results" AND social_democratic = "31.7% 8 seats" | Name the lead for institute of election results and social democratic of 31.7% 8 seats | CREATE TABLE table_name_95 (lead VARCHAR, institute VARCHAR, social_democratic VARCHAR) |
SELECT MAX("Rank") FROM table_65026 WHERE "Country" = 'israel' | What is the rank of Israel? | CREATE TABLE table_65026 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
) |
SELECT outgoing_manager FROM table_26593762_3 WHERE incoming_manager = "Dougie Freedman" | Who was the outgoing manager of the team whose incoming manager was Dougie Freedman? | CREATE TABLE table_26593762_3 (outgoing_manager VARCHAR, incoming_manager VARCHAR) |
SELECT regionalliga_süd FROM table_name_13 WHERE season = "1995-96" | What is the Regionalliga Sud for 1995-96? | CREATE TABLE table_name_13 (regionalliga_süd VARCHAR, season VARCHAR) |
SELECT opponent FROM table_name_53 WHERE location_attendance = "skydome" | Who was the opponent when they played at the Skydome? | CREATE TABLE table_name_53 (
opponent VARCHAR,
location_attendance VARCHAR
) |
SELECT position_in_table FROM table_26593762_3 WHERE outgoing_manager = "Brian Laws" | What was the table position for the team whose outgoing manager was Brian Laws? | CREATE TABLE table_26593762_3 (position_in_table VARCHAR, outgoing_manager VARCHAR) |
SELECT regionalliga_nord - Ost FROM table_name_61 WHERE regionalliga_süd = "spvgg unterhaching" | What was the Regionalliga Nord-Ost for the team that had a Regionalliga Sud of SpVgg Unterhaching? | CREATE TABLE table_name_61 (regionalliga_nord VARCHAR, Ost VARCHAR, regionalliga_süd VARCHAR) |
SELECT player FROM table_name_27 WHERE score = 70 | With a score of 70, this player's name is listed as what? | CREATE TABLE table_name_27 (
player VARCHAR,
score VARCHAR
) |
SELECT COUNT(incoming_manager) FROM table_26593762_3 WHERE team = "Burnley" | How many incoming managers did Burnley have? | CREATE TABLE table_26593762_3 (incoming_manager VARCHAR, team VARCHAR) |
SELECT season FROM table_name_68 WHERE regionalliga_süd = "stuttgarter kickers" | Which season had a Regionalliga Sud of Stuttgarter Kickers? | CREATE TABLE table_name_68 (season VARCHAR, regionalliga_süd VARCHAR) |
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.careunit = 'micu' AND DATETIME(transfers.intime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) | the number of patients in careunit micu in the last year? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
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 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_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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod 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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
) |
SELECT manner_of_departure FROM table_26593762_3 WHERE incoming_manager = "George Burley" | What was the manner of departure for the team whose incoming manager was George Burley? | CREATE TABLE table_26593762_3 (manner_of_departure VARCHAR, incoming_manager VARCHAR) |
SELECT party FROM table_name_4 WHERE incumbent = "charles van wyck" | What party is Charles Van Wyck part of? | CREATE TABLE table_name_4 (party VARCHAR, incumbent VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2156" AND procedures.short_title = "Endosc retro cholangiopa" | find the number of patients born before 2156 who had endoscopic retrograde cholangiography. | 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 galician___reintegrationist__ FROM table_26614365_5 WHERE galician___official__ = "Bo día / Bos días" | What is the Galician (reintegrationist) word of the Galician (Official) is bo día / bos días? | CREATE TABLE table_26614365_5 (galician___reintegrationist__ VARCHAR, galician___official__ VARCHAR) |
SELECT district FROM table_name_3 WHERE first_elected = 1858 AND result = "defeated democratic gain" AND incumbent = "james humphrey" | What district is James Humphrey from who was first elected in 1858 and was eventually defeated democratic gain? | CREATE TABLE table_name_3 (district VARCHAR, incumbent VARCHAR, first_elected VARCHAR, result VARCHAR) |
SELECT "Last Performance" FROM table_67579 WHERE "Status" = 'past' AND "Style" = 'ballet' AND "Name" = 'tommy batchelor' | what last performance has past status, ballet as style and tommy batchelor? | CREATE TABLE table_67579 (
"Status" text,
"Name" text,
"First Performance" text,
"Last Performance" text,
"Style" text
) |
SELECT galician___reintegrationist__ FROM table_26614365_5 WHERE galician___official__ = "Adeus*" | What is the Galician (reintegrationist) word of the Galician (Official) is adeus*? | CREATE TABLE table_26614365_5 (galician___reintegrationist__ VARCHAR, galician___official__ VARCHAR) |
SELECT surface FROM table_name_33 WHERE date = "november 5, 1995" | What surface was the November 5, 1995 match played on? | CREATE TABLE table_name_33 (surface VARCHAR, date VARCHAR) |
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', lab.labresulttime)) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-9636' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = '-monos' ORDER BY lab.labresulttime LIMIT 1 | how many days have passed since patient 016-9636 received his first -monos lab test on the current hospital visit? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
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 intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
) |
SELECT portuguese FROM table_26614365_5 WHERE english = "Grandfather" | What is the Portuguese word for the English word 'grandfather'? | CREATE TABLE table_26614365_5 (portuguese VARCHAR, english VARCHAR) |
SELECT date FROM table_name_80 WHERE opponent_in_the_final = "amy frazier" | What date was the match played where Amy Frazier was the opponent? | CREATE TABLE table_name_80 (date VARCHAR, opponent_in_the_final VARCHAR) |
SELECT Id, PostTypeId, Tags, ClosedDate, CreationDate FROM Posts WHERE CreationDate LIKE '%2018%' | getting post data for inverted index. | CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId 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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId 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 CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE FlagTypes (
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 TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
) |
SELECT COUNT(spanish) FROM table_26614365_5 WHERE portuguese = "Bem-vindo" | How many Spanish word is there for the Portuguese bem-vindo? | CREATE TABLE table_26614365_5 (spanish VARCHAR, portuguese VARCHAR) |
SELECT score FROM table_name_47 WHERE date = "august 17, 2005" | What score was given at the August 17, 2005 match? | CREATE TABLE table_name_47 (score VARCHAR, date VARCHAR) |
SELECT MIN("Lost") FROM table_58693 WHERE "Goals Against" = '111' | What are the lowest lost has 111 as the goals against? | CREATE TABLE table_58693 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" text
) |
SELECT portuguese FROM table_26614365_5 WHERE english = "Welcome" | What is the Portuguese word for the English word 'welcome'? | CREATE TABLE table_26614365_5 (portuguese VARCHAR, english VARCHAR) |
SELECT tournament FROM table_name_7 WHERE date = "october 1, 2006" | Which tournament was played on October 1, 2006? | CREATE TABLE table_name_7 (tournament VARCHAR, date VARCHAR) |
SELECT MIN(no) FROM table_11545282_19 WHERE school_club_team = "BYU" | What is the number of school/club teams held by BYU? | CREATE TABLE table_11545282_19 (
no INTEGER,
school_club_team VARCHAR
) |
SELECT gender FROM table_26615633_3 WHERE species = "Asian black bear" | what gender has an asian black bear? | CREATE TABLE table_26615633_3 (gender VARCHAR, species VARCHAR) |
SELECT score FROM table_name_2 WHERE surface = "hard" AND opponent_in_the_final = "elena likhovtseva" | What is the score of the match played on a hard surface with an opponent in the final of Elena Likhovtseva? | CREATE TABLE table_name_2 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) |
SELECT title FROM table_2468961_2 WHERE written_by = "Ross Brown" | What is the name of the episode written by Ross Brown? | CREATE TABLE table_2468961_2 (
title VARCHAR,
written_by VARCHAR
) |
SELECT sweet FROM table_26615633_3 WHERE voice_actor = "Saki Fujita" | what is the sweet for voice actor saki fujita? | CREATE TABLE table_26615633_3 (sweet VARCHAR, voice_actor VARCHAR) |
SELECT record FROM table_name_71 WHERE date = "july 18" | What was the team's record on july 18? | CREATE TABLE table_name_71 (record VARCHAR, date VARCHAR) |
SELECT label FROM table_name_25 WHERE media = "cd" AND release_date = 2004 | What is the label for a CD released in 2004? | CREATE TABLE table_name_25 (
label VARCHAR,
media VARCHAR,
release_date VARCHAR
) |
SELECT gender FROM table_26615633_3 WHERE species = "Holland Lop" | whatis the gender wher ethe species is holland lop? | CREATE TABLE table_26615633_3 (gender VARCHAR, species VARCHAR) |
SELECT conference_joined FROM table_name_95 WHERE previous_conference = "northwestern" AND mascot = "oilers" | Which Conference Joined has a Previous Conference of northwestern, and a Mascot of oilers? | CREATE TABLE table_name_95 (conference_joined VARCHAR, previous_conference VARCHAR, mascot VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | i want to fly from DENVER to SAN FRANCISCO | CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,
time_elapsed int,
to_airport varchar
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_miles int,
pressurized varchar
) |
SELECT media_debut FROM table_26615633_3 WHERE species = "Asian black bear" | what is the media debut for the asian black bear? | CREATE TABLE table_26615633_3 (media_debut VARCHAR, species VARCHAR) |
SELECT MIN(year_left) FROM table_name_13 WHERE school = "calumet" AND year_joined > 1993 | Which Year Left is the lowest one that has a School of calumet, and a Year Joined larger than 1993? | CREATE TABLE table_name_13 (year_left INTEGER, school VARCHAR, year_joined VARCHAR) |
SELECT "School/Club Team" FROM table_53254 WHERE "Player" = 'john crotty' | What school does John Crotty play for? | CREATE TABLE table_53254 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) |
SELECT spanish FROM table_26614365_1 WHERE central = "cas [ˈkas]" | What is the Spanish word for cas [ˈkas]? | CREATE TABLE table_26614365_1 (spanish VARCHAR, central VARCHAR) |
SELECT AVG(2012) FROM table_name_22 WHERE 2009 > 104.5 AND 2010 < 162.6 AND 2011 < 141.8 | avg passengers in 2012 for 2009 more than 104.5 and 2010 less than 162.6 and 2011 less than 141.8 is what? | CREATE TABLE table_name_22 (Id VARCHAR) |
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31854 AND admissions.dischtime IS NULL) AND transfers.careunit = 'ccu' ORDER BY transfers.intime DESC LIMIT 1 | how many days have pass since the last time patient 31854 stayed in careunit ccu during the current hospital visit? | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE 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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE 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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name 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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title 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 d_labitems (
row_id number,
itemid number,
label text
) |
SELECT eastern FROM table_26614365_1 WHERE english = "light" | What is the eastern word for "light"? | CREATE TABLE table_26614365_1 (eastern VARCHAR, english VARCHAR) |
SELECT MIN(rank) FROM table_name_82 WHERE 2011 < 80.7 AND 2012 < 73.1 | The lowest rank with 2011 less than 80.7 and 2012 less than 73.1 is what? | CREATE TABLE table_name_82 (rank INTEGER) |
SELECT "name" FROM table_204_867 WHERE "number" = (SELECT "number" FROM table_204_867 WHERE "name" = 'lynda lyon block') + 1 | who was the next consecutive woman to be executed after lynda lyon block ? | CREATE TABLE table_204_867 (
id number,
"number" number,
"date" text,
"name" text,
"age\n(at execution)" number,
"age\n(at offense)" number,
"race" text,
"state" text,
"method" text
) |
SELECT central FROM table_26614365_1 WHERE english = "robbers" | What is the central word for "robbers"? | CREATE TABLE table_26614365_1 (central VARCHAR, english VARCHAR) |
SELECT SUM(2009) FROM table_name_70 WHERE rank = 5 AND 2010 < 76.5 | the sum of 2009 with rank of 5 and 2010 less than 76.5 is what? | CREATE TABLE table_name_70 (rank VARCHAR) |
SELECT "Fastest lap" FROM table_10968 WHERE "Winning driver" = 'jim clark' AND "Circuit" = 'prince george' | Tell me the fastest lapf or jim clark being the winning driver for prince george | CREATE TABLE table_10968 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) |
SELECT latin FROM table_26614365_1 WHERE english = "you sang" | What is the Latin for "you sang"? | CREATE TABLE table_26614365_1 (latin VARCHAR, english VARCHAR) |
SELECT entered_office FROM table_name_45 WHERE throne_name = "mohammad ali shah qajar" | What was the Entered Office of the man with the throne name Mohammad Ali Shah Qajar? | CREATE TABLE table_name_45 (entered_office VARCHAR, throne_name VARCHAR) |
SELECT "HMOs" FROM table_7114 WHERE "Conventional plans" = '3%' AND "Year" = '2005' | Which HMO has a conventional plan of 3% in 2005? | CREATE TABLE table_7114 (
"Year" real,
"Conventional plans" text,
"HMOs" text,
"PPOs" text,
"POS plans" text
) |
SELECT western FROM table_26614365_1 WHERE latin = "latrones" | What is the western word for "latrones" in Latin? | CREATE TABLE table_26614365_1 (western VARCHAR, latin VARCHAR) |
SELECT main_location_s_ FROM table_name_77 WHERE _percentage_of_national = "2.05%" | What is listed for the Main Location(s) that has a % of National of 2.05%? | CREATE TABLE table_name_77 (main_location_s_ VARCHAR, _percentage_of_national VARCHAR) |
SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-26884')) AND medication.drugname = 'insulin aspart 100 unit/ml sc soln' AND STRFTIME('%y', medication.drugstarttime) >= '2102' | number of times patient 016-26884 was prescribed insulin aspart 100 unit/ml sc soln since 2102. | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
) |
SELECT old_galician__13th_15th_c_ FROM table_26614365_1 WHERE portuguese = "cantaste" | What is the Old Galician for cantaste in Portuguese? | CREATE TABLE table_26614365_1 (old_galician__13th_15th_c_ VARCHAR, portuguese VARCHAR) |
SELECT area FROM table_name_17 WHERE output__2007_ = "12,332 t" | What's the Area with an Output (2007) of 12,332 T? | CREATE TABLE table_name_17 (area VARCHAR, output__2007_ VARCHAR) |
SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE DESC | For all employees who have the letters D or S in their first name, draw a line chart about the change of commission_pct over hire_date , and list in descending by the x-axis please. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) |
SELECT MIN(rainfall_totals__million_m_3__) FROM table_26609958_1 | What is the lowest overall amount of rainfall totals (million m 3)? | CREATE TABLE table_26609958_1 (rainfall_totals__million_m_3__ INTEGER) |
SELECT main_location_s_ FROM table_name_16 WHERE area = "19,800 ha" | What Main Location(s) has an Area of 19,800 HA? | CREATE TABLE table_name_16 (main_location_s_ VARCHAR, area VARCHAR) |
SELECT Type, SUM(Enrollment) FROM Institution GROUP BY Type ORDER BY SUM(Enrollment) | Please give me a bar chart showing institution types, along with the total enrollment for each type, and show Y-axis from low to high order. | CREATE TABLE protein (
common_name text,
protein_name text,
divergence_from_human_lineage real,
accession_number text,
sequence_length real,
sequence_identity_to_human_protein text,
Institution_id text
)
CREATE TABLE building (
building_id text,
Name text,
Street_address text,
Years_as_tallest text,
Height_feet int,
Floors int
)
CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Primary_Conference text,
building_id text
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.