answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT COUNT(die_size__mm_2__) FROM table_26040604_1 WHERE texture___gt__s_ = "34" | How many die sizes have a texture of exactly 34? | CREATE TABLE table_26040604_1 (die_size__mm_2__ VARCHAR, texture___gt__s_ VARCHAR) |
SELECT team FROM table_name_92 WHERE time = "+1'25.337" | what team has +1'25.337 for the time? | CREATE TABLE table_name_92 (team VARCHAR, time VARCHAR) |
SELECT "Television service" FROM table_40746 WHERE "Language" = 'italian' | Which television service has italian for its language? | CREATE TABLE table_40746 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
) |
SELECT model FROM table_26040604_1 WHERE launch = "September 3, 2010" | What model has a launch of September 3, 2010? | CREATE TABLE table_26040604_1 (model VARCHAR, launch VARCHAR) |
SELECT result FROM table_name_15 WHERE arena = "a" AND league = "sl" AND match > 16 | What was the result at A Arena, the SL league, and a match number over 16? | CREATE TABLE table_name_15 (result VARCHAR, match VARCHAR, arena VARCHAR, league VARCHAR) |
SELECT discovery___publication_of_name FROM table_name_69 WHERE species = "red deer cave people" | Tell me the discovery/publication for red deer cave people | CREATE TABLE table_name_69 (
discovery___publication_of_name VARCHAR,
species VARCHAR
) |
SELECT dram_type FROM table_26040604_1 WHERE sm_count = 6 | What was the DRAM type of an SM Count of 6? | CREATE TABLE table_26040604_1 (dram_type VARCHAR, sm_count VARCHAR) |
SELECT game FROM table_name_44 WHERE opponent = "@ atlanta flames" | Opponent of @ atlanta flames had what game? | CREATE TABLE table_name_44 (game VARCHAR, opponent VARCHAR) |
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the distribution of hire_date and the average of department_id bin hire_date by weekday in a bar chart. | 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 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) |
SELECT writer_s_ FROM table_2602958_5 WHERE _number = 8 | Who wrote the movie positioned at 8 on the list? | CREATE TABLE table_2602958_5 (writer_s_ VARCHAR, _number VARCHAR) |
SELECT MIN(game) FROM table_name_81 WHERE record = "3-3-1" | Record of 3-3-1 had what lowest game? | CREATE TABLE table_name_81 (game INTEGER, record VARCHAR) |
SELECT COUNT(crowd) FROM table_name_4 WHERE venue = "western oval" | How many people watch at Western Oval venue? | CREATE TABLE table_name_4 (
crowd VARCHAR,
venue VARCHAR
) |
SELECT passes_through___district_s FROM table_26036389_1 WHERE mdr_no = 47 | What district does the road with a MDR number of 47 pass through? | CREATE TABLE table_26036389_1 (passes_through___district_s VARCHAR, mdr_no VARCHAR) |
SELECT date FROM table_name_65 WHERE save = "aguilera (5)" | What was the date when the game had a save by Aguilera (5)? | CREATE TABLE table_name_65 (date VARCHAR, save VARCHAR) |
SELECT b___bishop FROM table_2603017_2 WHERE bc___beast_cadet = "GR - Great Dove" | what is b - bishop where bc - beast cadet is gr - great dove? | CREATE TABLE table_2603017_2 (
b___bishop VARCHAR,
bc___beast_cadet VARCHAR
) |
SELECT MIN(mdr_no) FROM table_26036389_1 WHERE name_of_road = "Rait Charhi Dharamshala" | What is the MDR number of Rait Charhi Dharamshala? | CREATE TABLE table_26036389_1 (mdr_no INTEGER, name_of_road VARCHAR) |
SELECT save FROM table_name_96 WHERE loss = "sanderson (6-5)" | What was the Save in the game that has a Loss of sanderson (6-5)? | CREATE TABLE table_name_96 (save VARCHAR, loss VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ST ELEVATED MYOCARDIAL INFARCTION\CARDIAC CATH" AND demographic.admityear < "2135" | how many patients with st elevated myocardial infarction/cardiac catheterization primary disease were admitted to hospital before 2135? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT MAX(sr_no) FROM table_26036389_1 WHERE name_of_road = "Banikhet Dalhouse Khajiar" | What is the Sr. number of Banikhet Dalhouse Khajiar? | CREATE TABLE table_26036389_1 (sr_no INTEGER, name_of_road VARCHAR) |
SELECT AVG(wins) FROM table_name_77 WHERE rank = 3 | Which Wins have a Rank of 3? | CREATE TABLE table_name_77 (wins INTEGER, rank VARCHAR) |
SELECT "Team" FROM table_29723 WHERE "Date" = 'January 17' | Who were the 76ers opponents on January 17? | CREATE TABLE table_29723 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT MIN(runs) FROM table_26041144_10 | What is the smallest number of runs? | CREATE TABLE table_26041144_10 (runs INTEGER) |
SELECT AVG(events) FROM table_name_60 WHERE player = "tom kite" AND earnings___$__ < 760 OFFSET 405 | Which Events have a Player of tom kite, and Earnings ($) smaller than 760,405? | CREATE TABLE table_name_60 (events INTEGER, player VARCHAR, earnings___$__ VARCHAR) |
SELECT (SELECT id FROM table_203_274 WHERE "church name" = 'our lady of loretto') < (SELECT id FROM table_203_274 WHERE "church name" = 'holy spirit') | is our lady of loretto listed above or below the holy spirit ? | CREATE TABLE table_203_274 (
id number,
"church name" text,
"address" text,
"community" text,
"school" text
) |
SELECT MIN(innings) FROM table_26041144_10 WHERE average = "32.3" | How many innings are there when the average is 32.3? | CREATE TABLE table_26041144_10 (innings INTEGER, average VARCHAR) |
SELECT events FROM table_name_7 WHERE rank = 1 | Which events have a Rank of 1? | CREATE TABLE table_name_7 (events VARCHAR, rank VARCHAR) |
SELECT date FROM table_name_51 WHERE livery = "operational" | What is the date for the Operational Livery? | CREATE TABLE table_name_51 (
date VARCHAR,
livery VARCHAR
) |
SELECT average FROM table_26041144_10 WHERE strike_rate = "75.78" | What was the average when the strike rate is 75.78? | CREATE TABLE table_26041144_10 (average VARCHAR, strike_rate VARCHAR) |
SELECT MIN(points) FROM table_name_12 WHERE player = "willie heston" AND touchdowns < 3 | What is the fewest Points that has Willie Heston as Player and less than 3 as Touchdowns? | CREATE TABLE table_name_12 (points INTEGER, player VARCHAR, touchdowns VARCHAR) |
SELECT city___town FROM table_28668784_1 WHERE stadium = "Stadion Zlatica" | What town holds Stadion Zlatica? | CREATE TABLE table_28668784_1 (
city___town VARCHAR,
stadium VARCHAR
) |
SELECT MAX(catches) FROM table_26041144_16 | What is the catches maximum number? | CREATE TABLE table_26041144_16 (catches INTEGER) |
SELECT departure FROM table_name_66 WHERE station_name = "rajendranagar terminal" | What is the Departure time at Rajendranagar Terminal? | CREATE TABLE table_name_66 (departure VARCHAR, station_name VARCHAR) |
SELECT area_damaged FROM table_23014685_1 WHERE target = "King Khalid Military City" | What area was damaged when King Khalid Military City was targeted? | CREATE TABLE table_23014685_1 (
area_damaged VARCHAR,
target VARCHAR
) |
SELECT MIN(catches) FROM table_26041144_16 WHERE player = "Hashan Tillakaratne" | If the player is Hashan Tillakaratne, what is the catches minimum? | CREATE TABLE table_26041144_16 (catches INTEGER, player VARCHAR) |
SELECT station_code FROM table_name_37 WHERE departure = "destination station" | What is the Station Code of the Destination Station Departure? | CREATE TABLE table_name_37 (station_code VARCHAR, departure VARCHAR) |
SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-65715')) AND lab.labname = 'rdw' AND DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', lab.labresulttime) = '01' ORDER BY lab.labresulttime LIMIT 1 | in 01/last year what was the first value of a rdw lab test of patient 006-65715? | 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 patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
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
)
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
) |
SELECT period FROM table_26041144_16 WHERE player = "Hashan Tillakaratne" | what is the period if the player is Hashan Tillakaratne? | CREATE TABLE table_26041144_16 (period VARCHAR, player VARCHAR) |
SELECT platform FROM table_name_26 WHERE departure = "18:00" | At what Platform is the Departure 18:00? | CREATE TABLE table_name_26 (platform VARCHAR, departure VARCHAR) |
SELECT dvd_set_release_date FROM table_name_76 WHERE network = "cbs" | When dis cbs release the DVD set? | CREATE TABLE table_name_76 (
dvd_set_release_date VARCHAR,
network VARCHAR
) |
SELECT COUNT(rank) FROM table_26041144_16 WHERE player = "Hashan Tillakaratne" | What is the ranktotal number if the Hashan Tillakaratne? | CREATE TABLE table_26041144_16 (rank VARCHAR, player VARCHAR) |
SELECT station_name FROM table_name_63 WHERE arrival = "starting station" | What is the Station Name of the Arrival Starting Station? | CREATE TABLE table_name_63 (station_name VARCHAR, arrival VARCHAR) |
SELECT "Flagship" FROM table_50180 WHERE "Host(s)" = 'rover (shane french)' | What is the Flagship of the Show Hosted by Rover (Shane French)? | CREATE TABLE table_50180 (
"Show" text,
"Host(s)" text,
"Flagship" text,
"Market" text,
"iHeartRadio" text
) |
SELECT COUNT(rank) FROM table_26041144_16 WHERE catches = 131 | If the catches is 131, what is the rank total number? | CREATE TABLE table_26041144_16 (rank VARCHAR, catches VARCHAR) |
SELECT arrival FROM table_name_62 WHERE station_name = "patna junction" | What is the Arrival time of the Patna Junction Station? | CREATE TABLE table_name_62 (arrival VARCHAR, station_name VARCHAR) |
SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-4322') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1 | calculate the duration of stay during patient 007-4322's first stay in the intensive care unit. | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime 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
)
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 diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime 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 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
) |
SELECT MAX(burglary) FROM table_26060884_2 WHERE property_crimes = 168630 | What was the maximum burglary statistics if the property crimes is 168630? | CREATE TABLE table_26060884_2 (burglary INTEGER, property_crimes VARCHAR) |
SELECT station_name FROM table_name_97 WHERE arrival = "01:10" | What Station Name has an Arrival time of 01:10? | CREATE TABLE table_name_97 (station_name VARCHAR, arrival VARCHAR) |
SELECT "Year(s) Won" FROM table_59092 WHERE "Country" = 'united states' AND "Total" > '152' | Can you tell me the Year(s) Won that has the Country of united states, and the Total larger than 152? | CREATE TABLE table_59092 (
"Player" text,
"Country" text,
"Year(s) Won" text,
"Total" real,
"To par" real
) |
SELECT burglary FROM table_26060884_2 WHERE forcible_rape = 1233 | How many burglary crimes were committed if the forcible rapes were 1233? | CREATE TABLE table_26060884_2 (burglary VARCHAR, forcible_rape VARCHAR) |
SELECT score FROM table_name_14 WHERE opponent = "new jersey nets" | What was the score for the game against the New Jersey Nets? | CREATE TABLE table_name_14 (score VARCHAR, opponent VARCHAR) |
SELECT Year, COUNT(Year) FROM exhibition ORDER BY COUNT(Year) DESC | Show me how many year by year in a histogram, and I want to list Y-axis in desc order. | CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
) |
SELECT COUNT(vehicle_theft) FROM table_26060884_2 WHERE forcible_rape = 1232 | How many vehicle thefts data were recorded if forcible rape is 1232? | CREATE TABLE table_26060884_2 (vehicle_theft VARCHAR, forcible_rape VARCHAR) |
SELECT date FROM table_name_36 WHERE opponent = "milwaukee bucks" | On which date was the game played against the Milwaukee Bucks? | CREATE TABLE table_name_36 (date VARCHAR, opponent VARCHAR) |
SELECT location FROM table_name_96 WHERE classification = "t12" | What is the location of Classification of T12? | CREATE TABLE table_name_96 (
location VARCHAR,
classification VARCHAR
) |
SELECT COUNT(vehicle_theft) FROM table_26060884_2 WHERE population = 4465430 | How many vehicle theft data were recorded for a year with a population of 4465430? | CREATE TABLE table_26060884_2 (vehicle_theft VARCHAR, population VARCHAR) |
SELECT results¹ FROM table_name_13 WHERE opponent = "luxembourg" | What was the result of the game against Luxembourg? | CREATE TABLE table_name_13 (results¹ VARCHAR, opponent VARCHAR) |
SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 5 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'cv dis nec-deliver w p/p') GROUP BY admissions.subject_id HAVING MIN(diagnoses_icd.charttime) = diagnoses_icd.charttime) AS t1 WHERE STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', t1.charttime) > 5 * 365) AS t2 JOIN (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'lr') AS t3 ON t2.subject_id = t3.subject_id WHERE t2.charttime < t3.startdate) AS t4 JOIN patients ON t4.subject_id = patients.subject_id | calculate the five year survival rate among the patients who were prescribed lr after they were diagnosed with cv dis nec-deliver w p/p. | 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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label 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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value 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 prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title 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 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 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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
) |
SELECT MIN(property_crimes) FROM table_26060884_2 WHERE burglary = 45350 | What was the minimum property crimes stats if the burglary committed was 45350? | CREATE TABLE table_26060884_2 (property_crimes INTEGER, burglary VARCHAR) |
SELECT date FROM table_name_14 WHERE city = "novi sad" | When did the city of Novi Sad participate? | CREATE TABLE table_name_14 (date VARCHAR, city VARCHAR) |
SELECT "Home team" FROM table_32804 WHERE "Home team score" = '12.17 (89)' | What is the home team when the home team score is 12.17 (89)? | CREATE TABLE table_32804 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT average FROM table_26041144_11 WHERE player = "Kumar Sangakkara" | What was kumar sangakkara's average? | CREATE TABLE table_26041144_11 (average VARCHAR, player VARCHAR) |
SELECT results¹ FROM table_name_97 WHERE opponent = "luxembourg" | What was the result of the game against Luxembourg? | CREATE TABLE table_name_97 (results¹ VARCHAR, opponent VARCHAR) |
SELECT "Date of Issue" FROM table_57513 WHERE "Theme" = 'mental health' | What is the Date of Issue with a Theme with mental health? | CREATE TABLE table_57513 (
"Date of Issue" text,
"Theme" text,
"Design" text,
"Illustration" text,
"Paper Type" text,
"First Day Cover Cancellation" text
) |
SELECT player FROM table_26041144_11 WHERE average = "36.74" | Who was the player with a 36.74 average? | CREATE TABLE table_26041144_11 (player VARCHAR, average VARCHAR) |
SELECT result FROM table_name_24 WHERE game_site = "memorial stadium" AND week = 15 | What was the result for the game at Memorial Stadium in week 15? | CREATE TABLE table_name_24 (result VARCHAR, game_site VARCHAR, week VARCHAR) |
SELECT "Sport" FROM table_56 WHERE "Final score" = '3-2' | What sport had a final score of 3-2? | CREATE TABLE table_56 (
"Year" real,
"Game or event" text,
"Date contested" text,
"League or governing body" text,
"Sport" text,
"Winning team" text,
"Losing team" text,
"Final score" text
) |
SELECT rank FROM table_26041144_11 WHERE average = "39.69" | What is the rank of the player with the 39.69 average? | CREATE TABLE table_26041144_11 (rank VARCHAR, average VARCHAR) |
SELECT series FROM table_name_99 WHERE score = "0–6" | Which Series has a Score of 0–6? | CREATE TABLE table_name_99 (series VARCHAR, score VARCHAR) |
SELECT "nation" FROM table_203_61 ORDER BY "total" DESC LIMIT 1 | nigeria has the most gold medals , but who has the most medals overall ? | CREATE TABLE table_203_61 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) |
SELECT MIN(matches) FROM table_26041144_11 | What is the lowest number of matches for a record holder? | CREATE TABLE table_26041144_11 (matches INTEGER) |
SELECT series FROM table_name_39 WHERE game > 1 AND date = "april 18" | Which Series has a Game larger than 1, and a Date of april 18? | CREATE TABLE table_name_39 (series VARCHAR, game VARCHAR, date VARCHAR) |
SELECT Famous_Title FROM artist WHERE NOT Artist_ID IN (SELECT Artist_ID FROM volume) | Find the famous titles of artists that do not have any volume. | CREATE TABLE volume (
Famous_Title VARCHAR,
Artist_ID VARCHAR
)
CREATE TABLE artist (
Famous_Title VARCHAR,
Artist_ID VARCHAR
) |
SELECT h264 FROM table_26099252_1 WHERE theora = "2.3" | When theora is 2.3, how much is the h.264? | CREATE TABLE table_26099252_1 (h264 VARCHAR, theora VARCHAR) |
SELECT series FROM table_name_59 WHERE opponent = "new york rangers" AND score = "3–2 ot" | Which Series has an Opponent of new york rangers, and a Score of 3–2 ot? | CREATE TABLE table_name_59 (series VARCHAR, opponent VARCHAR, score VARCHAR) |
SELECT "Tournament" FROM table_66970 WHERE "Runner(s)-up" = 'chi-chi rodriguez' | What races were Chi-Chi Rodriguez the runner-up in? | CREATE TABLE table_66970 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) |
SELECT vp9___webm__ FROM table_26099252_1 WHERE vp8___webm__ = "6.0" | When vp8 ( webm ) is 6.0, how much is the vp9 ( webm )? | CREATE TABLE table_26099252_1 (vp9___webm__ VARCHAR, vp8___webm__ VARCHAR) |
SELECT series FROM table_name_70 WHERE opponent = "@ new york rangers" AND date = "april 22" | Which Series has an Opponent of @ new york rangers, and a Date of april 22? | CREATE TABLE table_name_70 (series VARCHAR, opponent VARCHAR, date VARCHAR) |
SELECT 2006 FROM table_27146868_1 WHERE 1997 = "6.8" | What is 2006 when 1997 is 6.8? | CREATE TABLE table_27146868_1 (
Id VARCHAR
) |
SELECT vp9___webm__ FROM table_26099252_1 WHERE vp8___webm__ = "4.4" | When vp8 ( webm ) is 4.4, how much is vp9 ( webm ) | CREATE TABLE table_26099252_1 (vp9___webm__ VARCHAR, vp8___webm__ VARCHAR) |
SELECT COUNT(played) FROM table_name_99 WHERE lost < 3 AND difference = "6" AND points > 6 | How many Played have a Lost smaller than 3, and a Difference of 6, and Points larger than 6? | CREATE TABLE table_name_99 (played VARCHAR, points VARCHAR, lost VARCHAR, difference VARCHAR) |
SELECT "Player" FROM table_38417 WHERE "Pick #" = '25' | Which player's pick number was 25? | CREATE TABLE table_38417 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
) |
SELECT latest_stable_release FROM table_26099252_1 WHERE vp9___webm__ = "No" AND h264 = "3.0" | What is the last stable version where the h.264 is 3.0 and vp9 (webm) is no. | CREATE TABLE table_26099252_1 (latest_stable_release VARCHAR, vp9___webm__ VARCHAR, h264 VARCHAR) |
SELECT COUNT(points) FROM table_name_36 WHERE drawn < 0 | How many Points have a Drawn smaller than 0? | CREATE TABLE table_name_36 (points VARCHAR, drawn INTEGER) |
SELECT name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name ORDER BY AVG(T1.stars) DESC | A bar chart about what is the average rating star for each reviewer?, I want to show from high to low by the y axis. | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
) |
SELECT vp9___webm__ FROM table_26099252_1 WHERE h264 = "9.0" | When h.264 is 9.0, how much is vp9 ( webm ) | CREATE TABLE table_26099252_1 (vp9___webm__ VARCHAR, h264 VARCHAR) |
SELECT COUNT(drawn) FROM table_name_38 WHERE against < 5 AND played < 3 | How many Drawn have an Against smaller than 5, and a Played smaller than 3? | CREATE TABLE table_name_38 (drawn VARCHAR, against VARCHAR, played VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND prescriptions.route = "NEB" | how many black/haitian patients had neb as the drug route? | 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
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) |
SELECT peletier FROM table_260938_1 WHERE systematics = "Million 1" | Name the peletier for systematics being million 1 | CREATE TABLE table_260938_1 (peletier VARCHAR, systematics VARCHAR) |
SELECT SUM(position) FROM table_name_35 WHERE against = 5 AND drawn > 0 | Which Position has an Against of 5, and a Drawn larger than 0? | CREATE TABLE table_name_35 (position INTEGER, against VARCHAR, drawn VARCHAR) |
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'endotracheal tube - insertion') | what do endotracheal tube - insertion treatments cost? | 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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE 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 vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
) |
SELECT si_prefix FROM table_260938_1 WHERE chuquet = "thousand" | Name the si prefix for thousand chuquet | CREATE TABLE table_260938_1 (si_prefix VARCHAR, chuquet VARCHAR) |
SELECT MAX(played) FROM table_name_66 WHERE lost < 1 AND difference = "6" AND against > 2 | Which Played is the highest one that has a Lost smaller than 1, and a Difference of 6, and an Against larger than 2? | CREATE TABLE table_name_66 (played INTEGER, against VARCHAR, lost VARCHAR, difference VARCHAR) |
SELECT "Directed by" FROM table_17657 WHERE "Written by" = 'Adam Milch' | Who directed the title that was written by Adam Milch? | CREATE TABLE table_17657 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Total viewers (in millions)" text
) |
SELECT base_10 FROM table_260938_1 WHERE peletier = "Bi llion" | Name the base 10 for peletier for bi llion | CREATE TABLE table_260938_1 (base_10 VARCHAR, peletier VARCHAR) |
SELECT MIN(points) FROM table_name_36 WHERE position > 5 | Which Points is the lowest one that has a Position larger than 5? | CREATE TABLE table_name_36 (points INTEGER, position INTEGER) |
SELECT consistency_ & _participation FROM table_name_83 WHERE pareto_efficiency = "yes" AND condorcet = "no" | what is the consistency & participation when pareto efficiency is yes and condorcet is no? | CREATE TABLE table_name_83 (
consistency_ VARCHAR,
_participation VARCHAR,
pareto_efficiency VARCHAR,
condorcet VARCHAR
) |
SELECT COUNT(peletier) FROM table_260938_1 WHERE shortscale_comparison = "Billion" | Name the total number of peletier for shortscale comparison billion | CREATE TABLE table_260938_1 (peletier VARCHAR, shortscale_comparison VARCHAR) |
SELECT lost FROM table_name_56 WHERE "points" = "points" | what team lost the most points | CREATE TABLE table_name_56 (lost VARCHAR) |
SELECT "District" FROM table_18330 WHERE "Incumbent" = 'Bob Wilson' | What is the district that has Bob Wilson as an incumbent? | CREATE TABLE table_18330 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) |
SELECT base_10 FROM table_260938_1 WHERE shortscale_comparison = "Billion" | Name the base 10 for shortscale comparison for billion | CREATE TABLE table_260938_1 (base_10 VARCHAR, shortscale_comparison VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.