answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT premier_date FROM table_2140071_5 WHERE coach = "John O'Connell" | What date did the episode, with John O'Connell as the coach, premier? | CREATE TABLE table_2140071_5 (premier_date VARCHAR, coach VARCHAR) |
SELECT series FROM table_name_8 WHERE team = "dick johnson racing" | What series was Dick Johnson Racing the team? | CREATE TABLE table_name_8 (
series VARCHAR,
team VARCHAR
) |
SELECT SUM(points) FROM table_name_40 WHERE played < 18 | What is the sum of all points when number played is less than 18? | CREATE TABLE table_name_40 (points INTEGER, played INTEGER) |
SELECT result_games FROM table_21436373_11 WHERE type_of_record = "Total attendance-Regular season" | Name the result for total attendance-regular season | CREATE TABLE table_21436373_11 (result_games VARCHAR, type_of_record VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "WBC" | provide the number of patients whose lab test name is wbc? | 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 ... |
SELECT date FROM table_name_48 WHERE score = "6–4, 6–3" | Which date has a Score of 6–4, 6–3? | CREATE TABLE table_name_48 (date VARCHAR, score VARCHAR) |
SELECT result_games FROM table_21436373_11 WHERE attendance = 52521 | Name the result/games for 52521 | CREATE TABLE table_21436373_11 (result_games VARCHAR, attendance VARCHAR) |
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.hospitaldischargetime IS NULL AND patient.age >= 60 | count the number of current patients whose age is in their 60 or above. | 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 diagnosis (
diagn... |
SELECT COUNT(pl_gp) FROM table_name_79 WHERE reg_gp > 3 | What is the total PI GP that a Reg GP has larger than 3? | CREATE TABLE table_name_79 (pl_gp VARCHAR, reg_gp INTEGER) |
SELECT result_games FROM table_21436373_11 WHERE attendance = 54530 | Name the result/games for 54530 | CREATE TABLE table_21436373_11 (result_games VARCHAR, attendance VARCHAR) |
SELECT COUNT("Innings") FROM table_24406 WHERE "Runs scored" = '5088' | Name the innings for 5088 runs scored | CREATE TABLE table_24406 (
"Name" text,
"Career" text,
"Matches" real,
"Innings" real,
"Not Out" real,
"Runs scored" real,
"High Score" text,
"50s" real,
"100s" real,
"Average" text
) |
SELECT AVG(reg_gp) FROM table_name_84 WHERE pick__number > 210 | What average Reg GP has a pick # larger than 210? | CREATE TABLE table_name_84 (reg_gp INTEGER, pick__number INTEGER) |
SELECT stadium FROM table_21436373_11 WHERE type_of_record = "Regular season game" | Name the stadium for regular season game | CREATE TABLE table_21436373_11 (stadium VARCHAR, type_of_record VARCHAR) |
SELECT "Incumbent" FROM table_74881 WHERE "District" = 'california 8' | Which Incumbent has a District of California 8? | CREATE TABLE table_74881 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text
) |
SELECT result FROM table_name_47 WHERE goals = "deacon 2/5" | Which result has a Goal of deacon 2/5? | CREATE TABLE table_name_47 (result VARCHAR, goals VARCHAR) |
SELECT result_games FROM table_21436373_11 WHERE attendance = 54741 | Name the result/games for 54741 | CREATE TABLE table_21436373_11 (result_games VARCHAR, attendance VARCHAR) |
SELECT writer FROM book ORDER BY writer | List the writers of the books in ascending alphabetical order. | CREATE TABLE publication (
publication_id number,
book_id number,
publisher text,
publication_date text,
price number
)
CREATE TABLE book (
book_id number,
title text,
issues number,
writer text
) |
SELECT date FROM table_name_32 WHERE goals = "deacon 4/4, withers 1 dg" | Which date has a Goal of deacon 4/4, withers 1 dg? | CREATE TABLE table_name_32 (date VARCHAR, goals VARCHAR) |
SELECT 1 AS st_leg FROM table_21434618_1 WHERE team__number2 = "Ilisiakos" | give the 1st leg score against ilisiakos | CREATE TABLE table_21434618_1 (team__number2 VARCHAR) |
SELECT MIN("Number of dances") FROM table_33274 WHERE "Rank by average" > '4' AND "Place" = '8' | What is the lowest number of dances with a rank larger than 4 and a place of 8? | CREATE TABLE table_33274 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total points" real,
"Number of dances" real,
"Average" real
) |
SELECT goals FROM table_name_70 WHERE date = "8/4/04" | What are the goals for 8/4/04? | CREATE TABLE table_name_70 (goals VARCHAR, date VARCHAR) |
SELECT team__number1 FROM table_21434618_1 WHERE team__number2 = "Chalkida" | which team #1 played again chalkida | CREATE TABLE table_21434618_1 (team__number1 VARCHAR, team__number2 VARCHAR) |
SELECT COUNT("Division Three") FROM table_26981 WHERE "Division Two" = 'Westcott 1935' | When westcott 1935 is in division two how many leagues are in division three? | CREATE TABLE table_26981 (
"Season" text,
"Premier Division" text,
"Division One" text,
"Division Two" text,
"Division Three" text,
"Division Four" text,
"Division Five" text
) |
SELECT venue FROM table_name_84 WHERE result = "w" AND goals = "deacon 5/5" | Which venue has a Result of w, and a Goal of deacon 5/5? | CREATE TABLE table_name_84 (venue VARCHAR, result VARCHAR, goals VARCHAR) |
SELECT team__number2 FROM table_21434618_1 WHERE team__number1 = "Poseidon Neoi Porroi" | which team#2 played against poseidon neoi porroi | CREATE TABLE table_21434618_1 (team__number2 VARCHAR, team__number1 VARCHAR) |
SELECT MIN(drawn) FROM table_name_31 WHERE against = "total" | What is the lowest nuber of games drawn in the total column? | CREATE TABLE table_name_31 (
drawn INTEGER,
against VARCHAR
) |
SELECT result FROM table_name_38 WHERE goals = "deacon 3/5, bridge 2/2" | Which result has a Goal of deacon 3/5, bridge 2/2? | CREATE TABLE table_name_38 (result VARCHAR, goals VARCHAR) |
SELECT date_year FROM table_21436373_10 WHERE type_of_record = "Pre-season game" | When was the pre-season game record achieved? | CREATE TABLE table_21436373_10 (date_year VARCHAR, type_of_record VARCHAR) |
SELECT date FROM table_name_40 WHERE constructor = "ferrari" | What dates did Ferrari win races? | CREATE TABLE table_name_40 (
date VARCHAR,
constructor VARCHAR
) |
SELECT competition FROM table_name_52 WHERE goals = "deacon 10/10" AND score = "40–12" | Which competition has a Goal of deacon 10/10, and a Score of 40–12? | CREATE TABLE table_name_52 (competition VARCHAR, goals VARCHAR, score VARCHAR) |
SELECT MAX(attendance) FROM table_21436373_10 | What is the maximal number of people that attended any of these games? | CREATE TABLE table_21436373_10 (attendance INTEGER) |
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 59941 AND admissions.admission_location = 'phys referral/normal deli' AND STRFTIME('%y', admissions.admittime) <= '2104' ORDER BY admissions.admittime DESC LIMIT 1 | when did patient 59941 come to the hospital for the last time until 2104 via an phys referral/normal deli? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label 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 nu... |
SELECT COUNT(pl_gp) FROM table_name_16 WHERE reg_gp < 5 AND team__league_ = "seattle thunderbirds" AND pick__number < 131 | What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131? | CREATE TABLE table_name_16 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR, team__league_ VARCHAR) |
SELECT attendance FROM table_21436373_12 WHERE date_year = "2011" | what is the attendance in 2011 records | CREATE TABLE table_21436373_12 (attendance VARCHAR, date_year VARCHAR) |
SELECT result FROM table_22073745_1 WHERE year__ceremony_ = "2005 (78th)" | What is the result of the 2005 (78th) year ceremony? | CREATE TABLE table_22073745_1 (
result VARCHAR,
year__ceremony_ VARCHAR
) |
SELECT player FROM table_name_51 WHERE pl_gp > 0 | What player has a number of playoff games played greater than 0? | CREATE TABLE table_name_51 (player VARCHAR, pl_gp INTEGER) |
SELECT type_of_record FROM table_21436373_12 WHERE result_games = "10 games (29,606 avg.)" | what type of record was made where result/games is 10 games (29,606 avg.) | CREATE TABLE table_21436373_12 (type_of_record VARCHAR, result_games VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND procedures.short_title = "Closed biopsy of tongue" | give me the number of patients whose admission location is emergency room admit and procedure short title is closed biopsy of tongue? | 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
)
C... |
SELECT SUM(reg_gp) FROM table_name_17 WHERE player = "morgan clark" AND rd__number < 7 | What is the sum of the number of regular games played by Morgan Clark with the number of road games less than 7? | CREATE TABLE table_name_17 (reg_gp INTEGER, player VARCHAR, rd__number VARCHAR) |
SELECT stadium FROM table_21436373_12 WHERE type_of_record = "Total attendance-Regular season" | where was the total attendance-regular season record made | CREATE TABLE table_21436373_12 (stadium VARCHAR, type_of_record VARCHAR) |
SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-29856' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.ho... | in the last hospital encounter, has patient 013-29856 been given any diagnosis? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepi... |
SELECT player FROM table_name_64 WHERE pl_gp > 0 | What player has a number of playoff games played greater than 0? | CREATE TABLE table_name_64 (player VARCHAR, pl_gp INTEGER) |
SELECT stadium FROM table_21436373_12 WHERE date_year = "Sun 09/12/93" | where was sun 09/12/93 record made | CREATE TABLE table_21436373_12 (stadium VARCHAR, date_year VARCHAR) |
SELECT (SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28048)) AND STRFTIME('%y-%m-%d', inputevents_cv.charttime) <= '2104-01-30') - (SEL... | calculate the difference between patient 28048's total input and the total output until 01/30/2104. | 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,
... |
SELECT pick__number FROM table_name_70 WHERE rd__number > 3 AND pl_gp > 0 | What is the pick number for the player from higher than round 3 and a PI GP bigger than 0? | CREATE TABLE table_name_70 (pick__number VARCHAR, rd__number VARCHAR, pl_gp VARCHAR) |
SELECT COUNT(type_of_record) FROM table_21436373_12 WHERE result_games = "10 games (29,606 avg.)" | how many records had result/games: 10 games (29,606 avg.) | CREATE TABLE table_21436373_12 (type_of_record VARCHAR, result_games VARCHAR) |
SELECT "H ci (kA/m)" FROM table_25390 WHERE "T c (\u00b0C)" = '720' | When 720 is the t c ( c) what is the h ci (ka/m)? | CREATE TABLE table_25390 (
"Magnet" text,
"B r (T)" text,
"H ci (kA/m)" text,
"(BH) max (kJ/m 3 )" text,
"T c (\u00b0C)" text
) |
SELECT MIN(reg_gp) FROM table_name_26 WHERE player = "larry courville" AND pl_gp < 0 | What is the lowest regular GP Larry Courville, who has a PI GP smaller than 0, has? | CREATE TABLE table_name_26 (reg_gp INTEGER, player VARCHAR, pl_gp VARCHAR) |
SELECT MAX(attendance) FROM table_21436373_12 WHERE type_of_record = "Total attendance-Regular season" | what is the highest attendance for a total attendance-regular season record | CREATE TABLE table_21436373_12 (attendance INTEGER, type_of_record VARCHAR) |
SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY Sex | Give me the comparison about the average of Weight over the Sex , and group by attribute Sex by a bar chart, I want to sort X in ascending order. | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate re... |
SELECT away_team AS score FROM table_name_40 WHERE home_team = "essendon" | What was Essendon's opponents away score? | CREATE TABLE table_name_40 (away_team VARCHAR, home_team VARCHAR) |
SELECT COUNT(attendance) FROM table_21436373_7 WHERE date_year = "2005" | When 2005 is the date/year how many measurements of attendance are there? | CREATE TABLE table_21436373_7 (attendance VARCHAR, date_year VARCHAR) |
SELECT "cylinders" FROM table_204_108 WHERE "typ" = '5/9 ps' | what is the number of cylinders that a 5/9 ps has ? | CREATE TABLE table_204_108 (
id number,
"typ" text,
"construction time" text,
"cylinders" text,
"capacity" text,
"power" text,
"top speed" text
) |
SELECT crowd FROM table_name_9 WHERE venue = "corio oval" | What was the attendance at Corio Oval? | CREATE TABLE table_name_9 (crowd VARCHAR, venue VARCHAR) |
SELECT result_games FROM table_21436373_7 WHERE attendance = 27585 | When 27585 is the attendance what are the results of the games? | CREATE TABLE table_21436373_7 (result_games VARCHAR, attendance VARCHAR) |
SELECT AVG("Gold") FROM table_53222 WHERE "Nation" = 'uzbekistan' AND "Total" < '24' | What is the average gold medals Uzbekistan, which has less than 24 total medals, has? | CREATE TABLE table_53222 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT away_team AS score FROM table_name_3 WHERE away_team = "collingwood" | When collingwood played as the away team what did they score? | CREATE TABLE table_name_3 (away_team VARCHAR) |
SELECT date_year FROM table_21436373_7 WHERE result_games = "9 games (28,002 avg.)" | When 9 games (28,002 avg.) is the results of the games what is the date/year? | CREATE TABLE table_21436373_7 (date_year VARCHAR, result_games VARCHAR) |
SELECT SUM(cost.cost) FROM cost WHERE cost.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 49578 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) | what does patient 49578 have to pay for the hospital stay in their first hospital visit? | CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE chartevents (
ro... |
SELECT location FROM table_name_64 WHERE name = "evans" | What was the locaction of the Evans test blast? | CREATE TABLE table_name_64 (location VARCHAR, name VARCHAR) |
SELECT stadium FROM table_21436373_7 WHERE attendance = 255627 | When 255627 is the attendance what is the stadium? | CREATE TABLE table_21436373_7 (stadium VARCHAR, attendance VARCHAR) |
SELECT ship FROM table_name_54 WHERE year > 2013 | Which Ship has a Year larger than 2013? | CREATE TABLE table_name_54 (
ship VARCHAR,
year INTEGER
) |
SELECT yield FROM table_name_39 WHERE location = "nts area 3s" | What was the yield for a blast that was in nts area 3s? | CREATE TABLE table_name_39 (yield VARCHAR, location VARCHAR) |
SELECT type_of_record FROM table_21436373_8 WHERE date_year = "Tue 11/02/75" | What record was set on Tue 11/02/75? | CREATE TABLE table_21436373_8 (type_of_record VARCHAR, date_year VARCHAR) |
SELECT high_points FROM table_name_8 WHERE high_rebounds = "dwight howard (16)" | What is High Points, when High Rebounds is 'Dwight Howard (16)'? | CREATE TABLE table_name_8 (
high_points VARCHAR,
high_rebounds VARCHAR
) |
SELECT purpose FROM table_name_54 WHERE name = "quay" | What was the purpose of the Quay test blast? | CREATE TABLE table_name_54 (purpose VARCHAR, name VARCHAR) |
SELECT type_of_record FROM table_21436373_8 WHERE result_games = "9 games (28,595 avg.)" | What record was set when the result/game was equal to 9 games (28,595 avg.) | CREATE TABLE table_21436373_8 (type_of_record VARCHAR, result_games VARCHAR) |
SELECT AVG(week) FROM table_name_4 WHERE result = "w 17-14" | On what Week was the Result W 17-14? | CREATE TABLE table_name_4 (
week INTEGER,
result VARCHAR
) |
SELECT right_ascension___j2000__ FROM table_name_29 WHERE apparent_magnitude > 11.8 | For an apparent magnitude greater than 11.8 what Right ascension value is assigned? | CREATE TABLE table_name_29 (right_ascension___j2000__ VARCHAR, apparent_magnitude INTEGER) |
SELECT type_of_record FROM table_21436373_8 WHERE result_games = "Montreal 20 @ Ottawa 10" | What record was set when the result/game was montreal 20 @ ottawa 10? | CREATE TABLE table_21436373_8 (type_of_record VARCHAR, result_games VARCHAR) |
SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'intracranial/cerebral perfusion pressure monitoring ... | what are the three most commonly ordered lab tests for patients that had previously received intracranial/cerebral perfusion pressure monitoring - ventriculostomy within 2 months during the last year? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
tre... |
SELECT MIN(apparent_magnitude) FROM table_name_31 WHERE constellation = "hydra" | What is the least apparent magnitude for all constellations from hydra? | CREATE TABLE table_name_31 (apparent_magnitude INTEGER, constellation VARCHAR) |
SELECT stadium FROM table_21436373_8 WHERE result_games = "Montreal 20 @ Ottawa 10" | Which stadium had the result/game montreal 20 @ ottawa 10? | CREATE TABLE table_21436373_8 (stadium VARCHAR, result_games VARCHAR) |
SELECT "Opponent" FROM table_36023 WHERE "Attendance" = '54,136' | Who was the opponent for the game played with 54,136 people in attendance? | CREATE TABLE table_36023 (
"Date" text,
"Time" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) |
SELECT MAX(car) FROM table_name_56 WHERE yards > 155 | What is the highest Car with more than 155 yards? | CREATE TABLE table_name_56 (car INTEGER, yards INTEGER) |
SELECT date_year FROM table_21436373_5 WHERE type_of_record = "Total attendance-Regular season" | For what year is the type of record 'total attendance-regular season? | CREATE TABLE table_21436373_5 (date_year VARCHAR, type_of_record VARCHAR) |
SELECT dept_name, SUM(credits) FROM course GROUP BY dept_name | How many total credits are offered by each department. Show bar chart. | CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE takes (
ID varchar(5)... |
SELECT page_count FROM table_name_39 WHERE author = "stefano d'arrigo" | How many pages were in the book by Stefano D'Arrigo? | CREATE TABLE table_name_39 (page_count VARCHAR, author VARCHAR) |
SELECT type_of_record FROM table_21436373_5 WHERE result_games = "Montreal 31 @ Calgary 32" | What type of record is the result of the game Montreal 31 @ Calgary 32? | CREATE TABLE table_21436373_5 (type_of_record VARCHAR, result_games VARCHAR) |
SELECT "country" FROM table_204_809 WHERE "draw" = 17 | what country is in draw 17 ? | CREATE TABLE table_204_809 (
id number,
"draw" number,
"country" text,
"language" text,
"artist" text,
"song" text,
"english translation" text,
"national final" text,
"place" number,
"points" number
) |
SELECT author FROM table_name_42 WHERE language = "english" AND book_title = "sironia, texas" | Which author wrote Sironia, Texas in English? | CREATE TABLE table_name_42 (author VARCHAR, language VARCHAR, book_title VARCHAR) |
SELECT date_year FROM table_21436373_5 WHERE attendance = 45010 | On what date/s has attendance been 45010? | CREATE TABLE table_21436373_5 (date_year VARCHAR, attendance VARCHAR) |
SELECT "Party" FROM table_71585 WHERE "Member" = 'peter white' | What the name of Peter White's party? | CREATE TABLE table_71585 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"Term in office" text
) |
SELECT edition_publisher FROM table_name_9 WHERE author = "xavier herbert" | Who is the edition/publisher for Xavier Herbert? | CREATE TABLE table_name_9 (edition_publisher VARCHAR, author VARCHAR) |
SELECT COUNT(attendance) FROM table_21436373_6 WHERE type_of_record = "Pre-season game" | What is the number of attendance with the pre-season game as the type of record? | CREATE TABLE table_21436373_6 (attendance VARCHAR, type_of_record VARCHAR) |
SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13703) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.item... | what are patient 13703's arterial bp [diastolic] differences second measured on the first intensive care unit visit compared to the value first measured on the first intensive care unit visit? | 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,
... |
SELECT language FROM table_name_17 WHERE book_title = "miss macintosh, my darling" | What language is the book Miss Macintosh, My Darling in? | CREATE TABLE table_name_17 (language VARCHAR, book_title VARCHAR) |
SELECT type_of_record FROM table_21436373_6 WHERE result_games = "9 games (57,144 avg.)" | Which type of record has result/games of 9 games (57,144 avg.) | CREATE TABLE table_21436373_6 (type_of_record VARCHAR, result_games VARCHAR) |
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 edition_publisher FROM table_name_5 WHERE language = "italian" AND page_size = "8 inches (20cm) x 5.4 inches (14cm)" | Who published in Italian with a page size of 8 inches (20cm) x 5.4 inches (14cm)? | CREATE TABLE table_name_5 (edition_publisher VARCHAR, language VARCHAR, page_size VARCHAR) |
SELECT result_games FROM table_21436373_6 WHERE date_year = "Sun 11/28/10" | What is the result/games of Sun 11/28/10 as the date/year? | CREATE TABLE table_21436373_6 (result_games VARCHAR, date_year VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Polycythemia vera" AND prescriptions.drug_type = "MAIN" | provide the number of patients whose diagnoses short title is polycythemia vera and drug type is main? | 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 (... |
SELECT COUNT(avg) FROM table_name_25 WHERE long = 10 | What is the total average for long 10? | CREATE TABLE table_name_25 (avg VARCHAR, long VARCHAR) |
SELECT stadium FROM table_21436373_6 WHERE date_year = "Fri 06/25/82" | Which stadium has the date/year of Fri 06/25/82? | CREATE TABLE table_21436373_6 (stadium VARCHAR, date_year VARCHAR) |
SELECT venue FROM table_name_25 WHERE home_team = "north melbourne" | Where did North Melbourne play as the home team? | CREATE TABLE table_name_25 (
venue VARCHAR,
home_team VARCHAR
) |
SELECT college FROM table_name_86 WHERE team = "boston celtics" AND round = "7" | Name the college that has 7 rounds and boston celtics team | CREATE TABLE table_name_86 (college VARCHAR, team VARCHAR, round VARCHAR) |
SELECT type_of_record FROM table_21436373_6 WHERE result_games = "B.C. 16 @ Edmonton 22" | Which type of record has result/games of b.c. 16 @ edmonton 22? | CREATE TABLE table_21436373_6 (type_of_record VARCHAR, result_games VARCHAR) |
SELECT term_limited FROM table_26131768_4 WHERE representative = "Dave Hall" | If the representative is Dave Hall, when was the term limited? | CREATE TABLE table_26131768_4 (
term_limited VARCHAR,
representative VARCHAR
) |
SELECT position FROM table_name_86 WHERE team = "baltimore bullets" AND college = "texas tech" | Name the position that has baltimore bullets and college of texas tech | CREATE TABLE table_name_86 (position VARCHAR, team VARCHAR, college VARCHAR) |
SELECT MIN(population__2000_) FROM table_2144436_1 WHERE barangay = "Panlicsian" | What was the populati in 2000 for Panlicsian? | CREATE TABLE table_2144436_1 (population__2000_ INTEGER, barangay VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.