input stringlengths 12 517 | instruction stringlengths 38 7.14k | response stringlengths 22 3.27k |
|---|---|---|
What are the first names, office locations of all lecturers who have taught some course? | CREATE TABLE course (
crs_code text,
dept_code text,
crs_description text,
crs_credit number
)
CREATE TABLE enroll (
class_code text,
stu_num number,
enroll_grade text
)
CREATE TABLE employee (
emp_num number,
emp_lname text,
emp_fname text,
emp_initial text,
emp_jobcod... | SELECT T2.emp_fname, T4.prof_office, T3.crs_description FROM class AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
what is the minimum total cost of the hospital which include hemogloblin s in this year? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemogloblin s')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
what is the minimum total cost of the hospital which include hemogloblin s in this year? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemogloblin s')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... |
What is the average laps for Grid 9? | CREATE TABLE table_name_87 (
laps INTEGER,
grid VARCHAR
) | SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
what is the minimum total cost of the hospital which include hemogloblin s in this year? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemogloblin s')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... |
What is the average laps for Grid 9? | CREATE TABLE table_name_87 (
laps INTEGER,
grid VARCHAR
) | SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 |
从2005年12月14日至2010年2月5日这期间里,编码为98519847的患者曾在医院就诊多少次? | CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
... | SELECT (SELECT COUNT(*) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '98519847' AND mzjzjlb.JZKSRQ BETWEEN '2005-12-14' AND '2010-02-05') + (SELECT COUNT(*) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_... |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
what is the minimum total cost of the hospital which include hemogloblin s in this year? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemogloblin s')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... |
What is the average laps for Grid 9? | CREATE TABLE table_name_87 (
laps INTEGER,
grid VARCHAR
) | SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 |
从2005年12月14日至2010年2月5日这期间里,编码为98519847的患者曾在医院就诊多少次? | CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
... | SELECT (SELECT COUNT(*) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '98519847' AND mzjzjlb.JZKSRQ BETWEEN '2005-12-14' AND '2010-02-05') + (SELECT COUNT(*) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_... |
What is the College of the LB Player with Big Ten Conf.? | CREATE TABLE table_name_70 (
college VARCHAR,
pos VARCHAR,
conf VARCHAR
) | SELECT college FROM table_name_70 WHERE pos = "lb" AND conf = "big ten" |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
what is the minimum total cost of the hospital which include hemogloblin s in this year? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemogloblin s')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... |
What is the average laps for Grid 9? | CREATE TABLE table_name_87 (
laps INTEGER,
grid VARCHAR
) | SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 |
从2005年12月14日至2010年2月5日这期间里,编码为98519847的患者曾在医院就诊多少次? | CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
... | SELECT (SELECT COUNT(*) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '98519847' AND mzjzjlb.JZKSRQ BETWEEN '2005-12-14' AND '2010-02-05') + (SELECT COUNT(*) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_... |
What is the College of the LB Player with Big Ten Conf.? | CREATE TABLE table_name_70 (
college VARCHAR,
pos VARCHAR,
conf VARCHAR
) | SELECT college FROM table_name_70 WHERE pos = "lb" AND conf = "big ten" |
What is the Office when spencer c. young is on the liberal ticket?? | CREATE TABLE table_40327 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"American Labor ticket" text,
"Liberal ticket" text,
"Communist ticket" text
) | SELECT "Office" FROM table_40327 WHERE "Liberal ticket" = 'spencer c. young' |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
what is the minimum total cost of the hospital which include hemogloblin s in this year? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemogloblin s')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... |
What is the average laps for Grid 9? | CREATE TABLE table_name_87 (
laps INTEGER,
grid VARCHAR
) | SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 |
从2005年12月14日至2010年2月5日这期间里,编码为98519847的患者曾在医院就诊多少次? | CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
... | SELECT (SELECT COUNT(*) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '98519847' AND mzjzjlb.JZKSRQ BETWEEN '2005-12-14' AND '2010-02-05') + (SELECT COUNT(*) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_... |
What is the College of the LB Player with Big Ten Conf.? | CREATE TABLE table_name_70 (
college VARCHAR,
pos VARCHAR,
conf VARCHAR
) | SELECT college FROM table_name_70 WHERE pos = "lb" AND conf = "big ten" |
What is the Office when spencer c. young is on the liberal ticket?? | CREATE TABLE table_40327 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"American Labor ticket" text,
"Liberal ticket" text,
"Communist ticket" text
) | SELECT "Office" FROM table_40327 WHERE "Liberal ticket" = 'spencer c. young' |
What was his record when he went over 1 round? | CREATE TABLE table_6119 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_6119 WHERE "Round" > '1' |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
what is the minimum total cost of the hospital which include hemogloblin s in this year? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemogloblin s')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... |
What is the average laps for Grid 9? | CREATE TABLE table_name_87 (
laps INTEGER,
grid VARCHAR
) | SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 |
从2005年12月14日至2010年2月5日这期间里,编码为98519847的患者曾在医院就诊多少次? | CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
... | SELECT (SELECT COUNT(*) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '98519847' AND mzjzjlb.JZKSRQ BETWEEN '2005-12-14' AND '2010-02-05') + (SELECT COUNT(*) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_... |
What is the College of the LB Player with Big Ten Conf.? | CREATE TABLE table_name_70 (
college VARCHAR,
pos VARCHAR,
conf VARCHAR
) | SELECT college FROM table_name_70 WHERE pos = "lb" AND conf = "big ten" |
What is the Office when spencer c. young is on the liberal ticket?? | CREATE TABLE table_40327 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"American Labor ticket" text,
"Liberal ticket" text,
"Communist ticket" text
) | SELECT "Office" FROM table_40327 WHERE "Liberal ticket" = 'spencer c. young' |
What was his record when he went over 1 round? | CREATE TABLE table_6119 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_6119 WHERE "Round" > '1' |
When 3 is the rr1 points what is won score? | CREATE TABLE table_24404 (
"Team name" text,
"Races" real,
"Won" real,
"RR1 Pts." real,
"RR2 Pts." real,
"RR3 Pts." real,
"RR4 Pts." text,
"Total Pts." real,
"Ranking" real
) | SELECT "Won" FROM table_24404 WHERE "RR1 Pts." = '3' |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
what is the minimum total cost of the hospital which include hemogloblin s in this year? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemogloblin s')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... |
What is the average laps for Grid 9? | CREATE TABLE table_name_87 (
laps INTEGER,
grid VARCHAR
) | SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 |
从2005年12月14日至2010年2月5日这期间里,编码为98519847的患者曾在医院就诊多少次? | CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
... | SELECT (SELECT COUNT(*) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '98519847' AND mzjzjlb.JZKSRQ BETWEEN '2005-12-14' AND '2010-02-05') + (SELECT COUNT(*) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_... |
What is the College of the LB Player with Big Ten Conf.? | CREATE TABLE table_name_70 (
college VARCHAR,
pos VARCHAR,
conf VARCHAR
) | SELECT college FROM table_name_70 WHERE pos = "lb" AND conf = "big ten" |
What is the Office when spencer c. young is on the liberal ticket?? | CREATE TABLE table_40327 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"American Labor ticket" text,
"Liberal ticket" text,
"Communist ticket" text
) | SELECT "Office" FROM table_40327 WHERE "Liberal ticket" = 'spencer c. young' |
What was his record when he went over 1 round? | CREATE TABLE table_6119 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_6119 WHERE "Round" > '1' |
When 3 is the rr1 points what is won score? | CREATE TABLE table_24404 (
"Team name" text,
"Races" real,
"Won" real,
"RR1 Pts." real,
"RR2 Pts." real,
"RR3 Pts." real,
"RR4 Pts." text,
"Total Pts." real,
"Ranking" real
) | SELECT "Won" FROM table_24404 WHERE "RR1 Pts." = '3' |
show me all flights from DENVER to PITTSBURGH which serve DINNER | CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE ground... | 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, food_service WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code AND food... |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
what is the minimum total cost of the hospital which include hemogloblin s in this year? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemogloblin s')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... |
What is the average laps for Grid 9? | CREATE TABLE table_name_87 (
laps INTEGER,
grid VARCHAR
) | SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 |
从2005年12月14日至2010年2月5日这期间里,编码为98519847的患者曾在医院就诊多少次? | CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
... | SELECT (SELECT COUNT(*) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '98519847' AND mzjzjlb.JZKSRQ BETWEEN '2005-12-14' AND '2010-02-05') + (SELECT COUNT(*) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_... |
What is the College of the LB Player with Big Ten Conf.? | CREATE TABLE table_name_70 (
college VARCHAR,
pos VARCHAR,
conf VARCHAR
) | SELECT college FROM table_name_70 WHERE pos = "lb" AND conf = "big ten" |
What is the Office when spencer c. young is on the liberal ticket?? | CREATE TABLE table_40327 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"American Labor ticket" text,
"Liberal ticket" text,
"Communist ticket" text
) | SELECT "Office" FROM table_40327 WHERE "Liberal ticket" = 'spencer c. young' |
What was his record when he went over 1 round? | CREATE TABLE table_6119 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_6119 WHERE "Round" > '1' |
When 3 is the rr1 points what is won score? | CREATE TABLE table_24404 (
"Team name" text,
"Races" real,
"Won" real,
"RR1 Pts." real,
"RR2 Pts." real,
"RR3 Pts." real,
"RR4 Pts." text,
"Total Pts." real,
"Ranking" real
) | SELECT "Won" FROM table_24404 WHERE "RR1 Pts." = '3' |
show me all flights from DENVER to PITTSBURGH which serve DINNER | CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE ground... | 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, food_service WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code AND food... |
How many bids were there for the .500 win percentage in the Ohio Valley conference? | CREATE TABLE table_32437 (
"Conference" text,
"# of Bids" real,
"Record" text,
"Win %" text,
"Round of 32" text,
"Sweet Sixteen" text,
"Elite Eight" text,
"Final Four" text,
"Championship Game" text
) | SELECT SUM("# of Bids") FROM table_32437 WHERE "Win %" = '.500' AND "Conference" = 'ohio valley' |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
what is the minimum total cost of the hospital which include hemogloblin s in this year? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemogloblin s')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... |
What is the average laps for Grid 9? | CREATE TABLE table_name_87 (
laps INTEGER,
grid VARCHAR
) | SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 |
从2005年12月14日至2010年2月5日这期间里,编码为98519847的患者曾在医院就诊多少次? | CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
... | SELECT (SELECT COUNT(*) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '98519847' AND mzjzjlb.JZKSRQ BETWEEN '2005-12-14' AND '2010-02-05') + (SELECT COUNT(*) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_... |
What is the College of the LB Player with Big Ten Conf.? | CREATE TABLE table_name_70 (
college VARCHAR,
pos VARCHAR,
conf VARCHAR
) | SELECT college FROM table_name_70 WHERE pos = "lb" AND conf = "big ten" |
What is the Office when spencer c. young is on the liberal ticket?? | CREATE TABLE table_40327 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"American Labor ticket" text,
"Liberal ticket" text,
"Communist ticket" text
) | SELECT "Office" FROM table_40327 WHERE "Liberal ticket" = 'spencer c. young' |
What was his record when he went over 1 round? | CREATE TABLE table_6119 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_6119 WHERE "Round" > '1' |
When 3 is the rr1 points what is won score? | CREATE TABLE table_24404 (
"Team name" text,
"Races" real,
"Won" real,
"RR1 Pts." real,
"RR2 Pts." real,
"RR3 Pts." real,
"RR4 Pts." text,
"Total Pts." real,
"Ranking" real
) | SELECT "Won" FROM table_24404 WHERE "RR1 Pts." = '3' |
show me all flights from DENVER to PITTSBURGH which serve DINNER | CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE ground... | 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, food_service WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code AND food... |
How many bids were there for the .500 win percentage in the Ohio Valley conference? | CREATE TABLE table_32437 (
"Conference" text,
"# of Bids" real,
"Record" text,
"Win %" text,
"Round of 32" text,
"Sweet Sixteen" text,
"Elite Eight" text,
"Final Four" text,
"Championship Game" text
) | SELECT SUM("# of Bids") FROM table_32437 WHERE "Win %" = '.500' AND "Conference" = 'ohio valley' |
What were the points for when there were 30 tries against? | CREATE TABLE table_810 (
"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 "Points for" FROM table_810 WHERE "Tries against" = '30' |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
what is the minimum total cost of the hospital which include hemogloblin s in this year? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemogloblin s')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... |
What is the average laps for Grid 9? | CREATE TABLE table_name_87 (
laps INTEGER,
grid VARCHAR
) | SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 |
从2005年12月14日至2010年2月5日这期间里,编码为98519847的患者曾在医院就诊多少次? | CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
... | SELECT (SELECT COUNT(*) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '98519847' AND mzjzjlb.JZKSRQ BETWEEN '2005-12-14' AND '2010-02-05') + (SELECT COUNT(*) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_... |
What is the College of the LB Player with Big Ten Conf.? | CREATE TABLE table_name_70 (
college VARCHAR,
pos VARCHAR,
conf VARCHAR
) | SELECT college FROM table_name_70 WHERE pos = "lb" AND conf = "big ten" |
What is the Office when spencer c. young is on the liberal ticket?? | CREATE TABLE table_40327 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"American Labor ticket" text,
"Liberal ticket" text,
"Communist ticket" text
) | SELECT "Office" FROM table_40327 WHERE "Liberal ticket" = 'spencer c. young' |
What was his record when he went over 1 round? | CREATE TABLE table_6119 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_6119 WHERE "Round" > '1' |
When 3 is the rr1 points what is won score? | CREATE TABLE table_24404 (
"Team name" text,
"Races" real,
"Won" real,
"RR1 Pts." real,
"RR2 Pts." real,
"RR3 Pts." real,
"RR4 Pts." text,
"Total Pts." real,
"Ranking" real
) | SELECT "Won" FROM table_24404 WHERE "RR1 Pts." = '3' |
show me all flights from DENVER to PITTSBURGH which serve DINNER | CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE ground... | 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, food_service WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code AND food... |
How many bids were there for the .500 win percentage in the Ohio Valley conference? | CREATE TABLE table_32437 (
"Conference" text,
"# of Bids" real,
"Record" text,
"Win %" text,
"Round of 32" text,
"Sweet Sixteen" text,
"Elite Eight" text,
"Final Four" text,
"Championship Game" text
) | SELECT SUM("# of Bids") FROM table_32437 WHERE "Win %" = '.500' AND "Conference" = 'ohio valley' |
What were the points for when there were 30 tries against? | CREATE TABLE table_810 (
"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 "Points for" FROM table_810 WHERE "Tries against" = '30' |
How many 2007s have 0.2 as a 2006, with a 2010 less than 0.1? | CREATE TABLE table_name_71 (
Id VARCHAR
) | SELECT SUM(2007) FROM table_name_71 WHERE 2006 = 0.2 AND 2010 < 0.1 |
In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_34537 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
) | SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum' |
What date has ed as an actual title? | CREATE TABLE table_name_93 (
date VARCHAR,
actual_title VARCHAR
) | SELECT date FROM table_name_93 WHERE actual_title = "ed" |
what is the minimum total cost of the hospital which include hemogloblin s in this year? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemogloblin s')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... |
What is the average laps for Grid 9? | CREATE TABLE table_name_87 (
laps INTEGER,
grid VARCHAR
) | SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 |
从2005年12月14日至2010年2月5日这期间里,编码为98519847的患者曾在医院就诊多少次? | CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
... | SELECT (SELECT COUNT(*) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '98519847' AND mzjzjlb.JZKSRQ BETWEEN '2005-12-14' AND '2010-02-05') + (SELECT COUNT(*) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_... |
What is the College of the LB Player with Big Ten Conf.? | CREATE TABLE table_name_70 (
college VARCHAR,
pos VARCHAR,
conf VARCHAR
) | SELECT college FROM table_name_70 WHERE pos = "lb" AND conf = "big ten" |
What is the Office when spencer c. young is on the liberal ticket?? | CREATE TABLE table_40327 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"American Labor ticket" text,
"Liberal ticket" text,
"Communist ticket" text
) | SELECT "Office" FROM table_40327 WHERE "Liberal ticket" = 'spencer c. young' |
What was his record when he went over 1 round? | CREATE TABLE table_6119 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Record" FROM table_6119 WHERE "Round" > '1' |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 177