NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
how many times has a o2 sat (%) test been given to patient 005-4044 in 2101? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemics... | SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-4044')) AND lab.labname = 'o2 sat (%)' AND STRFTIME('%y', lab.labresulttime) = '2101' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
7690,
549,
17444,
427,
7690,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
... |
what is the highest tankers when pumpers is more than 2? | CREATE TABLE table_name_84 (
tankers INTEGER,
pumpers INTEGER
) | SELECT MAX(tankers) FROM table_name_84 WHERE pumpers > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
5040,
277,
3,
21342,
17966,
6,
5013,
277,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
5040,
277,
116,
5013,
277,
19,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17,
5979,
277,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
5013,
277,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which industries have both companies with headquarter in 'USA' and companies with headquarter in 'China'? | CREATE TABLE office_locations (
building_id number,
company_id number,
move_in_year number
)
CREATE TABLE companies (
id number,
name text,
headquarters text,
industry text,
sales_billion number,
profits_billion number,
assets_billion number,
market_value_billion text
)
CRE... | SELECT industry FROM companies WHERE headquarters = "USA" INTERSECT SELECT industry FROM companies WHERE headquarters = "China" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
828,
834,
14836,
7,
41,
740,
834,
23,
26,
381,
6,
349,
834,
23,
26,
381,
6,
888,
834,
77,
834,
1201,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
688,
41,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
681,
21680,
688,
549,
17444,
427,
13767,
3274,
96,
17663,
121,
3,
21342,
5249,
14196,
3,
23143,
14196,
681,
21680,
688,
549,
17444,
427,
13767,
3274,
96,
26154,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Date with a Round with sf? | CREATE TABLE table_name_67 (
date VARCHAR,
round VARCHAR
) | SELECT date FROM table_name_67 WHERE round = "sf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
833,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7678,
28,
3,
9,
9609,
28,
3,
7,
89,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1751,
3274,
96,
7,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many different end dates are there for the series seen by 4.2 million people? | CREATE TABLE table_24057191_2 (
end_date VARCHAR,
average_viewers__millions_ VARCHAR
) | SELECT COUNT(end_date) FROM table_24057191_2 WHERE average_viewers__millions_ = "4.2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
3436,
2294,
536,
834,
357,
41,
414,
834,
5522,
584,
4280,
28027,
6,
1348,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
989,
834,
5522,
61,
21680,
953,
834,
11944,
3436,
2294,
536,
834,
357,
549,
17444,
427,
1348,
834,
4576,
277,
834,
834,
17030,
7,
834,
3274,
96,
19765,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where did Hawthorn play an away game? | CREATE TABLE table_10619 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_10619 WHERE "Away team" = 'hawthorn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16431,
2294,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
16431,
2294,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
1024,
210,
17,
6293,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What municipality had 26839 people living in it in 2010? | CREATE TABLE table_216776_2 (
municipality VARCHAR,
population__2010_ VARCHAR
) | SELECT municipality FROM table_216776_2 WHERE population__2010_ = 26839 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
3708,
3959,
834,
357,
41,
27597,
584,
4280,
28027,
6,
2074,
834,
834,
14926,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
27597,
141,
204,
3651,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
27597,
21680,
953,
834,
2658,
3708,
3959,
834,
357,
549,
17444,
427,
2074,
834,
834,
14926,
834,
3274,
204,
3651,
3288,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title of the prerequisite class of International Finance course? | CREATE TABLE course (
title VARCHAR,
course_id VARCHAR
)
CREATE TABLE prereq (
prereq_id VARCHAR,
course_id VARCHAR
) | SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
2233,
584,
4280,
28027,
6,
503,
834,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
554,
60,
1824,
41,
554,
60,
1824,
834,
23,
26,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
21680,
503,
549,
17444,
427,
503,
834,
23,
26,
3388,
41,
23143,
14196,
332,
5411,
2026,
60,
1824,
834,
23,
26,
21680,
554,
60,
1824,
6157,
332,
536,
3,
15355,
3162,
503,
6157,
332,
357,
9191,
332,
5411,
19221,... |
What was the location attendance on the date of November 15? | CREATE TABLE table_17305 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_17305 WHERE "Date" = 'November 15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
26724,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
2517,
26724,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
28635,
627,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the urban settlement when the city / municipality was kovin? | CREATE TABLE table_27902 (
"Urban settlement" text,
"Cyrillic Name" text,
"City / municipality" text,
"District" text,
"Population (1991)" real,
"Population (2002)" real,
"Population (2011)" real
) | SELECT "Urban settlement" FROM table_27902 WHERE "City / municipality" = 'Kovin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2394,
357,
41,
96,
1265,
52,
3478,
7025,
121,
1499,
6,
96,
254,
63,
52,
173,
2176,
5570,
121,
1499,
6,
96,
254,
485,
3,
87,
27597,
121,
1499,
6,
96,
308,
23,
2006... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1265,
52,
3478,
7025,
121,
21680,
953,
834,
2555,
2394,
357,
549,
17444,
427,
96,
254,
485,
3,
87,
27597,
121,
3274,
3,
31,
439,
32,
2494,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients with medicare insurance are diagnosed with iatrogenic cerebrovascular infarction or hemorrhage? | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.long_title = "Iatrogenic cerebrovascular infarction or hemorrhage" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Who were the opposing team when a Loss was listed with Lowe (1-4)? | CREATE TABLE table_name_63 (
opponent VARCHAR,
loss VARCHAR
) | SELECT opponent FROM table_name_63 WHERE loss = "lowe (1-4)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
15264,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
10720,
53,
372,
116,
3,
9,
3144,
7,
47,
2616,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
1453,
3274,
96,
3216,
15,
41,
22840,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When was the first year when Fowler joined? | CREATE TABLE table_name_73 (
year_left INTEGER,
location VARCHAR
) | SELECT MIN(year_left) FROM table_name_73 WHERE location = "fowler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
215,
834,
17068,
3,
21342,
17966,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
166,
215,
116,
4452,
210,
1171,
3311,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
834,
17068,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1128,
3274,
96,
89,
2381,
1171,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the status when sd is 15? | CREATE TABLE table_28439 (
"Sd" real,
"Rk" real,
"Player" text,
"Points" real,
"Points defending" real,
"Points won" real,
"New points" real,
"Status" text
) | SELECT "Status" FROM table_28439 WHERE "Sd" = '15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
3288,
41,
96,
134,
26,
121,
490,
6,
96,
448,
157,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
22512,
7,
3,
20309,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
144,
302,
121,
21680,
953,
834,
357,
4608,
3288,
549,
17444,
427,
96,
134,
26,
121,
3274,
3,
31,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the average of againsts on 21/5/1997? | CREATE TABLE table_name_45 (
against INTEGER,
date VARCHAR
) | SELECT AVG(against) FROM table_name_45 WHERE date = "21/5/1997" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
581,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
13,
581,
7,
30,
1401,
16936,
13523,
4327,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
833,
3274,
96,
2658,
16936,
13523,
4327,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the serials issued in 1982 with a format of ABC-123? | CREATE TABLE table_name_60 (serials_issued VARCHAR, serial_format VARCHAR, issued VARCHAR) | SELECT serials_issued FROM table_name_60 WHERE serial_format = "abc-123" AND issued = "1982" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
7,
15,
12042,
7,
834,
13159,
26,
584,
4280,
28027,
6,
10501,
834,
8995,
584,
4280,
28027,
6,
4683,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
10501,
7,
834,
13159,
26,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
10501,
834,
8995,
3274,
96,
9,
115,
75,
18,
14574,
121,
3430,
4683,
3274,
96,
2294,
4613,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is subject name and gender of subject id 2560? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT demographic.name, demographic.gender FROM demographic WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
4350,
6,
14798,
5,
122,
3868,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT WAS HER SONG CHOICE WHEN THE WEEK WAS TOP 10? | CREATE TABLE table_1324 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" real,
"Result" text
) | SELECT "Song choice" FROM table_1324 WHERE "Week #" = 'Top 10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
2266,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
2444,
1160,
121,
21680,
953,
834,
2368,
2266,
549,
17444,
427,
96,
518,
10266,
1713,
121,
3274,
3,
31,
22481,
335,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who lost with 142 points for? | CREATE TABLE table_name_73 (lost VARCHAR, points_for VARCHAR) | SELECT lost FROM table_name_73 WHERE points_for = "142" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
2298,
17,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
1513,
28,
3,
24978,
979,
21,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1513,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
979,
834,
1161,
3274,
96,
24978,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the man of the match when the Rockets won by 9 wickets? | CREATE TABLE table_23083 (
"Scorecard" real,
"Date" text,
"Venue" text,
"Team 1" text,
"Team 2" text,
"Result" text,
"Man of the Match" text
) | SELECT "Man of the Match" FROM table_23083 WHERE "Result" = 'Rockets won by 9 wickets' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
4591,
41,
96,
134,
9022,
6043,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
18699,
209,
121,
1499,
6,
96,
18699,
204,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7296,
13,
8,
12296,
121,
21680,
953,
834,
13427,
4591,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
23349,
15,
17,
7,
751,
57,
668,
29719,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many of the patients were treated with nitroglycerin sl? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Nitroglycerin SL" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
count the number of patients whose gender is m and age is less than 77? | 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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.age < "77" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
545,
3,
2,
96,
4013,
121,
1,
-100,
-100,
-100,
... |
What was the result of the game on January 5, 1926? | CREATE TABLE table_name_79 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_79 WHERE date = "january 5, 1926" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
30,
1762,
7836,
957,
2688,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
7836,
957,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many dorms are there? | CREATE TABLE dorm (Id VARCHAR) | SELECT COUNT(*) FROM dorm | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
103,
52,
51,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
103,
52,
51,
7,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
103,
52,
51,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who played as the home team when the attendance was more than 30,080? | CREATE TABLE table_name_21 (
home_team VARCHAR,
crowd INTEGER
) | SELECT home_team FROM table_name_21 WHERE crowd > 30 OFFSET 080 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
234,
834,
11650,
584,
4280,
28027,
6,
4374,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
1944,
38,
8,
234,
372,
116,
8,
11364,
47,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
4374,
2490,
604,
3,
15316,
20788,
12046,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Actor, when Number Of Episodes is "117 Episodes"? | CREATE TABLE table_name_88 (actor VARCHAR, number_of_episodes VARCHAR) | SELECT actor FROM table_name_88 WHERE number_of_episodes = "117 episodes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
9,
5317,
584,
4280,
28027,
6,
381,
834,
858,
834,
15,
102,
159,
32,
1395,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1983,
127,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7556,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
381,
834,
858,
834,
15,
102,
159,
32,
1395,
3274,
96,
20275,
13562,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which segment c's segment b is refrigerators? | CREATE TABLE table_36386 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT "Segment C" FROM table_36386 WHERE "Segment B" = 'refrigerators' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
519,
3840,
41,
96,
12106,
7,
10395,
535,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
9688,
89,
17591,
121,
1499,
6,
96,
134,
15,
122,
297,
71,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
122,
297,
205,
121,
21680,
953,
834,
3420,
519,
3840,
549,
17444,
427,
96,
134,
15,
122,
297,
272,
121,
3274,
3,
31,
60,
89,
3380,
49,
6230,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average number of honorary professors in the economics department with 1 lecturer? | CREATE TABLE table_name_9 (honorary_professors INTEGER, lecturers VARCHAR, department VARCHAR) | SELECT AVG(honorary_professors) FROM table_name_9 WHERE lecturers = 1 AND department = "economics" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
107,
106,
127,
1208,
834,
1409,
89,
24901,
7,
3,
21342,
17966,
6,
22111,
277,
584,
4280,
28027,
6,
3066,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
107,
106,
127,
1208,
834,
1409,
89,
24901,
7,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
22111,
277,
3274,
209,
3430,
3066,
3274,
96,
13599,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which label is from the Germany region? | CREATE TABLE table_name_52 (
label VARCHAR,
region VARCHAR
) | SELECT label FROM table_name_52 WHERE region = "germany" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
3783,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3783,
19,
45,
8,
3434,
1719,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3783,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
1719,
3274,
96,
1304,
348,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average Height when the weight is less than 91 and the position is d, and a Birthdate of july 4, 1975? | CREATE TABLE table_6842 (
"Position" text,
"Name" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthdate" text,
"Birthplace" text,
"1997\u20131998 Team" text
) | SELECT AVG("Height (cm)") FROM table_6842 WHERE "Weight (kg)" < '91' AND "Position" = 'd' AND "Birthdate" = 'july 4, 1975' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
4165,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
41,
75,
51,
61,
121,
490,
6,
96,
1326,
2632,
41,
8711,
61,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3845,
2632,
41,
75,
51,
61,
8512,
21680,
953,
834,
3651,
4165,
549,
17444,
427,
96,
1326,
2632,
41,
8711,
61,
121,
3,
2,
3,
31,
4729,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
26,
... |
What was the round for 29 January 1949, when the against was 1? | CREATE TABLE table_name_52 (round VARCHAR, against VARCHAR, date VARCHAR) | SELECT round FROM table_name_52 WHERE against = 1 AND date = "29 january 1949" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
7775,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1751,
21,
2838,
1762,
24319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
581,
3274,
209,
3430,
833,
3274,
96,
3166,
3,
7066,
76,
1208,
24319,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the drug name of subject name darlene martin? | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT prescriptions.drug FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Darlene Martin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7744,
7,
5,
26,
13534,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
308,
291,
142... |
Name the team for avg start being 20.5 | CREATE TABLE table_2463383_2 (team_s_ VARCHAR, avg_start VARCHAR) | SELECT team_s_ FROM table_2463383_2 WHERE avg_start = "20.5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3891,
3747,
519,
834,
357,
41,
11650,
834,
7,
834,
584,
4280,
28027,
6,
3,
9,
208,
122,
834,
10208,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
372,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
7,
834,
21680,
953,
834,
2266,
3891,
3747,
519,
834,
357,
549,
17444,
427,
3,
9,
208,
122,
834,
10208,
3274,
96,
1755,
5,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many teams received a lower score in the pyramids category than the adamson pep squad ? | CREATE TABLE table_204_548 (
id number,
"team" text,
"basic elements" number,
"tumbling" number,
"stunts" number,
"tosses" number,
"pyramids" number,
"deductions" number,
"total score" number,
"result" text
) | SELECT COUNT("team") FROM table_204_548 WHERE "pyramids" < (SELECT "pyramids" FROM table_204_548 WHERE "team" = 'adamson pep squad') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
3707,
41,
3,
23,
26,
381,
6,
96,
11650,
121,
1499,
6,
96,
4883,
447,
2479,
121,
381,
6,
96,
17,
22345,
121,
381,
6,
96,
7,
17,
202,
17,
7,
121,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
11650,
8512,
21680,
953,
834,
26363,
834,
755,
3707,
549,
17444,
427,
96,
20455,
9,
6983,
7,
121,
3,
2,
41,
23143,
14196,
96,
20455,
9,
6983,
7,
121,
21680,
953,
834,
26363,
834,
755,
3707,
... |
What is the average number of goals scored in the FA Cup by Whelan where he had more than 7 total goals? | CREATE TABLE table_name_72 (fa_cup INTEGER, name VARCHAR, total VARCHAR) | SELECT AVG(fa_cup) FROM table_name_72 WHERE name = "whelan" AND total > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
89,
9,
834,
4658,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
89,
9,
834,
4658,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
564,
3274,
96,
210,
88,
1618,
121,
3430,
792,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How man horse power did the ship covadonga have? | CREATE TABLE table_23614702_2 (
horse__power VARCHAR,
warship VARCHAR
) | SELECT horse__power FROM table_23614702_2 WHERE warship = "Covadonga" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
24719,
4305,
834,
357,
41,
4952,
834,
834,
6740,
584,
4280,
28027,
6,
615,
2009,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
388,
4952,
579,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4952,
834,
834,
6740,
21680,
953,
834,
357,
3420,
24719,
4305,
834,
357,
549,
17444,
427,
615,
2009,
3274,
96,
254,
6194,
26,
2444,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
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, visualize a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by weekday, order by the y-axis in descending. | 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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decima... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(EMPLOYEE_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
... |
Name the capacity for single cab size 2 medium tanker | CREATE TABLE table_2155350_2 (capacity__litres_ VARCHAR, cab_size VARCHAR, category VARCHAR) | SELECT capacity__litres_ FROM table_2155350_2 WHERE cab_size = "Single" AND category = "2 Medium tanker" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
20896,
16975,
834,
357,
41,
4010,
9,
6726,
834,
834,
14773,
7,
834,
584,
4280,
28027,
6,
3,
10891,
834,
7991,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
61,
3,
32102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2614,
834,
834,
14773,
7,
834,
21680,
953,
834,
357,
20896,
16975,
834,
357,
549,
17444,
427,
3,
10891,
834,
7991,
3274,
96,
134,
53,
109,
121,
3430,
3295,
3274,
96,
357,
16938,
5040,
49,
121,
1,
-100,
-100,
-100,
... |
When was the game happening at Halton Stadium? | CREATE TABLE table_18057 (
"Competition" text,
"Round" text,
"Opponent" text,
"Result" text,
"Score" text,
"Home/Away" text,
"Venue" text,
"Attendance" text,
"Date" text
) | SELECT "Date" FROM table_18057 WHERE "Venue" = 'Halton Stadium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
3436,
41,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
20829,
3436,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
566,
9,
7377,
12750,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What record was set by walter brennan before 1941? | CREATE TABLE table_name_30 (record_set VARCHAR, actor VARCHAR, year VARCHAR) | SELECT record_set FROM table_name_30 WHERE actor = "walter brennan" AND year < 1941 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
60,
7621,
834,
2244,
584,
4280,
28027,
6,
7556,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1368,
47,
356,
57,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
834,
2244,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
7556,
3274,
96,
210,
8818,
6397,
35,
29,
152,
121,
3430,
215,
3,
2,
24822,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the nickname of the students of the school founded in 1933? | CREATE TABLE table_1973816_1 (
nickname VARCHAR,
founded VARCHAR
) | SELECT nickname FROM table_1973816_1 WHERE founded = 1933 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
3747,
2938,
834,
536,
41,
24649,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
24649,
13,
8,
481,
13,
8,
496,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
24649,
21680,
953,
834,
27181,
3747,
2938,
834,
536,
549,
17444,
427,
5710,
3274,
26957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the total when the first was November 1966? | CREATE TABLE table_name_42 (
total INTEGER,
first VARCHAR
) | SELECT SUM(total) FROM table_name_42 WHERE first = "november 1966" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
792,
3,
21342,
17966,
6,
166,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
792,
116,
8,
166,
47,
1671,
20658,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
166,
3274,
96,
5326,
18247,
20658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
provide the number of patients born before 2024 diagnosed with other chronic nonalcoholic liver disease. | 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 diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2024" AND diagnoses.short_title = "Chronic liver dis NEC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
which representative was the earliest to take office ? | CREATE TABLE table_203_16 (
id number,
"name" text,
"took office" text,
"left office" text,
"party" text,
"district residence" text,
"notes" text
) | SELECT "name" FROM table_203_16 ORDER BY "took office" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2938,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
235,
1825,
828,
121,
1499,
6,
96,
17068,
828,
121,
1499,
6,
96,
8071,
121,
1499,
6,
96,
26,
23,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
23330,
834,
2938,
4674,
11300,
272,
476,
96,
235,
1825,
828,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the name and credit score of the customers who have some loans. | CREATE TABLE customer (cust_name VARCHAR, credit_score VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR) | SELECT DISTINCT T1.cust_name, T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
41,
1071,
7,
17,
834,
4350,
584,
4280,
28027,
6,
998,
834,
7,
9022,
584,
4280,
28027,
6,
123,
7,
17,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
1071,
7,
17,
834,
4350,
6,
332,
5411,
15547,
834,
7,
9022,
21680,
884,
6157,
332,
536,
3,
15355,
3162,
2289,
6157,
332,
357,
9191,
332,
5411,
1071,
7,
17,
834,
23,
26,
3274,
332,
... |
What was the original title of the film directed by Lene Grønlykke and Sven Grønlykke? | CREATE TABLE table_name_72 (original_title VARCHAR, director VARCHAR) | SELECT original_title FROM table_name_72 WHERE director = "lene grønlykke and sven grønlykke" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
21878,
834,
21869,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
926,
2233,
13,
8,
814,
6640,
57,
312,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
21869,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
2090,
3274,
96,
14205,
3542,
2,
29,
120,
8511,
15,
11,
3,
7,
1926,
3542,
2,
29,
120,
8511,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart about the distribution of All_Home and the average of School_ID , and group by attribute All_Home, display X from low to high order. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT All_Home, AVG(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
71,
17217,
599,
29364,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
432,
834,
19040,
4674,
11300,
272,
476,
432,
834,
19040,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which player played DB | CREATE TABLE table_20817 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Player" FROM table_20817 WHERE "Position" = 'DB' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23946,
2517,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
23946,
2517,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
9213,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What city is the indianapolis speedrome in? | CREATE TABLE table_35702 (
"Track" text,
"City" text,
"State" text,
"Opened (closing date if defunct)" text,
"Surface" text,
"Length" text
) | SELECT "City" FROM table_35702 WHERE "Track" = 'indianapolis speedrome' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
2518,
357,
41,
96,
382,
16729,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
22696,
15,
26,
41,
3903,
7,
53,
833,
3,
99,
20,
25322,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
485,
121,
21680,
953,
834,
2469,
2518,
357,
549,
17444,
427,
96,
382,
16729,
121,
3274,
3,
31,
77,
8603,
9,
15621,
1634,
11956,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what date was the home team the Dallas Cowboys 34? | CREATE TABLE table_71953 (
"Date" text,
"Visiting team" text,
"Home team" text,
"Stadium" text,
"Regular season / Preseason" text
) | SELECT "Date" FROM table_71953 WHERE "Home team" = 'dallas cowboys 34' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
3301,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
30338,
372,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
17748,
4885,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
4450,
3301,
519,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
26,
1748,
9,
7,
9321,
7531,
7,
6154,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
count the number of drugs which had been prescribed since 2104 to patient 015-92657. | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospit... | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-92657')) AND STRFTIME('%y', medication.drugstarttime) >= '2104' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
7757,
549,
17444,
427,
7757,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
... |
display the job title of jobs which minimum salary is greater than 9000. | CREATE TABLE jobs (job_title VARCHAR, min_salary INTEGER) | SELECT job_title FROM jobs WHERE min_salary > 9000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
16899,
834,
21869,
584,
4280,
28027,
6,
3519,
834,
7,
138,
1208,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
1831,
8,
613,
2233,
13,
2476,
84,
2559,
9090,
19,
2123,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
613,
834,
21869,
21680,
2476,
549,
17444,
427,
3519,
834,
7,
138,
1208,
2490,
668,
2313,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many steals did Tamika Williams have? | CREATE TABLE table_27173 (
"Player" text,
"Minutes" real,
"Field Goals" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
) | SELECT "Steals" FROM table_27173 WHERE "Player" = 'Tamika Williams' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2517,
519,
41,
96,
15800,
49,
121,
1499,
6,
96,
12858,
2810,
7,
121,
490,
6,
96,
3183,
8804,
17916,
7,
121,
490,
6,
96,
1649,
6115,
7,
121,
490,
6,
96,
188,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14337,
5405,
121,
21680,
953,
834,
2555,
2517,
519,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
382,
265,
5561,
6060,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In which year were the authors or editors Delia Sherman? | CREATE TABLE table_20193855_2 (year INTEGER, author_s__or_editor_s_ VARCHAR) | SELECT MAX(year) FROM table_20193855_2 WHERE author_s__or_editor_s_ = "Delia Sherman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
8584,
3747,
3769,
834,
357,
41,
1201,
3,
21342,
17966,
6,
2291,
834,
7,
834,
834,
127,
834,
11272,
127,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
8584,
3747,
3769,
834,
357,
549,
17444,
427,
2291,
834,
7,
834,
834,
127,
834,
11272,
127,
834,
7,
834,
3274,
96,
308,
13240,
29485,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
how many male patients had long term use of anticoagulation as their procedure short title? | 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 prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.short_title = "Long-term use anticoagul" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
how many delegates are not in their 20 's | CREATE TABLE table_204_20 (
id number,
"represent" text,
"contestant" text,
"age" number,
"height" text,
"hometown" text
) | SELECT COUNT("contestant") FROM table_204_20 WHERE "age" < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
1755,
41,
3,
23,
26,
381,
6,
96,
60,
12640,
121,
1499,
6,
96,
1018,
4377,
288,
121,
1499,
6,
96,
545,
121,
381,
6,
96,
88,
2632,
121,
1499,
6,
96,
5515,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
1018,
4377,
288,
8512,
21680,
953,
834,
26363,
834,
1755,
549,
17444,
427,
96,
545,
121,
3,
2,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Score, when Date is '13 March 1985', and when Away Team is 'Millwall'? | CREATE TABLE table_49371 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_49371 WHERE "Date" = '13 march 1985' AND "Away team" = 'millwall' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
4118,
536,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3647,
4118,
536,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2368,
10556,
13200,
31,
3430,
96,
188,
1343,
372,
121,
3274,
3,
31,
12415,
10279,
31,
1,
-100,
-100,
-100,
-10... |
Which Hanyu Pinyin has a GDP in 2011 larger than 688.02 billion yuan and a regional population of 8,700,400 in 2010? | CREATE TABLE table_71935 (
"City" text,
"Hanzi" text,
"Hanyu Pinyin" text,
"Regional Population(2010)" text,
"GDP(2011)(billion yuan)" real
) | SELECT "Hanyu Pinyin" FROM table_71935 WHERE "GDP(2011)(billion yuan)" > '688.02' AND "Regional Population(2010)" = '8,700,400' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2294,
2469,
41,
96,
254,
485,
121,
1499,
6,
96,
566,
4557,
23,
121,
1499,
6,
96,
566,
6820,
76,
8050,
63,
77,
121,
1499,
6,
96,
17748,
6318,
29659,
599,
14926,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
566,
6820,
76,
8050,
63,
77,
121,
21680,
953,
834,
940,
2294,
2469,
549,
17444,
427,
96,
517,
7410,
599,
13907,
61,
599,
115,
14916,
3,
63,
76,
152,
61,
121,
2490,
3,
31,
3651,
27376,
357,
31,
3430,
96,
1774... |
How many rewards are there for air date October 6, 2005? | CREATE TABLE table_1893276_2 (reward VARCHAR, air_date VARCHAR) | SELECT reward FROM table_1893276_2 WHERE air_date = "October 6, 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25312,
2668,
3959,
834,
357,
41,
60,
2239,
584,
4280,
28027,
6,
799,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
11157,
33,
132,
21,
799,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9676,
21680,
953,
834,
25312,
2668,
3959,
834,
357,
549,
17444,
427,
799,
834,
5522,
3274,
96,
28680,
8580,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who scored the most points in game 4? | CREATE TABLE table_10812293_3 (
high_points VARCHAR,
game VARCHAR
) | SELECT high_points FROM table_10812293_3 WHERE game = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
20889,
4271,
834,
519,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
5799,
8,
167,
979,
16,
467,
314... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
16169,
20889,
4271,
834,
519,
549,
17444,
427,
467,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's listed for the Turnout % with a Ngilu of 30,535? | CREATE TABLE table_name_32 (turnout__percentage VARCHAR, ngilu VARCHAR) | SELECT turnout__percentage FROM table_name_32 WHERE ngilu = "30,535" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
7535,
670,
834,
834,
883,
3728,
545,
584,
4280,
28027,
6,
3,
1725,
173,
76,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
2616,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
919,
670,
834,
834,
883,
3728,
545,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
3,
1725,
173,
76,
3274,
96,
1458,
6,
4867,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the score of the match on July 22, 2008? | CREATE TABLE table_51424 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_51424 WHERE "Date" = 'july 22, 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2534,
2266,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
755,
2534,
2266,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2047,
120,
12889,
2628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the surface of eckental tournament with a w/o score? | CREATE TABLE table_35953 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Surface" FROM table_35953 WHERE "Tournament" = 'eckental' AND "Score" = 'w/o' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
3301,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
2469,
3301,
519,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
15,
4695,
1947,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
210,
87,
32,
31,
1,
-100,
-100,
... |
What is the music label with the catalogue number enocd 10? | CREATE TABLE table_57028 (
"Country" text,
"Release Date" real,
"Music Label" text,
"Media" text,
"Catalogue Number" text
) | SELECT "Music Label" FROM table_57028 WHERE "Catalogue Number" = 'enocd 10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28363,
2577,
41,
96,
10628,
651,
121,
1499,
6,
96,
1649,
40,
14608,
7678,
121,
490,
6,
96,
29035,
16229,
121,
1499,
6,
96,
24607,
121,
1499,
6,
96,
18610,
9,
10384,
7720,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29035,
16229,
121,
21680,
953,
834,
28363,
2577,
549,
17444,
427,
96,
18610,
9,
10384,
7720,
121,
3274,
3,
31,
15,
14880,
26,
335,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
age 12 _ 21 years | CREATE TABLE table_train_210 (
"id" int,
"serum_potassium" float,
"serum_calcium" float,
"estimated_glomerular_filtration_rate_egfr" int,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_210 WHERE age >= 12 AND age <= 21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
15239,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
49,
440,
834,
3013,
6500,
440,
121,
3,
12660,
6,
96,
7,
49,
440,
834,
10379,
2552,
121,
3,
12660,
6,
96,
3340... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
15239,
549,
17444,
427,
1246,
2490,
2423,
586,
3430,
1246,
3,
2,
2423,
1401,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Create a pie chart showing the total number across nationality. | CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_hosts int
)
CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge... | SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2290,
41,
1546,
7,
17,
834,
4309,
16,
17,
6,
5570,
1499,
6,
868,
485,
1499,
6,
7526,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
3450,
834,
4309,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
868,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
2290,
350,
4630,
6880,
272,
476,
868,
485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the lowest Drawn that has a Lost that's less than 0? | CREATE TABLE table_35013 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) | SELECT MIN("Drawn") FROM table_35013 WHERE "Lost" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16975,
2368,
41,
96,
23055,
7,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
22512,
7,
1750,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
10936,
29,
8512,
21680,
953,
834,
16975,
2368,
549,
17444,
427,
96,
434,
3481,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who are the outgoing head coaches whose manner of departure is Gardening Leave 1? | CREATE TABLE table_29171931_3 (outgoing_head_coach VARCHAR, manner_of_departure VARCHAR) | SELECT outgoing_head_coach FROM table_29171931_3 WHERE manner_of_departure = "Gardening leave 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2517,
2294,
3341,
834,
519,
41,
670,
9545,
834,
3313,
834,
509,
1836,
584,
4280,
28027,
6,
3107,
834,
858,
834,
221,
2274,
1462,
584,
4280,
28027,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
91,
9545,
834,
3313,
834,
509,
1836,
21680,
953,
834,
3166,
2517,
2294,
3341,
834,
519,
549,
17444,
427,
3107,
834,
858,
834,
221,
2274,
1462,
3274,
96,
21846,
537,
53,
1175,
209,
121,
1,
-100,
-100,
-100,
-100,
-10... |
What circuit has qualifying as the session? | CREATE TABLE table_name_77 (circuit VARCHAR, session VARCHAR) | SELECT circuit FROM table_name_77 WHERE session = "qualifying" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
15357,
21560,
584,
4280,
28027,
6,
2363,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
4558,
65,
18002,
38,
8,
2363,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4558,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
2363,
3274,
96,
11433,
8587,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how may releases were after the year 2009 ? | CREATE TABLE table_203_570 (
id number,
"#" number,
"title" text,
"tpb isbn" text,
"tpb release date" text,
"tpb page number" number,
"collected material" text
) | SELECT COUNT(*) FROM table_203_570 WHERE "tpb release date" > 2009 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
28363,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
17,
102,
115,
19,
115,
29,
121,
1499,
6,
96,
17,
102,
115,
1576,
833,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
28363,
549,
17444,
427,
96,
17,
102,
115,
1576,
833,
121,
2490,
2464,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What engine is used by Colin Bennett Racing with an 811 chassis? | CREATE TABLE table_name_48 (engine VARCHAR, entrant VARCHAR, chassis VARCHAR) | SELECT engine FROM table_name_48 WHERE entrant = "colin bennett racing" AND chassis = "811" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
20165,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1948,
19,
261,
57,
21212,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1948,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
3,
295,
3569,
3274,
96,
9044,
29,
36,
29,
10544,
8191,
121,
3430,
22836,
3274,
96,
927,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the team for week 1 of 28 | CREATE TABLE table_75061 (
"Team" text,
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text,
"Week 6" text,
"Week 7" text,
"Week 8 Final" text
) | SELECT "Team" FROM table_75061 WHERE "Week 1" = '28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9979,
4241,
41,
96,
18699,
121,
1499,
6,
96,
518,
10266,
209,
121,
1499,
6,
96,
518,
10266,
204,
121,
1499,
6,
96,
518,
10266,
220,
121,
1499,
6,
96,
518,
10266,
3,
20364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
9979,
4241,
549,
17444,
427,
96,
518,
10266,
209,
121,
3274,
3,
31,
2577,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the most common type of artworks. | CREATE TABLE artwork (
artwork_id number,
type text,
name text
)
CREATE TABLE festival_detail (
festival_id number,
festival_name text,
chair_name text,
location text,
year number,
num_of_audience number
)
CREATE TABLE nomination (
artwork_id number,
festival_id number,
... | SELECT type FROM artwork GROUP BY type ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7924,
41,
7924,
834,
23,
26,
381,
6,
686,
1499,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3994,
834,
221,
5756,
41,
3994,
834,
23,
26,
381,
6,
3994,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
686,
21680,
7924,
350,
4630,
6880,
272,
476,
686,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me a pie chart show the proportion of the number of course names in the course table. | CREATE TABLE People (
person_id INTEGER,
first_name VARCHAR(255),
middle_name VARCHAR(255),
last_name VARCHAR(255),
cell_mobile_number VARCHAR(40),
email_address VARCHAR(40),
login_name VARCHAR(40),
password VARCHAR(40)
)
CREATE TABLE Student_Course_Attendance (
student_id INTEGER,
... | SELECT course_name, COUNT(course_name) FROM Courses GROUP BY course_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2449,
41,
568,
834,
23,
26,
3,
21342,
17966,
6,
166,
834,
4350,
584,
4280,
28027,
599,
25502,
201,
2214,
834,
4350,
584,
4280,
28027,
599,
25502,
201,
336,
834,
4350,
584,
4280,
28027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
503,
834,
4350,
6,
2847,
17161,
599,
19221,
834,
4350,
61,
21680,
8670,
7,
350,
4630,
6880,
272,
476,
503,
834,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Margin has a Dist (f) larger than 10, and a Race of king george vi & queen elizabeth stakes? | CREATE TABLE table_name_33 (margin VARCHAR, dist__f_ VARCHAR, race VARCHAR) | SELECT margin FROM table_name_33 WHERE dist__f_ > 10 AND race = "king george vi & queen elizabeth stakes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
1635,
122,
77,
584,
4280,
28027,
6,
1028,
17,
834,
834,
89,
834,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6346,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
1028,
17,
834,
834,
89,
834,
2490,
335,
3430,
1964,
3274,
96,
1765,
873,
1677,
15,
5931,
3,
184,
14915,
3,
15,
13287,
9,
346,
189,
8474,
7,
121,
1,
-100,
... |
Name the total with finish of t22 | CREATE TABLE table_name_24 (total VARCHAR, finish VARCHAR) | SELECT total FROM table_name_24 WHERE finish = "t22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
235,
1947,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
28,
1992,
13,
3,
17,
2884,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
792,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
1992,
3274,
96,
17,
2884,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how old is patient 006-50368 on their first hospital encounter? | 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 (
in... | SELECT patient.age FROM patient WHERE patient.uniquepid = '006-50368' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
545,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
948,
19431,
519,
3651,
31,
3430,
4486,
1868,
5,
31386,
26,
159,
7993,
715,
6827,
13046,
10376,
4674,
11300,
272,
476,
1868,
5... |
Who is the winner when bigten (2-1) is the challenge leader? | CREATE TABLE table_21330550_2 (winner VARCHAR, challenge_leader VARCHAR) | SELECT winner FROM table_21330550_2 WHERE challenge_leader = "BigTen (2-1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
17225,
17147,
834,
357,
41,
3757,
687,
584,
4280,
28027,
6,
1921,
834,
22900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
4668,
116,
600,
324,
41,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4668,
21680,
953,
834,
2658,
17225,
17147,
834,
357,
549,
17444,
427,
1921,
834,
22900,
3274,
96,
23805,
382,
35,
41,
17234,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the average when the place is 16? | CREATE TABLE table_31256 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total points" text,
"Number of dances" real,
"Average" text
) | SELECT "Average" FROM table_31256 WHERE "Place" = '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
19337,
41,
96,
22557,
57,
1348,
121,
490,
6,
96,
345,
11706,
121,
490,
6,
96,
3881,
413,
109,
121,
1499,
6,
96,
3696,
1947,
979,
121,
1499,
6,
96,
567,
5937,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
624,
545,
121,
21680,
953,
834,
3341,
19337,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where was the game which ended in a 4-1 w? | CREATE TABLE table_name_64 (location VARCHAR, result VARCHAR) | SELECT location FROM table_name_64 WHERE result = "4-1 w" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
14836,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
84,
3492,
16,
3,
9,
314,
2292,
3,
210,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
741,
3274,
96,
591,
2292,
3,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the total number of jons team for 15x07 | CREATE TABLE table_23292220_17 (jons_team VARCHAR, episode VARCHAR) | SELECT COUNT(jons_team) FROM table_23292220_17 WHERE episode = "15x07" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3166,
2884,
1755,
834,
2517,
41,
15429,
7,
834,
11650,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
3,
15429,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15429,
7,
834,
11650,
61,
21680,
953,
834,
2773,
3166,
2884,
1755,
834,
2517,
549,
17444,
427,
5640,
3274,
96,
1808,
226,
4560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the maximum rank of the source with renewable percentage w/o hydro is 2.17%? | CREATE TABLE table_27478 (
"Rank" real,
"Rank w/o Hydropower" real,
"State" text,
"% Renewable" text,
"% Renewable w/o Hydro" text,
"Renewable electricity (GW\u00b7h)" real,
"Renewable electricity w/o Hydro (GW\u00b7h)" real,
"Total electricity (GW\u00b7h)" real
) | SELECT MAX("Rank") FROM table_27478 WHERE "% Renewable w/o Hydro" = '2.17%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
591,
3940,
41,
96,
22557,
121,
490,
6,
96,
22557,
3,
210,
87,
32,
17239,
6740,
121,
490,
6,
96,
134,
4748,
121,
1499,
6,
96,
1454,
31519,
121,
1499,
6,
96,
1454,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22557,
8512,
21680,
953,
834,
2555,
591,
3940,
549,
17444,
427,
96,
1454,
31519,
3,
210,
87,
32,
17239,
121,
3274,
3,
31,
14489,
6170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Record has a High points of hoffman (16)? | CREATE TABLE table_name_58 (record VARCHAR, high_points VARCHAR) | SELECT record FROM table_name_58 WHERE high_points = "hoffman (16)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
60,
7621,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
11392,
65,
3,
9,
1592,
979,
13,
3,
11950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
11950,
348,
19198,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the starts for 23.7 | CREATE TABLE table_2181798_1 (
starts VARCHAR,
avg_start VARCHAR
) | SELECT starts FROM table_2181798_1 WHERE avg_start = "23.7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
2517,
3916,
834,
536,
41,
3511,
584,
4280,
28027,
6,
3,
9,
208,
122,
834,
10208,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3511,
21,
204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3511,
21680,
953,
834,
357,
2606,
2517,
3916,
834,
536,
549,
17444,
427,
3,
9,
208,
122,
834,
10208,
3274,
96,
357,
25168,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of Game, when Record is '2-1-1', and when October is less than 21? | CREATE TABLE table_46064 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT SUM("Game") FROM table_46064 WHERE "Record" = '2-1-1' AND "October" < '21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25991,
4389,
41,
96,
23055,
121,
490,
6,
96,
28680,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23055,
8512,
21680,
953,
834,
25991,
4389,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
17234,
2292,
31,
3430,
96,
28680,
121,
3,
2,
3,
31,
2658,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lane total when rank is 2? | CREATE TABLE table_name_89 (
lane INTEGER,
rank VARCHAR
) | SELECT SUM(lane) FROM table_name_89 WHERE rank = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
3,
8102,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
8102,
792,
116,
11003,
19,
204,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8102,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
11003,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What number episode in the series was directed by Kelly Makin and written by Mark Ellis & Stephanie Morgenstern? | CREATE TABLE table_22310 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Canadian air date" text,
"U.S. air date" text,
"Production code" real,
"Canadian viewers (million)" text
) | SELECT "No." FROM table_22310 WHERE "Directed by" = 'Kelly Makin' AND "Written by" = 'Mark Ellis & Stephanie Morgenstern' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
19947,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4168,
535,
21680,
953,
834,
2884,
19947,
549,
17444,
427,
96,
23620,
15,
26,
57,
121,
3274,
3,
31,
439,
15,
6073,
15666,
77,
31,
3430,
96,
24965,
324,
57,
121,
3274,
3,
31,
19762,
22342,
3,
184,
23270,
20147,
... |
How many missions countries have notability with president of burundi? | CREATE TABLE table_18299148_1 (Missions VARCHAR, notability VARCHAR) | SELECT COUNT(Missions) AS country FROM table_18299148_1 WHERE notability = "President of Burundi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
357,
3264,
24748,
834,
536,
41,
329,
159,
1938,
7,
584,
4280,
28027,
6,
59,
2020,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14004,
1440,
43,
59,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
329,
159,
1938,
7,
61,
6157,
684,
21680,
953,
834,
2606,
357,
3264,
24748,
834,
536,
549,
17444,
427,
59,
2020,
3274,
96,
345,
15704,
13,
4152,
1106,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the institutional authority for launch date of october 12, 2004 | CREATE TABLE table_name_47 (institutional_authority VARCHAR, launch_date VARCHAR) | SELECT institutional_authority FROM table_name_47 WHERE launch_date = "october 12, 2004" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
17521,
6318,
834,
17415,
485,
584,
4280,
28027,
6,
3289,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
13533,
5015,
21,
3289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13533,
834,
17415,
485,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
3289,
834,
5522,
3274,
96,
32,
75,
235,
1152,
10440,
4406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the digital of Virgin [analogue]? | CREATE TABLE table_name_24 (digital VARCHAR, provider VARCHAR) | SELECT digital FROM table_name_24 WHERE provider = "virgin [analogue]" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
9206,
138,
584,
4280,
28027,
6,
3175,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1125,
13,
16823,
784,
152,
9,
10384,
908,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1125,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
3175,
3274,
96,
5771,
122,
77,
784,
152,
9,
10384,
908,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Chilean word is used for the Castilian word ordenador? | CREATE TABLE table_name_78 (
chilean VARCHAR,
castilian VARCHAR
) | SELECT chilean FROM table_name_78 WHERE castilian = "ordenador" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
3,
1436,
109,
152,
584,
4280,
28027,
6,
4061,
23,
9928,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
15428,
152,
1448,
19,
261,
21,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
1436,
109,
152,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
4061,
23,
9928,
3274,
96,
127,
537,
7923,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which General classification has a Stage of 7? | CREATE TABLE table_name_95 (general_classification VARCHAR, stage VARCHAR) | SELECT general_classification FROM table_name_95 WHERE stage = "7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
27369,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2146,
13774,
65,
3,
9,
13578,
13,
489,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
879,
834,
4057,
2420,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1726,
3274,
96,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the gamecenter with attendance of 78,551 | CREATE TABLE table_name_48 (
gamecenter VARCHAR,
attendance VARCHAR
) | SELECT gamecenter FROM table_name_48 WHERE attendance = "78,551" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
467,
13866,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
467,
13866,
28,
11364,
13,
3,
3940,
6,
3769,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
13866,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
11364,
3274,
96,
3940,
6,
3769,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many top tens had an average start of 29.4? | CREATE TABLE table_1012730_1 (top_10 VARCHAR, avg_start VARCHAR) | SELECT COUNT(top_10) FROM table_1012730_1 WHERE avg_start = "29.4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
22367,
1458,
834,
536,
41,
2916,
834,
1714,
584,
4280,
28027,
6,
3,
9,
208,
122,
834,
10208,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
420,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2916,
834,
16968,
21680,
953,
834,
1714,
22367,
1458,
834,
536,
549,
17444,
427,
3,
9,
208,
122,
834,
10208,
3274,
96,
3166,
5,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 3809959540? | CREATE TABLE table_63854 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" real,
"Water (sqmi)" real,
"Latitude" real,
"Longitude" real,
"GEO ID" real,
"ANSI code" real
) | SELECT COUNT("Longitude") FROM table_63854 WHERE "ANSI code" < '1036534' AND "Water (sqmi)" = '0' AND "GEO ID" > '3809959540' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
4433,
591,
41,
96,
382,
9197,
2009,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
27773,
5,
26118,
121,
490,
6,
96,
434,
232,
41,
11820,
51,
23,
3,
61,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
434,
2444,
20341,
8512,
21680,
953,
834,
3891,
4433,
591,
549,
17444,
427,
96,
16897,
196,
1081,
121,
3,
2,
3,
31,
1714,
10402,
3710,
31,
3430,
96,
28632,
41,
7,
1824,
51,
23,
61,
121,
3274,... |
A bar chart shows the distribution of Date_of_Birth and Weight , and I want to sort from high to low by the X-axis. | 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 real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Date_of_Birth, Weight FROM people ORDER BY Date_of_Birth DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
858,
834,
279,
23,
52,
189,
6,
14230,
21680,
151,
4674,
11300,
272,
476,
7678,
834,
858,
834,
279,
23,
52,
189,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
who had high rebounds when score is w 111 92 (ot) | CREATE TABLE table_13762472_4 (
high_rebounds VARCHAR,
score VARCHAR
) | SELECT high_rebounds FROM table_13762472_4 WHERE score = "W 111–92 (OT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3959,
2266,
5865,
834,
591,
41,
306,
834,
23768,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
141,
306,
3,
23768,
116,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
23768,
21680,
953,
834,
2368,
3959,
2266,
5865,
834,
591,
549,
17444,
427,
2604,
3274,
96,
518,
3,
15866,
104,
4508,
41,
6951,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell me the number of patients taking drug via nu route who have been diagnosed with malignant neoplasm of other sites of tongue. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | 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.long_title = "Malignant neoplasm of other sites of tongue" AND prescriptions.route = "NU" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is the score given by the Home team Geelong? | CREATE TABLE table_name_37 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_37 WHERE home_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
5515,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
787,
57,
8,
1210,
372,
961,
15,
2961,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
234,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Partner Tomas Behrend's Score in the final? | CREATE TABLE table_name_48 (score_in_the_final VARCHAR, partner VARCHAR) | SELECT score_in_the_final FROM table_name_48 WHERE partner = "tomas behrend" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
7,
9022,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
5793,
3059,
9,
7,
493,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
2397,
3274,
96,
235,
2754,
36,
10655,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.