answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT day_of_week, AVG(high_temperature) FROM weekly_weather GROUP BY day_of_week ORDER BY AVG(high_temperature) | Bar graph to show the average of high temperature from different day of week, and could you show y axis in ascending order? | CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
wind_speed_mph int
)
CREATE TABLE route (
train_id int,
station_id int
)
CREATE TABLE station (
id int,
network_name text,
services text,
local_authority text
)
CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
) |
SELECT COUNT(slovene) FROM table_26757_4 WHERE belarusian = "рыба (rýba)" | When рыба (rýba) is the belarusian how many slovenes are there? | CREATE TABLE table_26757_4 (slovene VARCHAR, belarusian VARCHAR) |
SELECT date FROM table_name_39 WHERE score = "6–3, 6–4" | When has a Score of 6–3, 6–4? | CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR) |
SELECT admissions.subject_id FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'streptococcus unspecf') AND STRFTIME('%y', diagnoses_icd.charttime) >= '2103') | retrieve the patients' ids who are diagnosed with streptococcus unspecf since 2103. | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost 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 prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value 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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE 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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
) |
SELECT COUNT(slovak) FROM table_26757_4 WHERE belarusian = "вуха (vúkha)" | When вуха (vúkha) is the belarusian how many slovaks are there? | CREATE TABLE table_26757_4 (slovak VARCHAR, belarusian VARCHAR) |
SELECT score FROM table_name_18 WHERE opponents_in_the_final = "marcelo filippini mark koevermans" | WHich Score has marcelo filippini mark koevermans? | CREATE TABLE table_name_18 (score VARCHAR, opponents_in_the_final VARCHAR) |
SELECT RANK() OVER (ORDER BY u.Reputation DESC) AS Rank, u.Id AS "user_link", u.Reputation, COUNT(b.Id) AS "count" FROM Badges AS b INNER JOIN Users AS u ON b.UserId = u.Id WHERE (b.Name = '##name?Famous Question##') GROUP BY u.Id, u.Reputation ORDER BY u.Reputation DESC LIMIT 500 | Highest reputation users with a specific badge. | CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
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 Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense 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 Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
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 PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE VoteTypes (
Id number,
Name 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 CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostTags (
PostId number,
TagId 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 TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PostTypes (
Id number,
Name 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 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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
) |
SELECT vivek_express__15905_15906 FROM table_26745820_5 WHERE kanyakumari = "Bhavnagar" | What is the name of the only route that runs to bhavnagar? | CREATE TABLE table_26745820_5 (vivek_express__15905_15906 VARCHAR, kanyakumari VARCHAR) |
SELECT tournament FROM table_name_39 WHERE partnering = "diego pérez" AND opponents_in_the_final = "christer allgardh carl limberger" | WHich Tournament has a Partnering of diego pérez and a Opponents in the final of christer allgardh carl limberger? | CREATE TABLE table_name_39 (tournament VARCHAR, partnering VARCHAR, opponents_in_the_final 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, fare, fare_basis, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND fare_basis.class_type = 'FIRST' AND fare.fare_basis_code = fare_basis.fare_basis_code AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WASHINGTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | all flights leaving WASHINGTON to SAN FRANCISCO that are FIRST class | CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description 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 date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
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 month (
month_number int,
month_name text
)
CREATE TABLE code_description (
code varchar,
description text
)
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 state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
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_fare (
flight_id int,
fare_id int
)
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 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 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
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
) |
SELECT original_air_date FROM table_26748314_1 WHERE no_in_season = 7 | What is every original air date for the number in season of 7? | CREATE TABLE table_26748314_1 (original_air_date VARCHAR, no_in_season VARCHAR) |
SELECT opponents_in_the_final FROM table_name_18 WHERE partnering = "tomás carbonell" AND date = "march 28, 1995" | Which Opponents in the final has a Partnering of tomás carbonell on march 28, 1995? | CREATE TABLE table_name_18 (opponents_in_the_final VARCHAR, partnering VARCHAR, date VARCHAR) |
SELECT "Lost" FROM table_74942 WHERE "Played" = 'played' | If the Played was played, what is the lost? | CREATE TABLE table_74942 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) |
SELECT COUNT(participating_parties) FROM table_2676980_4 WHERE registered_voters = 643629 | What is the number of participating parties when registered voters totaled 643629? | CREATE TABLE table_2676980_4 (participating_parties VARCHAR, registered_voters VARCHAR) |
SELECT score FROM table_name_25 WHERE opponents_in_the_final = "jordi arrese àlex corretja" | What is the Score of an Opponent\ in the final of jordi arrese àlex corretja? | CREATE TABLE table_name_25 (score VARCHAR, opponents_in_the_final VARCHAR) |
SELECT "Driver" FROM table_20856 WHERE "Race time" = '2:34:21' | Name the driver for race time being 2:34:21 | CREATE TABLE table_20856 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race time" text,
"Average speed (mph)" text,
"Report" text
) |
SELECT electoral_district FROM table_2676980_4 WHERE total_candidates = 35 | What is the electoral district when total candidates were 35? | CREATE TABLE table_2676980_4 (electoral_district VARCHAR, total_candidates VARCHAR) |
SELECT to_par FROM table_name_55 WHERE place = "t9" AND country = "spain" | Which To par has a Place in t9 and a Country of Spain? | CREATE TABLE table_name_55 (to_par VARCHAR, place VARCHAR, country VARCHAR) |
SELECT "State" FROM table_12473 WHERE "Royal house" = 'ji' AND "Name" = 'ding' | What state is Ding and has a royal house of Ji? | CREATE TABLE table_12473 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
) |
SELECT COUNT(seats_in_congress) FROM table_2676980_4 WHERE electoral_district = "Ucayali" | What is the number of seats in congress when the electoral district is Ucayali? | CREATE TABLE table_2676980_4 (seats_in_congress VARCHAR, electoral_district VARCHAR) |
SELECT to_par FROM table_name_68 WHERE place = "8" | Which To par has a Place in 8? | CREATE TABLE table_name_68 (to_par VARCHAR, place VARCHAR) |
SELECT "Tries against" FROM table_72449 WHERE "Tries for" = '62' | How many tries against got the club with 62 tries for? | CREATE TABLE table_72449 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) |
SELECT COUNT(seats_in_congress) FROM table_2676980_4 WHERE candidates_per_party = 6 | What is the number of seats in congress when the candidates per party is 6? | CREATE TABLE table_2676980_4 (seats_in_congress VARCHAR, candidates_per_party VARCHAR) |
SELECT player FROM table_name_74 WHERE place = "t9" AND country = "united states" | WHo is Player that has a Place of t9 in united states? | CREATE TABLE table_name_74 (player VARCHAR, place VARCHAR, country VARCHAR) |
SELECT "Track number" FROM table_43805 WHERE "Album title" = '文武双全升级版' AND "Title" = '老爸你别装酷' | Which Track number has a Album title of , and a Title of ? | CREATE TABLE table_43805 (
"Release date" text,
"Album title" text,
"Record label" text,
"Disc number" text,
"Track number" text,
"Title" text
) |
SELECT total_candidates FROM table_2676980_4 WHERE registered_voters = 47742 | What is the number of total candidates when registered voters is 47742? | CREATE TABLE table_2676980_4 (total_candidates VARCHAR, registered_voters VARCHAR) |
SELECT erp_w FROM table_name_62 WHERE frequency_mhz = 95.1 | What ERP W has a 95.1 MHZ frequency? | CREATE TABLE table_name_62 (erp_w VARCHAR, frequency_mhz VARCHAR) |
SELECT "Election" FROM table_12985 WHERE "2nd Member" = 'reform act 1867 : constituency abolished' | Which Election has a 2nd Member of reform act 1867 : constituency abolished? | CREATE TABLE table_12985 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) |
SELECT judges_residence FROM table_26758262_1 WHERE municipalities_served = "Beacon Falls , Naugatuck , Middlebury , Prospect" | Where does the judge who serves Beacon Falls , Naugatuck , Middlebury , Prospect reside? | CREATE TABLE table_26758262_1 (judges_residence VARCHAR, municipalities_served VARCHAR) |
SELECT call_sign FROM table_name_65 WHERE city_of_license = "soledad, california" | What call sign is licensed in soledad, california? | CREATE TABLE table_name_65 (call_sign VARCHAR, city_of_license VARCHAR) |
SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING COUNT(*) <= 2 | Find the name of the customers who have at most two orders. | CREATE TABLE orders (
order_id number,
customer_id number,
order_status text,
date_order_placed time,
order_details text
)
CREATE TABLE shipments (
shipment_id number,
order_id number,
invoice_number number,
shipment_tracking_number text,
shipment_date time,
other_shipment_details text
)
CREATE TABLE customers (
customer_id number,
customer_name text,
customer_details text
)
CREATE TABLE products (
product_id number,
product_name text,
product_details text
)
CREATE TABLE order_items (
order_item_id number,
product_id number,
order_id number,
order_item_status text,
order_item_details text
)
CREATE TABLE invoices (
invoice_number number,
invoice_date time,
invoice_details text
)
CREATE TABLE shipment_items (
shipment_id number,
order_item_id number
) |
SELECT MAX(district) FROM table_26758262_1 WHERE location_of_court = "Tolland" | What district is the court located in Tolland? | CREATE TABLE table_26758262_1 (district INTEGER, location_of_court VARCHAR) |
SELECT AVG(frequency_mhz) FROM table_name_53 WHERE city_of_license = "carmel, california" AND erp_w > 10 | What is the MHZ frequency in carmel, california with an ERP W over 10? | CREATE TABLE table_name_53 (frequency_mhz INTEGER, city_of_license VARCHAR, erp_w VARCHAR) |
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'cholecystitis - acute' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2102') AS t1 JOIN (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'cefazolin (ancef) in dextrose ivpb 2 g' AND STRFTIME('%y', medication.drugstarttime) <= '2102') AS t2 WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t1.diagnosistime, 'start of month') = DATETIME(t2.drugstarttime, 'start of month') | until 2102 how many patients were prescribed cefazolin (ancef) in dextrose ivpb 2 g during the same month after being diagnosed with cholecystitis - acute? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime 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 cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) |
SELECT judges_residence FROM table_26758262_1 WHERE location_of_court = "Groton" | Where does the judge whose court is in Groton reside? | CREATE TABLE table_26758262_1 (judges_residence VARCHAR, location_of_court VARCHAR) |
SELECT class FROM table_name_4 WHERE frequency_mhz < 103.1 AND city_of_license = "morro bay, california" | What class has a MHZ frequency under 103.1 licensed in morro bay, california? | CREATE TABLE table_name_4 (class VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.itemid = "50980" | what is the number of patients whose admission type is urgent and with lab test item id 50980? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
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 nhl_team FROM table_2679061_1 WHERE player = "John MacLean" | what is the nhl team for the player john maclean? | CREATE TABLE table_2679061_1 (nhl_team VARCHAR, player VARCHAR) |
SELECT COUNT(avg) FROM table_name_45 WHERE rec < 26 AND player = "reggie brown" AND long < 40 | How many averages have recs smaller than 26, and a Player of reggie brown, and a Long smaller than 40? | CREATE TABLE table_name_45 (avg VARCHAR, long VARCHAR, rec VARCHAR, player VARCHAR) |
SELECT site_stadium FROM table_name_21 WHERE date = "march 23" | On March 23, what is the site/stadium? | CREATE TABLE table_name_21 (
site_stadium VARCHAR,
date VARCHAR
) |
SELECT player FROM table_2679061_1 WHERE position = "Defence" AND college_junior_club_team = "Ottawa 67's (OHL)" | who is the player for the position defence and the college/junior/club team is ottawa 67's (ohl)? | CREATE TABLE table_2679061_1 (player VARCHAR, position VARCHAR, college_junior_club_team VARCHAR) |
SELECT AVG(yards) FROM table_name_90 WHERE avg > 7 AND long < 60 AND rec > 19 AND player = "correll buckhalter" | Which Yards has an Avg larger than 7, and a Long smaller than 60, and a Rec larger than 19, and a Player of correll buckhalter? | CREATE TABLE table_name_90 (yards INTEGER, player VARCHAR, rec VARCHAR, avg VARCHAR, long VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicaid" AND procedures.icd9_code = "4432" | tell me the number of medicaid insurance patients who had procedure icd9 code 4432. | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) |
SELECT college_junior_club_team FROM table_2679061_1 WHERE player = "Alfie Turcotte" | what is the college/junior/club team for the player alfie turcotte? | CREATE TABLE table_2679061_1 (college_junior_club_team VARCHAR, player VARCHAR) |
SELECT AVG(yards) FROM table_name_2 WHERE avg = 11.8 AND player = "brent celek" AND long > 44 | Which Yards have an avg of 11.8, and a Player of brent celek, and a Long larger than 44? | CREATE TABLE table_name_2 (yards INTEGER, long VARCHAR, avg VARCHAR, player VARCHAR) |
SELECT COUNT("Draws") FROM table_64311 WHERE "Against" = '797' AND "Wins" > '10' | When against is 797 and wins is more than 10, what is the sum of draws? | CREATE TABLE table_64311 (
"Club" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Against" real
) |
SELECT college_junior_club_team FROM table_2679061_10 WHERE nhl_team = "Buffalo Sabres" | What is the name of the college/junior/club team of the Buffalo Sabres? | CREATE TABLE table_2679061_10 (college_junior_club_team VARCHAR, nhl_team VARCHAR) |
SELECT MAX(yards) FROM table_name_51 WHERE rec < 54 AND long < 5 AND player = "todd herremans" AND avg > 1 | Which Yards is the highest one that has a Rec smaller than 54, and a Long smaller than 5, and a Player of todd herremans, and an Avg larger than 1? | CREATE TABLE table_name_51 (yards INTEGER, avg VARCHAR, player VARCHAR, rec VARCHAR, long VARCHAR) |
SELECT COUNT(no_result) FROM table_name_21 WHERE wins < 6 | How many total No Results are recorded for less than 6 wins? | CREATE TABLE table_name_21 (
no_result VARCHAR,
wins INTEGER
) |
SELECT nationality FROM table_2679061_10 WHERE player = "Reine Karlsson" | What is Reine Karlsson's nationality? | CREATE TABLE table_2679061_10 (nationality VARCHAR, player VARCHAR) |
SELECT high_rebounds FROM table_name_44 WHERE record = "18-14" | What is the high rebounds with a record that is 18-14? | CREATE TABLE table_name_44 (high_rebounds VARCHAR, record VARCHAR) |
SELECT document_status_description FROM ref_document_status WHERE document_status_code = "working" | What is the description of document status code 'working'? | CREATE TABLE documents_mailed (
document_id number,
mailed_to_address_id number,
mailing_date time
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_description text
)
CREATE TABLE ref_document_status (
document_status_code text,
document_status_description text
)
CREATE TABLE employees (
employee_id number,
role_code text,
employee_name text,
other_details text
)
CREATE TABLE circulation_history (
document_id number,
draft_number number,
copy_number number,
employee_id number
)
CREATE TABLE documents (
document_id number,
document_status_code text,
document_type_code text,
shipping_agent_code text,
receipt_date time,
receipt_number text,
other_details text
)
CREATE TABLE roles (
role_code text,
role_description text
)
CREATE TABLE draft_copies (
document_id number,
draft_number number,
copy_number number
)
CREATE TABLE addresses (
address_id number,
address_details text
)
CREATE TABLE document_drafts (
document_id number,
draft_number number,
draft_details text
)
CREATE TABLE ref_shipping_agents (
shipping_agent_code text,
shipping_agent_name text,
shipping_agent_description text
) |
SELECT COUNT(nationality) FROM table_2679061_11 WHERE nhl_team = "Philadelphia Flyers" | How many players were drafted by the Philadelphia Flyers? | CREATE TABLE table_2679061_11 (nationality VARCHAR, nhl_team VARCHAR) |
SELECT high_points FROM table_name_59 WHERE game = 30 | What are the high points from a game of 30? | CREATE TABLE table_name_59 (high_points VARCHAR, game VARCHAR) |
SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.diagnosis = "COPD EXACERBATION" | find the maximum age of patients whose admission location is emergency room and primary disease is copd exacerbation. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
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 COUNT(pick__number) FROM table_2679061_11 WHERE nhl_team = "Chicago Black Hawks" | How many picks did the Chicago Black Hawks get? | CREATE TABLE table_2679061_11 (pick__number VARCHAR, nhl_team VARCHAR) |
SELECT score FROM table_name_96 WHERE opponent = "malacca" AND venue = "klfa stadium, cheras" | What is the score for the game against Malacca at the Klfa Stadium, Cheras? | CREATE TABLE table_name_96 (score VARCHAR, opponent VARCHAR, venue VARCHAR) |
SELECT "Date" FROM table_38834 WHERE "Location" = 'berlin' | What's the date when the location is Berlin? | CREATE TABLE table_38834 (
"Distance" text,
"Time" text,
"Date" text,
"Location" text,
"Notes" text
) |
SELECT nhl_team FROM table_2679061_11 WHERE pick__number = 203 | What team had pick 203? | CREATE TABLE table_2679061_11 (nhl_team VARCHAR, pick__number VARCHAR) |
SELECT date FROM table_name_7 WHERE venue = "city stadium, georgetown" | Which date held the match at the City Stadium, Georgetown? | CREATE TABLE table_name_7 (date VARCHAR, venue VARCHAR) |
SELECT prescriptions.route FROM prescriptions WHERE prescriptions.formulary_drug_cd = "GELCLAIR" | Find the route of administration for medication with a GELCLAIR drug code. | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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 college_junior_club_team FROM table_2679061_12 WHERE player = "Harold Duvall" | Which school did harold duvall attend? | CREATE TABLE table_2679061_12 (college_junior_club_team VARCHAR, player VARCHAR) |
SELECT competition FROM table_name_31 WHERE opponent = "police" AND venue = "selayang stadium" | Which competition had an opponent of Police at the Selayang Stadium? | CREATE TABLE table_name_31 (competition VARCHAR, opponent VARCHAR, venue VARCHAR) |
SELECT "Transfer fee" FROM table_7725 WHERE "Ends" = '2011' AND "Moving from" = 'thrasyvoulos' | What was the transfer fee for the player ending in 2011 and moving from Thrasyvoulos? | CREATE TABLE table_7725 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
) |
SELECT position FROM table_2679061_12 WHERE nhl_team = "Boston Bruins" | List the position for the boston bruins. | CREATE TABLE table_2679061_12 (position VARCHAR, nhl_team VARCHAR) |
SELECT AVG(field_goals) FROM table_name_25 WHERE touchdowns < 3 AND player = "clark" AND points < 5 | What the average amount of field goals Clark has if he has less than 3 touch downs and less than 5 points? | CREATE TABLE table_name_25 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR, player VARCHAR) |
SELECT AVG("Attendance") FROM table_66377 WHERE "Week" < '4' AND "Result" = 'w 31-20' | What is the attendance in a week earlier than 4, and result is w 31-20? | CREATE TABLE table_66377 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) |
SELECT player FROM table_2679061_12 WHERE college_junior_club_team = "Litvinov (Czechoslovakia)" | Who was drafted to litvinov (czechoslovakia)? | CREATE TABLE table_2679061_12 (player VARCHAR, college_junior_club_team VARCHAR) |
SELECT SUM(points) FROM table_name_12 WHERE player = "tom hammond" AND extra_points > 12 | How many points does Tom Hammond have if he has more than 12 points? | CREATE TABLE table_name_12 (points INTEGER, player VARCHAR, extra_points VARCHAR) |
SELECT genre FROM table_name_49 WHERE developer = "microvision" | In what genre did Microvision develop a game? | CREATE TABLE table_name_49 (
genre VARCHAR,
developer VARCHAR
) |
SELECT position FROM table_2679061_12 WHERE player = "Peter McGeough" | What position does peter mcgeough cover? | CREATE TABLE table_2679061_12 (position VARCHAR, player VARCHAR) |
SELECT MIN(field_goals) FROM table_name_40 WHERE touchdowns = 12 AND points > 72 | Who had the lowest field goals if they had 12 touchdowns and more than 72 points? | CREATE TABLE table_name_40 (field_goals INTEGER, touchdowns VARCHAR, points VARCHAR) |
SELECT "Name" FROM table_50446 WHERE "Transfer window" = 'summer' AND "Transfer fee" = 'undisclosed' AND "Moving from" = 'brussels' | What is the name of the player with a transfer window in summer, an undisclosed transfer fee, and is moving from brussels? | CREATE TABLE table_50446 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Transfer fee" text
) |
SELECT player FROM table_2679061_4 WHERE nhl_team = "Minnesota North Stars" | Which player was drafted by the Minnesota North Stars? | CREATE TABLE table_2679061_4 (player VARCHAR, nhl_team VARCHAR) |
SELECT MIN(earnings___) AS $__ FROM table_name_49 WHERE wins = 28 AND player = "lee trevino" | What is the lowest earnings of Lee Trevino who has 28 wins? | CREATE TABLE table_name_49 (earnings___ INTEGER, wins VARCHAR, player VARCHAR) |
SELECT "Event" FROM table_31778 WHERE "Acts" = '106 bands' | I want to know the events for 106 bands | CREATE TABLE table_31778 (
"Year" real,
"Date" text,
"Event" text,
"Days" text,
"Stages" text,
"Acts" text
) |
SELECT nationality FROM table_2679061_4 WHERE player = "Bob Essensa" | What is the nationality of Bob Essensa? | CREATE TABLE table_2679061_4 (nationality VARCHAR, player VARCHAR) |
SELECT location_attendance FROM table_name_1 WHERE date = "december 14" | Where is the location of attendance for the Date of december 14? | CREATE TABLE table_name_1 (location_attendance VARCHAR, date VARCHAR) |
SELECT name FROM table_name_97 WHERE qual_2 = "1:43.374" | What name has a qual 2 of 1:43.374? | CREATE TABLE table_name_97 (
name VARCHAR,
qual_2 VARCHAR
) |
SELECT position FROM table_2679061_4 WHERE college_junior_club_team = "Regina Pats (WHL)" | What position is the player from the Regina Pats (WHL)? | CREATE TABLE table_2679061_4 (position VARCHAR, college_junior_club_team VARCHAR) |
SELECT team FROM table_name_70 WHERE high_points = "tracy mcgrady (24)" | What team has a high score with tracy mcgrady (24)? | CREATE TABLE table_name_70 (team VARCHAR, high_points 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 = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND flight.departure_time = (SELECT MIN(FLIGHTalias1.departure_time) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, flight AS FLIGHTalias1 WHERE CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'DALLAS' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'BOSTON' AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) | i'd like the earliest flight from DALLAS to BOSTON | CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id 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 airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
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 flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
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
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_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 month (
month_number int,
month_name text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
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 equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
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_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 city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE code_description (
code varchar,
description text
) |
SELECT pick__number FROM table_2679061_4 WHERE college_junior_club_team = "HIFK Helsinki (Finland)" | What number pick was the player from HIFK Helsinki (Finland)? | CREATE TABLE table_2679061_4 (pick__number VARCHAR, college_junior_club_team VARCHAR) |
SELECT location_attendance FROM table_name_28 WHERE score = "l 90–91 (ot)" | What location has an attendance and a score of l 90–91 (ot)? | CREATE TABLE table_name_28 (location_attendance VARCHAR, score VARCHAR) |
SELECT MAX(place) FROM table_name_92 WHERE year = 2010 AND clean_and_jerk = "224kg" | What was the highest place result in 2010 with a Clean and Jerk weight of 224kg? | CREATE TABLE table_name_92 (
place INTEGER,
year VARCHAR,
clean_and_jerk VARCHAR
) |
SELECT nhl_team FROM table_2679061_4 WHERE player = "Esa Tikkanen" | Which team drafted Esa Tikkanen? | CREATE TABLE table_2679061_4 (nhl_team VARCHAR, player VARCHAR) |
SELECT team FROM table_name_98 WHERE score = "l 88–94 (ot)" | What team has a Score of l 88–94 (ot)? | CREATE TABLE table_name_98 (team VARCHAR, score VARCHAR) |
SELECT us_viewers__millions_ FROM table_28027307_1 WHERE production_code = "6AKY07" | How many millions of U.S. viewers watched the episode with the production code of 6AKY07? | CREATE TABLE table_28027307_1 (
us_viewers__millions_ VARCHAR,
production_code VARCHAR
) |
SELECT nationality FROM table_2679061_9 WHERE pick__number = 168 | What was the nationality of player picked no. 168? | CREATE TABLE table_2679061_9 (nationality VARCHAR, pick__number VARCHAR) |
SELECT score FROM table_name_26 WHERE surface = "hard (i)" AND tournament = "columbus, ohio" | What score has hard (i) as the surface, and Columbus, Ohio as the tournament? | CREATE TABLE table_name_26 (score VARCHAR, surface VARCHAR, tournament VARCHAR) |
SELECT origin FROM table_name_57 WHERE in_service = 1 | For the vessel with a listed In service of 1, what is the origin given? | CREATE TABLE table_name_57 (
origin VARCHAR,
in_service VARCHAR
) |
SELECT nationality FROM table_2679061_9 WHERE pick__number = 179 | What was the nationality of player picked no. 179? | CREATE TABLE table_2679061_9 (nationality VARCHAR, pick__number VARCHAR) |
SELECT opponent_in_the_final FROM table_name_12 WHERE tournament = "rockford, illinois" | What opponent in the final has rockford, Illinois as the tournament? | CREATE TABLE table_name_12 (opponent_in_the_final VARCHAR, tournament VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Government" AND lab.label = "Hematocrit, Other Fluid" | give the number of patients whose insurance is government and lab test name is hematocrit, other fluid. | 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
)
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
) |
SELECT player FROM table_2679061_9 WHERE nhl_team = "Hartford Whalers" | Who was the player who played for Hartford Whalers NHL Team? | CREATE TABLE table_2679061_9 (player VARCHAR, nhl_team VARCHAR) |
SELECT score FROM table_name_27 WHERE tournament = "zadar" | What score has zadar as the tournament? | CREATE TABLE table_name_27 (score VARCHAR, tournament VARCHAR) |
SELECT "Report" FROM table_16748 WHERE "Location" = 'Kyalami' | what is the report where the location is kyalami? | CREATE TABLE table_16748 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
) |
SELECT position FROM table_2679061_9 WHERE nhl_team = "New York Islanders" | What was the position of the player who played for New York Islanders NHL Team? | CREATE TABLE table_2679061_9 (position VARCHAR, nhl_team VARCHAR) |
SELECT team FROM table_name_19 WHERE players = "amanda coetzer and marcos ondruska" | Players of amanda coetzer and marcos ondruska is what team? | CREATE TABLE table_name_19 (team VARCHAR, players VARCHAR) |
SELECT SUM("Goals") FROM table_15161 WHERE "Position" = '14th of 24' AND "League" = 'football conference' | Goals that has a Position of 14th of 24, and a League of football conference has what sum? | CREATE TABLE table_15161 (
"Year" text,
"League" text,
"Position" text,
"Leading Scorer" text,
"Goals" real
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.